| 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 # BUILD FLAGS | 6 # BUILD FLAGS |
| 7 # ============================================================================= | 7 # ============================================================================= |
| 8 # | 8 # |
| 9 # This block lists input arguments to the build, along with their default | 9 # This block lists input arguments to the build, along with their default |
| 10 # values. GN requires listing them explicitly so it can validate input and have | 10 # values. GN requires listing them explicitly so it can validate input and have |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 if (is_win) { | 426 if (is_win) { |
| 427 _shared_library_configs += _windows_linker_configs | 427 _shared_library_configs += _windows_linker_configs |
| 428 } else if (is_mac) { | 428 } else if (is_mac) { |
| 429 _shared_library_configs += [ "//build/config/mac:mac_dynamic_flags" ] | 429 _shared_library_configs += [ "//build/config/mac:mac_dynamic_flags" ] |
| 430 } | 430 } |
| 431 set_defaults("shared_library") { | 431 set_defaults("shared_library") { |
| 432 configs = _shared_library_configs | 432 configs = _shared_library_configs |
| 433 } | 433 } |
| 434 if (is_component_build) { | 434 if (is_component_build) { |
| 435 set_defaults("component") { | 435 set_defaults("component") { |
| 436 configs = _native_compiler_configs | 436 configs = _shared_library_configs |
| 437 } | 437 } |
| 438 } | 438 } |
| 439 | 439 |
| 440 # Source set defaults (also for components in non-component mode). | 440 # Source set defaults (also for components in non-component mode). |
| 441 set_defaults("source_set") { | 441 set_defaults("source_set") { |
| 442 configs = _native_compiler_configs | 442 configs = _native_compiler_configs |
| 443 } | 443 } |
| 444 if (!is_component_build) { | 444 if (!is_component_build) { |
| 445 set_defaults("component") { | 445 set_defaults("component") { |
| 446 configs = _native_compiler_configs | 446 configs = _native_compiler_configs |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 if (defined(invoker.output_extension)) { output_extension = invoker.output
_extension } | 673 if (defined(invoker.output_extension)) { output_extension = invoker.output
_extension } |
| 674 if (defined(invoker.output_name)) { output_name = invoker.output_name } | 674 if (defined(invoker.output_name)) { output_name = invoker.output_name } |
| 675 if (defined(invoker.public)) { public = invoker.public } | 675 if (defined(invoker.public)) { public = invoker.public } |
| 676 if (defined(invoker.public_configs)) { public_configs = invoker.public_con
figs } | 676 if (defined(invoker.public_configs)) { public_configs = invoker.public_con
figs } |
| 677 if (defined(invoker.public_deps)) { public_deps = invoker.public_deps } | 677 if (defined(invoker.public_deps)) { public_deps = invoker.public_deps } |
| 678 if (defined(invoker.sources)) { sources = invoker.sources } | 678 if (defined(invoker.sources)) { sources = invoker.sources } |
| 679 if (defined(invoker.visibility)) { visibility = invoker.visibility } | 679 if (defined(invoker.visibility)) { visibility = invoker.visibility } |
| 680 } | 680 } |
| 681 } | 681 } |
| 682 } | 682 } |
| OLD | NEW |