Home | History | Annotate | Download | only in components
      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/network_properties.cc',
     23         'wifi/network_properties.h',
     24         'wifi/wifi_export.h',
     25         'wifi/wifi_service.cc',
     26         'wifi/wifi_service.h',
     27         'wifi/wifi_service_mac.mm',
     28         'wifi/wifi_service_win.cc',
     29       ],
     30       'conditions': [
     31         ['OS == "win"', {
     32           'link_settings': {
     33             'libraries': [
     34               '-liphlpapi.lib',
     35             ],
     36           },
     37         }],
     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         }],
     46       ],
     47     },
     48     {
     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     {
     65       'target_name': 'wifi_test',
     66       'type': 'executable',
     67       'dependencies': [
     68         '../base/base.gyp:base',
     69         'onc_component',
     70         'wifi_component',
     71       ],
     72       'include_dirs': [
     73         '..',
     74       ],
     75       'sources': [
     76         'wifi/wifi_test.cc',
     77       ],
     78     },
     79   ],
     80 }
     81