| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # IMPORTANT: | 5 # IMPORTANT: |
| 6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
| 7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
| 8 { | 8 { |
| 9 # Variables expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
| 10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 # Disable viewport meta tag by default. | 79 # Disable viewport meta tag by default. |
| 80 'enable_viewport%': 0, | 80 'enable_viewport%': 0, |
| 81 | 81 |
| 82 # Enable HiDPI support. | 82 # Enable HiDPI support. |
| 83 'enable_hidpi%': 0, | 83 'enable_hidpi%': 0, |
| 84 | 84 |
| 85 # Enable top chrome material design. | 85 # Enable top chrome material design. |
| 86 'enable_topchrome_md%' : 0, | 86 'enable_topchrome_md%' : 0, |
| 87 | 87 |
| 88 # Force building against pre-built sysroot image on linux. By default |
| 89 # the sysroot image is only used for Official builds or when cross |
| 90 # compiling to arm or mips. |
| 91 'use_sysroot%': 0, |
| 92 |
| 88 # Override buildtype to select the desired build flavor. | 93 # Override buildtype to select the desired build flavor. |
| 89 # Dev - everyday build for development/testing | 94 # Dev - everyday build for development/testing |
| 90 # Official - release build (generally implies additional processing) | 95 # Official - release build (generally implies additional processing) |
| 91 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp | 96 # TODO(mmoss) Once 'buildtype' is fully supported (e.g. Windows gyp |
| 92 # conversion is done), some of the things which are now controlled by | 97 # conversion is done), some of the things which are now controlled by |
| 93 # 'branding', such as symbol generation, will need to be refactored | 98 # 'branding', such as symbol generation, will need to be refactored |
| 94 # based on 'buildtype' (i.e. we don't care about saving symbols for | 99 # based on 'buildtype' (i.e. we don't care about saving symbols for |
| 95 # non-Official # builds). | 100 # non-Official # builds). |
| 96 'buildtype%': 'Dev', | 101 'buildtype%': 'Dev', |
| 97 | 102 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 'use_clipboard_aurax11%': 0, | 175 'use_clipboard_aurax11%': 0, |
| 171 | 176 |
| 172 # goma settings. | 177 # goma settings. |
| 173 # 1 to use goma. | 178 # 1 to use goma. |
| 174 # If no gomadir is set, it uses the default gomadir. | 179 # If no gomadir is set, it uses the default gomadir. |
| 175 'use_goma%': 0, | 180 'use_goma%': 0, |
| 176 'gomadir%': '', | 181 'gomadir%': '', |
| 177 | 182 |
| 178 # The system root for cross-compiles. Default: none. | 183 # The system root for cross-compiles. Default: none. |
| 179 'sysroot%': '', | 184 'sysroot%': '', |
| 180 'use_sysroot%': 0, | |
| 181 'chroot_cmd%': '', | 185 'chroot_cmd%': '', |
| 182 | 186 |
| 183 # The system libdir used for this ABI. | 187 # The system libdir used for this ABI. |
| 184 'system_libdir%': 'lib', | 188 'system_libdir%': 'lib', |
| 185 | 189 |
| 186 # Default MIPS arch variant. This is set in the conditions block | 190 # Default MIPS arch variant. This is set in the conditions block |
| 187 # below for MIPS targets. | 191 # below for MIPS targets. |
| 188 'mips_arch_variant%': '', | 192 'mips_arch_variant%': '', |
| 189 | 193 |
| 190 # MIPS DSP ASE revision. Possible values are: | 194 # MIPS DSP ASE revision. Possible values are: |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 'mips_arch_variant%': 'r6', | 279 'mips_arch_variant%': 'r6', |
| 276 }, { | 280 }, { |
| 277 'mips_arch_variant%': 'r2', | 281 'mips_arch_variant%': 'r2', |
| 278 }], | 282 }], |
| 279 ], | 283 ], |
| 280 }], | 284 }], |
| 281 | 285 |
| 282 ['target_arch=="mipsel"', { | 286 ['target_arch=="mipsel"', { |
| 283 'mips_arch_variant%': 'r1', | 287 'mips_arch_variant%': 'r1', |
| 284 }], | 288 }], |
| 289 |
| 290 ['OS=="linux" and target_arch=="arm" and chromeos==0', { |
| 291 # sysroot needs to be an absolute path otherwise it generates |
| 292 # incorrect results when passed to pkg-config |
| 293 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debian
_wheezy_arm-sysroot', |
| 294 }], # OS=="linux" and target_arch=="arm" and chromeos==0 |
| 295 |
| 296 ['OS=="linux" and ((branding=="Chrome" and buildtype=="Official" and c
hromeos==0) or use_sysroot==1)' , { |
| 297 'conditions': [ |
| 298 ['target_arch=="x64"', { |
| 299 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/de
bian_wheezy_amd64-sysroot', |
| 300 }], |
| 301 ['target_arch=="ia32"', { |
| 302 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/de
bian_wheezy_i386-sysroot', |
| 303 }], |
| 304 ], |
| 305 }], # OS=="linux" and branding=="Chrome" and buildtype=="Official" and
chromeos==0 |
| 306 |
| 307 ['OS=="linux" and target_arch=="mipsel"', { |
| 308 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/sysroot', |
| 309 'CXX%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/bin/mipsel-linux-g
nu-gcc', |
| 310 }], |
| 285 ], | 311 ], |
| 286 }, | 312 }, |
| 287 | 313 |
| 288 # Copy conditionally-set variables out one scope. | 314 # Copy conditionally-set variables out one scope. |
| 289 'chromeos%': '<(chromeos)', | 315 'chromeos%': '<(chromeos)', |
| 290 'chromecast%': '<(chromecast)', | 316 'chromecast%': '<(chromecast)', |
| 291 'host_arch%': '<(host_arch)', | 317 'host_arch%': '<(host_arch)', |
| 292 'target_arch%': '<(target_arch)', | 318 'target_arch%': '<(target_arch)', |
| 293 'target_subarch%': '<(target_subarch)', | 319 'target_subarch%': '<(target_subarch)', |
| 294 'mips_arch_variant%': '<(mips_arch_variant)', | 320 'mips_arch_variant%': '<(mips_arch_variant)', |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 931 'enable_print_preview%': 1, | 957 'enable_print_preview%': 1, |
| 932 }], | 958 }], |
| 933 | 959 |
| 934 # Do not enable the Settings App on ChromeOS. | 960 # Do not enable the Settings App on ChromeOS. |
| 935 ['enable_app_list==1 and chromeos==0', { | 961 ['enable_app_list==1 and chromeos==0', { |
| 936 'enable_settings_app%': 1, | 962 'enable_settings_app%': 1, |
| 937 }, { | 963 }, { |
| 938 'enable_settings_app%': 0, | 964 'enable_settings_app%': 0, |
| 939 }], | 965 }], |
| 940 | 966 |
| 941 ['OS=="linux" and target_arch=="arm" and chromeos==0', { | |
| 942 # sysroot needs to be an absolute path otherwise it generates | |
| 943 # incorrect results when passed to pkg-config | |
| 944 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debian_w
heezy_arm-sysroot', | |
| 945 }], # OS=="linux" and target_arch=="arm" and chromeos==0 | |
| 946 | |
| 947 ['OS=="linux" and ((branding=="Chrome" and buildtype=="Official" and chr
omeos==0) or use_sysroot==1)' , { | |
| 948 'conditions': [ | |
| 949 ['target_arch=="x64"', { | |
| 950 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debi
an_wheezy_amd64-sysroot', | |
| 951 }], | |
| 952 ['target_arch=="ia32"', { | |
| 953 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/chrome/installer/linux/debi
an_wheezy_i386-sysroot', | |
| 954 }], | |
| 955 ], | |
| 956 }], # OS=="linux" and branding=="Chrome" and buildtype=="Official" and c
hromeos==0 | |
| 957 | |
| 958 ['OS=="linux" and target_arch=="mipsel"', { | |
| 959 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/sysroot', | |
| 960 'CXX%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/bin/mipsel-linux-gnu
-gcc', | |
| 961 }], | |
| 962 | |
| 963 # Whether tests targets should be run, archived or just have the | 967 # Whether tests targets should be run, archived or just have the |
| 964 # dependencies verified. All the tests targets have the '_run' suffix, | 968 # dependencies verified. All the tests targets have the '_run' suffix, |
| 965 # e.g. base_unittests_run runs the target base_unittests. The test | 969 # e.g. base_unittests_run runs the target base_unittests. The test |
| 966 # target always calls tools/swarming_client/isolate.py. See the script's | 970 # target always calls tools/swarming_client/isolate.py. See the script's |
| 967 # --help for more information. Meant to be overriden with GYP_DEFINES. | 971 # --help for more information. Meant to be overriden with GYP_DEFINES. |
| 968 # TODO(maruel): Remove the conditions as more configurations are | 972 # TODO(maruel): Remove the conditions as more configurations are |
| 969 # supported. | 973 # supported. |
| 970 ['OS!="ios" and OS!="android" and chromeos==0', { | 974 ['OS!="ios" and OS!="android" and chromeos==0', { |
| 971 'test_isolation_mode%': 'check', | 975 'test_isolation_mode%': 'check', |
| 972 }, { | 976 }, { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 'enable_wifi_bootstrapping%' : 1, | 1011 'enable_wifi_bootstrapping%' : 1, |
| 1008 }], | 1012 }], |
| 1009 | 1013 |
| 1010 # Path to sas.dll, which provides the SendSAS function. | 1014 # Path to sas.dll, which provides the SendSAS function. |
| 1011 # http://msdn.microsoft.com/en-us/library/windows/desktop/dd979761(v=vs.
85).aspx | 1015 # http://msdn.microsoft.com/en-us/library/windows/desktop/dd979761(v=vs.
85).aspx |
| 1012 ['target_arch=="x64"', { | 1016 ['target_arch=="x64"', { |
| 1013 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/a
md64', | 1017 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/a
md64', |
| 1014 }, { | 1018 }, { |
| 1015 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/x
86', | 1019 'sas_dll_path%': '<(DEPTH)/third_party/platformsdk_win7/files/redist/x
86', |
| 1016 }], | 1020 }], |
| 1021 |
| 1022 ['sysroot!=""', { |
| 1023 'pkg-config': '<(DEPTH)/build/linux/pkg-config-wrapper "<(sysroot)" "<
(target_arch)" "<(system_libdir)"', |
| 1024 }, { |
| 1025 'pkg-config': 'pkg-config' |
| 1026 }], |
| 1017 ], | 1027 ], |
| 1018 | 1028 |
| 1019 # Setting this to '0' will cause V8's startup snapshot to be | 1029 # Setting this to '0' will cause V8's startup snapshot to be |
| 1020 # embedded in the binary instead of being a external files. | 1030 # embedded in the binary instead of being a external files. |
| 1021 'v8_use_external_startup_data%': 1, | 1031 'v8_use_external_startup_data%': 1, |
| 1022 | 1032 |
| 1023 # Set this to 1 to enable use of concatenated impulse responses | 1033 # Set this to 1 to enable use of concatenated impulse responses |
| 1024 # for the HRTF panner in WebAudio. | 1034 # for the HRTF panner in WebAudio. |
| 1025 'use_concatenated_impulse_responses': 1, | 1035 'use_concatenated_impulse_responses': 1, |
| 1026 | 1036 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1107 'use_xkbcommon%': '<(use_xkbcommon)', | 1117 'use_xkbcommon%': '<(use_xkbcommon)', |
| 1108 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', | 1118 'use_clipboard_aurax11%': '<(use_clipboard_aurax11)', |
| 1109 'desktop_linux%': '<(desktop_linux)', | 1119 'desktop_linux%': '<(desktop_linux)', |
| 1110 'use_x11%': '<(use_x11)', | 1120 'use_x11%': '<(use_x11)', |
| 1111 'use_gnome_keyring%': '<(use_gnome_keyring)', | 1121 'use_gnome_keyring%': '<(use_gnome_keyring)', |
| 1112 'linux_fpic%': '<(linux_fpic)', | 1122 'linux_fpic%': '<(linux_fpic)', |
| 1113 'chromeos%': '<(chromeos)', | 1123 'chromeos%': '<(chromeos)', |
| 1114 'chromecast%': '<(chromecast)', | 1124 'chromecast%': '<(chromecast)', |
| 1115 'enable_viewport%': '<(enable_viewport)', | 1125 'enable_viewport%': '<(enable_viewport)', |
| 1116 'enable_hidpi%': '<(enable_hidpi)', | 1126 'enable_hidpi%': '<(enable_hidpi)', |
| 1117 » 'enable_topchrome_md%': '<(enable_topchrome_md)', | 1127 'enable_topchrome_md%': '<(enable_topchrome_md)', |
| 1118 'image_loader_extension%': '<(image_loader_extension)', | 1128 'image_loader_extension%': '<(image_loader_extension)', |
| 1119 'fastbuild%': '<(fastbuild)', | 1129 'fastbuild%': '<(fastbuild)', |
| 1120 'dont_embed_build_metadata%': '<(dont_embed_build_metadata)', | 1130 'dont_embed_build_metadata%': '<(dont_embed_build_metadata)', |
| 1121 'win_z7%': '<(win_z7)', | 1131 'win_z7%': '<(win_z7)', |
| 1122 'dcheck_always_on%': '<(dcheck_always_on)', | 1132 'dcheck_always_on%': '<(dcheck_always_on)', |
| 1123 'tracing_like_official_build%': '<(tracing_like_official_build)', | 1133 'tracing_like_official_build%': '<(tracing_like_official_build)', |
| 1124 'arm_version%': '<(arm_version)', | 1134 'arm_version%': '<(arm_version)', |
| 1125 'arm_neon%': '<(arm_neon)', | 1135 'arm_neon%': '<(arm_neon)', |
| 1126 'arm_neon_optional%': '<(arm_neon_optional)', | 1136 'arm_neon_optional%': '<(arm_neon_optional)', |
| 1127 'sysroot%': '<(sysroot)', | 1137 'sysroot%': '<(sysroot)', |
| 1138 'pkg-config%': '<(pkg-config)', |
| 1128 'chroot_cmd%': '<(chroot_cmd)', | 1139 'chroot_cmd%': '<(chroot_cmd)', |
| 1129 'system_libdir%': '<(system_libdir)', | 1140 'system_libdir%': '<(system_libdir)', |
| 1130 'component%': '<(component)', | 1141 'component%': '<(component)', |
| 1131 'win_analyze%': '<(win_analyze)', | 1142 'win_analyze%': '<(win_analyze)', |
| 1132 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera
tion)', | 1143 'enable_resource_whitelist_generation%': '<(enable_resource_whitelist_genera
tion)', |
| 1133 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)', | 1144 'use_titlecase_in_grd%': '<(use_titlecase_in_grd)', |
| 1134 'use_third_party_translations%': '<(use_third_party_translations)', | 1145 'use_third_party_translations%': '<(use_third_party_translations)', |
| 1135 'remoting%': '<(remoting)', | 1146 'remoting%': '<(remoting)', |
| 1136 'enable_one_click_signin%': '<(enable_one_click_signin)', | 1147 'enable_one_click_signin%': '<(enable_one_click_signin)', |
| 1137 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)', | 1148 'enable_pre_sync_backup%': '<(enable_pre_sync_backup)', |
| (...skipping 5066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6204 # settings in target dicts. SYMROOT is a special case, because many other | 6215 # settings in target dicts. SYMROOT is a special case, because many other |
| 6205 # Xcode variables depend on it, including variables such as | 6216 # Xcode variables depend on it, including variables such as |
| 6206 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6217 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 6207 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6218 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 6208 # files to appear (when present) in the UI as actual files and not red | 6219 # files to appear (when present) in the UI as actual files and not red |
| 6209 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6220 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 6210 # and therefore SYMROOT, needs to be set at the project level. | 6221 # and therefore SYMROOT, needs to be set at the project level. |
| 6211 'SYMROOT': '<(DEPTH)/xcodebuild', | 6222 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 6212 }, | 6223 }, |
| 6213 } | 6224 } |
| OLD | NEW |