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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
607 ['OS=="linux" and target_arch=="arm" and chromeos==0', { | 607 ['OS=="linux" and target_arch=="arm" and chromeos==0', { |
608 # Set some defaults for arm/linux chrome builds | 608 # Set some defaults for arm/linux chrome builds |
609 'armv7%': 1, | 609 'armv7%': 1, |
610 'linux_breakpad%': 0, | 610 'linux_breakpad%': 0, |
611 'linux_use_tcmalloc%': 0, | 611 'linux_use_tcmalloc%': 0, |
612 'linux_use_gold_flags%': 0, | 612 'linux_use_gold_flags%': 0, |
613 # sysroot needs to be an absolute path otherwise it generates | 613 # sysroot needs to be an absolute path otherwise it generates |
614 # incorrect results when passed to pkg-config | 614 # incorrect results when passed to pkg-config |
615 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot', | 615 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot', |
616 }], # OS=="linux" and target_arch=="arm" and chromeos==0 | 616 }], # OS=="linux" and target_arch=="arm" and chromeos==0 |
617 | |
618 ['target_arch=="mipsel"', { | |
619 'sysroot': '<!(cd <(DEPTH) && pwd -P)/native_client/toolchain/linux_mi ps-trusted/sysroot', | |
620 }], # target_arch=="mipsel" | |
tony
2013/01/31 01:13:09
Nit: I would remove the comment here. I'm not sur
petarj
2013/01/31 01:19:23
Done.
| |
617 ], | 621 ], |
618 | 622 |
619 # Set this to 1 to use the Google-internal file containing | 623 # Set this to 1 to use the Google-internal file containing |
620 # official API keys for Google Chrome even in a developer build. | 624 # official API keys for Google Chrome even in a developer build. |
621 # Setting this variable explicitly to 1 will cause your build to | 625 # Setting this variable explicitly to 1 will cause your build to |
622 # fail if the internal file is missing. | 626 # fail if the internal file is missing. |
623 # | 627 # |
624 # Set this to 0 to not use the internal file, even when it | 628 # Set this to 0 to not use the internal file, even when it |
625 # exists in your checkout. | 629 # exists in your checkout. |
626 # | 630 # |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1024 'conditions': [ | 1028 'conditions': [ |
1025 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so | 1029 # TODO(glider): set clang to 1 earlier for ASan and TSan builds so |
1026 # that it takes effect here. | 1030 # that it takes effect here. |
1027 ['clang==0 and asan==0 and tsan==0', { | 1031 ['clang==0 and asan==0 and tsan==0', { |
1028 # This will set gcc_version to XY if you are running gcc X.Y.*. | 1032 # This will set gcc_version to XY if you are running gcc X.Y.*. |
1029 # This is used to tweak build flags for gcc 4.5. | 1033 # This is used to tweak build flags for gcc 4.5. |
1030 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', | 1034 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', |
1031 }, { | 1035 }, { |
1032 'gcc_version%': 0, | 1036 'gcc_version%': 0, |
1033 }], | 1037 }], |
1038 ['target_arch=="mipsel"', { | |
1039 # Set some defaults for mips/linux chrome builds | |
tony
2013/01/31 01:13:09
I would remove this comment too. I don't see anyt
petarj
2013/01/31 01:19:23
Done.
| |
1040 'werror%': '', | |
1041 'disable_nacl%': 1, | |
1042 'linux_use_gold_binary%': 0, | |
1043 'linux_use_gold_flags%': 0, | |
1044 'nacl_untrusted_build%': 0, | |
1045 'linux_use_tcmalloc%': 0, | |
1046 'linux_breakpad%': 0, | |
1047 'sysroot%': '<(sysroot)', | |
1048 }], | |
1034 # All Chrome builds have breakpad symbols, but only process the | 1049 # All Chrome builds have breakpad symbols, but only process the |
1035 # symbols from official builds. | 1050 # symbols from official builds. |
1036 ['(branding=="Chrome" and buildtype=="Official")', { | 1051 ['(branding=="Chrome" and buildtype=="Official")', { |
1037 'linux_dump_symbols%': 1, | 1052 'linux_dump_symbols%': 1, |
1038 }], | 1053 }], |
1039 ], | 1054 ], |
1040 }], # os_posix==1 and OS!="mac" and OS!="ios" | 1055 }], # os_posix==1 and OS!="mac" and OS!="ios" |
1041 ['OS=="ios"', { | 1056 ['OS=="ios"', { |
1042 'disable_nacl%': 1, | 1057 'disable_nacl%': 1, |
1043 'enable_background%': 0, | 1058 'enable_background%': 0, |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1289 'NACL_WIN64', | 1304 'NACL_WIN64', |
1290 ], | 1305 ], |
1291 }], | 1306 }], |
1292 | 1307 |
1293 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios"', { | 1308 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios"', { |
1294 'use_cups%': 1, | 1309 'use_cups%': 1, |
1295 }, { | 1310 }, { |
1296 'use_cups%': 0, | 1311 'use_cups%': 0, |
1297 }], | 1312 }], |
1298 | 1313 |
1299 # Native Client glibc toolchain is enabled by default except on arm. | 1314 # Native Client glibc toolchain is enabled |
1300 ['target_arch=="arm"', { | 1315 # by default except on arm and mips. |
1316 ['target_arch=="arm" or target_arch=="mipsel"', { | |
1301 'disable_glibc%': 1, | 1317 'disable_glibc%': 1, |
1302 }, { | 1318 }, { |
1303 'disable_glibc%': 0, | 1319 'disable_glibc%': 0, |
1304 }], | 1320 }], |
1305 | 1321 |
1306 # Disable SSE2 when building for ARM or MIPS. | 1322 # Disable SSE2 when building for ARM or MIPS. |
1307 ['target_arch=="arm" or target_arch=="mipsel"', { | 1323 ['target_arch=="arm" or target_arch=="mipsel"', { |
1308 'disable_sse2%': 1, | 1324 'disable_sse2%': 1, |
1309 }, { | 1325 }, { |
1310 'disable_sse2%': '<(disable_sse2)', | 1326 'disable_sse2%': '<(disable_sse2)', |
(...skipping 2619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3930 # it won't depend on the environment at make time. | 3946 # it won't depend on the environment at make time. |
3931 'make_global_settings': [ | 3947 'make_global_settings': [ |
3932 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-g cc)'], | 3948 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-g cc)'], |
3933 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*- g++)'], | 3949 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*- g++)'], |
3934 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/* -gcc)'], | 3950 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/* -gcc)'], |
3935 ['CC.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which gcc))'], | 3951 ['CC.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which gcc))'], |
3936 ['CXX.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'], | 3952 ['CXX.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'], |
3937 ['LINK.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'], | 3953 ['LINK.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'], |
3938 ], | 3954 ], |
3939 }], | 3955 }], |
3956 ['target_arch=="mipsel"', { | |
3957 'make_global_settings': [ | |
3958 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'], | |
3959 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'], | |
3960 ['LINK', '$(CXX)'], | |
3961 ['CC.host', '<!(which gcc)'], | |
3962 ['CXX.host', '<!(which g++)'], | |
3963 ['LINK.host', '<!(which g++)'], | |
3964 ], | |
3965 }], | |
3940 ], | 3966 ], |
3941 'xcode_settings': { | 3967 'xcode_settings': { |
3942 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! | 3968 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! |
3943 # This block adds *project-wide* configuration settings to each project | 3969 # This block adds *project-wide* configuration settings to each project |
3944 # file. It's almost always wrong to put things here. Specify your | 3970 # file. It's almost always wrong to put things here. Specify your |
3945 # custom xcode_settings in target_defaults to add them to targets instead. | 3971 # custom xcode_settings in target_defaults to add them to targets instead. |
3946 | 3972 |
3947 'conditions': [ | 3973 'conditions': [ |
3948 # In an Xcode Project Info window, the "Base SDK for All Configurations" | 3974 # In an Xcode Project Info window, the "Base SDK for All Configurations" |
3949 # setting sets the SDK on a project-wide basis. In order to get the | 3975 # setting sets the SDK on a project-wide basis. In order to get the |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3989 # settings in target dicts. SYMROOT is a special case, because many other | 4015 # settings in target dicts. SYMROOT is a special case, because many other |
3990 # Xcode variables depend on it, including variables such as | 4016 # Xcode variables depend on it, including variables such as |
3991 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4017 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3992 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4018 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3993 # files to appear (when present) in the UI as actual files and not red | 4019 # files to appear (when present) in the UI as actual files and not red |
3994 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4020 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3995 # and therefore SYMROOT, needs to be set at the project level. | 4021 # and therefore SYMROOT, needs to be set at the project level. |
3996 'SYMROOT': '<(DEPTH)/xcodebuild', | 4022 'SYMROOT': '<(DEPTH)/xcodebuild', |
3997 }, | 4023 }, |
3998 } | 4024 } |
OLD | NEW |