Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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_apk', | |
| 11 'message': 'building native test apk', | |
| 12 'type': 'none', | |
| 13 'dependencies': [ | |
| 14 'native_test_native_code', | |
| 15 ], | |
| 16 'actions': [ | |
| 17 { | |
| 18 'action_name': 'native_test_apk', | |
| 19 'inputs': [ | |
| 20 '<(DEPTH)/testing/android/native_test_apk.xml', | |
| 21 '<!@(find <(DEPTH)/testing/android -name "*.java")', | |
| 22 'native_test_launcher.cc' | |
| 23 ], | |
| 24 'outputs': [ | |
| 25 # Awkwardly, we build a Debug APK even when gyp is in | |
| 26 # Release mode. I don't think it matters (e.g. we're | |
| 27 # probably happy to not codesign) but naming should be | |
| 28 # fixed. The -debug name is an aspect of the android | |
| 29 # SDK antfiles (e.g. ${sdk.dir}/tools/ant/build.xml) | |
| 30 '<(PRODUCT_DIR)/ChromeNativeTests-debug.apk', | |
| 31 ], | |
| 32 'action': [ | |
| 33 'ant', | |
| 34 '-DPRODUCT_DIR=<(PRODUCT_DIR)', | |
| 35 '-buildfile', | |
| 36 '<(DEPTH)/testing/android/native_test_apk.xml', | |
| 37 ] | |
| 38 } | |
| 39 ], | |
| 40 }, | |
| 41 { | |
| 42 'target_name': 'native_test_native_code', | |
| 43 'message': 'building native pieces of native test package', | |
| 44 'type': 'static_library', | |
| 45 'sources': [ | |
| 46 'native_test_launcher.cc', | |
| 47 ], | |
| 48 'direct_dependent_settings': { | |
| 49 'ldflags!': [ | |
| 50 # We must export JNI_OnLoad(). | |
|
bulach
2012/04/12 15:51:42
which option is doing this? maybe add a note?
John Grabowski
2012/04/13 01:11:37
I don't understand. this option right here, the o
bulach
2012/04/13 09:42:51
maybe just rephrase:
# JNI_OnLoad is implemented i
John Grabowski
2012/04/13 22:51:02
Done.
| |
| 51 '-Wl,--exclude-libs=ALL', | |
| 52 ], | |
| 53 }, | |
| 54 'dependencies': [ | |
| 55 'testing_android_jni_headers', | |
| 56 '../../base/base.gyp:base', | |
| 57 '../../base/base.gyp:test_support_base', | |
| 58 '../gtest.gyp:gtest', | |
| 59 ], | |
| 60 }, | |
| 61 { | |
| 62 'target_name': 'testing_android_jni_headers', | |
| 63 'type': 'none', | |
| 64 'actions': [ | |
| 65 { | |
| 66 'action_name': 'generate_jni_headers', | |
| 67 'inputs': [ | |
| 68 '../../base/android/jni_generator/jni_generator.py', | |
| 69 'java/src/org/chromium/native_test/ChromeNativeTestActivity.java ' | |
| 70 ], | |
| 71 'outputs': [ | |
| 72 '<(SHARED_INTERMEDIATE_DIR)/testing/android/jni/' | |
| 73 'chrome_native_test_activity_jni.h', | |
| 74 ], | |
| 75 'action': [ | |
| 76 'python', | |
| 77 '../../base/android/jni_generator/jni_generator.py', | |
| 78 '-o', | |
| 79 '<@(_inputs)', | |
| 80 '<@(_outputs)', | |
| 81 ], | |
| 82 } | |
| 83 ], | |
| 84 # So generated jni headers can be found by targets that | |
| 85 # depend on this. | |
| 86 'direct_dependent_settings': { | |
| 87 'include_dirs': [ | |
| 88 '<(SHARED_INTERMEDIATE_DIR)', | |
| 89 ], | |
| 90 }, | |
| 91 }, | |
| 92 ], | |
| 93 }] | |
| 94 ], | |
| 95 } | |
| OLD | NEW |