Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 | 6 |
| 7 # GYP: //testing/android/native_test.gyp:native_test_support | 7 # GYP: //testing/android/native_test.gyp:native_test_support |
| 8 source_set("native_test_support") { | 8 source_set("native_test_support") { |
| 9 testonly = true | 9 testonly = true |
| 10 sources = [ | 10 sources = [ |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 28 sources = [ | 28 sources = [ |
| 29 "native_test_jni_onload.cc", | 29 "native_test_jni_onload.cc", |
| 30 ] | 30 ] |
| 31 libs = [ "log" ] | 31 libs = [ "log" ] |
| 32 deps = [ | 32 deps = [ |
| 33 ":native_test_support", | 33 ":native_test_support", |
| 34 "//base", | 34 "//base", |
| 35 ] | 35 ] |
| 36 } | 36 } |
| 37 | 37 |
| 38 jinja_template("native_test_activity") { | |
| 39 input = "java/src/org/chromium/native_test/NativeTestActivity.java.jinja2" | |
| 40 output = "${root_gen_dir}/native_test_activity/org/chromium/native_test/Native TestActivity.java" | |
|
agrieve
2016/05/19 00:42:50
Please use $target_gen_dir/$target_name rather tha
ynovikov
2016/05/20 02:38:10
Done.
| |
| 41 variables = [ "use_native_activity=false" ] | |
| 42 } | |
| 43 | |
| 44 jinja_template("native_test_native_activity") { | |
| 45 input = "java/src/org/chromium/native_test/NativeTestActivity.java.jinja2" | |
| 46 output = "${root_gen_dir}/native_test_native_activity/org/chromium/native_test /NativeTestActivity.java" | |
| 47 variables = [ "use_native_activity=true" ] | |
| 48 } | |
| 49 | |
| 38 # GYP: //testing/android/native_test.gyp:native_test_java | 50 # GYP: //testing/android/native_test.gyp:native_test_java |
| 39 android_library("native_test_java") { | 51 android_library("native_test_java") { |
| 40 testonly = true | 52 testonly = true |
| 41 deps = [ | 53 deps = [ |
| 42 "//base:base_java", | 54 "//base:base_java", |
| 43 "//testing/android/appurify_support:appurify_support_java", | 55 "//testing/android/appurify_support:appurify_support_java", |
| 44 "//testing/android/reporter:reporter_java", | 56 "//testing/android/reporter:reporter_java", |
| 45 ] | 57 ] |
| 58 java_deps = [ ":native_test_activity" ] | |
| 46 srcjar_deps = [ "//base:base_native_libraries_gen" ] | 59 srcjar_deps = [ "//base:base_native_libraries_gen" ] |
| 47 java_files = [ | 60 java_files = [ |
| 48 "java/src/org/chromium/native_test/NativeBrowserTestActivity.java", | 61 "java/src/org/chromium/native_test/NativeBrowserTestActivity.java", |
| 49 "java/src/org/chromium/native_test/NativeTestActivity.java", | 62 "${root_gen_dir}/native_test_activity/org/chromium/native_test/NativeTestAct ivity.java", |
| 50 "java/src/org/chromium/native_test/NativeTestInstrumentationTestRunner.java" , | 63 "java/src/org/chromium/native_test/NativeTestInstrumentationTestRunner.java" , |
| 51 "java/src/org/chromium/native_test/NativeUnitTestActivity.java", | 64 "java/src/org/chromium/native_test/NativeUnitTestActivity.java", |
| 52 ] | 65 ] |
| 66 jar_excluded_patterns = [ "*/NativeLibraries.class" ] | |
| 67 } | |
| 68 | |
| 69 android_library("native_test_native_activity_java") { | |
| 70 testonly = true | |
| 71 deps = [ | |
| 72 "//base:base_java", | |
| 73 "//testing/android/appurify_support:appurify_support_java", | |
| 74 "//testing/android/reporter:reporter_java", | |
| 75 ] | |
| 76 java_deps = [ ":native_test_native_activity" ] | |
| 77 srcjar_deps = [ "//base:base_native_libraries_gen" ] | |
| 78 java_files = [ | |
| 79 "java/src/org/chromium/native_test/NativeBrowserTestActivity.java", | |
| 80 "${root_gen_dir}/native_test_native_activity/org/chromium/native_test/Native TestActivity.java", | |
| 81 "java/src/org/chromium/native_test/NativeTestInstrumentationTestRunner.java" , | |
| 82 "java/src/org/chromium/native_test/NativeUnitTestActivity.java", | |
| 83 ] | |
| 53 jar_excluded_patterns = [ "*/NativeLibraries.class" ] | 84 jar_excluded_patterns = [ "*/NativeLibraries.class" ] |
| 54 } | 85 } |
| 55 | 86 |
| 56 # GYP: //testing/android/native_test.gyp:native_test_jni_headers | 87 # GYP: //testing/android/native_test.gyp:native_test_jni_headers |
| 57 generate_jni("native_test_jni_headers") { | 88 generate_jni("native_test_jni_headers") { |
| 89 deps = [ | |
| 90 ":native_test_activity", | |
| 91 ] | |
| 58 sources = [ | 92 sources = [ |
| 59 "java/src/org/chromium/native_test/NativeTestActivity.java", | 93 "${root_gen_dir}/native_test_activity/org/chromium/native_test/NativeTestAct ivity.java", |
| 60 ] | 94 ] |
| 61 jni_package = "testing" | 95 jni_package = "testing" |
| 62 } | 96 } |
| OLD | NEW |