1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//mojo/public/mojo_application.gni")
6 import("//testing/test.gni")
9 import("//build/config/android/rules.gni")
11 java_library_path = "$target_out_dir/java_library.dex.jar"
13 mojo_android_application("resource_provider") {
14 input_so = "$root_out_dir/lib.stripped/libresource_provider_lib.so"
15 input_dex_jar = java_library_path
18 ":resource_provider_lib",
22 shared_library("resource_provider_lib") {
24 "android/android_hooks.cc",
32 "//components/resource_provider/public/interfaces",
33 "//mojo/environment:chromium",
34 "//third_party/mojo/src/mojo/public/c/system:for_shared_library",
39 generate_jni("jni_headers") {
41 "android/java/org/chromium/resource_provider/Main.java",
43 jni_package = "components/resource_provider"
46 android_library("java_classes") {
47 java_files = [ "android/java/org/chromium/resource_provider/Main.java" ]
54 android_standalone_library("java_library") {
55 dex_path = java_library_path
62 mojo_native_application("resource_provider") {
70 "//components/resource_provider/public/interfaces",
71 "//mojo/environment:chromium",
81 "resource_provider_app.cc",
82 "resource_provider_app.h",
83 "resource_provider_impl.cc",
84 "resource_provider_impl.h",
89 "//components/resource_provider/public/interfaces",
90 "//mojo/application/public/cpp",
91 "//mojo/common:common_base",
92 "//mojo/platform_handle",
97 test("resource_provider_unittests") {
99 "file_utils_unittest.cc",
105 "//base/test:test_config",
106 "//components/resource_provider/public/interfaces",
107 "//mojo/environment:chromium",
109 "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
114 mojo_native_application("apptests") {
115 output_name = "resource_provider_apptests"
119 "resource_provider_apptest.cc",
123 "//components/test/data/resource_provider/sample",
124 "//components/test/data/resource_provider/dir",
129 "//base/test:test_config",
130 "//components/resource_provider/public/cpp",
131 "//components/resource_provider/public/interfaces",
132 "//mojo/application/public/cpp:test_support",
133 "//mojo/platform_handle",
136 data_deps = [ ":resource_provider" ]