summaryrefslogtreecommitdiffstats
path: root/testing/android/native_test.gyp
blob: fcfd7d7028dff816af7d4d1da05d44d6ec2a6af2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'conditions': [
    ['OS=="android"', {
      'targets': [
        {
          # GN: //testing/android:native_test_jni_headers
          'target_name': 'native_test_jni_headers',
          'type': 'none',
          'sources': [
            'native_test/java/src/org/chromium/native_test/NativeTestActivity.java'
          ],
          'variables': {
            'jni_gen_package': 'testing',
          },
          'includes': [ '../../build/jni_generator.gypi' ],
        },
        {
          # GN: //testing/android:native_test_support
          'target_name': 'native_test_support',
          'message': 'building native pieces of native test package',
          'type': 'static_library',
          'sources': [
            'native_test/native_test_launcher.cc',
            'native_test/native_test_launcher.h',
            'native_test/native_test_util.cc',
            'native_test/native_test_util.h',
          ],
          'dependencies': [
            '../../base/base.gyp:base',
            '../../base/base.gyp:test_support_base',
            '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
            '../gtest.gyp:gtest',
            'native_test_jni_headers',
          ],
        },
        {
          # GN: //testing/android:native_test_native_code
          'target_name': 'native_test_native_code',
          'message': 'building JNI onload for native test package',
          'type': 'static_library',
          'sources': [
            'native_test/native_test_jni_onload.cc',
          ],
          'dependencies': [
            'native_test_support',
            '../../base/base.gyp:base',
          ],
        },
        {
          'target_name': 'native_test_java',
          'type': 'none',
          'dependencies': [
            'appurify_support.gyp:appurify_support_java',
            '../../base/base.gyp:base_native_libraries_gen',
            '../../base/base.gyp:base_java',
          ],
          'variables': {
            'chromium_code': '1',
            'jar_excluded_classes': [ '*/NativeLibraries.class' ],
            'java_in_dir': 'native_test/java',
          },
          'includes': [ '../../build/java.gypi' ],
        },
      ],
    }]
  ],
}