| OLD | NEW |
| 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
| 3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'common_gcc_warning_flags': [ | 7 'common_gcc_warning_flags': [ |
| 8 '-Wall', | 8 '-Wall', |
| 9 '-Wextra', # Also known as -W. | 9 '-Wextra', # Also known as -W. |
| 10 '-Wno-unused-parameter', | 10 '-Wno-unused-parameter', |
| 11 ], | 11 ], |
| 12 | 12 |
| 13 # Default value. This may be overridden in a containing project gyp. | 13 # Default value. This may be overridden in a containing project gyp. |
| 14 'target_arch%': 'ia32', | 14 'target_arch%': 'ia32', |
| 15 | 15 |
| 16 'conditions': [ | 16 'conditions': [ |
| 17 ['"<(target_arch)"=="ia32"', { 'dart_target_arch': 'IA32', }], | 17 ['"<(target_arch)"=="ia32"', { 'dart_target_arch': 'IA32', }], |
| 18 ['"<(target_arch)"=="x64"', { 'dart_target_arch': 'X64', }], | 18 ['"<(target_arch)"=="x64"', { 'dart_target_arch': 'X64', }], |
| 19 ['"<(target_arch)"=="arm"', { 'dart_target_arch': 'ARM', }], | 19 ['"<(target_arch)"=="arm"', { 'dart_target_arch': 'ARM', }], |
| 20 ['"<(target_arch)"=="simarm"', { 'dart_target_arch': 'SIMARM', }], | 20 ['"<(target_arch)"=="simarm"', { 'dart_target_arch': 'SIMARM', }], |
| 21 ['"<(target_arch)"=="mips"', { 'dart_target_arch': 'MIPS', }], | 21 ['"<(target_arch)"=="mips"', { 'dart_target_arch': 'MIPS', }], |
| 22 ['"<(target_arch)"=="simmips"', { 'dart_target_arch': 'SIMMIPS', }], | 22 ['"<(target_arch)"=="simmips"', { 'dart_target_arch': 'SIMMIPS', }], |
| 23 ], | 23 [ 'OS=="linux"', { 'dart_target_os': 'Linux', } ], |
| 24 [ 'OS=="mac"', { 'dart_target_os': 'Macos', } ], |
| 25 [ 'OS=="win"', { 'dart_target_os': 'Win', } ], |
| 26 # The OS is set to "android" only when we are building Dartium+Clank. We |
| 27 # use 'chrome_target_os' so that Release and Debug configurations inherit |
| 28 # from Android configurations when OS=="android". If OS is not set to |
| 29 # Android, then Release and Debug inherit from the usual configurations. |
| 30 [ 'OS=="android"', { 'chrome_target_os': 'Android',}, |
| 31 { 'chrome_target_os': '',}], |
| 32 ], |
| 24 }, | 33 }, |
| 25 'conditions': [ | 34 'includes': [ |
| 26 [ 'OS=="android"', { 'includes': [ 'configurations_android.gypi', ], } ], | 35 'configurations_android.gypi', |
| 27 [ 'OS=="linux"', { 'includes': [ 'configurations_make.gypi', ], } ], | 36 'configurations_make.gypi', |
| 28 [ 'OS=="mac"', { 'includes': [ 'configurations_xcode.gypi', ], } ], | 37 'configurations_xcode.gypi', |
| 29 [ 'OS=="win"', { 'includes': [ 'configurations_msvs.gypi', ], } ], | 38 'configurations_msvs.gypi', |
| 30 ], | 39 ], |
| 31 'target_defaults': { | 40 'target_defaults': { |
| 32 'default_configuration': 'DebugIA32', | 41 'default_configuration': 'DebugIA32', |
| 33 'configurations': { | 42 'configurations': { |
| 34 'Dart_Base': { | 43 'Dart_Base': { |
| 35 'abstract': 1, | 44 'abstract': 1, |
| 36 }, | 45 }, |
| 37 | 46 |
| 38 'Dart_ia32_Base': { | 47 'Dart_ia32_Base': { |
| 39 'abstract': 1, | 48 'abstract': 1, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 'abstract': 1, | 84 'abstract': 1, |
| 76 }, | 85 }, |
| 77 | 86 |
| 78 'Dart_Release': { | 87 'Dart_Release': { |
| 79 'abstract': 1, | 88 'abstract': 1, |
| 80 'defines': [ | 89 'defines': [ |
| 81 'NDEBUG', | 90 'NDEBUG', |
| 82 ], | 91 ], |
| 83 }, | 92 }, |
| 84 | 93 |
| 94 |
| 95 # Configurations |
| 85 'DebugIA32': { | 96 'DebugIA32': { |
| 86 'inherit_from': ['Dart_Base', 'Dart_ia32_Base', 'Dart_Debug'], | 97 'inherit_from': [ |
| 98 'Dart_Base', 'Dart_ia32_Base', 'Dart_Debug', |
| 99 'Dart_<(dart_target_os)_Base', |
| 100 'Dart_<(dart_target_os)_ia32_Base', |
| 101 'Dart_<(dart_target_os)_Debug',], |
| 87 }, | 102 }, |
| 88 | 103 |
| 89 'ReleaseIA32': { | 104 'ReleaseIA32': { |
| 90 'inherit_from': ['Dart_Base', 'Dart_ia32_Base', 'Dart_Release'], | 105 'inherit_from': [ |
| 106 'Dart_Base', 'Dart_ia32_Base', 'Dart_Release', |
| 107 'Dart_<(dart_target_os)_Base', |
| 108 'Dart_<(dart_target_os)_ia32_Base', |
| 109 'Dart_<(dart_target_os)_Release',], |
| 91 }, | 110 }, |
| 92 | 111 |
| 93 'DebugX64': { | 112 'DebugX64': { |
| 94 'inherit_from': ['Dart_Base', 'Dart_x64_Base', 'Dart_Debug'], | 113 'inherit_from': [ |
| 114 'Dart_Base', 'Dart_x64_Base', 'Dart_Debug', |
| 115 'Dart_<(dart_target_os)_Base', |
| 116 'Dart_<(dart_target_os)_x64_Base', |
| 117 'Dart_<(dart_target_os)_Debug',], |
| 95 }, | 118 }, |
| 96 | 119 |
| 97 'ReleaseX64': { | 120 'ReleaseX64': { |
| 98 'inherit_from': ['Dart_Base', 'Dart_x64_Base', 'Dart_Release'], | 121 'inherit_from': [ |
| 122 'Dart_Base', 'Dart_x64_Base', 'Dart_Release', |
| 123 'Dart_<(dart_target_os)_Base', |
| 124 'Dart_<(dart_target_os)_x64_Base', |
| 125 'Dart_<(dart_target_os)_Release',], |
| 99 }, | 126 }, |
| 100 | 127 |
| 101 'DebugSIMARM': { | 128 'DebugSIMARM': { |
| 102 'inherit_from': ['Dart_Base', 'Dart_simarm_Base', 'Dart_Debug'], | 129 'inherit_from': [ |
| 130 'Dart_Base', 'Dart_simarm_Base', 'Dart_Debug', |
| 131 'Dart_<(dart_target_os)_Base', |
| 132 'Dart_<(dart_target_os)_simarm_Base', |
| 133 'Dart_<(dart_target_os)_Debug',], |
| 103 'defines': [ | 134 'defines': [ |
| 104 'DEBUG', | 135 'DEBUG', |
| 105 ], | 136 ], |
| 106 }, | 137 }, |
| 107 | 138 |
| 108 'ReleaseSIMARM': { | 139 'ReleaseSIMARM': { |
| 109 'inherit_from': ['Dart_Base', 'Dart_simarm_Base', 'Dart_Release'], | 140 'inherit_from': [ |
| 110 }, | 141 'Dart_Base', 'Dart_simarm_Base', 'Dart_Release', |
| 111 | 142 'Dart_<(dart_target_os)_Base', |
| 112 'DebugARM': { | 143 'Dart_<(dart_target_os)_simarm_Base', |
| 113 'inherit_from': ['Dart_Base', 'Dart_arm_Base', 'Dart_Debug'], | 144 'Dart_<(dart_target_os)_Release',], |
| 114 }, | |
| 115 | |
| 116 'ReleaseARM': { | |
| 117 'inherit_from': ['Dart_Base', 'Dart_arm_Base', 'Dart_Release'], | |
| 118 }, | 145 }, |
| 119 | 146 |
| 120 'DebugSIMMIPS': { | 147 'DebugSIMMIPS': { |
| 121 'inherit_from': ['Dart_Base', 'Dart_simmips_Base', 'Dart_Debug'], | 148 'inherit_from': [ |
| 149 'Dart_Base', 'Dart_simmips_Base', 'Dart_Debug', |
| 150 'Dart_<(dart_target_os)_Base', |
| 151 'Dart_<(dart_target_os)_simmips_Base', |
| 152 'Dart_<(dart_target_os)_Debug',], |
| 122 'defines': [ | 153 'defines': [ |
| 123 'DEBUG', | 154 'DEBUG', |
| 124 ], | 155 ], |
| 125 }, | 156 }, |
| 126 | 157 |
| 127 'ReleaseSIMMIPS': { | 158 'ReleaseSIMMIPS': { |
| 128 'inherit_from': ['Dart_Base', 'Dart_simmips_Base', 'Dart_Release'], | 159 'inherit_from': [ |
| 160 'Dart_Base', 'Dart_simmips_Base', 'Dart_Release', |
| 161 'Dart_<(dart_target_os)_Base', |
| 162 'Dart_<(dart_target_os)_simmips_Base', |
| 163 'Dart_<(dart_target_os)_Release',], |
| 164 }, |
| 165 |
| 166 |
| 167 # ARM and MIPS hardware configurations are only for Linux and Android. |
| 168 'DebugARM': { |
| 169 'inherit_from': [ |
| 170 'Dart_Base', 'Dart_arm_Base', 'Dart_Debug', |
| 171 'Dart_Linux_Base', |
| 172 'Dart_Linux_arm_Base', |
| 173 'Dart_Linux_Debug',], |
| 174 }, |
| 175 |
| 176 'ReleaseARM': { |
| 177 'inherit_from': [ |
| 178 'Dart_Base', 'Dart_arm_Base', 'Dart_Release', |
| 179 'Dart_Linux_Base', |
| 180 'Dart_Linux_arm_Base', |
| 181 'Dart_Linux_Release',], |
| 129 }, | 182 }, |
| 130 | 183 |
| 131 'DebugMIPS': { | 184 'DebugMIPS': { |
| 132 'inherit_from': ['Dart_Base', 'Dart_mips_Base', 'Dart_Debug'], | 185 'inherit_from': [ |
| 186 'Dart_Base', 'Dart_mips_Base', 'Dart_Debug', |
| 187 'Dart_Linux_Base', |
| 188 'Dart_Linux_mips_Base', |
| 189 'Dart_Linux_Debug',], |
| 133 }, | 190 }, |
| 134 | 191 |
| 135 'ReleaseMIPS': { | 192 'ReleaseMIPS': { |
| 136 'inherit_from': ['Dart_Base', 'Dart_mips_Base', 'Dart_Release'], | 193 'inherit_from': [ |
| 194 'Dart_Base', 'Dart_mips_Base', 'Dart_Release', |
| 195 'Dart_Linux_Base', |
| 196 'Dart_Linux_mips_Base', |
| 197 'Dart_Linux_Release',], |
| 198 }, |
| 199 |
| 200 # Android configurations. The configuration names explicitly include |
| 201 # 'Android' because we are cross-building from Linux, and, when building |
| 202 # the standalone VM, we cannot inspect the gyp built-in 'OS' variable to |
| 203 # figure out that we are building for Android. Since we have not re-run |
| 204 # gyp, it will still be 'linux'. |
| 205 'DebugAndroidIA32': { |
| 206 'inherit_from': [ |
| 207 'Dart_Base', 'Dart_ia32_Base', 'Dart_Debug', |
| 208 'Dart_Android_Base', |
| 209 'Dart_Android_ia32_Base', |
| 210 'Dart_Android_Debug',], |
| 211 }, |
| 212 |
| 213 'ReleaseAndroidIA32': { |
| 214 'inherit_from': [ |
| 215 'Dart_Base', 'Dart_ia32_Base', 'Dart_Release', |
| 216 'Dart_Android_Base', |
| 217 'Dart_Android_ia32_Base', |
| 218 'Dart_Android_Release',], |
| 219 }, |
| 220 |
| 221 'DebugAndroidARM': { |
| 222 'inherit_from': [ |
| 223 'Dart_Base', 'Dart_arm_Base', 'Dart_Debug', |
| 224 'Dart_Android_Base', |
| 225 'Dart_Android_arm_Base', |
| 226 'Dart_Android_Debug',], |
| 227 }, |
| 228 |
| 229 'ReleaseAndroidARM': { |
| 230 'inherit_from': [ |
| 231 'Dart_Base', 'Dart_arm_Base', 'Dart_Release', |
| 232 'Dart_Android_Base', |
| 233 'Dart_Android_arm_Base', |
| 234 'Dart_Android_Release',], |
| 137 }, | 235 }, |
| 138 | 236 |
| 139 # These targets assume that target_arch is passed in explicitly | 237 # These targets assume that target_arch is passed in explicitly |
| 140 # by the containing project (e.g., chromium). | 238 # by the containing project (e.g., chromium). |
| 141 'Debug': { | 239 'Debug': { |
| 142 'inherit_from': ['Debug<(dart_target_arch)'] | 240 'inherit_from': ['Debug<(chrome_target_os)<(dart_target_arch)'] |
| 143 }, | 241 }, |
| 144 | 242 |
| 145 'Release': { | 243 'Release': { |
| 146 'inherit_from': ['Release<(dart_target_arch)'] | 244 'inherit_from': ['Release<(chrome_target_os)<(dart_target_arch)'] |
| 147 }, | 245 }, |
| 148 }, | 246 }, |
| 149 }, | 247 }, |
| 150 } | 248 } |
| OLD | NEW |