OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 { | 5 { |
6 'conditions': [ | 6 'conditions': [ |
7 ['OS=="android"', { | 7 ['OS=="android"', { |
8 'targets': [ | 8 'targets': [ |
9 { | 9 { |
10 'target_name': 'native_test_apk', | 10 'target_name': 'native_test_apk', |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 # JNI_OnLoad is implemented in a .a and we need to | 62 # JNI_OnLoad is implemented in a .a and we need to |
63 # re-export in the .so. | 63 # re-export in the .so. |
64 '-Wl,--exclude-libs=ALL', | 64 '-Wl,--exclude-libs=ALL', |
65 ], | 65 ], |
66 }, | 66 }, |
67 'dependencies': [ | 67 'dependencies': [ |
68 '../../base/base.gyp:base', | 68 '../../base/base.gyp:base', |
69 '../../base/base.gyp:test_support_base', | 69 '../../base/base.gyp:test_support_base', |
70 '../gtest.gyp:gtest', | 70 '../gtest.gyp:gtest', |
71 'native_test_jni_headers', | 71 'native_test_jni_headers', |
| 72 'native_test_util', |
72 ], | 73 ], |
73 }, | 74 }, |
74 { | 75 { |
75 'target_name': 'native_test_jni_headers', | 76 'target_name': 'native_test_jni_headers', |
76 'type': 'none', | 77 'type': 'none', |
77 'sources': [ | 78 'sources': [ |
78 'java/src/org/chromium/native_test/ChromeNativeTestActivity.java' | 79 'java/src/org/chromium/native_test/ChromeNativeTestActivity.java' |
79 ], | 80 ], |
80 'variables': { | 81 'variables': { |
81 'jni_gen_dir': 'testing', | 82 'jni_gen_dir': 'testing', |
82 }, | 83 }, |
83 'includes': [ '../../build/jni_generator.gypi' ], | 84 'includes': [ '../../build/jni_generator.gypi' ], |
84 # So generated jni headers can be found by targets that | 85 # So generated jni headers can be found by targets that |
85 # depend on this. | 86 # depend on this. |
86 'direct_dependent_settings': { | 87 'direct_dependent_settings': { |
87 'include_dirs': [ | 88 'include_dirs': [ |
88 '<(SHARED_INTERMEDIATE_DIR)', | 89 '<(SHARED_INTERMEDIATE_DIR)', |
89 ], | 90 ], |
90 }, | 91 }, |
91 }, | 92 }, |
| 93 { |
| 94 'target_name': 'native_test_util', |
| 95 'type': 'static_library', |
| 96 'sources': [ |
| 97 'native_test_util.cc', |
| 98 'native_test_util.h', |
| 99 ], |
| 100 'dependencies': [ |
| 101 '../../base/base.gyp:base', |
| 102 ], |
| 103 }, |
92 ], | 104 ], |
93 }] | 105 }] |
94 ], | 106 ], |
95 } | 107 } |
OLD | NEW |