Home | History | Annotate | Download | only in android
      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           # GN: //testing/android:native_test_native_code
     11           'target_name': 'native_test_native_code',
     12           'message': 'building native pieces of native test package',
     13           'type': 'static_library',
     14           'sources': [
     15             'native_test_launcher.cc',
     16           ],
     17           'direct_dependent_settings': {
     18             'ldflags!': [
     19               # JNI_OnLoad is implemented in a .a and we need to
     20               # re-export in the .so.
     21               '-Wl,--exclude-libs=ALL',
     22             ],
     23           },
     24           'dependencies': [
     25             '../../base/base.gyp:base',
     26             '../../base/base.gyp:test_support_base',
     27             '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
     28             '../gtest.gyp:gtest',
     29             'native_test_jni_headers',
     30             'native_test_util',
     31           ],
     32         },
     33         {
     34           # GN: //testing/android:native_test_jni_headers
     35           'target_name': 'native_test_jni_headers',
     36           'type': 'none',
     37           'sources': [
     38             'java/src/org/chromium/native_test/ChromeNativeTestActivity.java'
     39           ],
     40           'variables': {
     41             'jni_gen_package': 'testing',
     42           },
     43           'includes': [ '../../build/jni_generator.gypi' ],
     44         },
     45         {
     46           # GN: //testing/android:native_test_util
     47           'target_name': 'native_test_util',
     48           'type': 'static_library',
     49           'sources': [
     50             'native_test_util.cc',
     51             'native_test_util.h',
     52           ],
     53           'dependencies': [
     54             '../../base/base.gyp:base',
     55           ],
     56         },
     57       ],
     58     }]
     59   ],
     60 }
     61