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

Side by Side Diff: build/common.gypi

Issue 12419003: Add gomadir for GYP_DEFINES (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix /dev/null -> NUL on Windows Created 7 years, 9 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 'target_arch%': '<(host_arch)', 103 'target_arch%': '<(host_arch)',
104 104
105 # Sets whether we're building with the Android SDK/NDK (and hence with 105 # Sets whether we're building with the Android SDK/NDK (and hence with
106 # Ant, value 0), or as part of the Android system (and hence with the 106 # Ant, value 0), or as part of the Android system (and hence with the
107 # Android build system, value 1). 107 # Android build system, value 1).
108 'android_build_type%': 0, 108 'android_build_type%': 0,
109 109
110 # Sets whether chrome is built for google tv device. 110 # Sets whether chrome is built for google tv device.
111 'google_tv%': 0, 111 'google_tv%': 0,
112 112
113 # goma settings.
114 # 1 to use goma if user specified gomadir.
115 # 0 not to use goma even if user specified gomadir.
116 'use_goma%': 1,
117
113 'conditions': [ 118 'conditions': [
114 # Set default value of toolkit_views based on OS. 119 # Set default value of toolkit_views based on OS.
115 ['OS=="win" or chromeos==1 or use_aura==1', { 120 ['OS=="win" or chromeos==1 or use_aura==1', {
116 'toolkit_views%': 1, 121 'toolkit_views%': 1,
117 }, { 122 }, {
118 'toolkit_views%': 0, 123 'toolkit_views%': 0,
119 }], 124 }],
120 125
121 # Set toolkit_uses_gtk for the Chromium browser on Linux. 126 # Set toolkit_uses_gtk for the Chromium browser on Linux.
122 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and use_aura==0', { 127 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and use_aura==0', {
(...skipping 24 matching lines...) Expand all
147 'enable_message_center%': 1, 152 'enable_message_center%': 1,
148 }, { 153 }, {
149 'enable_message_center%': 0, 154 'enable_message_center%': 0,
150 }], 155 }],
151 156
152 ['use_aura==1 or (OS!="win" and OS!="mac" and OS!="ios" and OS!="andro id")', { 157 ['use_aura==1 or (OS!="win" and OS!="mac" and OS!="ios" and OS!="andro id")', {
153 'use_default_render_theme%': 1, 158 'use_default_render_theme%': 1,
154 }, { 159 }, {
155 'use_default_render_theme%': 0, 160 'use_default_render_theme%': 0,
156 }], 161 }],
162
163 # goma settings
164 # TODO(ukai): download goma in default dir
165 # by gclient hooks (as clang prebuilt binary).
166 ['OS=="android"', {
167 # On android, ANDROID_GOMA_WRAPPER might be gomacc path
168 # see build/android/envsetup.sh
169 'gomadir%': '<!(dirname ${ANDROID_GOMA_WRAPPER})',
170 },{
171 'gomadir%': '',
172 }],
157 ], 173 ],
158 }, 174 },
159 175
160 # Copy conditionally-set variables out one scope. 176 # Copy conditionally-set variables out one scope.
161 'chromeos%': '<(chromeos)', 177 'chromeos%': '<(chromeos)',
162 'host_arch%': '<(host_arch)', 178 'host_arch%': '<(host_arch)',
163 'target_arch%': '<(target_arch)', 179 'target_arch%': '<(target_arch)',
164 'toolkit_views%': '<(toolkit_views)', 180 'toolkit_views%': '<(toolkit_views)',
165 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)', 181 'toolkit_uses_gtk%': '<(toolkit_uses_gtk)',
166 'use_aura%': '<(use_aura)', 182 'use_aura%': '<(use_aura)',
167 'use_ash%': '<(use_ash)', 183 'use_ash%': '<(use_ash)',
168 'use_openssl%': '<(use_openssl)', 184 'use_openssl%': '<(use_openssl)',
169 'enable_viewport%': '<(enable_viewport)', 185 'enable_viewport%': '<(enable_viewport)',
170 'enable_hidpi%': '<(enable_hidpi)', 186 'enable_hidpi%': '<(enable_hidpi)',
171 'enable_touch_ui%': '<(enable_touch_ui)', 187 'enable_touch_ui%': '<(enable_touch_ui)',
172 'android_build_type%': '<(android_build_type)', 188 'android_build_type%': '<(android_build_type)',
173 'google_tv%': '<(google_tv)', 189 'google_tv%': '<(google_tv)',
190 'use_goma%': '<(use_goma)',
191 'gomadir%': '<(gomadir)',
174 'enable_app_list%': '<(enable_app_list)', 192 'enable_app_list%': '<(enable_app_list)',
175 'enable_message_center%': '<(enable_message_center)', 193 'enable_message_center%': '<(enable_message_center)',
176 'use_default_render_theme%': '<(use_default_render_theme)', 194 'use_default_render_theme%': '<(use_default_render_theme)',
177 'buildtype%': '<(buildtype)', 195 'buildtype%': '<(buildtype)',
178 196
179 # Override branding to select the desired branding flavor. 197 # Override branding to select the desired branding flavor.
180 'branding%': 'Chromium', 198 'branding%': 'Chromium',
181 199
182 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are 200 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are
183 # are built under a chromium full build (1) or a webkit.org chromium 201 # are built under a chromium full build (1) or a webkit.org chromium
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 'linux_breakpad%': 0, 627 'linux_breakpad%': 0,
610 'linux_use_tcmalloc%': 0, 628 'linux_use_tcmalloc%': 0,
611 # sysroot needs to be an absolute path otherwise it generates 629 # sysroot needs to be an absolute path otherwise it generates
612 # incorrect results when passed to pkg-config 630 # incorrect results when passed to pkg-config
613 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot', 631 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/arm-sysroot',
614 }], # OS=="linux" and target_arch=="arm" and chromeos==0 632 }], # OS=="linux" and target_arch=="arm" and chromeos==0
615 633
616 ['target_arch=="mipsel"', { 634 ['target_arch=="mipsel"', {
617 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/sysroot', 635 'sysroot%': '<!(cd <(DEPTH) && pwd -P)/mipsel-sysroot/sysroot',
618 }], 636 }],
637
638 ['use_goma==1 and gomadir!=""', {
639 # Start goma and check whether it is available or not.
640 # TODO(ukai): add an action to setup goma which everything
641 # depends on implicitly. If goma setup fails, re-gyp with goma off.
642 'conditions': [
643 ['OS!="win"', {
644 'goma_status':
645 '<!(<(gomadir)/goma_ctl.sh ensure_start >/dev/null 2>&1 && echo ok )'
646 }, {
647 'goma_status':
648 '<!(python <(gomadir)/goma_ctl.py ensure_start >NUL 2>NUL && echo ok)'
649 }],
650 ]
651 },{
652 'goma_status': '',
653 }],
619 ], 654 ],
620 655
621 # Set this to 1 to use the Google-internal file containing 656 # Set this to 1 to use the Google-internal file containing
622 # official API keys for Google Chrome even in a developer build. 657 # official API keys for Google Chrome even in a developer build.
623 # Setting this variable explicitly to 1 will cause your build to 658 # Setting this variable explicitly to 1 will cause your build to
624 # fail if the internal file is missing. 659 # fail if the internal file is missing.
625 # 660 #
626 # Set this to 0 to not use the internal file, even when it 661 # Set this to 0 to not use the internal file, even when it
627 # exists in your checkout. 662 # exists in your checkout.
628 # 663 #
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 'enable_message_center%': '<(enable_message_center)', 773 'enable_message_center%': '<(enable_message_center)',
739 'use_default_render_theme%': '<(use_default_render_theme)', 774 'use_default_render_theme%': '<(use_default_render_theme)',
740 'enable_settings_app%': '<(enable_settings_app)', 775 'enable_settings_app%': '<(enable_settings_app)',
741 'use_official_google_api_keys%': '<(use_official_google_api_keys)', 776 'use_official_google_api_keys%': '<(use_official_google_api_keys)',
742 'google_api_key%': '<(google_api_key)', 777 'google_api_key%': '<(google_api_key)',
743 'google_default_client_id%': '<(google_default_client_id)', 778 'google_default_client_id%': '<(google_default_client_id)',
744 'google_default_client_secret%': '<(google_default_client_secret)', 779 'google_default_client_secret%': '<(google_default_client_secret)',
745 'enable_managed_users%': '<(enable_managed_users)', 780 'enable_managed_users%': '<(enable_managed_users)',
746 'spdy_proxy_auth_origin%': '<(spdy_proxy_auth_origin)', 781 'spdy_proxy_auth_origin%': '<(spdy_proxy_auth_origin)',
747 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)', 782 'spdy_proxy_auth_property%': '<(spdy_proxy_auth_property)',
783 'use_goma%': '<(use_goma)',
784 'gomadir%': '<(gomadir)',
785 'goma_status%': '<(goma_status)',
748 786
749 # Use system ffmpeg instead of bundled one. 787 # Use system ffmpeg instead of bundled one.
750 'use_system_ffmpeg%': 0, 788 'use_system_ffmpeg%': 0,
751 789
752 # Use system mesa instead of bundled one. 790 # Use system mesa instead of bundled one.
753 'use_system_mesa%': 0, 791 'use_system_mesa%': 0,
754 792
755 # Use system nspr instead of the bundled one. 793 # Use system nspr instead of the bundled one.
756 'use_system_nspr%': 0, 794 'use_system_nspr%': 0,
757 795
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 'wix_exists': '<!(python <(DEPTH)/build/dir_exists.py <(wix_path))', 1037 'wix_exists': '<!(python <(DEPTH)/build/dir_exists.py <(wix_path))',
1000 1038
1001 'windows_sdk_default_path': '<(DEPTH)/third_party/platformsdk_win8/files', 1039 'windows_sdk_default_path': '<(DEPTH)/third_party/platformsdk_win8/files',
1002 'directx_sdk_default_path': '<(DEPTH)/third_party/directxsdk/files', 1040 'directx_sdk_default_path': '<(DEPTH)/third_party/directxsdk/files',
1003 1041
1004 # Whether we are using the rlz library or not. Platforms like Android send 1042 # Whether we are using the rlz library or not. Platforms like Android send
1005 # rlz codes for searches but do not use the library. 1043 # rlz codes for searches but do not use the library.
1006 'enable_rlz%': 0, 1044 'enable_rlz%': 0,
1007 1045
1008 'conditions': [ 1046 'conditions': [
1047 ['goma_status=="ok" and OS=="win"', {
1048 # goma doesn't support pch yet.
1049 'chromium_win_pch': 0,
1050 # goma doesn't support PDB yet, so win_z7=1 or fastbuild=1.
1051 'conditions': [
1052 ['win_z7==0', {
1053 'fastbuild': 1,
1054 }],
1055 ],
1056 }],
1057
1009 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', { 1058 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_defa ult_path))"=="True"', {
1010 'windows_sdk_path%': '<(windows_sdk_default_path)', 1059 'windows_sdk_path%': '<(windows_sdk_default_path)',
1011 }, { 1060 }, {
1012 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0', 1061 'windows_sdk_path%': 'C:/Program Files (x86)/Windows Kits/8.0',
1013 }], 1062 }],
1014 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', { 1063 ['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(directx_sdk_defa ult_path))"=="True"', {
1015 'directx_sdk_path%': '<(directx_sdk_default_path)', 1064 'directx_sdk_path%': '<(directx_sdk_default_path)',
1016 }, { 1065 }, {
1017 'directx_sdk_path%': '$(DXSDK_DIR)', 1066 'directx_sdk_path%': '$(DXSDK_DIR)',
1018 }], 1067 }],
(...skipping 2986 matching lines...) Expand 10 before | Expand all | Expand 10 after
4005 }, 4054 },
4006 }], 4055 }],
4007 ['enable_new_npdevice_api==1', { 4056 ['enable_new_npdevice_api==1', {
4008 'target_defaults': { 4057 'target_defaults': {
4009 'defines': [ 4058 'defines': [
4010 'ENABLE_NEW_NPDEVICE_API', 4059 'ENABLE_NEW_NPDEVICE_API',
4011 ], 4060 ],
4012 }, 4061 },
4013 }], 4062 }],
4014 ['clang==1', { 4063 ['clang==1', {
4015 'conditions': [ 4064 'make_global_settings': [
4016 ['OS=="android"', { 4065 ['CC', '<(make_clang_dir)/bin/clang'],
4017 # Android could use the goma with clang. 4066 ['CXX', '<(make_clang_dir)/bin/clang++'],
4018 'make_global_settings': [ 4067 ['LINK', '$(CXX)'],
4019 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(make _clang_dir)/bin/clang)'], 4068 ['CC.host', '$(CC)'],
4020 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(mak e_clang_dir)/bin/clang++)'], 4069 ['CXX.host', '$(CXX)'],
4021 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} ${CHROME_SRC}/<(ma ke_clang_dir)/bin/clang++)'], 4070 ['LINK.host', '$(LINK)'],
4022 ['CC.host', '$(CC)'],
4023 ['CXX.host', '$(CXX)'],
4024 ['LINK.host', '$(LINK)'],
4025 ],
4026 }, {
4027 'make_global_settings': [
4028 ['CC', '<(make_clang_dir)/bin/clang'],
4029 ['CXX', '<(make_clang_dir)/bin/clang++'],
4030 ['LINK', '$(CXX)'],
4031 ['CC.host', '$(CC)'],
4032 ['CXX.host', '$(CXX)'],
4033 ['LINK.host', '$(LINK)'],
4034 ],
4035 }],
4036 ], 4071 ],
4037 }], 4072 }],
4038 ['OS=="android" and clang==0', { 4073 ['OS=="android" and clang==0', {
4039 # Hardcode the compiler names in the Makefile so that 4074 # Hardcode the compiler names in the Makefile so that
4040 # it won't depend on the environment at make time. 4075 # it won't depend on the environment at make time.
4041 'make_global_settings': [ 4076 'make_global_settings': [
4042 ['CC', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*-g cc)'], 4077 ['CC', '<!(/bin/echo -n <(android_toolchain)/*-gcc)'],
4043 ['CXX', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/*- g++)'], 4078 ['CXX', '<!(/bin/echo -n <(android_toolchain)/*-g++)'],
4044 ['LINK', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <(android_toolchain)/* -gcc)'], 4079 ['LINK', '<!(/bin/echo -n <(android_toolchain)/*-gcc)'],
4045 ['CC.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which gcc))'], 4080 ['CC.host', '<!(which gcc)'],
4046 ['CXX.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'], 4081 ['CXX.host', '<!(which g++)'],
4047 ['LINK.host', '<!(/bin/echo -n ${ANDROID_GOMA_WRAPPER} <!(which g++))'], 4082 ['LINK.host', '<!(which g++)'],
4048 ], 4083 ],
4049 }], 4084 }],
4050 ['target_arch=="mipsel"', { 4085 ['target_arch=="mipsel"', {
4051 'make_global_settings': [ 4086 'make_global_settings': [
4052 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'], 4087 ['CC', '<(sysroot)/../bin/mipsel-linux-gnu-gcc'],
4053 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'], 4088 ['CXX', '<(sysroot)/../bin/mipsel-linux-gnu-g++'],
4054 ['LINK', '$(CXX)'], 4089 ['LINK', '$(CXX)'],
4055 ['CC.host', '<!(which gcc)'], 4090 ['CC.host', '<!(which gcc)'],
4056 ['CXX.host', '<!(which g++)'], 4091 ['CXX.host', '<!(which g++)'],
4057 ['LINK.host', '<!(which g++)'], 4092 ['LINK.host', '<!(which g++)'],
4058 ], 4093 ],
4059 }], 4094 }],
4095
4096 # TODO(ukai): supports GENERATOR==make
4097 # make generator doesn't support CC_wrapper without CC
4098 # in make_global_settings yet.
4099 ['goma_status=="ok" and ("<(GENERATOR)"=="ninja" or clang==1 or OS=="android ")', {
4100 'make_global_settings': [
4101 ['CC_wrapper', '<(gomadir)/gomacc'],
4102 ['CXX_wrapper', '<(gomadir)/gomacc'],
4103 ['CC.host_wrapper', '<(gomadir)/gomacc'],
4104 ['CXX.host_wrapper', '<(gomadir)/gomacc'],
4105 # TODO(ukai): link support
4106 # ['LINK_wrapper', '<(gomadir)/gomacc'],
4107 # ['LINK.host_wrapper', '<(gomadir)/gomacc']
4108 ],
4109 }],
4060 ], 4110 ],
4061 'xcode_settings': { 4111 'xcode_settings': {
4062 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT! 4112 # DON'T ADD ANYTHING NEW TO THIS BLOCK UNLESS YOU REALLY REALLY NEED IT!
4063 # This block adds *project-wide* configuration settings to each project 4113 # This block adds *project-wide* configuration settings to each project
4064 # file. It's almost always wrong to put things here. Specify your 4114 # file. It's almost always wrong to put things here. Specify your
4065 # custom xcode_settings in target_defaults to add them to targets instead. 4115 # custom xcode_settings in target_defaults to add them to targets instead.
4066 4116
4067 'conditions': [ 4117 'conditions': [
4068 # In an Xcode Project Info window, the "Base SDK for All Configurations" 4118 # In an Xcode Project Info window, the "Base SDK for All Configurations"
4069 # setting sets the SDK on a project-wide basis. In order to get the 4119 # 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
4109 # settings in target dicts. SYMROOT is a special case, because many other 4159 # settings in target dicts. SYMROOT is a special case, because many other
4110 # Xcode variables depend on it, including variables such as 4160 # Xcode variables depend on it, including variables such as
4111 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4161 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4112 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4162 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4113 # files to appear (when present) in the UI as actual files and not red 4163 # files to appear (when present) in the UI as actual files and not red
4114 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4164 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4115 # and therefore SYMROOT, needs to be set at the project level. 4165 # and therefore SYMROOT, needs to be set at the project level.
4116 'SYMROOT': '<(DEPTH)/xcodebuild', 4166 'SYMROOT': '<(DEPTH)/xcodebuild',
4117 }, 4167 },
4118 } 4168 }
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