| 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': '<(component)', | |
| 17 'dependencies': [ | |
| 18 '<(DEPTH)/base/base.gyp:base', | |
| 19 '<(DEPTH)/google_apis/google_apis.gyp:google_apis', | |
| 20 '<(DEPTH)/mojo/mojo_edk.gyp:mojo_system_impl', | |
| 21 '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings', | |
| 22 # TODO(mcasas): move geolocation.mojom to public/interfaces. | |
| 23 '<(DEPTH)/third_party/WebKit/public/blink.gyp:mojo_bindings', | |
| 24 '<(DEPTH)/ui/gfx/gfx.gyp:gfx', | |
| 25 ], | |
| 26 'defines': [ | |
| 27 'DEVICE_GEOLOCATION_IMPLEMENTATION', | |
| 28 ], | |
| 29 'include_dirs': [ | |
| 30 '../..', | |
| 31 ], | |
| 32 'sources': [ | |
| 33 'access_token_store.h', | |
| 34 'android/geolocation_jni_registrar.cc', | |
| 35 'android/geolocation_jni_registrar.h', | |
| 36 'empty_wifi_data_provider.cc', | |
| 37 'empty_wifi_data_provider.h', | |
| 38 'geolocation_delegate.cc', | |
| 39 'geolocation_delegate.h', | |
| 40 'geolocation_export.h', | |
| 41 'geolocation_provider.h', | |
| 42 'geolocation_provider_impl.cc', | |
| 43 'geolocation_provider_impl.h', | |
| 44 'geolocation_service_context.h', | |
| 45 'geolocation_service_context.cc', | |
| 46 'geolocation_service_impl.cc', | |
| 47 'geolocation_service_impl.h', | |
| 48 'geoposition.cc', | |
| 49 'geoposition.h', | |
| 50 'location_api_adapter_android.cc', | |
| 51 'location_api_adapter_android.h', | |
| 52 'location_arbitrator.h', | |
| 53 'location_arbitrator_impl.cc', | |
| 54 'location_arbitrator_impl.h', | |
| 55 'location_provider.h', | |
| 56 'location_provider_android.cc', | |
| 57 'location_provider_android.h', | |
| 58 'location_provider_base.cc', | |
| 59 'location_provider_base.h', | |
| 60 'network_location_provider.cc', | |
| 61 'network_location_provider.h', | |
| 62 'network_location_request.cc', | |
| 63 'network_location_request.h', | |
| 64 'wifi_data.cc', | |
| 65 'wifi_data.h', | |
| 66 'wifi_data_provider.cc', | |
| 67 'wifi_data_provider.h', | |
| 68 'wifi_data_provider_chromeos.cc', | |
| 69 'wifi_data_provider_chromeos.h', | |
| 70 'wifi_data_provider_common.cc', | |
| 71 'wifi_data_provider_common.h', | |
| 72 'wifi_data_provider_common_win.cc', | |
| 73 'wifi_data_provider_common_win.h', | |
| 74 'wifi_data_provider_corewlan_mac.mm', | |
| 75 'wifi_data_provider_linux.cc', | |
| 76 'wifi_data_provider_linux.h', | |
| 77 'wifi_data_provider_mac.cc', | |
| 78 'wifi_data_provider_mac.h', | |
| 79 'wifi_data_provider_manager.cc', | |
| 80 'wifi_data_provider_manager.h', | |
| 81 'wifi_data_provider_win.cc', | |
| 82 'wifi_data_provider_win.h', | |
| 83 'wifi_polling_policy.h', | |
| 84 ], | |
| 85 | |
| 86 'conditions': [ | |
| 87 ['OS=="android"', { | |
| 88 'sources!': [ | |
| 89 'network_location_provider.cc', | |
| 90 'network_location_provider.h', | |
| 91 'network_location_request.cc', | |
| 92 'network_location_request.h', | |
| 93 ], | |
| 94 }], | |
| 95 | |
| 96 # Dealing with *wifi_data_provider_*.cc is also a bit complicated given | |
| 97 # android, chromeos, linux and use_dbus. | |
| 98 ['chromeos==1', { | |
| 99 'dependencies': [ | |
| 100 '<(DEPTH)/chromeos/chromeos.gyp:chromeos', | |
| 101 ], | |
| 102 'sources!': [ | |
| 103 'wifi_data_provider_linux.cc' | |
| 104 ], | |
| 105 }], | |
| 106 | |
| 107 ['OS=="linux"', { | |
| 108 'conditions': [ | |
| 109 ["use_dbus==1", { | |
| 110 'dependencies': [ | |
| 111 '<(DEPTH)/build/linux/system.gyp:dbus', | |
| 112 '<(DEPTH)/dbus/dbus.gyp:dbus', | |
| 113 ], | |
| 114 'sources!': [ | |
| 115 'empty_wifi_data_provider.cc', | |
| 116 ], | |
| 117 }, { # use_dbus==0 | |
| 118 'geolocation_unittest_sources!': [ | |
| 119 'wifi_data_provider_linux.cc', | |
| 120 ], | |
| 121 }] | |
| 122 ], | |
| 123 }], | |
| 124 | |
| 125 ['OS=="win"', { | |
| 126 # TODO(jschuh): http://crbug.com/167187 fix size_t to int truncations. | |
| 127 'msvs_disabled_warnings': [ 4267, ], | |
| 128 }], | |
| 129 | |
| 130 ['OS=="mac" or OS=="win"', { | |
| 131 'sources!': [ | |
| 132 'empty_wifi_data_provider.cc', | |
| 133 'empty_wifi_data_provider.h', | |
| 134 ], | |
| 135 }], | |
| 136 ], | |
| 137 }, | |
| 138 ], | |
| 139 } | |
| OLD | NEW |