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

Side by Side Diff: tools/gn/secondary/third_party/icu/BUILD.gn

Issue 307993010: Add RLZ build file for GN build, fix Windows build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « rlz/BUILD.gn ('k') | tools/gn/secondary/third_party/nss/BUILD.gn » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 # Meta target that includes both icuuc and icui18n. Most targets want both. 5 # Meta target that includes both icuuc and icui18n. Most targets want both.
6 # You can depend on the individually if you need to. 6 # You can depend on the individually if you need to.
7 group("icu") { 7 group("icu") {
8 deps = [ 8 deps = [
9 ":icui18n", 9 ":icui18n",
10 ":icuuc", 10 ":icuuc",
11 ] 11 ]
12 } 12 }
13 13
14 # Shared config used by ICU and all dependents. 14 # Shared config used by ICU and all dependents.
15 config("icu_config") { 15 config("icu_config") {
16 defines = [ 16 defines = [
17 "U_USING_ICU_NAMESPACE=0", 17 "U_USING_ICU_NAMESPACE=0",
18 ] 18 ]
19
20 if (component_mode != "shared_library") {
21 defines += [ "U_STATIC_IMPLEMENTATION" ]
22 }
23
19 include_dirs = [ 24 include_dirs = [
20 "source/common", 25 "source/common",
21 "source/i18n", 26 "source/i18n",
22 ] 27 ]
23 } 28 }
24 29
25 # Config used only by ICU code. 30 # Config used only by ICU code.
26 config("icu_code") { 31 config("icu_code") {
27 if (component_mode != "shared_library") {
28 defines = [ "U_STATIC_IMPLEMENTATION" ]
29 }
30
31 if (is_win) { 32 if (is_win) {
32 # Disable some compiler warnings. 33 # Disable some compiler warnings.
33 cflags = [ 34 cflags = [
34 "/wd4005", # Macro redefinition. 35 "/wd4005", # Macro redefinition.
35 "/wd4068", # Unknown pragmas. 36 "/wd4068", # Unknown pragmas.
36 "/wd4267", # Conversion from size_t on 64-bits. 37 "/wd4267", # Conversion from size_t on 64-bits.
37 "/wd4996", # Deprecated functions. 38 "/wd4996", # Deprecated functions.
38 ] 39 ]
39 } else if (is_linux) { 40 } else if (is_linux) {
40 cflags = [ 41 cflags = [
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 # the icudt46_dat symbol. 435 # the icudt46_dat symbol.
435 "android/icudt46l_dat.S", 436 "android/icudt46l_dat.S",
436 "linux/icudt46l_dat.S", 437 "linux/icudt46l_dat.S",
437 "mac/icudt46l_dat.S", 438 "mac/icudt46l_dat.S",
438 ] 439 ]
439 defines = [ "U_HIDE_DATA_SYMBOL" ] 440 defines = [ "U_HIDE_DATA_SYMBOL" ]
440 441
441 # TODO(brettw) support use_system_icu and icu_use_data_file_flag. 442 # TODO(brettw) support use_system_icu and icu_use_data_file_flag.
442 } 443 }
443 } 444 }
OLDNEW
« no previous file with comments | « rlz/BUILD.gn ('k') | tools/gn/secondary/third_party/nss/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698