[email protected] | bfac398 | 2014-07-02 07:39:09 | [diff] [blame] | 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 | |
Byoungkown | 426aa9f | 2018-09-06 17:22:42 | [diff] [blame] | 5 | import("//build/config/jumbo.gni") |
| 6 | |
| 7 | jumbo_component("wifi") { |
[email protected] | bfac398 | 2014-07-02 07:39:09 | [diff] [blame] | 8 | 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 | |
scottmg | ac0ea031 | 2014-12-03 19:21:05 | [diff] [blame] | 18 | defines = [ "WIFI_IMPLEMENTATION" ] |
[email protected] | bfac398 | 2014-07-02 07:39:09 | [diff] [blame] | 19 | |
| 20 | deps = [ |
| 21 | "//base", |
| 22 | "//components/onc", |
dpranke | 07af333 | 2015-05-01 01:45:32 | [diff] [blame] | 23 | "//crypto", |
[email protected] | bfac398 | 2014-07-02 07:39:09 | [diff] [blame] | 24 | "//third_party/libxml", |
| 25 | ] |
| 26 | |
| 27 | if (is_win) { |
scottmg | ac0ea031 | 2014-12-03 19:21:05 | [diff] [blame] | 28 | libs = [ "iphlpapi.lib" ] |
[email protected] | bfac398 | 2014-07-02 07:39:09 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | if (is_mac) { |
| 32 | libs = [ |
| 33 | "CoreWLAN.framework", |
rsesek | 02aa51c | 2016-05-11 02:13:57 | [diff] [blame] | 34 | "Foundation.framework", |
[email protected] | bfac398 | 2014-07-02 07:39:09 | [diff] [blame] | 35 | "SystemConfiguration.framework", |
| 36 | ] |
| 37 | } |
| 38 | } |
| 39 | |
Byoungkown | 426aa9f | 2018-09-06 17:22:42 | [diff] [blame] | 40 | jumbo_static_library("test_support") { |
[email protected] | bfac398 | 2014-07-02 07:39:09 | [diff] [blame] | 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", |
brucedawson | f9f7d629 | 2016-04-27 19:11:07 | [diff] [blame] | 61 | "//build/win:default_exe_manifest", |
[email protected] | bfac398 | 2014-07-02 07:39:09 | [diff] [blame] | 62 | "//components/onc", |
| 63 | ] |
| 64 | } |