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

Side by Side Diff: tools/gn/secondary/build/config/BUILDCONFIG.gn

Issue 21983003: Make the Mac build work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dunnow Created 7 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 | « tools/gn/secondary/base/BUILD.gn ('k') | tools/gn/secondary/build/config/clang/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # ============================================================================= 1 # =============================================================================
2 # BUILD FLAGS 2 # BUILD FLAGS
3 # ============================================================================= 3 # =============================================================================
4 # 4 #
5 # This block lists input arguments to the build, along with their default 5 # This block lists input arguments to the build, along with their default
6 # values. GN requires listing them explicitly so it can validate input and have 6 # values. GN requires listing them explicitly so it can validate input and have
7 # a central place to manage the build flags. 7 # a central place to manage the build flags.
8 # 8 #
9 # If a value is specified on the command line, it will overwrite the defaults 9 # If a value is specified on the command line, it will overwrite the defaults
10 # given here, otherwise the default will be injected into the root scope. 10 # given here, otherwise the default will be injected into the root scope.
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 } 168 }
169 169
170 if (is_debug) { 170 if (is_debug) {
171 native_compiler_configs += "//build/config:debug" 171 native_compiler_configs += "//build/config:debug"
172 } else { 172 } else {
173 native_compiler_configs += "//build/config:release" 173 native_compiler_configs += "//build/config:release"
174 } 174 }
175 175
176 set_defaults("executable") { 176 set_defaults("executable") {
177 configs = native_compiler_configs 177 configs = native_compiler_configs
178 if (is_mac) {
179 configs += "//build/config/mac:mac_dynamic_flags"
180 }
178 } 181 }
179 182
180 set_defaults("static_library") { 183 set_defaults("static_library") {
181 configs = native_compiler_configs 184 configs = native_compiler_configs
182 } 185 }
183 186
184 set_defaults("shared_library") { 187 set_defaults("shared_library") {
185 configs = native_compiler_configs 188 configs = native_compiler_configs
189 if (is_mac) {
190 configs += "//build/config/mac:mac_dynamic_flags"
191 }
186 } 192 }
187 193
188 # ============================================================================== 194 # ==============================================================================
189 # TOOLCHAIN SETUP 195 # TOOLCHAIN SETUP
190 # ============================================================================== 196 # ==============================================================================
191 197
192 if (is_win) { 198 if (is_win) {
193 set_default_toolchain("//build/config/win:32") 199 set_default_toolchain("//build/config/win:32")
194 } else if (is_mac) { 200 } else if (is_mac) {
195 set_default_toolchain("//build/config/mac:clang") 201 set_default_toolchain("//build/config/mac:clang")
196 } 202 }
OLDNEW
« no previous file with comments | « tools/gn/secondary/base/BUILD.gn ('k') | tools/gn/secondary/build/config/clang/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698