| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2016 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 'variables': { |
| 7 # This turns on e.g. the filename-based detection of which platforms to |
| 8 # include source files on (e.g. files ending in _mac.h or _mac.cc are only |
| 9 # compiled on MacOSX). |
| 10 'chromium_code': 1, |
| 11 }, |
| 12 'targets': [ |
| 13 { |
| 14 # GN version: //device/geolocation:device_geolocation |
| 15 'target_name': 'device_geolocation', |
| 16 'type': 'static_library', |
| 17 'dependencies': [ |
| 18 'device_geolocation_public_cpp', |
| 19 '<(DEPTH)/base/base.gyp:base', |
| 20 '<(DEPTH)/google_apis/google_apis.gyp:google_apis', |
| 21 '<(DEPTH)/mojo/mojo_edk.gyp:mojo_system_impl', |
| 22 '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings', |
| 23 # TODO(mcasas): move geolocation.mojom to public/interfaces. |
| 24 '<(DEPTH)/third_party/WebKit/public/blink.gyp:mojo_bindings', |
| 25 '<(DEPTH)/ui/gfx/gfx.gyp:gfx', |
| 26 ], |
| 27 'include_dirs': [ |
| 28 '../..', |
| 29 ], |
| 30 'sources': [ |
| 31 'android/geolocation_jni_registrar.cc', |
| 32 'android/geolocation_jni_registrar.h', |
| 33 'empty_wifi_data_provider.cc', |
| 34 'empty_wifi_data_provider.h', |
| 35 'geolocation_provider_impl.cc', |
| 36 'geolocation_provider_impl.h', |
| 37 'geolocation_service_context.cc', |
| 38 'geolocation_service_impl.cc', |
| 39 'geolocation_service_impl.h', |
| 40 'location_api_adapter_android.cc', |
| 41 'location_api_adapter_android.h', |
| 42 'location_arbitrator.h', |
| 43 'location_arbitrator_impl.cc', |
| 44 'location_arbitrator_impl.h', |
| 45 'location_provider_android.cc', |
| 46 'location_provider_android.h', |
| 47 'location_provider_base.cc', |
| 48 'location_provider_base.h', |
| 49 'network_location_provider.cc', |
| 50 'network_location_provider.h', |
| 51 'network_location_request.cc', |
| 52 'network_location_request.h', |
| 53 'wifi_data.cc', |
| 54 'wifi_data.h', |
| 55 'wifi_data_provider.cc', |
| 56 'wifi_data_provider.h', |
| 57 'wifi_data_provider_chromeos.cc', |
| 58 'wifi_data_provider_chromeos.h', |
| 59 'wifi_data_provider_common.cc', |
| 60 'wifi_data_provider_common.h', |
| 61 'wifi_data_provider_common_win.cc', |
| 62 'wifi_data_provider_common_win.h', |
| 63 'wifi_data_provider_corewlan_mac.mm', |
| 64 'wifi_data_provider_linux.cc', |
| 65 'wifi_data_provider_linux.h', |
| 66 'wifi_data_provider_mac.cc', |
| 67 'wifi_data_provider_mac.h', |
| 68 'wifi_data_provider_manager.cc', |
| 69 'wifi_data_provider_manager.h', |
| 70 'wifi_data_provider_win.cc', |
| 71 'wifi_data_provider_win.h', |
| 72 'wifi_polling_policy.h', |
| 73 ], |
| 74 |
| 75 'conditions': [ |
| 76 ['OS=="android"', { |
| 77 'sources!': [ |
| 78 'network_location_provider.cc', |
| 79 'network_location_provider.h', |
| 80 'network_location_request.cc', |
| 81 'network_location_request.h', |
| 82 ], |
| 83 'dependencies': [ |
| 84 # TODO: 'device_geolocation_java && jni_headers', |
| 85 ], |
| 86 }], |
| 87 |
| 88 # Dealing with *wifi_data_provider_*.cc is also a bit complicated given |
| 89 # android, chromeos, linux and use_dbus. |
| 90 ['chromeos==1', { |
| 91 'dependencies': [ |
| 92 '<(DEPTH)/chromeos/chromeos.gyp:chromeos', |
| 93 ], |
| 94 'sources!': [ |
| 95 'wifi_data_provider_linux.cc' |
| 96 ], |
| 97 }], |
| 98 |
| 99 ['OS=="linux"', { |
| 100 'conditions': [ |
| 101 ["use_dbus==1", { |
| 102 'dependencies': [ |
| 103 '<(DEPTH)/dbus/dbus.gyp:dbus', |
| 104 ], |
| 105 'sources!': [ |
| 106 'empty_wifi_data_provider.cc', |
| 107 ], |
| 108 }, { # use_dbus==0 |
| 109 'geolocation_unittest_sources!': [ |
| 110 'wifi_data_provider_linux.cc', |
| 111 ], |
| 112 }] |
| 113 ], |
| 114 }], |
| 115 |
| 116 ['OS=="mac" or OS=="win"', { |
| 117 'sources!': [ |
| 118 'empty_wifi_data_provider.cc', |
| 119 'empty_wifi_data_provider.h', |
| 120 ], |
| 121 }], |
| 122 |
| 123 ], |
| 124 }, |
| 125 { |
| 126 # GN version: //device/geolocation/public/cpp |
| 127 'target_name': 'device_geolocation_public_cpp', |
| 128 'type': 'static_library', |
| 129 'sources': [ |
| 130 'public/cpp/access_token_store.h', |
| 131 'public/cpp/geolocation_delegate.cc', |
| 132 'public/cpp/geolocation_delegate.h', |
| 133 'public/cpp/geolocation_export.h', |
| 134 'public/cpp/geolocation_provider.h', |
| 135 'public/cpp/geolocation_service_context.h', |
| 136 'public/cpp/geoposition.cc', |
| 137 'public/cpp/geoposition.h', |
| 138 'public/cpp/location_provider.h', |
| 139 ], |
| 140 'include_dirs': [ |
| 141 '../..', |
| 142 ], |
| 143 }, |
| 144 ], |
| 145 } |
| OLD | NEW |