| 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 # HOW TO WRITE CONDITIONALS IN THIS FILE | 5 # HOW TO WRITE CONDITIONALS IN THIS FILE |
| 6 # ====================================== | 6 # ====================================== |
| 7 # | 7 # |
| 8 # In many other places, one would write a conditional that expresses all the | 8 # In many other places, one would write a conditional that expresses all the |
| 9 # cases when a source file is used or unused, and then either add or subtract | 9 # cases when a source file is used or unused, and then either add or subtract |
| 10 # it from the sources list in that case | 10 # it from the sources list in that case |
| 11 # | 11 # |
| 12 # Since base includes so many low-level things that vary widely and | 12 # Since base includes so many low-level things that vary widely and |
| 13 # unpredictably for the various build types, we prefer a slightly different | 13 # unpredictably for the various build types, we prefer a slightly different |
| 14 # style. Instead, there are big per-platform blocks of inclusions and | 14 # style. Instead, there are big per-platform blocks of inclusions and |
| 15 # exclusions. If a given file has an inclusion or exclusion rule that applies | 15 # exclusions. If a given file has an inclusion or exclusion rule that applies |
| 16 # for multiple conditions, prefer to duplicate it in both lists. This makes it | 16 # for multiple conditions, prefer to duplicate it in both lists. This makes it |
| 17 # a bit easier to see which files apply in which cases rather than having a | 17 # a bit easier to see which files apply in which cases rather than having a |
| 18 # huge sequence of random-looking conditionals. | 18 # huge sequence of random-looking conditionals. |
| 19 | 19 |
| 20 import("//build/buildflag_header.gni") | 20 import("//build/buildflag_header.gni") |
| 21 import("//build/config/allocator.gni") | 21 import("//build/config/allocator.gni") |
| 22 import("//build/config/arm.gni") | 22 import("//build/config/arm.gni") |
| 23 import("//build/config/chromecast_build.gni") | 23 import("//build/config/chromecast_build.gni") |
| 24 import("//build/config/clang/clang.gni") | 24 import("//build/config/clang/clang.gni") |
| 25 import("//build/config/compiler/compiler.gni") | 25 import("//build/config/compiler/compiler.gni") |
| 26 import("//build/config/dcheck_always_on.gni") | 26 import("//build/config/dcheck_always_on.gni") |
| 27 import("//build/config/dvlog_always_on.gni") |
| 27 import("//build/config/nacl/config.gni") | 28 import("//build/config/nacl/config.gni") |
| 28 import("//build/config/sysroot.gni") | 29 import("//build/config/sysroot.gni") |
| 29 import("//build/config/ui.gni") | 30 import("//build/config/ui.gni") |
| 30 import("//build/nocompile.gni") | 31 import("//build/nocompile.gni") |
| 31 import("//testing/libfuzzer/fuzzer_test.gni") | 32 import("//testing/libfuzzer/fuzzer_test.gni") |
| 32 import("//testing/test.gni") | 33 import("//testing/test.gni") |
| 33 | 34 |
| 34 declare_args() { | 35 declare_args() { |
| 35 # Override this value to give a specific build date. | 36 # Override this value to give a specific build date. |
| 36 # See //base/build_time.cc and //build/write_build_date_header.py for more | 37 # See //base/build_time.cc and //build/write_build_date_header.py for more |
| (...skipping 2729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2766 java_cpp_template("base_build_config_gen") { | 2767 java_cpp_template("base_build_config_gen") { |
| 2767 sources = [ | 2768 sources = [ |
| 2768 "android/java/templates/BuildConfig.template", | 2769 "android/java/templates/BuildConfig.template", |
| 2769 ] | 2770 ] |
| 2770 package_path = "org/chromium/base" | 2771 package_path = "org/chromium/base" |
| 2771 | 2772 |
| 2772 defines = [] | 2773 defines = [] |
| 2773 if (is_java_debug || dcheck_always_on) { | 2774 if (is_java_debug || dcheck_always_on) { |
| 2774 defines += [ "_DCHECK_IS_ON" ] | 2775 defines += [ "_DCHECK_IS_ON" ] |
| 2775 } | 2776 } |
| 2777 if (is_java_debug || dvlog_always_on) { |
| 2778 defines += [ "_DVLOG_IS_ON" ] |
| 2779 } |
| 2776 } | 2780 } |
| 2777 | 2781 |
| 2778 java_cpp_template("base_native_libraries_gen") { | 2782 java_cpp_template("base_native_libraries_gen") { |
| 2779 sources = [ | 2783 sources = [ |
| 2780 "android/java/templates/NativeLibraries.template", | 2784 "android/java/templates/NativeLibraries.template", |
| 2781 ] | 2785 ] |
| 2782 package_path = "org/chromium/base/library_loader" | 2786 package_path = "org/chromium/base/library_loader" |
| 2783 } | 2787 } |
| 2784 | 2788 |
| 2785 android_library("base_java_unittest_support") { | 2789 android_library("base_java_unittest_support") { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2796 } | 2800 } |
| 2797 | 2801 |
| 2798 fuzzer_test("base_json_correctness_fuzzer") { | 2802 fuzzer_test("base_json_correctness_fuzzer") { |
| 2799 sources = [ | 2803 sources = [ |
| 2800 "json/correctness_fuzzer.cc", | 2804 "json/correctness_fuzzer.cc", |
| 2801 ] | 2805 ] |
| 2802 deps = [ | 2806 deps = [ |
| 2803 ":base", | 2807 ":base", |
| 2804 ] | 2808 ] |
| 2805 } | 2809 } |
| OLD | NEW |