Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: webapk/libs/runtime_library/BUILD.gn

Issue 1945303005: Change webapk packages and directory structure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webapk/libs/runtime_library/BUILD.gn
diff --git a/webapk/libs/runtime_library/BUILD.gn b/webapk/libs/runtime_library/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..c44b7ff63f5e52928c310600e80b6ddb21bed44b
--- /dev/null
+++ b/webapk/libs/runtime_library/BUILD.gn
@@ -0,0 +1,53 @@
+# Copyright 2016 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/config/android/rules.gni")
+import("//webapk/libs/runtime_library_version.gni")
+
+# runtime_library_version.gni must be incremented whenever the runtime library is
+# updated. The WebAPK re-extracts the runtime library from the Chrome APK when
+# |runtime_library_version| is incremented.
+
+# Whenever this constant is changed, WebApkUtils#getRuntimeDexName() must also
+# be changed.
+runtime_library_dex_asset_name = "web_apk$runtime_library_version.dex"
+
+android_aidl("webapk_service_aidl") {
+ import_include = "src/org/chromium/webapk/lib/runtime_library"
+ interface_file = "src/org/chromium/webapk/lib/runtime_library/common.aidl"
+ sources = [
+ "src/org/chromium/webapk/lib/runtime_library/IWebApkApi.aidl",
+ ]
+}
+
+android_library("runtime_library") {
+ dex_path = "$target_gen_dir/$runtime_library_dex_asset_name"
+ java_files =
+ [ "src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java" ]
+ chromium_code = false
+ srcjar_deps = [ ":webapk_service_aidl" ]
+}
+
+android_assets("runtime_library_assets") {
+ write_file("$target_gen_dir/web_apk_dex_version.txt", runtime_library_version)
+
+ sources = [
+ "$target_gen_dir/$runtime_library_dex_asset_name",
+ "$target_gen_dir/web_apk_dex_version.txt",
+ ]
+ disable_compression = true
+
+ deps = [
+ ":runtime_library",
+ ]
+}
+
+junit_binary("webapk_runtime_library_junit_tests") {
+ java_files = [ "junit/src/org/chromium/webapk/lib/runtime_library/WebApkServiceImplTest.java" ]
+ deps = [
+ ":runtime_library",
+ "//base:base_java",
+ "//base:base_junit_test_support",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698