OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'wifi_component', | 8 'target_name': 'wifi_component', |
9 'type': '<(component)', | 9 'type': '<(component)', |
10 'dependencies': [ | 10 'dependencies': [ |
11 '../base/base.gyp:base', | 11 '../base/base.gyp:base', |
12 '../third_party/libxml/libxml.gyp:libxml', | 12 '../third_party/libxml/libxml.gyp:libxml', |
13 'onc_component', | 13 'onc_component', |
14 ], | 14 ], |
15 'include_dirs': [ | 15 'include_dirs': [ |
16 '..', | 16 '..', |
17 ], | 17 ], |
18 'defines': [ | 18 'defines': [ |
19 'WIFI_IMPLEMENTATION', | 19 'WIFI_IMPLEMENTATION', |
20 ], | 20 ], |
21 'sources': [ | 21 'sources': [ |
22 'wifi/wifi_export.h', | 22 'wifi/wifi_export.h', |
23 'wifi/wifi_service.cc', | 23 'wifi/wifi_service.cc', |
24 'wifi/wifi_service.h', | 24 'wifi/wifi_service.h', |
25 'wifi/fake_wifi_service.cc', | |
26 'wifi/wifi_service_mac.mm', | 25 'wifi/wifi_service_mac.mm', |
27 'wifi/wifi_service_win.cc', | 26 'wifi/wifi_service_win.cc', |
28 ], | 27 ], |
29 'conditions': [ | 28 'conditions': [ |
30 ['OS == "win"', { | 29 ['OS == "win"', { |
31 'link_settings': { | 30 'link_settings': { |
32 'libraries': [ | 31 'libraries': [ |
33 '-liphlpapi.lib', | 32 '-liphlpapi.lib', |
34 ], | 33 ], |
35 }, | 34 }, |
36 }], | 35 }], |
37 ['OS == "mac"', { | 36 ['OS == "mac"', { |
38 'link_settings': { | 37 'link_settings': { |
39 'libraries': [ | 38 'libraries': [ |
40 '$(SDKROOT)/System/Library/Frameworks/CoreWLAN.framework', | 39 '$(SDKROOT)/System/Library/Frameworks/CoreWLAN.framework', |
41 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framewor
k', | 40 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framewor
k', |
42 ] | 41 ] |
43 }, | 42 }, |
44 }], | 43 }], |
45 ], | 44 ], |
46 }, | 45 }, |
47 { | 46 { |
| 47 'target_name': 'wifi_test_support', |
| 48 'type': 'static_library', |
| 49 'dependencies': [ |
| 50 '../base/base.gyp:base', |
| 51 'onc_component', |
| 52 'wifi_component', |
| 53 ], |
| 54 'include_dirs': [ |
| 55 '..', |
| 56 ], |
| 57 'sources': [ |
| 58 'wifi/fake_wifi_service.cc', |
| 59 'wifi/fake_wifi_service.h', |
| 60 ], |
| 61 }, |
| 62 { |
48 'target_name': 'wifi_test', | 63 'target_name': 'wifi_test', |
49 'type': 'executable', | 64 'type': 'executable', |
50 'dependencies': [ | 65 'dependencies': [ |
51 '../base/base.gyp:base', | 66 '../base/base.gyp:base', |
52 'onc_component', | 67 'onc_component', |
53 'wifi_component', | 68 'wifi_component', |
54 ], | 69 ], |
55 'include_dirs': [ | 70 'include_dirs': [ |
56 '..', | 71 '..', |
57 ], | 72 ], |
58 'sources': [ | 73 'sources': [ |
59 'wifi/wifi_test.cc', | 74 'wifi/wifi_test.cc', |
60 ], | 75 ], |
61 }, | 76 }, |
62 ], | 77 ], |
63 } | 78 } |
OLD | NEW |