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 }, 43 { 44 'target_name': 'native_test_util', 45 'type': 'static_library', 46 'sources': [ 47 'native_test_util.cc', 48 'native_test_util.h', 49 ], 50 'dependencies': [ 51 '../../base/base.gyp:base', 52 ], 53 }, 54 ], 55 }] 56 ], 57 } 58