aboutsummaryrefslogtreecommitdiff
path: root/examples/provider/provider.gyp
blob: 3d13d8f800b795d9c62085181fecc7f4bd2b675a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright 2015 The Weave Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
  'targets': [
    {
      'target_name': 'libweave_provider',
      'type': 'static_library',
      'variables': {
        'deps': [
          'avahi-client',
          'expat',
          'libcurl',
          'libcrypto',
          'openssl',
        ]
      },
      'cflags': [
        '>!@(pkg-config >(deps) --cflags)',
        '-pthread',
      ],
      'sources': [
        'avahi_client.cc',
        'bluez_client.cc',
        'curl_http_client.cc',
        'event_http_client.cc',
        'event_http_server.cc',
        'event_network.cc',
        'event_task_runner.cc',
        'file_config_store.cc',
        'wifi_manager.cc',
        'ssl_stream.cc',
      ],
      'dependencies': [
        '<@(DEPTH)/libweave_standalone.gyp:libweave',
      ],
      'direct_dependent_settings' : {
        'variables': {
          'parent_deps': [
            '<@(deps)'
          ]
        },
        'link_settings': {
          'ldflags+': [
            '>!@(pkg-config >(parent_deps) --libs-only-L --libs-only-other)',
          ],
          'libraries+': [
            '>!(pkg-config >(parent_deps) --libs-only-l)',
          ],
        },
        'libraries': [
          '-levent',
          '-levent_openssl',
          '-lpthread',
        ]
      }
    }
  ]
}