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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 'gtest_target_type%': 'executable', | 606 'gtest_target_type%': 'executable', |
607 | 607 |
608 # Enable sampling based profiler. | 608 # Enable sampling based profiler. |
609 # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html | 609 # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html |
610 'profiling%': '0', | 610 'profiling%': '0', |
611 | 611 |
612 # Enable strict glibc debug mode. | 612 # Enable strict glibc debug mode. |
613 'glibcxx_debug%': 0, | 613 'glibcxx_debug%': 0, |
614 | 614 |
615 # Override whether we should use Breakpad on Linux. I.e. for Chrome bot. | 615 # Override whether we should use Breakpad on Linux. I.e. for Chrome bot. |
616 'linux_breakpad%': 0, | 616 'posix_breakpad%': 0, |
617 # And if we want to dump symbols for Breakpad-enabled builds. | 617 # And if we want to dump symbols for Breakpad-enabled builds. |
618 'linux_dump_symbols%': 0, | 618 'linux_dump_symbols%': 0, |
619 # And if we want to strip the binary after dumping symbols. | 619 # And if we want to strip the binary after dumping symbols. |
620 'linux_strip_binary%': 0, | 620 'linux_strip_binary%': 0, |
621 # Strip the test binaries needed for Linux reliability tests. | 621 # Strip the test binaries needed for Linux reliability tests. |
622 'linux_strip_reliability_tests%': 0, | 622 'linux_strip_reliability_tests%': 0, |
623 | 623 |
624 # Enable TCMalloc. | 624 # Enable TCMalloc. |
625 'linux_use_tcmalloc%': 1, | 625 'linux_use_tcmalloc%': 1, |
626 | 626 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 'disable_nacl%': 0, | 724 'disable_nacl%': 0, |
725 }], | 725 }], |
726 ['os_posix==1 and OS!="mac" and OS!="android"', { | 726 ['os_posix==1 and OS!="mac" and OS!="android"', { |
727 # This will set gcc_version to XY if you are running gcc X.Y.*. | 727 # This will set gcc_version to XY if you are running gcc X.Y.*. |
728 # This is used to tweak build flags for gcc 4.4. | 728 # This is used to tweak build flags for gcc 4.4. |
729 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', | 729 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', |
730 # Figure out the python architecture to decide if we build pyauto. | 730 # Figure out the python architecture to decide if we build pyauto. |
731 'python_arch%': '<!(<(DEPTH)/build/linux/python_arch.sh <(sysroot)/usr/<
(system_libdir)/libpython<(python_ver).so.1.0)', | 731 'python_arch%': '<!(<(DEPTH)/build/linux/python_arch.sh <(sysroot)/usr/<
(system_libdir)/libpython<(python_ver).so.1.0)', |
732 'conditions': [ | 732 'conditions': [ |
733 ['branding=="Chrome"', { | 733 ['branding=="Chrome"', { |
734 'linux_breakpad%': 1, | 734 'posix_breakpad%': 1, |
735 }], | 735 }], |
736 # All Chrome builds have breakpad symbols, but only process the | 736 # All Chrome builds have breakpad symbols, but only process the |
737 # symbols from official builds. | 737 # symbols from official builds. |
738 ['(branding=="Chrome" and buildtype=="Official")', { | 738 ['(branding=="Chrome" and buildtype=="Official")', { |
739 'linux_dump_symbols%': 1, | 739 'linux_dump_symbols%': 1, |
740 }], | 740 }], |
741 ], | 741 ], |
742 }], # os_posix==1 and OS!="mac" and OS!="android" | 742 }], # os_posix==1 and OS!="mac" and OS!="android" |
743 ['OS=="android"', { | 743 ['OS=="android"', { |
744 # Location of Android NDK. | 744 # Location of Android NDK. |
745 'variables': { | 745 'variables': { |
746 'variables': { | 746 'variables': { |
747 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)', | 747 'android_ndk_root%': '<!(/bin/echo -n $ANDROID_NDK_ROOT)', |
748 'android_target_arch%': 'arm', # target_arch in android terms. | 748 'android_target_arch%': 'arm', # target_arch in android terms. |
749 | 749 |
750 # Switch between different build types, currently only '0' is | 750 # Switch between different build types, currently only '0' is |
751 # supported. | 751 # supported. |
752 'android_build_type%': 0, | 752 'android_build_type%': 0, |
753 }, | 753 }, |
754 'android_ndk_root%': '<(android_ndk_root)', | 754 'android_ndk_root%': '<(android_ndk_root)', |
755 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-<
(android_target_arch)', | 755 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-<
(android_target_arch)', |
756 'android_build_type%': '<(android_build_type)', | 756 'android_build_type%': '<(android_build_type)', |
757 }, | 757 }, |
758 'android_ndk_root%': '<(android_ndk_root)', | 758 'android_ndk_root%': '<(android_ndk_root)', |
759 'android_ndk_sysroot': '<(android_ndk_sysroot)', | 759 'android_ndk_sysroot': '<(android_ndk_sysroot)', |
760 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', | 760 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', |
761 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', | 761 'android_ndk_lib': '<(android_ndk_sysroot)/usr/lib', |
762 | 762 |
763 # Uses Android's crash report system | 763 # Uses Android's crash report system |
764 'linux_breakpad%': 0, | 764 'posix_breakpad%': 0, |
765 | 765 |
766 # Always uses openssl. | 766 # Always uses openssl. |
767 'use_openssl%': 1, | 767 'use_openssl%': 1, |
768 | 768 |
769 'proprietary_codecs%': '<(proprietary_codecs)', | 769 'proprietary_codecs%': '<(proprietary_codecs)', |
770 'safe_browsing%': 0, | 770 'safe_browsing%': 0, |
771 'configuration_policy%': 0, | 771 'configuration_policy%': 0, |
772 'input_speech%': 0, | 772 'input_speech%': 0, |
773 'enable_web_intents%': 0, | 773 'enable_web_intents%': 0, |
774 'java_bridge%': 1, | 774 'java_bridge%': 1, |
(...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2077 '-w', | 2077 '-w', |
2078 '-mllvm', '-asan-blacklist=<(asan_blacklist)', | 2078 '-mllvm', '-asan-blacklist=<(asan_blacklist)', |
2079 ], | 2079 ], |
2080 'ldflags': [ | 2080 'ldflags': [ |
2081 '-faddress-sanitizer', | 2081 '-faddress-sanitizer', |
2082 ], | 2082 ], |
2083 'defines': [ | 2083 'defines': [ |
2084 'ADDRESS_SANITIZER', | 2084 'ADDRESS_SANITIZER', |
2085 ], | 2085 ], |
2086 }], | 2086 }], |
2087 ['linux_breakpad==1', { | 2087 ['posix_breakpad==1', { |
2088 'cflags': [ '-g' ], | 2088 'cflags': [ '-g' ], |
2089 'defines': ['USE_LINUX_BREAKPAD'], | 2089 'defines': ['USE_POSIX_BREAKPAD'], |
2090 }], | 2090 }], |
2091 ['linux_use_heapchecker==1', { | 2091 ['linux_use_heapchecker==1', { |
2092 'variables': {'linux_use_tcmalloc%': 1}, | 2092 'variables': {'linux_use_tcmalloc%': 1}, |
2093 'defines': ['USE_HEAPCHECKER'], | 2093 'defines': ['USE_HEAPCHECKER'], |
2094 }], | 2094 }], |
2095 ['linux_use_tcmalloc==0', { | 2095 ['linux_use_tcmalloc==0', { |
2096 'defines': ['NO_TCMALLOC'], | 2096 'defines': ['NO_TCMALLOC'], |
2097 }], | 2097 }], |
2098 ['linux_keep_shadow_stacks==1', { | 2098 ['linux_keep_shadow_stacks==1', { |
2099 'defines': ['KEEP_SHADOW_STACKS'], | 2099 'defines': ['KEEP_SHADOW_STACKS'], |
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2925 # settings in target dicts. SYMROOT is a special case, because many other | 2925 # settings in target dicts. SYMROOT is a special case, because many other |
2926 # Xcode variables depend on it, including variables such as | 2926 # Xcode variables depend on it, including variables such as |
2927 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 2927 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
2928 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 2928 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
2929 # files to appear (when present) in the UI as actual files and not red | 2929 # files to appear (when present) in the UI as actual files and not red |
2930 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 2930 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
2931 # and therefore SYMROOT, needs to be set at the project level. | 2931 # and therefore SYMROOT, needs to be set at the project level. |
2932 'SYMROOT': '<(DEPTH)/xcodebuild', | 2932 'SYMROOT': '<(DEPTH)/xcodebuild', |
2933 }, | 2933 }, |
2934 } | 2934 } |
OLD | NEW |