Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 } |
| OLD | NEW |