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

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

Issue 718943002: Fix the CLD2 GN build on the Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 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 # May need to make this a build arg, keep the name for now to match gyp 7 # May need to make this a build arg, keep the name for now to match gyp
8 cld2_table_size = 2 8 cld2_table_size = 2
9 9
10 core_files = [ 10 core_files = [
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 configs += [ "//build/config/compiler:no_chromium_code" ] 85 configs += [ "//build/config/compiler:no_chromium_code" ]
86 86
87 if (is_win) { 87 if (is_win) {
88 cflags = [ "/wd4267" ] # size_t -> int conversion. 88 cflags = [ "/wd4267" ] # size_t -> int conversion.
89 } 89 }
90 } 90 }
91 91
92 # As in the corresponding gyp file, this just builds the core interfaces for 92 # As in the corresponding gyp file, this just builds the core interfaces for
93 # CLD2. You must still declare a dependency on a specific data set, either 93 # CLD2. You must still declare a dependency on a specific data set, either
94 # cld2_dynamic or cld2_static. 94 # cld2_dynamic or cld2_static.
95 static_library("cld_2") { 95 source_set("cld_2") {
Dirk Pranke 2014/11/12 02:46:04 Both this target and the one below have no actual
96 sources = core_files 96 sources = core_files
97 include_dirs = [ 97 include_dirs = [
98 "src/internal", 98 "src/internal",
99 "src/public", 99 "src/public",
100 ] 100 ]
101 101
102 configs -= [ "//build/config/compiler:chromium_code" ] 102 configs -= [ "//build/config/compiler:chromium_code" ]
103 configs += [ "//build/config/compiler:no_chromium_code" ] 103 configs += [ "//build/config/compiler:no_chromium_code" ]
104 104
105 if (is_win) { 105 if (is_win) {
106 cflags = [ "/wd4267" ] # size_t -> int conversion. 106 cflags = [ "/wd4267" ] # size_t -> int conversion.
107 } 107 }
108 } 108 }
109 109
110 110
111 static_library("cld2_platform_impl") { 111 source_set("cld2_platform_impl") {
112 # TODO: Make this something that can be overridden 112 # TODO: Make this something that can be overridden
113 deps = [ ":cld2_static" ] 113 deps = [ ":cld2_static" ]
114 } 114 }
115 115
116 static_library("cld2_static") { 116 static_library("cld2_static") {
117 sources = core_files + core_impl_files 117 sources = core_files + core_impl_files
118 include_dirs = [ 118 include_dirs = [
119 "src/internal", 119 "src/internal",
120 "src/public", 120 "src/public",
121 ] 121 ]
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 deps = [ ":cld2_data", ":cld2_dynamic" ] 165 deps = [ ":cld2_data", ":cld2_dynamic" ]
166 166
167 configs -= [ "//build/config/compiler:chromium_code" ] 167 configs -= [ "//build/config/compiler:chromium_code" ]
168 configs += [ "//build/config/compiler:no_chromium_code", ":cld2_dynamic_mode _config" ] 168 configs += [ "//build/config/compiler:no_chromium_code", ":cld2_dynamic_mode _config" ]
169 169
170 if (is_win) { 170 if (is_win) {
171 cflags = [ "/wd4267" ] # size_t -> int conversion. 171 cflags = [ "/wd4267" ] # size_t -> int conversion.
172 } 172 }
173 } 173 }
174 } 174 }
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