Chromium Code Reviews| 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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 785 # supported. | 785 # supported. |
| 786 # NOTE: The check for disable_nacl==0 and component=="static_library" | 786 # NOTE: The check for disable_nacl==0 and component=="static_library" |
| 787 # can't be used here because these variables are not defined yet, but it | 787 # can't be used here because these variables are not defined yet, but it |
| 788 # is still not supported. | 788 # is still not supported. |
| 789 ['OS!="ios" and OS!="android" and chromeos==0', { | 789 ['OS!="ios" and OS!="android" and chromeos==0', { |
| 790 'test_isolation_mode%': 'check', | 790 'test_isolation_mode%': 'check', |
| 791 }, { | 791 }, { |
| 792 'test_isolation_mode%': 'noop', | 792 'test_isolation_mode%': 'noop', |
| 793 }], | 793 }], |
| 794 # Whether Android ARM or x86 build uses OpenMAX DL FFT. | 794 # Whether Android ARM or x86 build uses OpenMAX DL FFT. |
| 795 ['OS=="android" and ((target_arch=="arm" and arm_version >= 7) or target _arch=="ia32") and android_webview_build==0', { | 795 ['OS=="android" and ((target_arch=="arm" and arm_version >= 7) or target _arch=="ia32" or target_arch=="x64") and android_webview_build==0', { |
| 796 # Currently only supported on Android ARMv7+, or ia32 | 796 # Currently only supported on Android ARMv7+, ia32 or x64 |
| 797 # without webview. When enabled, this will also enable | 797 # without webview. When enabled, this will also enable |
| 798 # WebAudio support on Android ARM and ia32. Default is | 798 # WebAudio support on Android ARM, ia32 and x64. Default is |
| 799 # enabled. Whether WebAudio is actually available depends | 799 # enabled. Whether WebAudio is actually available depends |
| 800 # on runtime settings and flags. | 800 # on runtime settings and flags. |
| 801 'use_openmax_dl_fft%': 1, | 801 'use_openmax_dl_fft%': 1, |
| 802 }, { | 802 }, { |
| 803 'use_openmax_dl_fft%': 0, | 803 'use_openmax_dl_fft%': 0, |
| 804 }], | 804 }], |
| 805 ['OS=="win" or OS=="linux"', { | 805 ['OS=="win" or OS=="linux"', { |
| 806 'enable_mdns%' : 1, | 806 'enable_mdns%' : 1, |
| 807 }], | 807 }], |
| 808 | 808 |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1294 'conditions': [ | 1294 'conditions': [ |
| 1295 # The version of GCC in use, set later in platforms that use GCC and have | 1295 # The version of GCC in use, set later in platforms that use GCC and have |
| 1296 # not explicitly chosen to build with clang. Currently, this means all | 1296 # not explicitly chosen to build with clang. Currently, this means all |
| 1297 # platforms except Windows, Mac and iOS. | 1297 # platforms except Windows, Mac and iOS. |
| 1298 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that | 1298 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so that |
| 1299 # it takes effect here. | 1299 # it takes effect here. |
| 1300 ['os_posix==1 and OS!="mac" and OS!="ios" and clang==0 and asan==0 and lsa n==0 and tsan==0 and msan==0', { | 1300 ['os_posix==1 and OS!="mac" and OS!="ios" and clang==0 and asan==0 and lsa n==0 and tsan==0 and msan==0', { |
| 1301 'conditions': [ | 1301 'conditions': [ |
| 1302 ['OS=="android"', { | 1302 ['OS=="android"', { |
| 1303 # We directly set the gcc_version since we know what we use. | 1303 # We directly set the gcc_version since we know what we use. |
| 1304 'gcc_version%': 46, | 1304 'conditions': [ |
| 1305 ['target_arch=="x64"', { | |
| 1306 'gcc_version%': 48, | |
| 1307 » }, { | |
| 1308 'gcc_version%': 46, | |
| 1309 » }], | |
| 1310 » ], | |
|
rmcilroy
2014/03/12 19:27:30
replace tabs with spaces
| |
| 1305 }, { | 1311 }, { |
| 1306 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', | 1312 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', |
| 1307 }], | 1313 }], |
| 1308 ], | 1314 ], |
| 1309 }, { | 1315 }, { |
| 1310 'gcc_version%': 0, | 1316 'gcc_version%': 0, |
| 1311 }], | 1317 }], |
| 1312 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', { | 1318 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', { |
| 1313 'windows_sdk_path%': '<(windows_sdk_default_path)', | 1319 'windows_sdk_path%': '<(windows_sdk_default_path)', |
| 1314 }, { | 1320 }, { |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1420 # Android API level 14 is ICS (Android 4.0) which is the minimum | 1426 # Android API level 14 is ICS (Android 4.0) which is the minimum |
| 1421 # platform requirement for Chrome on Android, we use it for native | 1427 # platform requirement for Chrome on Android, we use it for native |
| 1422 # code compilation. | 1428 # code compilation. |
| 1423 'conditions': [ | 1429 'conditions': [ |
| 1424 ['target_arch == "ia32"', { | 1430 ['target_arch == "ia32"', { |
| 1425 'android_app_abi%': 'x86', | 1431 'android_app_abi%': 'x86', |
| 1426 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd bserver/gdbserver', | 1432 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86/gd bserver/gdbserver', |
| 1427 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-x86', | 1433 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-x86', |
| 1428 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.6/preb uilt/<(host_os)-<(android_host_arch)/bin', | 1434 'android_toolchain%': '<(android_ndk_root)/toolchains/x86-4.6/preb uilt/<(host_os)-<(android_host_arch)/bin', |
| 1429 }], | 1435 }], |
| 1436 ['target_arch == "x64"', { | |
| 1437 'android_app_abi%': 'x86_64', | |
| 1438 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-x86_64 /gdbserver/gdbserver', | |
| 1439 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-19/ arch-x86_64', | |
| 1440 'android_toolchain%': '<(android_ndk_root)/toolchains/x86_64-4.8/p rebuilt/<(host_os)-<(android_host_arch)/bin', | |
| 1441 }], | |
| 1430 ['target_arch=="arm"', { | 1442 ['target_arch=="arm"', { |
| 1431 'conditions': [ | 1443 'conditions': [ |
| 1432 ['arm_version<7', { | 1444 ['arm_version<7', { |
| 1433 'android_app_abi%': 'armeabi', | 1445 'android_app_abi%': 'armeabi', |
| 1434 }, { | 1446 }, { |
| 1435 'android_app_abi%': 'armeabi-v7a', | 1447 'android_app_abi%': 'armeabi-v7a', |
| 1436 }], | 1448 }], |
| 1437 ], | 1449 ], |
| 1438 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd bserver/gdbserver', | 1450 'android_gdbserver%': '<(android_ndk_root)/prebuilt/android-arm/gd bserver/gdbserver', |
| 1439 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-arm', | 1451 'android_ndk_sysroot%': '<(android_ndk_root)/platforms/android-14/ arch-arm', |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1729 }], | 1741 }], |
| 1730 ['image_loader_extension==1', { | 1742 ['image_loader_extension==1', { |
| 1731 'grit_defines': ['-D', 'image_loader_extension'], | 1743 'grit_defines': ['-D', 'image_loader_extension'], |
| 1732 }], | 1744 }], |
| 1733 ['remoting==1', { | 1745 ['remoting==1', { |
| 1734 'grit_defines': ['-D', 'remoting'], | 1746 'grit_defines': ['-D', 'remoting'], |
| 1735 }], | 1747 }], |
| 1736 ['use_titlecase_in_grd_files==1', { | 1748 ['use_titlecase_in_grd_files==1', { |
| 1737 'grit_defines': ['-D', 'use_titlecase'], | 1749 'grit_defines': ['-D', 'use_titlecase'], |
| 1738 }], | 1750 }], |
| 1739 ['OS=="android" and target_arch=="ia32"', { | 1751 ['OS=="android" and (target_arch=="ia32" or target_arch=="x64")', { |
| 1740 # WebAudio on Android/x86 is disabled by default, unlike | 1752 # WebAudio on Android/x86 is disabled by default, unlike |
| 1741 # everywhere else, so use appropriate message. | 1753 # everywhere else, so use appropriate message. |
| 1742 'grit_defines': ['-D', 'use_webaudio_enable_message'], | 1754 'grit_defines': ['-D', 'use_webaudio_enable_message'], |
| 1743 }], | 1755 }], |
| 1744 ['use_third_party_translations==1', { | 1756 ['use_third_party_translations==1', { |
| 1745 'grit_defines': ['-D', 'use_third_party_translations'], | 1757 'grit_defines': ['-D', 'use_third_party_translations'], |
| 1746 'locales': [ | 1758 'locales': [ |
| 1747 'ast', 'bs', 'ca@valencia', 'en-AU', 'eo', 'eu', 'gl', 'hy', 'ia', | 1759 'ast', 'bs', 'ca@valencia', 'en-AU', 'eo', 'eu', 'gl', 'hy', 'ia', |
| 1748 'ka', 'ku', 'kw', 'ms', 'ug' | 1760 'ka', 'ku', 'kw', 'ms', 'ug' |
| 1749 ], | 1761 ], |
| (...skipping 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3252 'cflags': [ | 3264 'cflags': [ |
| 3253 '-m32', | 3265 '-m32', |
| 3254 '-mmmx', | 3266 '-mmmx', |
| 3255 ], | 3267 ], |
| 3256 'ldflags': [ | 3268 'ldflags': [ |
| 3257 '-m32', | 3269 '-m32', |
| 3258 ], | 3270 ], |
| 3259 }], | 3271 }], |
| 3260 ], | 3272 ], |
| 3261 }], | 3273 }], |
| 3274 ['target_arch=="x64"', { | |
| 3275 'target_conditions': [ | |
| 3276 ['_toolset=="target"', { | |
| 3277 'conditions': [ | |
| 3278 # Use gold linker for Android x64 target. | |
| 3279 ['OS=="android"', { | |
| 3280 'cflags': [ | |
| 3281 '-fuse-ld=gold', | |
| 3282 ], | |
| 3283 'ldflags': [ | |
| 3284 '-fuse-ld=gold', | |
| 3285 ], | |
| 3286 }], | |
| 3287 ], | |
| 3288 'cflags': [ | |
| 3289 '-m64', | |
| 3290 '-march=x86-64', | |
| 3291 ], | |
| 3292 'ldflags': [ | |
| 3293 '-m64', | |
| 3294 ], | |
| 3295 }], | |
| 3296 ], | |
| 3297 }], | |
| 3262 ['target_arch=="arm"', { | 3298 ['target_arch=="arm"', { |
| 3263 'target_conditions': [ | 3299 'target_conditions': [ |
| 3264 ['_toolset=="target"', { | 3300 ['_toolset=="target"', { |
| 3265 'cflags_cc': [ | 3301 'cflags_cc': [ |
| 3266 # The codesourcery arm-2009q3 toolchain warns at that the ABI | 3302 # The codesourcery arm-2009q3 toolchain warns at that the ABI |
| 3267 # has changed whenever it encounters a varargs function. This | 3303 # has changed whenever it encounters a varargs function. This |
| 3268 # silences those warnings, as they are not helpful and | 3304 # silences those warnings, as they are not helpful and |
| 3269 # clutter legitimate warnings. | 3305 # clutter legitimate warnings. |
| 3270 '-Wno-abi', | 3306 '-Wno-abi', |
| 3271 ], | 3307 ], |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3885 ], | 3921 ], |
| 3886 }], | 3922 }], |
| 3887 ['target_arch=="ia32"', { | 3923 ['target_arch=="ia32"', { |
| 3888 'cflags': [ | 3924 'cflags': [ |
| 3889 '-target x86-linux-androideabi', | 3925 '-target x86-linux-androideabi', |
| 3890 ], | 3926 ], |
| 3891 'ldflags': [ | 3927 'ldflags': [ |
| 3892 '-target x86-linux-androideabi', | 3928 '-target x86-linux-androideabi', |
| 3893 ], | 3929 ], |
| 3894 }], | 3930 }], |
| 3931 # Place holder for x64 support, not tested. | |
| 3932 # TODO: Enable clang support for Android x64. http://crbug.com /346626 | |
| 3933 ['target_arch=="x64"', { | |
| 3934 'cflags': [ | |
| 3935 '-target x86_64-linux-androideabi', | |
| 3936 ], | |
| 3937 'ldflags': [ | |
| 3938 '-target x86_64-linux-androideabi', | |
| 3939 ], | |
| 3940 }], | |
| 3895 ], | 3941 ], |
| 3896 }], | 3942 }], |
| 3897 ['asan==1', { | 3943 ['asan==1', { |
| 3898 'cflags': [ | 3944 'cflags': [ |
| 3899 # Android build relies on -Wl,--gc-sections removing | 3945 # Android build relies on -Wl,--gc-sections removing |
| 3900 # unreachable code. ASan instrumentation for globals inhibits | 3946 # unreachable code. ASan instrumentation for globals inhibits |
| 3901 # this and results in a library with unresolvable relocations. | 3947 # this and results in a library with unresolvable relocations. |
| 3902 # TODO(eugenis): find a way to reenable this. | 3948 # TODO(eugenis): find a way to reenable this. |
| 3903 '-mllvm -asan-globals=0', | 3949 '-mllvm -asan-globals=0', |
| 3904 ], | 3950 ], |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3998 ], | 4044 ], |
| 3999 'cflags': [ | 4045 'cflags': [ |
| 4000 '-fno-stack-protector', | 4046 '-fno-stack-protector', |
| 4001 ], | 4047 ], |
| 4002 }], | 4048 }], |
| 4003 ], | 4049 ], |
| 4004 'target_conditions': [ | 4050 'target_conditions': [ |
| 4005 ['_type=="executable"', { | 4051 ['_type=="executable"', { |
| 4006 'ldflags': [ | 4052 'ldflags': [ |
| 4007 '-Bdynamic', | 4053 '-Bdynamic', |
| 4008 '-Wl,-dynamic-linker,/system/bin/linker', | |
| 4009 '-Wl,--gc-sections', | 4054 '-Wl,--gc-sections', |
| 4010 '-Wl,-z,nocopyreloc', | 4055 '-Wl,-z,nocopyreloc', |
| 4011 # crtbegin_dynamic.o should be the last item in ldflags. | 4056 # crtbegin_dynamic.o should be the last item in ldflags. |
| 4012 '<(android_ndk_lib)/crtbegin_dynamic.o', | 4057 '<(android_ndk_lib)/crtbegin_dynamic.o', |
| 4013 ], | 4058 ], |
| 4014 'libraries': [ | 4059 'libraries': [ |
| 4015 # crtend_android.o needs to be the last item in libraries. | 4060 # crtend_android.o needs to be the last item in libraries. |
| 4016 # Do not add any libraries after this! | 4061 # Do not add any libraries after this! |
| 4017 '<(android_ndk_lib)/crtend_android.o', | 4062 '<(android_ndk_lib)/crtend_android.o', |
| 4018 ], | 4063 ], |
| (...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5052 # settings in target dicts. SYMROOT is a special case, because many other | 5097 # settings in target dicts. SYMROOT is a special case, because many other |
| 5053 # Xcode variables depend on it, including variables such as | 5098 # Xcode variables depend on it, including variables such as |
| 5054 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5099 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 5055 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5100 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 5056 # files to appear (when present) in the UI as actual files and not red | 5101 # files to appear (when present) in the UI as actual files and not red |
| 5057 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5102 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 5058 # and therefore SYMROOT, needs to be set at the project level. | 5103 # and therefore SYMROOT, needs to be set at the project level. |
| 5059 'SYMROOT': '<(DEPTH)/xcodebuild', | 5104 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 5060 }, | 5105 }, |
| 5061 } | 5106 } |
| OLD | NEW |