Roll src/third_party/WebKit b559582:d13e636 (svn 193437:193439)
[chromium-blink-merge.git] / components / wifi / BUILD.gn
blob7d27426b6cc31010402598b729d81b7b89266553
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.
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   ]
16   defines = [ "WIFI_IMPLEMENTATION" ]
18   deps = [
19     "//base",
20     "//components/onc",
21     "//third_party/libxml",
22   ]
24   if (is_win) {
25     libs = [ "iphlpapi.lib" ]
26   }
28   if (is_mac) {
29     libs = [
30       "CoreWLAN.framework",
31       "SystemConfiguration.framework",
32     ]
33   }
36 source_set("test_support") {
37   sources = [
38     "fake_wifi_service.cc",
39     "fake_wifi_service.h",
40   ]
42   deps = [
43     ":wifi",
44     "//base",
45     "//components/onc",
46   ]
49 executable("wifi_test") {
50   sources = [
51     "wifi_test.cc",
52   ]
54   deps = [
55     ":wifi",
56     "//base",
57     "//components/onc",
58   ]