ChildAccountService[Java] delegates everything to native side.
[chromium-blink-merge.git] / testing / android / native_test.gyp
blob5c30a508e0ad620ccf17fb07ac99125596b9c885
1 # Copyright (c) 2012 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.
6   'conditions': [
7     ['OS=="android"', {
8       'targets': [
9         {
10           # GN: //testing/android:native_test_jni_headers
11           'target_name': 'native_test_jni_headers',
12           'type': 'none',
13           'sources': [
14             'native_test/java/src/org/chromium/native_test/NativeTestActivity.java'
15           ],
16           'variables': {
17             'jni_gen_package': 'testing',
18           },
19           'includes': [ '../../build/jni_generator.gypi' ],
20         },
21         {
22           # GN: //testing/android:native_test_support
23           'target_name': 'native_test_support',
24           'message': 'building native pieces of native test package',
25           'type': 'static_library',
26           'sources': [
27             'native_test/native_test_launcher.cc',
28             'native_test/native_test_launcher.h',
29             'native_test/native_test_util.cc',
30             'native_test/native_test_util.h',
31           ],
32           'dependencies': [
33             '../../base/base.gyp:base',
34             '../../base/base.gyp:test_support_base',
35             '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
36             '../gtest.gyp:gtest',
37             'native_test_jni_headers',
38           ],
39         },
40         {
41           # GN: //testing/android/native_test:native_test_native_code
42           'target_name': 'native_test_native_code',
43           'message': 'building JNI onload for native test package',
44           'type': 'static_library',
45           'sources': [
46             'native_test/native_test_jni_onload.cc',
47           ],
48           'dependencies': [
49             'native_test_support',
50             '../../base/base.gyp:base',
51           ],
52         },
53         {
54           'target_name': 'native_test_java',
55           'type': 'none',
56           'dependencies': [
57             'appurify_support.gyp:appurify_support_java',
58             'on_device_instrumentation.gyp:reporter_java',
59             '../../base/base.gyp:base_native_libraries_gen',
60             '../../base/base.gyp:base_java',
61           ],
62           'variables': {
63             'chromium_code': '1',
64             'jar_excluded_classes': [ '*/NativeLibraries.class' ],
65             'java_in_dir': 'native_test/java',
66           },
67           'includes': [ '../../build/java.gypi' ],
68         },
69       ],
70     }]
71   ],