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 '../components/components.gyp:onc_component', | 12 '../components/components.gyp:onc_component', |
13 '../third_party/libxml/libxml.gyp:libxml', | 13 '../third_party/libxml/libxml.gyp:libxml', |
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', | 25 'wifi/fake_wifi_service.cc', |
| 26 'wifi/wifi_service_mac.mm', |
26 'wifi/wifi_service_win.cc', | 27 'wifi/wifi_service_win.cc', |
27 ], | 28 ], |
28 'conditions': [ | 29 'conditions': [ |
29 ['OS == "win"', { | 30 ['OS == "win"', { |
30 'link_settings': { | 31 'link_settings': { |
31 'libraries': [ | 32 'libraries': [ |
32 '-liphlpapi.lib', | 33 '-liphlpapi.lib', |
33 ], | 34 ], |
34 }, | 35 }, |
35 }], | 36 }], |
| 37 ['OS == "mac"', { |
| 38 'link_settings': { |
| 39 'libraries': [ |
| 40 '$(SDKROOT)/System/Library/Frameworks/CoreWLAN.framework', |
| 41 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framewor
k', |
| 42 ] |
| 43 }, |
| 44 }], |
36 ], | 45 ], |
37 }, | 46 }, |
38 { | 47 { |
39 'target_name': 'wifi_test', | 48 'target_name': 'wifi_test', |
40 'type': 'executable', | 49 'type': 'executable', |
41 'dependencies': [ | 50 'dependencies': [ |
42 'wifi_component', | 51 'wifi_component', |
43 '../base/base.gyp:base', | 52 '../base/base.gyp:base', |
44 '../components/components.gyp:onc_component', | 53 '../components/components.gyp:onc_component', |
45 ], | 54 ], |
46 'include_dirs': [ | 55 'include_dirs': [ |
47 '..', | 56 '..', |
48 ], | 57 ], |
49 'sources': [ | 58 'sources': [ |
50 'wifi/wifi_test.cc', | 59 'wifi/wifi_test.cc', |
51 ], | 60 ], |
52 }, | 61 }, |
53 ], | 62 ], |
54 } | 63 } |
OLD | NEW |