Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: build/common.gypi

Issue 12084080: [MIPS] Set defaults for mips/linux chrome builds. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Delete the comments. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }],
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
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 'werror%': '',
1040 'disable_nacl%': 1,
1041 'linux_use_gold_binary%': 0,
1042 'linux_use_gold_flags%': 0,
1043 'nacl_untrusted_build%': 0,
1044 'linux_use_tcmalloc%': 0,
1045 'linux_breakpad%': 0,
1046 'sysroot%': '<(sysroot)',
1047 }],
1034 # All Chrome builds have breakpad symbols, but only process the 1048 # All Chrome builds have breakpad symbols, but only process the
1035 # symbols from official builds. 1049 # symbols from official builds.
1036 ['(branding=="Chrome" and buildtype=="Official")', { 1050 ['(branding=="Chrome" and buildtype=="Official")', {
1037 'linux_dump_symbols%': 1, 1051 'linux_dump_symbols%': 1,
1038 }], 1052 }],
1039 ], 1053 ],
1040 }], # os_posix==1 and OS!="mac" and OS!="ios" 1054 }], # os_posix==1 and OS!="mac" and OS!="ios"
1041 ['OS=="ios"', { 1055 ['OS=="ios"', {
1042 'disable_nacl%': 1, 1056 'disable_nacl%': 1,
1043 'enable_background%': 0, 1057 'enable_background%': 0,
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1289 'NACL_WIN64', 1303 'NACL_WIN64',
1290 ], 1304 ],
1291 }], 1305 }],
1292 1306
1293 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios"', { 1307 ['os_posix==1 and chromeos==0 and OS!="android" and OS!="ios"', {
1294 'use_cups%': 1, 1308 'use_cups%': 1,
1295 }, { 1309 }, {
1296 'use_cups%': 0, 1310 'use_cups%': 0,
1297 }], 1311 }],
1298 1312
1299 # Native Client glibc toolchain is enabled by default except on arm. 1313 # Native Client glibc toolchain is enabled
1300 ['target_arch=="arm"', { 1314 # by default except on arm and mips.
1315 ['target_arch=="arm" or target_arch=="mipsel"', {
1301 'disable_glibc%': 1, 1316 'disable_glibc%': 1,
1302 }, { 1317 }, {
1303 'disable_glibc%': 0, 1318 'disable_glibc%': 0,
1304 }], 1319 }],
1305 1320
1306 # Disable SSE2 when building for ARM or MIPS. 1321 # Disable SSE2 when building for ARM or MIPS.
1307 ['target_arch=="arm" or target_arch=="mipsel"', { 1322 ['target_arch=="arm" or target_arch=="mipsel"', {
1308 'disable_sse2%': 1, 1323 'disable_sse2%': 1,
1309 }, { 1324 }, {
1310 'disable_sse2%': '<(disable_sse2)', 1325 'disable_sse2%': '<(disable_sse2)',
(...skipping 2619 matching lines...) Expand 10 before | Expand all | Expand 10 after
3930 # it won't depend on the environment at make time. 3945 # it won't depend on the environment at make time.
3931 'make_global_settings': [ 3946 'make_global_settings': [
3932 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-g cc)'], 3947 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-g cc)'],
3933 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*- g++)'], 3948 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*- g++)'],
3934 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/* -gcc)'], 3949 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/* -gcc)'],
3935 ['CC.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which gcc))'], 3950 ['CC.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which gcc))'],
3936 ['CXX.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'], 3951 ['CXX.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'],
3937 ['LINK.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'], 3952 ['LINK.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'],
3938 ], 3953 ],
3939 }], 3954 }],
3955 ['target_arch=="mipsel"', {
3956 'make_global_settings': [
3957 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'],
3958 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'],
3959 ['LINK', '$(CXX)'],
3960 ['CC.host', '<!(which gcc)'],
3961 ['CXX.host', '<!(which g++)'],
3962 ['LINK.host', '<!(which g++)'],
3963 ],
3964 }],
3940 ], 3965 ],
3941 'xcode_settings': { 3966 'xcode_settings': {
3942 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! 3967 # 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 3968 # This block adds *project-wide* configuration settings to each project
3944 # file. It's almost always wrong to put things here. Specify your 3969 # 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. 3970 # custom xcode_settings in target_defaults to add them to targets instead.
3946 3971
3947 'conditions': [ 3972 'conditions': [
3948 # In an Xcode Project Info window, the "Base SDK for All Configurations" 3973 # 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 3974 # 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
3989 # settings in target dicts. SYMROOT is a special case, because many other 4014 # settings in target dicts. SYMROOT is a special case, because many other
3990 # Xcode variables depend on it, including variables such as 4015 # Xcode variables depend on it, including variables such as
3991 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4016 # 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 4017 # 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 4018 # 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, 4019 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3995 # and therefore SYMROOT, needs to be set at the project level. 4020 # and therefore SYMROOT, needs to be set at the project level.
3996 'SYMROOT': '<(DEPTH)/xcodebuild', 4021 'SYMROOT': '<(DEPTH)/xcodebuild',
3997 }, 4022 },
3998 } 4023 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698