- add sources.
[platform/framework/web/crosswalk.git] / src / testing / android / native_test.gyp
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.
4
5 {
6   'conditions': [
7     ['OS=="android"', {
8       'targets': [
9         {
10           'target_name': 'native_test_native_code',
11           'message': 'building native pieces of native test package',
12           'type': 'static_library',
13           'sources': [
14             'native_test_launcher.cc',
15           ],
16           'direct_dependent_settings': {
17             'ldflags!': [
18               # JNI_OnLoad is implemented in a .a and we need to
19               # re-export in the .so.
20               '-Wl,--exclude-libs=ALL',
21             ],
22           },
23           'dependencies': [
24             '../../base/base.gyp:base',
25             '../../base/base.gyp:test_support_base',
26             '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
27             '../gtest.gyp:gtest',
28             'native_test_jni_headers',
29             'native_test_util',
30           ],
31         },
32         {
33           'target_name': 'native_test_jni_headers',
34           'type': 'none',
35           'sources': [
36             'java/src/org/chromium/native_test/ChromeNativeTestActivity.java'
37           ],
38           'variables': {
39             'jni_gen_package': 'testing',
40           },
41           'includes': [ '../../build/jni_generator.gypi' ],
42           # So generated jni headers can be found by targets that
43           # depend on this.
44           'direct_dependent_settings': {
45             'include_dirs': [
46               '<(SHARED_INTERMEDIATE_DIR)',
47             ],
48           },
49         },
50         {
51           'target_name': 'native_test_util',
52           'type': 'static_library',
53           'sources': [
54             'native_test_util.cc',
55             'native_test_util.h',
56           ],
57           'dependencies': [
58             '../../base/base.gyp:base',
59           ],
60         },
61       ],
62     }]
63   ],
64 }