Chromium Code Reviews

Side by Side Diff: BUILD.gn

Issue 1273843002: Rename component build variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« 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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import("//third_party/icu/config.gni") 5 import("//third_party/icu/config.gni")
6 6
7 # Meta target that includes both icuuc and icui18n. Most targets want both. 7 # Meta target that includes both icuuc and icui18n. Most targets want both.
8 # You can depend on the individually if you need to. 8 # You can depend on the individually if you need to.
9 group("icu") { 9 group("icu") {
10 deps = [ 10 deps = [
11 ":icui18n", 11 ":icui18n",
12 ":icuuc", 12 ":icuuc",
13 ] 13 ]
14 } 14 }
15 15
16 # Shared config used by ICU and all dependents. 16 # Shared config used by ICU and all dependents.
17 config("icu_config") { 17 config("icu_config") {
18 defines = [ 18 defines = [
19 # Tell ICU to not insert |using namespace icu;| into its headers, 19 # Tell ICU to not insert |using namespace icu;| into its headers,
20 # so that chrome's source explicitly has to use |icu::|. 20 # so that chrome's source explicitly has to use |icu::|.
21 "U_USING_ICU_NAMESPACE=0", 21 "U_USING_ICU_NAMESPACE=0",
22 22
23 # We don't use ICU plugins and dyload is only necessary for them. 23 # We don't use ICU plugins and dyload is only necessary for them.
24 # NaCl-related builds also fail looking for dlfcn.h when it's enabled. 24 # NaCl-related builds also fail looking for dlfcn.h when it's enabled.
25 "U_ENABLE_DYLOAD=0", 25 "U_ENABLE_DYLOAD=0",
26 ] 26 ]
27 27
28 if (component_mode != "shared_library") { 28 if (!is_component_build) {
29 defines += [ "U_STATIC_IMPLEMENTATION" ] 29 defines += [ "U_STATIC_IMPLEMENTATION" ]
30 } 30 }
31 31
32 include_dirs = [ 32 include_dirs = [
33 "source/common", 33 "source/common",
34 "source/i18n", 34 "source/i18n",
35 ] 35 ]
36 } 36 }
37 37
38 # Config used only by ICU code. 38 # Config used only by ICU code.
(...skipping 531 matching lines...)
570 sources = [ 570 sources = [
571 "android/icudtl_dat.S", 571 "android/icudtl_dat.S",
572 ] 572 ]
573 } else { 573 } else {
574 assert(false, "No icu data for this platform") 574 assert(false, "No icu data for this platform")
575 } 575 }
576 defines = [ "U_HIDE_DATA_SYMBOL" ] 576 defines = [ "U_HIDE_DATA_SYMBOL" ]
577 } 577 }
578 } 578 }
579 } 579 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine