Johan Euphrosine | 3523fdd | 2015-10-14 20:46:05 -0700 | [diff] [blame] | 1 | # Copyright 2015 The Weave 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 | 'targets': [ |
| 6 | { |
| 7 | 'target_name': 'libweave_provider', |
| 8 | 'type': 'static_library', |
| 9 | 'variables': { |
| 10 | 'deps': [ |
| 11 | 'avahi-client', |
| 12 | 'expat', |
| 13 | 'libcurl', |
| 14 | 'libcrypto', |
| 15 | 'openssl', |
| 16 | ] |
| 17 | }, |
| 18 | 'cflags': [ |
| 19 | '>!@(pkg-config >(deps) --cflags)', |
| 20 | '-pthread', |
| 21 | ], |
| 22 | 'sources': [ |
| 23 | 'avahi_client.cc', |
| 24 | 'bluez_client.cc', |
| 25 | 'curl_http_client.cc', |
| 26 | 'event_http_client.cc', |
| 27 | 'event_http_server.cc', |
| 28 | 'event_network.cc', |
| 29 | 'event_task_runner.cc', |
| 30 | 'file_config_store.cc', |
| 31 | 'wifi_manager.cc', |
| 32 | 'ssl_stream.cc', |
| 33 | ], |
| 34 | 'dependencies': [ |
ilewis | b70fd47 | 2015-10-29 13:24:11 -0700 | [diff] [blame] | 35 | '<@(DEPTH)/libweave_standalone.gyp:libweave', |
Johan Euphrosine | 3523fdd | 2015-10-14 20:46:05 -0700 | [diff] [blame] | 36 | ], |
| 37 | 'direct_dependent_settings' : { |
| 38 | 'variables': { |
| 39 | 'parent_deps': [ |
| 40 | '<@(deps)' |
| 41 | ] |
| 42 | }, |
| 43 | 'link_settings': { |
| 44 | 'ldflags+': [ |
| 45 | '>!@(pkg-config >(parent_deps) --libs-only-L --libs-only-other)', |
| 46 | ], |
| 47 | 'libraries+': [ |
| 48 | '>!(pkg-config >(parent_deps) --libs-only-l)', |
| 49 | ], |
| 50 | }, |
| 51 | 'libraries': [ |
| 52 | '-levent', |
| 53 | '-levent_openssl', |
| 54 | '-lpthread', |
| 55 | ] |
| 56 | } |
| 57 | } |
| 58 | ] |
| 59 | } |