[email protected] | 1b6888ad | 2013-11-22 12:44:41 | [diff] [blame] | 1 | # Copyright 2013 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 | 'targets': [ |
| 7 | { |
| 8 | 'target_name': 'wifi_component', |
| 9 | 'type': '<(component)', |
| 10 | 'dependencies': [ |
| 11 | '../base/base.gyp:base', |
[email protected] | e425d036 | 2013-12-13 18:25:17 | [diff] [blame] | 12 | '../third_party/libxml/libxml.gyp:libxml', |
[email protected] | c6afb98b | 2014-04-24 23:04:32 | [diff] [blame] | 13 | 'onc_component', |
[email protected] | 1b6888ad | 2013-11-22 12:44:41 | [diff] [blame] | 14 | ], |
| 15 | 'include_dirs': [ |
| 16 | '..', |
| 17 | ], |
| 18 | 'defines': [ |
| 19 | 'WIFI_IMPLEMENTATION', |
| 20 | ], |
| 21 | 'sources': [ |
[email protected] | ca11059e | 2014-06-04 08:41:22 | [diff] [blame] | 22 | 'wifi/network_properties.cc', |
| 23 | 'wifi/network_properties.h', |
[email protected] | 1b6888ad | 2013-11-22 12:44:41 | [diff] [blame] | 24 | 'wifi/wifi_export.h', |
| 25 | 'wifi/wifi_service.cc', |
| 26 | 'wifi/wifi_service.h', |
[email protected] | 333db22 | 2014-01-29 07:34:37 | [diff] [blame] | 27 | 'wifi/wifi_service_mac.mm', |
[email protected] | 4f9264c | 2013-11-22 20:25:54 | [diff] [blame] | 28 | 'wifi/wifi_service_win.cc', |
| 29 | ], |
| 30 | 'conditions': [ |
| 31 | ['OS == "win"', { |
| 32 | 'link_settings': { |
| 33 | 'libraries': [ |
| 34 | '-liphlpapi.lib', |
| 35 | ], |
| 36 | }, |
| 37 | }], |
[email protected] | 333db22 | 2014-01-29 07:34:37 | [diff] [blame] | 38 | ['OS == "mac"', { |
| 39 | 'link_settings': { |
| 40 | 'libraries': [ |
| 41 | '$(SDKROOT)/System/Library/Frameworks/CoreWLAN.framework', |
| 42 | '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework', |
| 43 | ] |
| 44 | }, |
| 45 | }], |
[email protected] | 4f9264c | 2013-11-22 20:25:54 | [diff] [blame] | 46 | ], |
| 47 | }, |
| 48 | { |
[email protected] | d3758af | 2014-05-05 19:02:37 | [diff] [blame] | 49 | 'target_name': 'wifi_test_support', |
| 50 | 'type': 'static_library', |
| 51 | 'dependencies': [ |
| 52 | '../base/base.gyp:base', |
| 53 | 'onc_component', |
| 54 | 'wifi_component', |
| 55 | ], |
| 56 | 'include_dirs': [ |
| 57 | '..', |
| 58 | ], |
| 59 | 'sources': [ |
| 60 | 'wifi/fake_wifi_service.cc', |
| 61 | 'wifi/fake_wifi_service.h', |
| 62 | ], |
| 63 | }, |
| 64 | { |
[email protected] | 4f9264c | 2013-11-22 20:25:54 | [diff] [blame] | 65 | 'target_name': 'wifi_test', |
| 66 | 'type': 'executable', |
| 67 | 'dependencies': [ |
[email protected] | 4f9264c | 2013-11-22 20:25:54 | [diff] [blame] | 68 | '../base/base.gyp:base', |
[email protected] | c6afb98b | 2014-04-24 23:04:32 | [diff] [blame] | 69 | 'onc_component', |
| 70 | 'wifi_component', |
[email protected] | 4f9264c | 2013-11-22 20:25:54 | [diff] [blame] | 71 | ], |
| 72 | 'include_dirs': [ |
| 73 | '..', |
| 74 | ], |
| 75 | 'sources': [ |
| 76 | 'wifi/wifi_test.cc', |
[email protected] | 1b6888ad | 2013-11-22 12:44:41 | [diff] [blame] | 77 | ], |
| 78 | }, |
| 79 | ], |
| 80 | } |