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 'jni_generator_ptr_type': 'long', 41 }, 42 'includes': [ '../../build/jni_generator.gypi' ], 43 # So generated jni headers can be found by targets that 44 # depend on this. 45 'direct_dependent_settings': { 46 'include_dirs': [ 47 '<(SHARED_INTERMEDIATE_DIR)', 48 ], 49 }, 50 }, 51 { 52 'target_name': 'native_test_util', 53 'type': 'static_library', 54 'sources': [ 55 'native_test_util.cc', 56 'native_test_util.h', 57 ], 58 'dependencies': [ 59 '../../base/base.gyp:base', 60 ], 61 }, 62 ], 63 }] 64 ], 65} 66