# 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', | |
] | |
} | |
} | |
] | |
} |