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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', | 86 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', |
85 'device_nfc_mojo_bindings', | 87 'device_nfc_mojo_bindings', |
86 ], | 88 ], |
87 'defines': [ | 89 'defines': [ |
88 'DEVICE_NFC_IMPLEMENTATION', | 90 'DEVICE_NFC_IMPLEMENTATION', |
89 ], | 91 ], |
90 'sources': [ | 92 'sources': [ |
91 'nfc_impl_default.cc', | 93 'nfc_impl_default.cc', |
92 'nfc_impl.h', | 94 'nfc_impl.h', |
93 ], | 95 ], |
| 96 'conditions': [ |
| 97 ['OS == "android"', { |
| 98 'dependencies': [ |
| 99 'device_nfc_java', |
| 100 ], |
| 101 'sources!': [ |
| 102 'nfc_impl_default.cc', |
| 103 ], |
| 104 }], |
| 105 ], |
94 }, | 106 }, |
95 ], | 107 ], |
| 108 'conditions': [ |
| 109 ['OS == "android"', { |
| 110 'targets': [ |
| 111 { |
| 112 'target_name': 'device_nfc_java', |
| 113 'type': 'none', |
| 114 'dependencies': [ |
| 115 '<(android_support_v13_target)', |
| 116 '../../base/base.gyp:base', |
| 117 '../../mojo/mojo_public.gyp:mojo_bindings_java', |
| 118 'device_nfc_mojo_bindings', |
| 119 ], |
| 120 'variables': { |
| 121 'java_in_dir': '../../device/nfc/android/java', |
| 122 }, |
| 123 'includes': [ '../../build/java.gypi' ], |
| 124 }, |
| 125 ], |
| 126 }, { # OS != "android" |
| 127 }], |
| 128 ], |
96 } | 129 } |
OLD | NEW |