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 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 888 # sandbox the zygote process and, thus, all renderer processes. | 888 # sandbox the zygote process and, thus, all renderer processes. |
| 889 'linux_sandbox_path%': '', | 889 'linux_sandbox_path%': '', |
| 890 | 890 |
| 891 # Set this to true to enable SELinux support. | 891 # Set this to true to enable SELinux support. |
| 892 'selinux%': 0, | 892 'selinux%': 0, |
| 893 | 893 |
| 894 # Clang stuff. | 894 # Clang stuff. |
| 895 'clang%': '<(clang)', | 895 'clang%': '<(clang)', |
| 896 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts', | 896 'make_clang_dir%': 'third_party/llvm-build/Release+Asserts', |
| 897 | 897 |
| 898 # The version of GCC in use, set later in platforms that use GCC and have | |
| 899 # not explicitly chosen to build with clang. Currently, this means all | |
| 900 # platforms except Windows, Mac and iOS. | |
| 901 'gcc_version%': 0, | |
|
Paweł Hajdan Jr.
2013/04/26 17:02:07
We already have a block like:
['clang==
| |
| 902 | |
| 898 # These two variables can be set in GYP_DEFINES while running | 903 # These two variables can be set in GYP_DEFINES while running |
| 899 # |gclient runhooks| to let clang run a plugin in every compilation. | 904 # |gclient runhooks| to let clang run a plugin in every compilation. |
| 900 # Only has an effect if 'clang=1' is in GYP_DEFINES as well. | 905 # Only has an effect if 'clang=1' is in GYP_DEFINES as well. |
| 901 # Example: | 906 # Example: |
| 902 # GYP_DEFINES='clang=1 clang_load=/abs/path/to/libPrintFunctionNames.dyl ib clang_add_plugin=print-fns' gclient runhooks | 907 # GYP_DEFINES='clang=1 clang_load=/abs/path/to/libPrintFunctionNames.dyl ib clang_add_plugin=print-fns' gclient runhooks |
| 903 | 908 |
| 904 'clang_load%': '', | 909 'clang_load%': '', |
| 905 'clang_add_plugin%': '', | 910 'clang_add_plugin%': '', |
| 906 | 911 |
| 907 # The default type of gtest. | 912 # The default type of gtest. |
| (...skipping 1802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2710 }, | 2715 }, |
| 2711 'profile': { | 2716 'profile': { |
| 2712 'cflags': ['-pg', '-g'], | 2717 'cflags': ['-pg', '-g'], |
| 2713 'ldflags': ['-pg'], | 2718 'ldflags': ['-pg'], |
| 2714 }, | 2719 }, |
| 2715 'symbols': { | 2720 'symbols': { |
| 2716 'cflags': ['-g'], | 2721 'cflags': ['-g'], |
| 2717 }, | 2722 }, |
| 2718 }, | 2723 }, |
| 2719 'conditions': [ | 2724 'conditions': [ |
| 2720 # Don't warn about the "typedef 'foo' locally defined but not used" | |
| 2721 # for gcc 4.8. | |
| 2722 # TODO: remove this flag once all builds work. See crbug.com/227506 | |
| 2723 [ 'gcc_version>=48', { | |
| 2724 'cflags': [ | |
| 2725 '-Wno-unused-local-typedefs', | |
| 2726 ], | |
| 2727 }], | |
| 2728 ['target_arch=="ia32"', { | 2725 ['target_arch=="ia32"', { |
| 2729 'target_conditions': [ | 2726 'target_conditions': [ |
| 2730 ['_toolset=="target"', { | 2727 ['_toolset=="target"', { |
| 2731 'asflags': [ | 2728 'asflags': [ |
| 2732 # Needed so that libs with .s files (e.g. libicudata.a) | 2729 # Needed so that libs with .s files (e.g. libicudata.a) |
| 2733 # are compatible with the general 32-bit-ness. | 2730 # are compatible with the general 32-bit-ness. |
| 2734 '-32', | 2731 '-32', |
| 2735 ], | 2732 ], |
| 2736 # All floating-point computations on x87 happens in 80-bit | 2733 # All floating-point computations on x87 happens in 80-bit |
| 2737 # precision. Because the C and C++ language standards allow | 2734 # precision. Because the C and C++ language standards allow |
| (...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4180 }, | 4177 }, |
| 4181 }, | 4178 }, |
| 4182 }], | 4179 }], |
| 4183 ['enable_new_npdevice_api==1', { | 4180 ['enable_new_npdevice_api==1', { |
| 4184 'target_defaults': { | 4181 'target_defaults': { |
| 4185 'defines': [ | 4182 'defines': [ |
| 4186 'ENABLE_NEW_NPDEVICE_API', | 4183 'ENABLE_NEW_NPDEVICE_API', |
| 4187 ], | 4184 ], |
| 4188 }, | 4185 }, |
| 4189 }], | 4186 }], |
| 4187 # Don't warn about the "typedef 'foo' locally defined but not used" | |
|
Paweł Hajdan Jr.
2013/04/26 17:02:07
Why is this code being moved?
| |
| 4188 # for gcc 4.8. | |
| 4189 # TODO: remove this flag once all builds work. See crbug.com/227506 | |
| 4190 ['gcc_version>=48', { | |
| 4191 'target_defaults': { | |
| 4192 'cflags': [ | |
| 4193 '-Wno-unused-local-typedefs', | |
| 4194 ], | |
| 4195 }, | |
| 4196 }], | |
| 4190 ['clang==1', { | 4197 ['clang==1', { |
| 4191 'conditions': [ | 4198 'conditions': [ |
| 4192 ['OS=="android"', { | 4199 ['OS=="android"', { |
| 4193 # Android could use the goma with clang. | 4200 # Android could use the goma with clang. |
| 4194 'make_global_settings': [ | 4201 'make_global_settings': [ |
| 4195 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(make _clang_dir)/bin/clang)'], | 4202 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(make _clang_dir)/bin/clang)'], |
| 4196 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(mak e_clang_dir)/bin/clang++)'], | 4203 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(mak e_clang_dir)/bin/clang++)'], |
| 4197 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(ma ke_clang_dir)/bin/clang++)'], | 4204 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(ma ke_clang_dir)/bin/clang++)'], |
| 4198 ['CC.host', '$(CC)'], | 4205 ['CC.host', '$(CC)'], |
| 4199 ['CXX.host', '$(CXX)'], | 4206 ['CXX.host', '$(CXX)'], |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4285 # settings in target dicts. SYMROOT is a special case, because many other | 4292 # settings in target dicts. SYMROOT is a special case, because many other |
| 4286 # Xcode variables depend on it, including variables such as | 4293 # Xcode variables depend on it, including variables such as |
| 4287 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4294 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 4288 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4295 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 4289 # files to appear (when present) in the UI as actual files and not red | 4296 # files to appear (when present) in the UI as actual files and not red |
| 4290 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4297 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 4291 # and therefore SYMROOT, needs to be set at the project level. | 4298 # and therefore SYMROOT, needs to be set at the project level. |
| 4292 'SYMROOT': '<(DEPTH)/xcodebuild', | 4299 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 4293 }, | 4300 }, |
| 4294 } | 4301 } |
| OLD | NEW |