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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 'mojom_variant': 'wtf', | 69 'mojom_variant': 'wtf', |
68 'for_blink': 'true', | 70 'for_blink': 'true', |
69 }, | 71 }, |
70 'includes': [ | 72 'includes': [ |
71 '../../mojo/mojom_bindings_generator.gypi', | 73 '../../mojo/mojom_bindings_generator.gypi', |
72 ], | 74 ], |
73 'sources': [ | 75 'sources': [ |
74 'nfc.mojom', | 76 'nfc.mojom', |
75 ], | 77 ], |
76 }, | 78 }, |
77 { | 79 ], |
78 # GN version: //device/nfc_mojo | 80 'conditions': [ |
79 'target_name': 'device_nfc_mojo', | 81 ['OS == "android"', { |
80 'type': '<(component)', | 82 'targets': [ |
81 'dependencies': [ | 83 { |
82 '../../base/base.gyp:base', | 84 'target_name': 'device_nfc_java', |
83 '../../mojo/mojo_edk.gyp:mojo_system_impl', | 85 'type': 'none', |
84 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', | 86 'dependencies': [ |
85 'device_nfc_mojo_bindings', | 87 '<(android_support_v13_target)', |
| 88 '../../base/base.gyp:base', |
| 89 '../../mojo/mojo_public.gyp:mojo_bindings_java', |
| 90 'device_nfc_mojo_bindings', |
| 91 ], |
| 92 'variables': { |
| 93 'java_in_dir': '../../device/nfc/android/java', |
| 94 }, |
| 95 'includes': [ '../../build/java.gypi' ], |
| 96 }, |
86 ], | 97 ], |
87 'defines': [ | 98 }, { # OS != "android" |
88 'DEVICE_NFC_IMPLEMENTATION', | 99 }], |
89 ], | |
90 'sources': [ | |
91 'nfc_impl_default.cc', | |
92 'nfc_impl.h', | |
93 ], | |
94 }, | |
95 ], | 100 ], |
96 } | 101 } |
OLD | NEW |