OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 'android_support_v13_target%': |
| 9 '../../third_party/android_tools/android_tools.gyp:android_support_v13_javal
ib', |
8 }, | 10 }, |
9 'targets': [ | 11 'targets': [ |
10 { | 12 { |
11 # GN version: //device/nfc | 13 # GN version: //device/nfc |
12 'target_name': 'device_nfc', | 14 'target_name': 'device_nfc', |
13 'type': 'static_library', | 15 'type': 'static_library', |
14 'dependencies': [ | 16 'dependencies': [ |
15 '../../base/base.gyp:base', | 17 '../../base/base.gyp:base', |
16 '../../url/url.gyp:url_lib', | 18 '../../url/url.gyp:url_lib', |
17 ], | 19 ], |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', | 87 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', |
86 'device_nfc_mojo_bindings', | 88 'device_nfc_mojo_bindings', |
87 ], | 89 ], |
88 'defines': [ | 90 'defines': [ |
89 'DEVICE_NFC_IMPLEMENTATION', | 91 'DEVICE_NFC_IMPLEMENTATION', |
90 ], | 92 ], |
91 'sources': [ | 93 'sources': [ |
92 'nfc_impl_default.cc', | 94 'nfc_impl_default.cc', |
93 'nfc_impl.h', | 95 'nfc_impl.h', |
94 ], | 96 ], |
| 97 'conditions': [ |
| 98 ['OS == "android"', { |
| 99 'dependencies': [ |
| 100 'device_nfc_java', |
| 101 ], |
| 102 'sources!': [ |
| 103 'nfc_impl_default.cc', |
| 104 ], |
| 105 }], |
| 106 ], |
95 }, | 107 }, |
96 ], | 108 ], |
| 109 'conditions': [ |
| 110 ['OS == "android"', { |
| 111 'targets': [ |
| 112 { |
| 113 'target_name': 'device_nfc_java', |
| 114 'type': 'none', |
| 115 'dependencies': [ |
| 116 '<(android_support_v13_target)', |
| 117 '../../base/base.gyp:base', |
| 118 '../../mojo/mojo_public.gyp:mojo_bindings_java', |
| 119 'device_nfc_mojo_bindings', |
| 120 ], |
| 121 'variables': { |
| 122 'java_in_dir': '../../device/nfc/android/java', |
| 123 }, |
| 124 'includes': [ '../../build/java.gypi' ], |
| 125 }, |
| 126 ], |
| 127 }, { # OS != "android" |
| 128 }], |
| 129 ], |
97 } | 130 } |
OLD | NEW |