| # Copyright 2019 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/host.gni") |
| import("//build/icu/third_party_icu_headers.gni") |
| |
| if (is_host) { |
| third_party_icu_headers("icu_headers") { |
| headers = [ |
| "third_party/icu/source/common/unicode/putil.h", |
| "third_party/icu/source/common/unicode/strenum.h", |
| "third_party/icu/source/common/unicode/udata.h", |
| "third_party/icu/source/common/unicode/utypes.h", |
| "third_party/icu/source/i18n/unicode/timezone.h", |
| ] |
| } |
| |
| executable("icu_data_extractor") { |
| output_name = "icu_data_extractor" |
| sources = [ |
| "command.h", |
| "common.cc", |
| "common.h", |
| "main.cc", |
| "tz_ids.cc", |
| "tz_ids.h", |
| "tz_version.cc", |
| "tz_version.h", |
| ] |
| deps = [ |
| ":icu_headers", |
| "//src/lib/files", |
| "//src/lib/fxl", |
| "//src/lib/icu:lib", |
| "//zircon/system/ulib/fbl", |
| ] |
| configs += [ |
| # TODO(fxbug.dev/58162): delete the below and fix compiler warnings |
| "//build/config:Wno-conversion", |
| ] |
| } |
| } |
| |
| install_host_tools("host") { |
| testonly = true |
| deps = [ ":icu_data_extractor" ] |
| outputs = [ "icu_data_extractor" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ "tests" ] |
| } |