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

Unified Diff: base/android/jni_generator/BUILD.gn

Issue 1557623002: Port //base/android/jni_generator/jni_generator.gyp to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « base/BUILD.gn ('k') | base/android/jni_generator/jni_generator.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/jni_generator/BUILD.gn
diff --git a/base/android/jni_generator/BUILD.gn b/base/android/jni_generator/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..a4b01d7ca4116fb750377ede39abfdac5b72fdb6
--- /dev/null
+++ b/base/android/jni_generator/BUILD.gn
@@ -0,0 +1,57 @@
+# 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("//testing/test.gni")
+
+# GYP: //base/android/jni_generator/jni_generator.gyp:jni_generator_py_tests
+action("jni_generator_py_tests") {
+ _stamp = "$target_gen_dir/jni_generator_py_tests.stamp"
+ inputs = [
+ "jni_generator.py",
+ "jni_generator_tests.py",
+ "java/src/org/chromium/example/jni_generator/SampleForTests.java",
+ "golden_sample_for_tests_jni.h",
+ ]
+ outputs = [
+ _stamp,
+ ]
+ script = "jni_generator_tests.py"
+ args = [
+ "--stamp",
+ rebase_path(_stamp, root_build_dir),
+ ]
+}
+
+# GYP: //base/android/jni_generator/jni_generator.gyp:jni_sample_header
+generate_jni("jni_sample_header") {
+ sources = [
+ "java/src/org/chromium/example/jni_generator/SampleForTests.java",
+ ]
+ jni_package = "example"
+}
+
+# GYP: //base/android/jni_generator/jni_generator.gyp:jni_sample_java
+android_library("jni_sample_java") {
+ DEPRECATED_java_in_dir = "java/src"
+ deps = [
+ "//base:base_java",
+ ]
+}
+
+# This executable doesn't actually run, but at least serves to test that
+# generated bindings compile properly.
+# GYP: //base/android/jni_generator/jni_generator.gyp:jni_generator_tests
+executable("jni_generator_tests") {
+ deps = [
+ ":jni_generator_py_tests",
+ ":jni_sample_header",
+ ":jni_sample_java",
+ "//base",
+ ]
+ sources = [
+ "sample_for_tests.cc",
+ "sample_for_tests.h",
+ ]
+}
« no previous file with comments | « base/BUILD.gn ('k') | base/android/jni_generator/jni_generator.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698