1 # Copyright 2014 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 component("wifi") { 6 sources = [ 7 "network_properties.cc", 8 "network_properties.h", 9 "wifi_export.h", 10 "wifi_service.cc", 11 "wifi_service.h", 12 "wifi_service_mac.mm", 13 "wifi_service_win.cc", 14 ] 15 16 defines = [ 17 "WIFI_IMPLEMENTATION", 18 ] 19 20 deps = [ 21 "//base", 22 "//components/onc", 23 "//third_party/libxml", 24 ] 25 26 if (is_win) { 27 libs = [ 28 "iphlpapi.lib", 29 ] 30 } 31 32 if (is_mac) { 33 libs = [ 34 "CoreWLAN.framework", 35 "SystemConfiguration.framework", 36 ] 37 } 38 } 39 40 source_set("test_support") { 41 sources = [ 42 "fake_wifi_service.cc", 43 "fake_wifi_service.h", 44 ] 45 46 deps = [ 47 ":wifi", 48 "//base", 49 "//components/onc", 50 ] 51 } 52 53 executable("wifi_test") { 54 sources = [ 55 "wifi_test.cc", 56 ] 57 58 deps = [ 59 ":wifi", 60 "//base", 61 "//components/onc", 62 ] 63 } 64