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

Side by Side Diff: third_party/cld_2/BUILD.gn

Issue 2152033002: Convert third_party source sets to static libraries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ios Created 4 years, 5 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 | « third_party/ced/BUILD.gn ('k') | third_party/dom_distiller_js/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 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("//build/config/features.gni") 5 import("//build/config/features.gni")
6 6
7 declare_args() { 7 declare_args() {
8 if (is_android || is_ios) { 8 if (is_android || is_ios) {
9 cld2_table_size = 0 # Small, accurate tables 9 cld2_table_size = 0 # Small, accurate tables
10 } else { 10 } else {
11 cld2_table_size = 2 # Larger, more accurate tables 11 cld2_table_size = 2 # Larger, more accurate tables
12 } 12 }
13 } 13 }
14 14
15 gypi_values = exec_script("//build/gypi_to_gn.py", 15 gypi_values = exec_script("//build/gypi_to_gn.py",
16 [ rebase_path("cld_2.gyp") ], 16 [ rebase_path("cld_2.gyp") ],
17 "scope", 17 "scope",
18 [ "cld_2.gyp" ]) 18 [ "cld_2.gyp" ])
19 19
20 config("cld2_data_warnings") { 20 config("cld2_data_warnings") {
21 visibility = [ ":*" ] 21 visibility = [ ":*" ]
22 if (is_clang) { 22 if (is_clang) {
23 # The generated files don't have braces around subobject initializers. 23 # The generated files don't have braces around subobject initializers.
24 cflags = [ "-Wno-missing-braces" ] 24 cflags = [ "-Wno-missing-braces" ]
25 } 25 }
26 } 26 }
27 27
28 source_set("cld2_data") { 28 static_library("cld2_data") {
29 sources = gypi_values.cld2_data_sources 29 sources = gypi_values.cld2_data_sources
30 if (cld2_table_size == 0) { 30 if (cld2_table_size == 0) {
31 sources += gypi_values.cld2_data_smallest_sources 31 sources += gypi_values.cld2_data_smallest_sources
32 } else if (cld2_table_size == 2) { 32 } else if (cld2_table_size == 2) {
33 sources += gypi_values.cld2_data_largest_sources 33 sources += gypi_values.cld2_data_largest_sources
34 } 34 }
35 35
36 include_dirs = [ 36 include_dirs = [
37 "src/internal", 37 "src/internal",
38 "src/public", 38 "src/public",
(...skipping 30 matching lines...) Expand all
69 69
70 public_deps = [ 70 public_deps = [
71 ":cld2_data", 71 ":cld2_data",
72 ] 72 ]
73 configs -= [ "//build/config/compiler:chromium_code" ] 73 configs -= [ "//build/config/compiler:chromium_code" ]
74 configs += [ 74 configs += [
75 "//build/config/compiler:no_chromium_code", 75 "//build/config/compiler:no_chromium_code",
76 ":cld2_warnings", 76 ":cld2_warnings",
77 ] 77 ]
78 } 78 }
OLDNEW
« no previous file with comments | « third_party/ced/BUILD.gn ('k') | third_party/dom_distiller_js/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698