blob: 7dedbf03c7f6cfaa3bbd3e3e33faf3ac7b4e9e7a [file] [log] [blame]
[email protected]bfac3982014-07-02 07:39:091# 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
Byoungkown426aa9f2018-09-06 17:22:425import("//build/config/jumbo.gni")
6
7jumbo_component("wifi") {
[email protected]bfac3982014-07-02 07:39:098 sources = [
9 "network_properties.cc",
10 "network_properties.h",
11 "wifi_export.h",
12 "wifi_service.cc",
13 "wifi_service.h",
14 "wifi_service_mac.mm",
15 "wifi_service_win.cc",
16 ]
17
scottmgac0ea0312014-12-03 19:21:0518 defines = [ "WIFI_IMPLEMENTATION" ]
[email protected]bfac3982014-07-02 07:39:0919
20 deps = [
21 "//base",
22 "//components/onc",
dpranke07af3332015-05-01 01:45:3223 "//crypto",
[email protected]bfac3982014-07-02 07:39:0924 "//third_party/libxml",
25 ]
26
27 if (is_win) {
scottmgac0ea0312014-12-03 19:21:0528 libs = [ "iphlpapi.lib" ]
[email protected]bfac3982014-07-02 07:39:0929 }
30
31 if (is_mac) {
32 libs = [
33 "CoreWLAN.framework",
rsesek02aa51c2016-05-11 02:13:5734 "Foundation.framework",
[email protected]bfac3982014-07-02 07:39:0935 "SystemConfiguration.framework",
36 ]
37 }
38}
39
Byoungkown426aa9f2018-09-06 17:22:4240jumbo_static_library("test_support") {
[email protected]bfac3982014-07-02 07:39:0941 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
53executable("wifi_test") {
54 sources = [
55 "wifi_test.cc",
56 ]
57
58 deps = [
59 ":wifi",
60 "//base",
brucedawsonf9f7d6292016-04-27 19:11:0761 "//build/win:default_exe_manifest",
[email protected]bfac3982014-07-02 07:39:0962 "//components/onc",
63 ]
64}