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

Side by Side 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 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « base/BUILD.gn ('k') | base/android/jni_generator/jni_generator.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« 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