OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 # GYP: //base/android/jni_generator/jni_generator.gyp:jni_generator_py_tests | 8 # GYP: //base/android/jni_generator/jni_generator.gyp:jni_generator_py_tests |
9 action("jni_generator_py_tests") { | 9 action("jni_generator_py_tests") { |
10 _stamp = "$target_gen_dir/jni_generator_py_tests.stamp" | 10 _stamp = "$target_gen_dir/jni_generator_py_tests.stamp" |
(...skipping 16 matching lines...) Expand all Loading... |
27 # GYP: //base/android/jni_generator/jni_generator.gyp:jni_sample_header | 27 # GYP: //base/android/jni_generator/jni_generator.gyp:jni_sample_header |
28 generate_jni("jni_sample_header") { | 28 generate_jni("jni_sample_header") { |
29 sources = [ | 29 sources = [ |
30 "java/src/org/chromium/example/jni_generator/SampleForTests.java", | 30 "java/src/org/chromium/example/jni_generator/SampleForTests.java", |
31 ] | 31 ] |
32 jni_package = "example" | 32 jni_package = "example" |
33 } | 33 } |
34 | 34 |
35 # GYP: //base/android/jni_generator/jni_generator.gyp:jni_sample_java | 35 # GYP: //base/android/jni_generator/jni_generator.gyp:jni_sample_java |
36 android_library("jni_sample_java") { | 36 android_library("jni_sample_java") { |
37 DEPRECATED_java_in_dir = "java/src" | 37 java_files = |
| 38 [ "java/src/org/chromium/example/jni_generator/SampleForTests.java" ] |
38 deps = [ | 39 deps = [ |
39 "//base:base_java", | 40 "//base:base_java", |
40 ] | 41 ] |
41 } | 42 } |
42 | 43 |
43 # This executable doesn't actually run, but at least serves to test that | 44 # This executable doesn't actually run, but at least serves to test that |
44 # generated bindings compile properly. | 45 # generated bindings compile properly. |
45 # GYP: //base/android/jni_generator/jni_generator.gyp:jni_generator_tests | 46 # GYP: //base/android/jni_generator/jni_generator.gyp:jni_generator_tests |
46 executable("jni_generator_tests") { | 47 executable("jni_generator_tests") { |
47 deps = [ | 48 deps = [ |
48 ":jni_generator_py_tests", | 49 ":jni_generator_py_tests", |
49 ":jni_sample_header", | 50 ":jni_sample_header", |
50 ":jni_sample_java", | 51 ":jni_sample_java", |
51 "//base", | 52 "//base", |
52 ] | 53 ] |
53 sources = [ | 54 sources = [ |
54 "sample_for_tests.cc", | 55 "sample_for_tests.cc", |
55 "sample_for_tests.h", | 56 "sample_for_tests.h", |
56 ] | 57 ] |
57 } | 58 } |
OLD | NEW |