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

Unified Diff: examples/device_name/BUILD.gn

Issue 1225393003: Refactor mojo_android_application (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | mojo/public/mojo_application.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/device_name/BUILD.gn
diff --git a/examples/device_name/BUILD.gn b/examples/device_name/BUILD.gn
index cbab56145d26e28628e7b46dfc1a0fc38cb15450..194e9fa6ae3a6c33b38adb2dd0765acd3eba2950 100644
--- a/examples/device_name/BUILD.gn
+++ b/examples/device_name/BUILD.gn
@@ -5,8 +5,10 @@
import("//build/config/android/rules.gni")
import("//mojo/public/mojo_application.gni")
-shared_library("libdevice_name") {
- output_name = "device_name"
+mojo_android_application("device_name") {
+ sources = [
+ "device_name.cc",
+ ]
deps = [
"//base",
@@ -16,34 +18,11 @@ shared_library("libdevice_name") {
"//mojo/public/cpp/system",
"//mojo/public/cpp/utility",
"//mojo/public/platform/native:system",
- ":jni_headers",
]
- sources = [
- "device_name.cc",
- ]
-}
+ java_sources = [ "java/src/org/chromium/mojo/examples/DeviceName.java" ]
-generate_jni("jni_headers") {
- sources = [
- "java/src/org/chromium/mojo/examples/DeviceName.java",
- ]
+ java_deps = [ "//base:base_java" ]
jni_package = "mojo"
}
-
-dex_output_path = "$target_out_dir/device_name_java.dex.jar"
-android_library("device_name_java") {
- java_files = [ "java/src/org/chromium/mojo/examples/DeviceName.java" ]
-
- deps = [
- "//base:base_java",
- ]
-
- dex_path = dex_output_path
-}
-
-mojo_android_application("device_name") {
- input_so = "$root_out_dir/lib.stripped/libdevice_name.so"
- input_dex_jar = dex_output_path
-}
« no previous file with comments | « no previous file | mojo/public/mojo_application.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698