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 2987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2998 }], | 2998 }], |
2999 ['enable_ipc_fuzzer==1', { | 2999 ['enable_ipc_fuzzer==1', { |
3000 'defines': ['ENABLE_IPC_FUZZER=1'], | 3000 'defines': ['ENABLE_IPC_FUZZER=1'], |
3001 }], | 3001 }], |
3002 ['video_hole==1', { | 3002 ['video_hole==1', { |
3003 'defines': ['VIDEO_HOLE=1'], | 3003 'defines': ['VIDEO_HOLE=1'], |
3004 }], | 3004 }], |
3005 ['v8_use_external_startup_data==1', { | 3005 ['v8_use_external_startup_data==1', { |
3006 'defines': ['V8_USE_EXTERNAL_STARTUP_DATA'], | 3006 'defines': ['V8_USE_EXTERNAL_STARTUP_DATA'], |
3007 }], | 3007 }], |
3008 ['use_lto==1 and (target_arch=="ia32" or target_arch=="x64")', { | |
3009 # Required for third_party/zlib/crc_folding.c and various other code | |
3010 # that uses SSE. TODO(pcc): Remove this once we properly support | |
3011 # subtarget specific code generation in LLVM. | |
3012 'ldflags': ['-Wl,-plugin-opt,mcpu=corei7-avx'], | |
3013 }], | |
3014 ], # conditions for 'target_defaults' | 3008 ], # conditions for 'target_defaults' |
3015 'target_conditions': [ | 3009 'target_conditions': [ |
3016 ['<(use_libpci)==1', { | 3010 ['<(use_libpci)==1', { |
3017 'defines': ['USE_LIBPCI=1'], | 3011 'defines': ['USE_LIBPCI=1'], |
3018 }], | 3012 }], |
3019 ['<(use_openssl)==1', { | 3013 ['<(use_openssl)==1', { |
3020 'defines': ['USE_OPENSSL=1'], | 3014 'defines': ['USE_OPENSSL=1'], |
3021 }], | 3015 }], |
3022 ['<(use_openssl_certs)==1', { | 3016 ['<(use_openssl_certs)==1', { |
3023 'defines': ['USE_OPENSSL_CERTS=1'], | 3017 'defines': ['USE_OPENSSL_CERTS=1'], |
(...skipping 2910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5934 'target_defaults': { | 5928 'target_defaults': { |
5935 'target_conditions': [ | 5929 'target_conditions': [ |
5936 ['_toolset=="target"', { | 5930 ['_toolset=="target"', { |
5937 'arflags': [ | 5931 'arflags': [ |
5938 '--plugin', '../../<(make_clang_dir)/lib/LLVMgold.so', | 5932 '--plugin', '../../<(make_clang_dir)/lib/LLVMgold.so', |
5939 ], | 5933 ], |
5940 }], | 5934 }], |
5941 ], | 5935 ], |
5942 }, | 5936 }, |
5943 }], | 5937 }], |
| 5938 ['use_lto==1 and clang==1 and (target_arch=="ia32" or target_arch=="x64")',
{ |
| 5939 'target_defaults': { |
| 5940 'target_conditions': [ |
| 5941 # Required for third_party/zlib/crc_folding.c and various other code |
| 5942 # that uses SSE. TODO(pcc): Remove this once we properly support |
| 5943 # subtarget specific code generation in LLVM. |
| 5944 ['_toolset=="target"', { |
| 5945 'ldflags': [ |
| 5946 '-Wl,-plugin-opt,mcpu=corei7-avx', |
| 5947 ], |
| 5948 }], |
| 5949 ['_toolset=="target" and _type!="static_library"', { |
| 5950 'xcode_settings': { |
| 5951 'OTHER_LDFLAGS': [ |
| 5952 '-Wl,-mcpu,corei7-avx', |
| 5953 ], |
| 5954 }, |
| 5955 }], |
| 5956 ], |
| 5957 }, |
| 5958 }], |
| 5959 ['use_lto==1 and clang==1 and target_arch=="arm"', { |
| 5960 'target_defaults': { |
| 5961 'target_conditions': [ |
| 5962 ['_toolset=="target"', { |
| 5963 # Without this flag, LTO produces a .text section that is larger |
| 5964 # than the maximum call displacement, preventing the linker from |
| 5965 # relocating calls (http://llvm.org/PR22999). |
| 5966 'ldflags': [ |
| 5967 '-Wl,-plugin-opt,-function-sections', |
| 5968 ], |
| 5969 }], |
| 5970 ], |
| 5971 }, |
| 5972 }], |
5944 ['(use_lto==1 or use_lto_o2==1) and clang==0', { | 5973 ['(use_lto==1 or use_lto_o2==1) and clang==0', { |
5945 'target_defaults': { | 5974 'target_defaults': { |
5946 'target_conditions': [ | 5975 'target_conditions': [ |
5947 ['_toolset=="target"', { | 5976 ['_toolset=="target"', { |
5948 'ldflags': [ | 5977 'ldflags': [ |
5949 '-flto=32', | 5978 '-flto=32', |
5950 ], | 5979 ], |
5951 }], | 5980 }], |
5952 ], | 5981 ], |
5953 }, | 5982 }, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6040 # settings in target dicts. SYMROOT is a special case, because many other | 6069 # settings in target dicts. SYMROOT is a special case, because many other |
6041 # Xcode variables depend on it, including variables such as | 6070 # Xcode variables depend on it, including variables such as |
6042 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 6071 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
6043 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 6072 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
6044 # files to appear (when present) in the UI as actual files and not red | 6073 # files to appear (when present) in the UI as actual files and not red |
6045 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 6074 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
6046 # and therefore SYMROOT, needs to be set at the project level. | 6075 # and therefore SYMROOT, needs to be set at the project level. |
6047 'SYMROOT': '<(DEPTH)/xcodebuild', | 6076 'SYMROOT': '<(DEPTH)/xcodebuild', |
6048 }, | 6077 }, |
6049 } | 6078 } |
OLD | NEW |