OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 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. |
| 4 |
| 5 import("//build/config/android/rules.gni") |
| 6 import("//testing/test.gni") |
| 7 |
| 8 # GYP: //base/android/jni_generator/jni_generator.gyp:jni_generator_py_tests |
| 9 action("jni_generator_py_tests") { |
| 10 _stamp = "$target_gen_dir/jni_generator_py_tests.stamp" |
| 11 inputs = [ |
| 12 "jni_generator.py", |
| 13 "jni_generator_tests.py", |
| 14 "java/src/org/chromium/example/jni_generator/SampleForTests.java", |
| 15 "golden_sample_for_tests_jni.h", |
| 16 ] |
| 17 outputs = [ |
| 18 _stamp, |
| 19 ] |
| 20 script = "jni_generator_tests.py" |
| 21 args = [ |
| 22 "--stamp", |
| 23 rebase_path(_stamp, root_build_dir), |
| 24 ] |
| 25 } |
| 26 |
| 27 # GYP: //base/android/jni_generator/jni_generator.gyp:jni_sample_header |
| 28 generate_jni("jni_sample_header") { |
| 29 sources = [ |
| 30 "java/src/org/chromium/example/jni_generator/SampleForTests.java", |
| 31 ] |
| 32 jni_package = "example" |
| 33 } |
| 34 |
| 35 # GYP: //base/android/jni_generator/jni_generator.gyp:jni_sample_java |
| 36 android_library("jni_sample_java") { |
| 37 DEPRECATED_java_in_dir = "java/src" |
| 38 deps = [ |
| 39 "//base:base_java", |
| 40 ] |
| 41 } |
| 42 |
| 43 # This executable doesn't actually run, but at least serves to test that |
| 44 # generated bindings compile properly. |
| 45 # GYP: //base/android/jni_generator/jni_generator.gyp:jni_generator_tests |
| 46 executable("jni_generator_tests") { |
| 47 deps = [ |
| 48 ":jni_generator_py_tests", |
| 49 ":jni_sample_header", |
| 50 ":jni_sample_java", |
| 51 "//base", |
| 52 ] |
| 53 sources = [ |
| 54 "sample_for_tests.cc", |
| 55 "sample_for_tests.h", |
| 56 ] |
| 57 } |
OLD | NEW |