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

Side by Side Diff: common.gypi

Issue 10807048: Updated patch for mac/android xcompile Base URL: http://src.chromium.org/svn/trunk/src/build/
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« 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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 # The desired version of Windows SDK can be set in ~/.gyp/include.gypi. 803 # The desired version of Windows SDK can be set in ~/.gyp/include.gypi.
804 'msbuild_toolset%': '', 804 'msbuild_toolset%': '',
805 805
806 # Native Client is enabled by default. 806 # Native Client is enabled by default.
807 'disable_nacl%': 0, 807 'disable_nacl%': 0,
808 808
809 'platformsdk_exists': '<!(python <(DEPTH)/build/dir_exists.py <(platformsdk_ path))', 809 'platformsdk_exists': '<!(python <(DEPTH)/build/dir_exists.py <(platformsdk_ path))',
810 'wix_exists': '<!(python <(DEPTH)/build/dir_exists.py <(wix_path))', 810 'wix_exists': '<!(python <(DEPTH)/build/dir_exists.py <(wix_path))',
811 811
812 'conditions': [ 812 'conditions': [
813 ['os_posix==1 and OS!="mac" and OS!="android"', {
814 # Figure out the python architecture to decide if we build pyauto.
815 'python_arch%': '<!(<(DEPTH)/build/linux/python_arch.sh <(sysroot)/usr/< (system_libdir)/libpython<(python_ver).so.1.0)',
816 }],
813 ['os_posix==1 and OS!="mac"', { 817 ['os_posix==1 and OS!="mac"', {
814 # This will set gcc_version to XY if you are running gcc X.Y.*. 818 # This will set gcc_version to XY if you are running gcc X.Y.*.
815 # This is used to tweak build flags for gcc 4.4. 819 # This is used to tweak build flags for gcc 4.4.
816 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)', 820 'gcc_version%': '<!(python <(DEPTH)/build/compiler_version.py)',
817 # Figure out the python architecture to decide if we build pyauto.
818 'python_arch%': '<!(<(DEPTH)/build/linux/python_arch.sh <(sysroot)/usr/< (system_libdir)/libpython<(python_ver).so.1.0)',
819 'conditions': [ 821 'conditions': [
820 ['branding=="Chrome"', { 822 ['branding=="Chrome"', {
821 'linux_breakpad%': 1, 823 'linux_breakpad%': 1,
822 }], 824 }],
823 # All Chrome builds have breakpad symbols, but only process the 825 # All Chrome builds have breakpad symbols, but only process the
824 # symbols from official builds. 826 # symbols from official builds.
825 ['(branding=="Chrome" and buildtype=="Official")', { 827 ['(branding=="Chrome" and buildtype=="Official")', {
826 'linux_dump_symbols%': 1, 828 'linux_dump_symbols%': 1,
827 }], 829 }],
828 ], 830 ],
(...skipping 2278 matching lines...) Expand 10 before | Expand all | Expand 10 after
3107 # it won't depend on the environment at make time. 3109 # it won't depend on the environment at make time.
3108 'make_global_settings': [ 3110 'make_global_settings': [
3109 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${ANDROID_TOOLCHAIN}/*-g cc)'], 3111 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${ANDROID_TOOLCHAIN}/*-g cc)'],
3110 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${ANDROID_TOOLCHAIN}/*- g++)'], 3112 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${ANDROID_TOOLCHAIN}/*- g++)'],
3111 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${ANDROID_TOOLCHAIN}/* -gcc)'], 3113 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${ANDROID_TOOLCHAIN}/* -gcc)'],
3112 ['CC.host', '<!(which gcc)'], 3114 ['CC.host', '<!(which gcc)'],
3113 ['CXX.host', '<!(which g++)'], 3115 ['CXX.host', '<!(which g++)'],
3114 ['LINK.host', '<!(which g++)'], 3116 ['LINK.host', '<!(which g++)'],
3115 ], 3117 ],
3116 }], 3118 }],
3119 ['OS=="android" and HOST_OS=="mac" and "<(GENERATOR)"!="ninja"', {
3120 # Hardcode the compiler names in the Makefile so that
3121 # it won't depend on the environment at make time.
3122 'make_global_settings': [
3123 ['AR', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${ANDROID_TOOLCHAIN}/*-a r)'],
3124 ['RANLIB', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${ANDROID_TOOLCHAIN} /*-ranlib)'],
3125 ['LD', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${ANDROID_TOOLCHAIN}/*-l d)'],
3126 ],
3127 }],
3117 ], 3128 ],
3118 'xcode_settings': { 3129 'xcode_settings': {
3119 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! 3130 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT!
3120 # This block adds *project-wide* configuration settings to each project 3131 # This block adds *project-wide* configuration settings to each project
3121 # file. It's almost always wrong to put things here. Specify your 3132 # file. It's almost always wrong to put things here. Specify your
3122 # custom xcode_settings in target_defaults to add them to targets instead. 3133 # custom xcode_settings in target_defaults to add them to targets instead.
3123 3134
3124 # In an Xcode Project Info window, the "Base SDK for All Configurations" 3135 # In an Xcode Project Info window, the "Base SDK for All Configurations"
3125 # setting sets the SDK on a project-wide basis. In order to get the 3136 # setting sets the SDK on a project-wide basis. In order to get the
3126 # configured SDK to show properly in the Xcode UI, SDKROOT must be set 3137 # configured SDK to show properly in the Xcode UI, SDKROOT must be set
3127 # here at the project level. 3138 # here at the project level.
3128 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot 3139 'SDKROOT': 'macosx<(mac_sdk)', # -isysroot
3129 3140
3130 # The Xcode generator will look for an xcode_settings section at the root 3141 # The Xcode generator will look for an xcode_settings section at the root
3131 # of each dict and use it to apply settings on a file-wide basis. Most 3142 # of each dict and use it to apply settings on a file-wide basis. Most
3132 # settings should not be here, they should be in target-specific 3143 # settings should not be here, they should be in target-specific
3133 # xcode_settings sections, or better yet, should use non-Xcode-specific 3144 # xcode_settings sections, or better yet, should use non-Xcode-specific
3134 # settings in target dicts. SYMROOT is a special case, because many other 3145 # settings in target dicts. SYMROOT is a special case, because many other
3135 # Xcode variables depend on it, including variables such as 3146 # Xcode variables depend on it, including variables such as
3136 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3147 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3137 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3148 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3138 # files to appear (when present) in the UI as actual files and not red 3149 # files to appear (when present) in the UI as actual files and not red
3139 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3150 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3140 # and therefore SYMROOT, needs to be set at the project level. 3151 # and therefore SYMROOT, needs to be set at the project level.
3141 'SYMROOT': '<(DEPTH)/xcodebuild', 3152 'SYMROOT': '<(DEPTH)/xcodebuild',
3142 }, 3153 },
3143 } 3154 }
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