| 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 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 { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 include_dirs = [ | 77 include_dirs = [ |
| 78 "src/internal", | 78 "src/internal", |
| 79 "src/public", | 79 "src/public", |
| 80 ] | 80 ] |
| 81 | 81 |
| 82 configs -= [ "//build/config/compiler:chromium_code" ] | 82 configs -= [ "//build/config/compiler:chromium_code" ] |
| 83 configs += [ "//build/config/compiler:no_chromium_code" ] | 83 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 84 } | 84 } |
| 85 | 85 |
| 86 source_set("cld2_platform_impl") { | 86 source_set("cld2_platform_impl") { |
| 87 deps = [] | 87 public_deps = [] |
| 88 if (cld2_platform_support == "static") { | 88 if (cld2_platform_support == "static") { |
| 89 deps += [ ":cld2_static" ] | 89 public_deps += [ ":cld2_static" ] |
| 90 } else if (cld2_platform_support == "dynamic") { | 90 } else if (cld2_platform_support == "dynamic") { |
| 91 deps += [ ":cld2_dynamic" ] | 91 public_deps += [ ":cld2_dynamic" ] |
| 92 } | 92 } |
| 93 } | 93 } |
| 94 | 94 |
| 95 config("cld2_warnings") { | 95 config("cld2_warnings") { |
| 96 if (is_clang) { | 96 if (is_clang) { |
| 97 cflags = [ | 97 cflags = [ |
| 98 # cld_2 contains unused private fields. | 98 # cld_2 contains unused private fields. |
| 99 # https://code.google.com/p/cld2/issues/detail?id=37 | 99 # https://code.google.com/p/cld2/issues/detail?id=37 |
| 100 "-Wno-unused-private-field", | 100 "-Wno-unused-private-field", |
| 101 ] | 101 ] |
| 102 } | 102 } |
| 103 } | 103 } |
| 104 | 104 |
| 105 static_library("cld2_static") { | 105 static_library("cld2_static") { |
| 106 sources = gypi_values.cld2_core_impl_sources | 106 sources = gypi_values.cld2_core_impl_sources |
| 107 include_dirs = [ | 107 include_dirs = [ |
| 108 "src/internal", | 108 "src/internal", |
| 109 "src/public", | 109 "src/public", |
| 110 ] | 110 ] |
| 111 | 111 |
| 112 deps = [ | 112 public_deps = [ |
| 113 ":cld_2", | 113 ":cld_2", |
| 114 ":cld2_data", | 114 ":cld2_data", |
| 115 ] | 115 ] |
| 116 configs -= [ "//build/config/compiler:chromium_code" ] | 116 configs -= [ "//build/config/compiler:chromium_code" ] |
| 117 configs += [ | 117 configs += [ |
| 118 "//build/config/compiler:no_chromium_code", | 118 "//build/config/compiler:no_chromium_code", |
| 119 ":cld2_warnings", | 119 ":cld2_warnings", |
| 120 ] | 120 ] |
| 121 } | 121 } |
| 122 | 122 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 "//build/config/sanitizers:deps", | 160 "//build/config/sanitizers:deps", |
| 161 ] | 161 ] |
| 162 | 162 |
| 163 configs -= [ "//build/config/compiler:chromium_code" ] | 163 configs -= [ "//build/config/compiler:chromium_code" ] |
| 164 configs += [ | 164 configs += [ |
| 165 ":cld2_dynamic_mode_config", | 165 ":cld2_dynamic_mode_config", |
| 166 "//build/config/compiler:no_chromium_code", | 166 "//build/config/compiler:no_chromium_code", |
| 167 ] | 167 ] |
| 168 } | 168 } |
| 169 } | 169 } |
| OLD | NEW |