blob: 60087cc1195c726bfdd9276c4f027ea4b92acb01 [file] [log] [blame]
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
assert(is_fuchsia)
import("//build/config/fuchsia/fidl_library.gni")
import("//build/config/fuchsia/generate_runner_scripts.gni")
import("//build/config/fuchsia/symbol_archive.gni")
import("//build/util/process_version.gni")
import("//testing/test.gni")
import("//tools/grit/repack.gni")
source_set("core") {
sources = [
"http_service_impl.cc",
"http_service_impl.h",
"url_loader_impl.cc",
"url_loader_impl.h",
]
public_deps = [
"//base:base",
"//fuchsia/base",
"//net:net",
"//third_party/fuchsia-sdk/sdk:net_oldhttp",
"//third_party/fuchsia-sdk/sdk:sys",
"//third_party/fuchsia-sdk/sdk:sys_cpp",
]
visibility = [ ":*" ]
}
executable("http_exe") {
sources = [
"http_service_main.cc",
]
deps = [
":core",
]
visibility = [ ":*" ]
}
fuchsia_package("http_pkg") {
binary = ":http_exe"
package_name_override = "http"
manifest = "http.cmx"
}
fuchsia_package_runner("http_pkg_runner") {
package = ":http_pkg"
package_name_override = "http"
}
test("http_service_tests") {
sources = [
"http_service_unittest.cc",
]
deps = [
":core",
"//base/test:run_all_unittests",
"//net:test_support",
"//testing/gtest",
]
data = [
"testdata/",
]
}
if (is_official_build) {
symbol_archive("symbol_archive") {
deps = [
":http_pkg",
]
ids_txt = "$root_gen_dir/fuchsia/http/http/ids.txt"
archive_name = "$root_gen_dir/fuchsia/http/http/http.symbols.tar.bz2"
}
} # is_official_build