| 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 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2136 'grit_defines': ['-D', 'enable_service_discovery'], | 2136 'grit_defines': ['-D', 'enable_service_discovery'], |
| 2137 'enable_service_discovery%': 1 | 2137 'enable_service_discovery%': 1 |
| 2138 }], | 2138 }], |
| 2139 ['clang_use_chrome_plugins==1 and OS!="win"', { | 2139 ['clang_use_chrome_plugins==1 and OS!="win"', { |
| 2140 'clang_chrome_plugins_flags': [ | 2140 'clang_chrome_plugins_flags': [ |
| 2141 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' | 2141 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' |
| 2142 ], | 2142 ], |
| 2143 'conditions': [ | 2143 'conditions': [ |
| 2144 # TODO(dcheng): https://crbug.com/417463 -- work to enable this flag | 2144 # TODO(dcheng): https://crbug.com/417463 -- work to enable this flag |
| 2145 # on all platforms is currently underway. | 2145 # on all platforms is currently underway. |
| 2146 ['(OS=="linux" and (chromeos==0 or use_ozone==0)) or OS=="mac" or OS==
"ios"', { | 2146 ['OS=="linux" or OS=="mac" or OS=="ios"', { |
| 2147 'clang_chrome_plugins_flags': [ | 2147 'clang_chrome_plugins_flags': [ |
| 2148 '-Xclang', | 2148 '-Xclang', |
| 2149 '-plugin-arg-find-bad-constructs', | 2149 '-plugin-arg-find-bad-constructs', |
| 2150 '-Xclang', | 2150 '-Xclang', |
| 2151 'strict-virtual-specifiers', | 2151 'strict-virtual-specifiers', |
| 2152 ], | 2152 ], |
| 2153 }], | 2153 }], |
| 2154 ], | 2154 ], |
| 2155 }], | 2155 }], |
| 2156 ['asan==1 or msan==1 or lsan==1 or tsan==1', { | 2156 ['asan==1 or msan==1 or lsan==1 or tsan==1', { |
| (...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2976 }], | 2976 }], |
| 2977 ['enable_ipc_fuzzer==1', { | 2977 ['enable_ipc_fuzzer==1', { |
| 2978 'defines': ['ENABLE_IPC_FUZZER=1'], | 2978 'defines': ['ENABLE_IPC_FUZZER=1'], |
| 2979 }], | 2979 }], |
| 2980 ['video_hole==1', { | 2980 ['video_hole==1', { |
| 2981 'defines': ['VIDEO_HOLE=1'], | 2981 'defines': ['VIDEO_HOLE=1'], |
| 2982 }], | 2982 }], |
| 2983 ['v8_use_external_startup_data==1', { | 2983 ['v8_use_external_startup_data==1', { |
| 2984 'defines': ['V8_USE_EXTERNAL_STARTUP_DATA'], | 2984 'defines': ['V8_USE_EXTERNAL_STARTUP_DATA'], |
| 2985 }], | 2985 }], |
| 2986 ['use_lto==1 and (target_arch=="ia32" or target_arch=="x64")', { |
| 2987 # Required for third_party/zlib/crc_folding.c and various other code |
| 2988 # that uses SSE. TODO(pcc): Remove this once we properly support |
| 2989 # subtarget specific code generation in LLVM. |
| 2990 'ldflags': ['-Wl,-plugin-opt,mcpu=corei7-avx'], |
| 2991 }], |
| 2986 ], # conditions for 'target_defaults' | 2992 ], # conditions for 'target_defaults' |
| 2987 'target_conditions': [ | 2993 'target_conditions': [ |
| 2988 ['<(use_libpci)==1', { | 2994 ['<(use_libpci)==1', { |
| 2989 'defines': ['USE_LIBPCI=1'], | 2995 'defines': ['USE_LIBPCI=1'], |
| 2990 }], | 2996 }], |
| 2991 ['<(use_openssl)==1', { | 2997 ['<(use_openssl)==1', { |
| 2992 'defines': ['USE_OPENSSL=1'], | 2998 'defines': ['USE_OPENSSL=1'], |
| 2993 }], | 2999 }], |
| 2994 ['<(use_openssl_certs)==1', { | 3000 ['<(use_openssl_certs)==1', { |
| 2995 'defines': ['USE_OPENSSL_CERTS=1'], | 3001 'defines': ['USE_OPENSSL_CERTS=1'], |
| (...skipping 2588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5584 'AdditionalOptions': ['/largeaddressaware'], | 5590 'AdditionalOptions': ['/largeaddressaware'], |
| 5585 }, | 5591 }, |
| 5586 }], | 5592 }], |
| 5587 ['asan==1', { | 5593 ['asan==1', { |
| 5588 # TODO(asan/win): Move this down into the general | 5594 # TODO(asan/win): Move this down into the general |
| 5589 # win-target_defaults section once the 64-bit asan runtime | 5595 # win-target_defaults section once the 64-bit asan runtime |
| 5590 # exists. See crbug.com/345874. | 5596 # exists. See crbug.com/345874. |
| 5591 'VCCLCompilerTool': { | 5597 'VCCLCompilerTool': { |
| 5592 'AdditionalOptions': [ | 5598 'AdditionalOptions': [ |
| 5593 '-fsanitize=address', | 5599 '-fsanitize=address', |
| 5600 '-fsanitize-blacklist=<(PRODUCT_DIR)/../../tools/memory/as
an/blacklist_win.txt', |
| 5594 ], | 5601 ], |
| 5595 'AdditionalIncludeDirectories': [ | 5602 'AdditionalIncludeDirectories': [ |
| 5596 # MSVC needs to be able to find the sanitizer headers when | 5603 # MSVC needs to be able to find the sanitizer headers when |
| 5597 # invoked via /fallback. This is critical for using macros | 5604 # invoked via /fallback. This is critical for using macros |
| 5598 # like ASAN_UNPOISON_MEMORY_REGION in files where we fall | 5605 # like ASAN_UNPOISON_MEMORY_REGION in files where we fall |
| 5599 # back. | 5606 # back. |
| 5600 '<(DEPTH)/<(make_clang_dir)/lib/clang/3.7.0/include_saniti
zer', | 5607 '<(DEPTH)/<(make_clang_dir)/lib/clang/3.7.0/include_saniti
zer', |
| 5601 ], | 5608 ], |
| 5602 }, | 5609 }, |
| 5603 'VCLinkerTool': { | 5610 'VCLinkerTool': { |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5774 ['CC.host_wrapper', '<(gomadir)/gomacc'], | 5781 ['CC.host_wrapper', '<(gomadir)/gomacc'], |
| 5775 ['CXX.host_wrapper', '<(gomadir)/gomacc'], | 5782 ['CXX.host_wrapper', '<(gomadir)/gomacc'], |
| 5776 ], | 5783 ], |
| 5777 }], | 5784 }], |
| 5778 ['use_lto==1', { | 5785 ['use_lto==1', { |
| 5779 'target_defaults': { | 5786 'target_defaults': { |
| 5780 'target_conditions': [ | 5787 'target_conditions': [ |
| 5781 ['_toolset=="target"', { | 5788 ['_toolset=="target"', { |
| 5782 'cflags': [ | 5789 'cflags': [ |
| 5783 '-flto', | 5790 '-flto', |
| 5791 ], |
| 5792 }], |
| 5793 ], |
| 5794 }, |
| 5795 }], |
| 5796 ['use_lto==1 and clang==0', { |
| 5797 'target_defaults': { |
| 5798 'target_conditions': [ |
| 5799 ['_toolset=="target"', { |
| 5800 'cflags': [ |
| 5784 '-ffat-lto-objects', | 5801 '-ffat-lto-objects', |
| 5785 ], | 5802 ], |
| 5786 }], | 5803 }], |
| 5787 ], | 5804 ], |
| 5788 }, | 5805 }, |
| 5789 }], | 5806 }], |
| 5790 ['use_lto==1 or use_lto_o2==1', { | 5807 ['(use_lto==1 or use_lto_o2==1) and clang==0', { |
| 5791 'target_defaults': { | 5808 'target_defaults': { |
| 5792 'target_conditions': [ | 5809 'target_conditions': [ |
| 5793 ['_toolset=="target"', { | 5810 ['_toolset=="target"', { |
| 5794 'ldflags': [ | 5811 'ldflags': [ |
| 5795 '-flto=32', | 5812 '-flto=32', |
| 5796 ], | 5813 ], |
| 5797 }], | 5814 }], |
| 5798 ], | 5815 ], |
| 5799 }, | 5816 }, |
| 5800 }], | 5817 }], |
| 5818 ['(use_lto==1 or use_lto_o2==1) and clang==1', { |
| 5819 'target_defaults': { |
| 5820 'target_conditions': [ |
| 5821 ['_toolset=="target"', { |
| 5822 'ldflags': [ |
| 5823 '-flto', |
| 5824 ], |
| 5825 }], |
| 5826 ], |
| 5827 }, |
| 5828 }], |
| 5801 ], | 5829 ], |
| 5802 'xcode_settings': { | 5830 'xcode_settings': { |
| 5803 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! | 5831 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! |
| 5804 # This block adds *project-wide* configuration settings to each project | 5832 # This block adds *project-wide* configuration settings to each project |
| 5805 # file. It's almost always wrong to put things here. Specify your | 5833 # file. It's almost always wrong to put things here. Specify your |
| 5806 # custom xcode_settings in target_defaults to add them to targets instead. | 5834 # custom xcode_settings in target_defaults to add them to targets instead. |
| 5807 | 5835 |
| 5808 'conditions': [ | 5836 'conditions': [ |
| 5809 # In an Xcode Project Info window, the "Base SDK for All Configurations" | 5837 # In an Xcode Project Info window, the "Base SDK for All Configurations" |
| 5810 # setting sets the SDK on a project-wide basis. In order to get the | 5838 # setting sets the SDK on a project-wide basis. In order to get the |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5861 # settings in target dicts. SYMROOT is a special case, because many other | 5889 # settings in target dicts. SYMROOT is a special case, because many other |
| 5862 # Xcode variables depend on it, including variables such as | 5890 # Xcode variables depend on it, including variables such as |
| 5863 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5891 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 5864 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5892 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 5865 # files to appear (when present) in the UI as actual files and not red | 5893 # files to appear (when present) in the UI as actual files and not red |
| 5866 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5894 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 5867 # and therefore SYMROOT, needs to be set at the project level. | 5895 # and therefore SYMROOT, needs to be set at the project level. |
| 5868 'SYMROOT': '<(DEPTH)/xcodebuild', | 5896 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 5869 }, | 5897 }, |
| 5870 } | 5898 } |
| OLD | NEW |