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

Unified Diff: apk/BUILD.gn

Issue 949803002: Deconstructed APK prototyping Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « apk/AndroidManifest.xml ('k') | apk/hijack/org/chromium/deconstructed/ApplicationInstaller.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apk/BUILD.gn
diff --git a/apk/BUILD.gn b/apk/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..e6faf643ac700237ed958545529badcdb3ecf7e6
--- /dev/null
+++ b/apk/BUILD.gn
@@ -0,0 +1,82 @@
+import("//build/config/android/rules.gni")
+
+shared_library("simple") {
+ sources = [
+ "simple_jni.cc",
+ "simple.cc",
+ "simple.h",
+ ]
+ deps = [
+ "//base",
+ ":simple_jni",
+ ]
+}
+
+generate_jni("simple_jni") {
+ sources = [
+ "java/org/chromium/simple/MainActivity.java",
+ ]
+ jni_package = "simple"
+}
+
+android_resources("simple_resources") {
+ v14_verify_only = true
+ resource_dirs = [ "res" ]
+ custom_package = "org.chromium.simple"
+}
+
+android_library("simple_java") {
+ DEPRECATED_java_in_dir = "java"
+ deps = [
+ "//base:base_java",
+ ":simple_resources",
+ ]
+}
+
+android_apk("simple_apk") {
+ deps = [
+ ":simple",
+ ":simple_java",
+ ":simple_resources",
+ "//base:base_java",
+ ]
+ apk_name = "SimpleApk"
+ android_manifest = "AndroidManifest.xml"
+ native_libs = [ "libsimple.so" ]
+ asset_location = "assets"
+}
+
+deconstructed_manifest = "$root_build_dir/deconstructed/AndroidManifest.xml"
+deconstructed_assets = "$root_build_dir/assets"
+
+action("deconstruct_manifest") {
+ script = "//build/android/gyp/rewrite_deconstruct_manifest.py"
+ inputs = [
+ "AndroidManifest.xml"
+ ]
+ data_file = "$deconstructed_assets/data.txt"
+ outputs = [
+ deconstructed_manifest,
+ data_file,
+ ]
+ args = [
+ "--in-manifest", rebase_path("AndroidManifest.xml", root_build_dir),
+ "--out-manifest", rebase_path(deconstructed_manifest, root_build_dir),
+ "--out-data", rebase_path(data_file, root_build_dir),
+ ]
+}
+
+android_library("deconstructed_java") {
+ DEPRECATED_java_in_dir = "hijack"
+}
+
+android_apk("deconstructed_apk") {
+ deps = [
+ ":deconstructed_java",
+ ":deconstruct_manifest",
+ ":simple_resources",
+ ]
+ apk_name = "DeconstructedSimpleApk"
+ android_manifest = deconstructed_manifest
+ asset_location = deconstructed_assets
+}
« no previous file with comments | « apk/AndroidManifest.xml ('k') | apk/hijack/org/chromium/deconstructed/ApplicationInstaller.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698