Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / components / wifi.gypi
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',
12         '../third_party/libxml/libxml.gyp:libxml',
13         'onc_component',
14       ],
15       'include_dirs': [
16         '..',
17       ],
18       'defines': [
19         'WIFI_IMPLEMENTATION',
20       ],
21       'sources': [
22         'wifi/wifi_export.h',
23         'wifi/wifi_service.cc',
24         'wifi/wifi_service.h',
25         'wifi/wifi_service_mac.mm',
26         'wifi/wifi_service_win.cc',
27       ],
28       'conditions': [
29         ['OS == "win"', {
30           'link_settings': {
31             'libraries': [
32               '-liphlpapi.lib',
33             ],
34           },
35         }],
36         ['OS == "mac"', {
37           'link_settings': {
38             'libraries': [
39               '$(SDKROOT)/System/Library/Frameworks/CoreWLAN.framework',
40               '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework',
41             ]
42           },
43         }],
44       ],
45     },
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     {
63       'target_name': 'wifi_test',
64       'type': 'executable',
65       'dependencies': [
66         '../base/base.gyp:base',
67         'onc_component',
68         'wifi_component',
69       ],
70       'include_dirs': [
71         '..',
72       ],
73       'sources': [
74         'wifi/wifi_test.cc',
75       ],
76     },
77   ],
78 }