OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 # ============================================================================= | 5 # ============================================================================= |
6 # PLATFORM SELECTION | 6 # PLATFORM SELECTION |
7 # ============================================================================= | 7 # ============================================================================= |
8 # | 8 # |
9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name | 9 # There are two main things to set: "os" and "cpu". The "toolchain" is the name |
10 # of the GN thing that encodes combinations of these things. | 10 # of the GN thing that encodes combinations of these things. |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 # generally too different despite being based on the Linux kernel). | 261 # generally too different despite being based on the Linux kernel). |
262 # | 262 # |
263 # Do not add more is_* variants here for random lesser-used Unix systems like | 263 # Do not add more is_* variants here for random lesser-used Unix systems like |
264 # aix or one of the BSDs. If you need to check these, just check the | 264 # aix or one of the BSDs. If you need to check these, just check the |
265 # current_os value directly. | 265 # current_os value directly. |
266 | 266 |
267 if (current_os == "win" || current_os == "winrt_81" || | 267 if (current_os == "win" || current_os == "winrt_81" || |
268 current_os == "winrt_81_phone" || current_os == "winrt_10") { | 268 current_os == "winrt_81_phone" || current_os == "winrt_10") { |
269 is_android = false | 269 is_android = false |
270 is_chromeos = false | 270 is_chromeos = false |
| 271 is_fuchsia = false |
271 is_ios = false | 272 is_ios = false |
272 is_linux = false | 273 is_linux = false |
273 is_mac = false | 274 is_mac = false |
274 is_nacl = false | 275 is_nacl = false |
275 is_posix = false | 276 is_posix = false |
276 is_win = true | 277 is_win = true |
277 } else if (current_os == "mac") { | 278 } else if (current_os == "mac") { |
278 is_android = false | 279 is_android = false |
| 280 is_fuchsia = false |
279 is_chromeos = false | 281 is_chromeos = false |
280 is_ios = false | 282 is_ios = false |
281 is_linux = false | 283 is_linux = false |
282 is_mac = true | 284 is_mac = true |
283 is_nacl = false | 285 is_nacl = false |
284 is_posix = true | 286 is_posix = true |
285 is_win = false | 287 is_win = false |
286 } else if (current_os == "android") { | 288 } else if (current_os == "android") { |
287 is_android = true | 289 is_android = true |
| 290 is_fuchsia = false |
288 is_chromeos = false | 291 is_chromeos = false |
289 is_ios = false | 292 is_ios = false |
290 is_linux = false | 293 is_linux = false |
291 is_mac = false | 294 is_mac = false |
292 is_nacl = false | 295 is_nacl = false |
293 is_posix = true | 296 is_posix = true |
294 is_win = false | 297 is_win = false |
295 } else if (current_os == "chromeos") { | 298 } else if (current_os == "chromeos") { |
296 is_android = false | 299 is_android = false |
| 300 is_fuchsia = false |
297 is_chromeos = true | 301 is_chromeos = true |
298 is_ios = false | 302 is_ios = false |
299 is_linux = true | 303 is_linux = true |
300 is_mac = false | 304 is_mac = false |
301 is_nacl = false | 305 is_nacl = false |
302 is_posix = true | 306 is_posix = true |
303 is_win = false | 307 is_win = false |
304 } else if (current_os == "nacl") { | 308 } else if (current_os == "nacl") { |
305 # current_os == "nacl" will be passed by the nacl toolchain definition. | 309 # current_os == "nacl" will be passed by the nacl toolchain definition. |
306 # It is not set by default or on the command line. We treat is as a | 310 # It is not set by default or on the command line. We treat is as a |
307 # Posix variant. | 311 # Posix variant. |
308 is_android = false | 312 is_android = false |
309 is_chromeos = false | 313 is_chromeos = false |
| 314 is_fuchsia = false |
310 is_ios = false | 315 is_ios = false |
311 is_linux = false | 316 is_linux = false |
312 is_mac = false | 317 is_mac = false |
313 is_nacl = true | 318 is_nacl = true |
314 is_posix = true | 319 is_posix = true |
315 is_win = false | 320 is_win = false |
316 } else if (current_os == "ios") { | 321 } else if (current_os == "ios") { |
317 is_android = false | 322 is_android = false |
318 is_chromeos = false | 323 is_chromeos = false |
| 324 is_fuchsia = false |
319 is_ios = true | 325 is_ios = true |
320 is_linux = false | 326 is_linux = false |
321 is_mac = false | 327 is_mac = false |
322 is_nacl = false | 328 is_nacl = false |
323 is_posix = true | 329 is_posix = true |
324 is_win = false | 330 is_win = false |
325 } else if (current_os == "linux") { | 331 } else if (current_os == "linux") { |
326 is_android = false | 332 is_android = false |
327 is_chromeos = false | 333 is_chromeos = false |
| 334 is_fuchsia = false |
328 is_ios = false | 335 is_ios = false |
329 is_linux = true | 336 is_linux = true |
330 is_mac = false | 337 is_mac = false |
331 is_nacl = false | 338 is_nacl = false |
332 is_posix = true | 339 is_posix = true |
333 is_win = false | 340 is_win = false |
334 } | 341 } |
335 | 342 |
336 # ============================================================================= | 343 # ============================================================================= |
337 # SOURCES FILTERS | 344 # SOURCES FILTERS |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 set_defaults("component") { | 637 set_defaults("component") { |
631 if (is_component_build) { | 638 if (is_component_build) { |
632 configs = default_shared_library_configs | 639 configs = default_shared_library_configs |
633 if (is_android) { | 640 if (is_android) { |
634 configs -= [ "//build/config/android:hide_native_jni_exports" ] | 641 configs -= [ "//build/config/android:hide_native_jni_exports" ] |
635 } | 642 } |
636 } else { | 643 } else { |
637 configs = default_compiler_configs | 644 configs = default_compiler_configs |
638 } | 645 } |
639 } | 646 } |
OLD | NEW |