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', | |
13 '../third_party/libxml/libxml.gyp:libxml', | 12 '../third_party/libxml/libxml.gyp:libxml', |
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', | |
tfarina
2014/04/21 14:59:13
Yeah, I bet if you change this to <(component) it
| |
49 'dependencies': [ | |
50 'onc_component', | |
51 'wifi_component', | |
52 ], | |
53 'include_dirs': [ | |
54 '..', | |
55 ], | |
56 'sources': [ | |
57 'wifi/fake_wifi_service.cc', | |
58 ], | |
59 }, | |
60 { | |
48 'target_name': 'wifi_test', | 61 'target_name': 'wifi_test', |
49 'type': 'executable', | 62 'type': 'executable', |
50 'dependencies': [ | 63 'dependencies': [ |
51 'wifi_component', | |
52 '../base/base.gyp:base', | 64 '../base/base.gyp:base', |
53 '../components/components.gyp:onc_component', | 65 'wifi_test_support', |
54 ], | 66 ], |
55 'include_dirs': [ | 67 'include_dirs': [ |
56 '..', | 68 '..', |
57 ], | 69 ], |
58 'sources': [ | 70 'sources': [ |
59 'wifi/wifi_test.cc', | 71 'wifi/wifi_test.cc', |
60 ], | 72 ], |
61 }, | 73 }, |
62 ], | 74 ], |
63 } | 75 } |
OLD | NEW |