| Index: services/url_response_disk_cache/BUILD.gn
|
| diff --git a/services/url_response_disk_cache/BUILD.gn b/services/url_response_disk_cache/BUILD.gn
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..92a4a3218004d884fcce297523b0f3c25829b7b5
|
| --- /dev/null
|
| +++ b/services/url_response_disk_cache/BUILD.gn
|
| @@ -0,0 +1,90 @@
|
| +# Copyright 2015 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.
|
| +
|
| +import("//build/module_args/mojo.gni")
|
| +import("//mojo/public/mojo_application.gni")
|
| +import("//mojo/public/tools/bindings/mojom.gni")
|
| +import("//mojo/tools/embed/rules.gni")
|
| +
|
| +source_set("url_response_disk_cache") {
|
| + sources = [
|
| + "url_response_disk_cache_app.cc",
|
| + "url_response_disk_cache_app.h",
|
| + "url_response_disk_cache_impl.cc",
|
| + "url_response_disk_cache_impl.h",
|
| + ]
|
| +
|
| + deps = [
|
| + ":bindings",
|
| + "//base",
|
| + "//mojo/application",
|
| + "//mojo/common",
|
| + "//mojo/environment:chromium",
|
| + "//mojo/public/cpp/application",
|
| + "//mojo/public/cpp/system",
|
| + "//mojo/services/url_response_disk_cache/public/interfaces",
|
| + "//third_party/zlib:zip",
|
| + "//url:url",
|
| + ]
|
| +}
|
| +
|
| +mojom("bindings") {
|
| + sources = [
|
| + "url_response_disk_cache_entry.mojom",
|
| + ]
|
| +}
|
| +
|
| +mojo_native_application("tests") {
|
| + output_name = "url_response_disk_cache_apptests"
|
| +
|
| + testonly = true
|
| +
|
| + sources = [
|
| + "url_response_disk_cache_apptest.cc",
|
| + ]
|
| +
|
| + deps = [
|
| + ":embed_test_data",
|
| + "//base",
|
| + "//mojo/application",
|
| + "//mojo/application:test_support",
|
| + "//mojo/common",
|
| + "//mojo/public/cpp/bindings",
|
| + "//mojo/public/cpp/system:system",
|
| + "//mojo/services/network/public/interfaces:interfaces",
|
| + "//mojo/services/url_response_disk_cache/public/interfaces",
|
| + ]
|
| +
|
| + data_deps = [ ":url_response_disk_cache" ]
|
| +}
|
| +
|
| +action("test_data") {
|
| + script = "//mojo/public/tools/gn/zip.py"
|
| + inputs = [
|
| + "test_data/file1",
|
| + "test_data/file2",
|
| + ]
|
| + output = "$target_out_dir/test_data.zip"
|
| + outputs = [
|
| + output,
|
| + ]
|
| + rebase_base_dir = rebase_path("test_data", root_build_dir)
|
| + rebase_inputs = rebase_path(inputs, root_build_dir)
|
| + rebase_output = rebase_path(output, root_build_dir)
|
| + args = [
|
| + "--base-dir=$rebase_base_dir",
|
| + "--inputs=$rebase_inputs",
|
| + "--output=$rebase_output",
|
| + ]
|
| +}
|
| +
|
| +embed_file("embed_test_data") {
|
| + source = "$target_out_dir/test_data.zip"
|
| + namespace = "mojo"
|
| + variable = "kTestData"
|
| +
|
| + deps = [
|
| + ":test_data",
|
| + ]
|
| +}
|
|
|