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") {
15 "$root_shlib_dir/${shlib_prefix}resource_provider_lib$shlib_extension"
16 input_dex_jar = java_library_path
19 ":resource_provider_lib",
20 "//third_party/icu:icudata",
23 resources = [ "$root_out_dir/icudtl.dat" ]
26 shared_library("resource_provider_lib") {
28 "android/android_hooks.cc",
36 "//build/config/sanitizers:deps",
37 "//components/resource_provider/public/interfaces",
38 "//mojo/environment:chromium",
39 "//third_party/mojo/src/mojo/public/c/system:for_shared_library",
44 generate_jni("jni_headers") {
46 "android/java/org/chromium/resource_provider/Main.java",
48 jni_package = "components/resource_provider"
51 android_library("java_classes") {
52 java_files = [ "android/java/org/chromium/resource_provider/Main.java" ]
59 android_standalone_library("java_library") {
60 dex_path = java_library_path
67 mojo_native_application("resource_provider") {
75 "//components/resource_provider/public/interfaces",
76 "//mojo/environment:chromium",
77 "//third_party/icu:icudata",
81 resources = [ "$root_out_dir/icudtl.dat" ]
89 "resource_provider_app.cc",
90 "resource_provider_app.h",
91 "resource_provider_impl.cc",
92 "resource_provider_impl.h",
97 "//components/resource_provider/public/interfaces",
98 "//mojo/application/public/cpp",
99 "//mojo/common:common_base",
100 "//mojo/platform_handle",
105 test("resource_provider_unittests") {
107 "file_utils_unittest.cc",
113 "//base/test:test_config",
114 "//components/resource_provider/public/interfaces",
115 "//mojo/environment:chromium",
117 "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
122 mojo_native_application("apptests") {
123 output_name = "resource_provider_apptests"
127 "resource_provider_apptest.cc",
131 "//components/test/data/resource_provider/sample",
132 "//components/test/data/resource_provider/dir",
137 "//base/test:test_config",
138 "//components/resource_provider/public/cpp",
139 "//components/resource_provider/public/interfaces",
140 "//mojo/application/public/cpp:test_support",
141 "//mojo/platform_handle",
144 data_deps = [ ":resource_provider" ]