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

Side by Side Diff: base/BUILD.gn

Issue 1856333003: [Chromecast] Define SYSTEM_NATIVE_UTF8 for Chromecast builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 8 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
« 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) 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, perfer to duplicate it in both lists. This makes it 16 # for multiple conditions, perfer 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/chromecast_build.gni")
22 import("//build/config/compiler/compiler.gni") 23 import("//build/config/compiler/compiler.gni")
23 import("//build/config/nacl/config.gni") 24 import("//build/config/nacl/config.gni")
24 import("//build/config/sysroot.gni") 25 import("//build/config/sysroot.gni")
25 import("//build/config/ui.gni") 26 import("//build/config/ui.gni")
26 import("//build/nocompile.gni") 27 import("//build/nocompile.gni")
27 import("//testing/test.gni") 28 import("//testing/test.gni")
28 29
29 declare_args() { 30 declare_args() {
30 # Override this value to give a specific build date. 31 # Override this value to give a specific build date.
31 # See //base/build_time.cc and //build/write_build_date_header.py for more 32 # See //base/build_time.cc and //build/write_build_date_header.py for more
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 } 1021 }
1021 1022
1022 if (use_experimental_allocator_shim) { 1023 if (use_experimental_allocator_shim) {
1023 # The allocator shim is part of the base API. This is to allow clients of 1024 # The allocator shim is part of the base API. This is to allow clients of
1024 # base should to install hooks into the allocator path. 1025 # base should to install hooks into the allocator path.
1025 public_deps += [ "//base/allocator:unified_allocator_shim" ] 1026 public_deps += [ "//base/allocator:unified_allocator_shim" ]
1026 } 1027 }
1027 1028
1028 # Allow more direct string conversions on platforms with native utf8 1029 # Allow more direct string conversions on platforms with native utf8
1029 # strings 1030 # strings
1030 if (is_mac || is_ios || is_chromeos) { 1031 if (is_mac || is_ios || is_chromeos || is_chromecast) {
1031 defines += [ "SYSTEM_NATIVE_UTF8" ] 1032 defines += [ "SYSTEM_NATIVE_UTF8" ]
1032 } 1033 }
1033 1034
1034 # Android. 1035 # Android.
1035 if (is_android) { 1036 if (is_android) {
1036 sources -= [ 1037 sources -= [
1037 "debug/stack_trace_posix.cc", 1038 "debug/stack_trace_posix.cc",
1038 "power_monitor/power_monitor_device_source_posix.cc", 1039 "power_monitor/power_monitor_device_source_posix.cc",
1039 ] 1040 ]
1040 1041
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after
2331 2332
2332 # GYP: //base.gyp:base_java_unittest_support 2333 # GYP: //base.gyp:base_java_unittest_support
2333 android_library("base_java_unittest_support") { 2334 android_library("base_java_unittest_support") {
2334 deps = [ 2335 deps = [
2335 ":base_java", 2336 ":base_java",
2336 ] 2337 ]
2337 java_files = 2338 java_files =
2338 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] 2339 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ]
2339 } 2340 }
2340 } 2341 }
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