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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 'sources': [ | 52 'sources': [ |
53 'native_test_launcher.cc', | 53 'native_test_launcher.cc', |
54 ], | 54 ], |
55 'direct_dependent_settings': { | 55 'direct_dependent_settings': { |
56 'ldflags!': [ | 56 'ldflags!': [ |
57 # JNI_OnLoad is implemented in a .a and we need to | 57 # JNI_OnLoad is implemented in a .a and we need to |
58 # re-export in the .so. | 58 # re-export in the .so. |
59 '-Wl,--exclude-libs=ALL', | 59 '-Wl,--exclude-libs=ALL', |
60 ], | 60 ], |
61 }, | 61 }, |
62 'dependencies': [ | 62 'dependencies': [ |
63 '../../base/base.gyp:base', | 63 '../../base/base.gyp:base', |
64 '../../base/base.gyp:test_support_base', | 64 '../../base/base.gyp:test_support_base', |
65 '../gtest.gyp:gtest', | 65 '../gtest.gyp:gtest', |
66 'native_test_jni_headers', | 66 'native_test_jni_headers', |
67 ], | 67 ], |
68 }, | 68 }, |
69 { | 69 { |
70 'target_name': 'native_test_jni_headers', | 70 'target_name': 'native_test_jni_headers', |
71 'type': 'none', | 71 'type': 'none', |
72 'actions': [ | 72 'sources': [ |
73 { | 73 'java/src/org/chromium/native_test/ChromeNativeTestActivity.java' |
74 'action_name': 'generate_jni_headers', | |
75 'inputs': [ | |
76 '../../base/android/jni_generator/jni_generator.py', | |
77 'java/src/org/chromium/native_test/ChromeNativeTestActivity.java
' | |
78 ], | |
79 'outputs': [ | |
80 '<(SHARED_INTERMEDIATE_DIR)/testing/android/jni/' | |
81 'chrome_native_test_activity_jni.h', | |
82 ], | |
83 'action': [ | |
84 'python', | |
85 '../../base/android/jni_generator/jni_generator.py', | |
86 '-o', | |
87 '<@(_inputs)', | |
88 '<@(_outputs)', | |
89 ], | |
90 } | |
91 ], | 74 ], |
| 75 'variables': { |
| 76 'jni_gen_dir': 'testing', |
| 77 }, |
| 78 'includes': [ '../../build/jni_generator.gypi' ], |
92 # So generated jni headers can be found by targets that | 79 # So generated jni headers can be found by targets that |
93 # depend on this. | 80 # depend on this. |
94 'direct_dependent_settings': { | 81 'direct_dependent_settings': { |
95 'include_dirs': [ | 82 'include_dirs': [ |
96 '<(SHARED_INTERMEDIATE_DIR)', | 83 '<(SHARED_INTERMEDIATE_DIR)', |
97 ], | 84 ], |
98 }, | 85 }, |
99 }, | 86 }, |
100 ], | 87 ], |
101 }] | 88 }] |
102 ], | 89 ], |
103 } | 90 } |
OLD | NEW |