Vitaly Buka | 4615e0d | 2015-10-14 15:35:12 -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. |
Vitaly Buka | dd3b58a | 2015-09-02 13:29:58 -0700 | [diff] [blame] | 4 | { |
| 5 | 'includes': [ |
| 6 | 'libweave.gypi', |
| 7 | ], |
| 8 | 'target_defaults': { |
| 9 | 'libraries': [ |
| 10 | '-lcrypto', |
Vitaly Buka | dd3b58a | 2015-09-02 13:29:58 -0700 | [diff] [blame] | 11 | '-lgtest', |
| 12 | '-lgmock', |
ilewis | b70fd47 | 2015-10-29 13:24:11 -0700 | [diff] [blame] | 13 | '-lexpat', |
Vitaly Buka | 1728037 | 2015-10-10 17:11:47 -0700 | [diff] [blame] | 14 | '-lpthread', |
Vitaly Buka | dd3b58a | 2015-09-02 13:29:58 -0700 | [diff] [blame] | 15 | ], |
| 16 | }, |
| 17 | 'targets': [ |
| 18 | { |
| 19 | 'target_name': 'libweave_common', |
| 20 | 'type': 'static_library', |
| 21 | 'include_dirs': [ |
ilewis | b70fd47 | 2015-10-29 13:24:11 -0700 | [diff] [blame] | 22 | '<@(DEPTH)/external', |
Vitaly Buka | dd3b58a | 2015-09-02 13:29:58 -0700 | [diff] [blame] | 23 | ], |
| 24 | 'sources': [ |
| 25 | '<@(weave_sources)', |
| 26 | '<@(base_sources)', |
| 27 | ], |
| 28 | }, |
| 29 | { |
| 30 | 'target_name': 'libweave', |
| 31 | 'type': 'shared_library', |
| 32 | 'include_dirs': [ |
| 33 | '../libweave/external', |
| 34 | ], |
| 35 | 'dependencies': [ |
| 36 | 'libweave_common', |
| 37 | ], |
| 38 | 'sources': [ |
| 39 | 'src/empty.cc' |
| 40 | ], |
| 41 | }, |
| 42 | { |
| 43 | 'target_name': 'libweave-test', |
| 44 | 'type': 'static_library', |
| 45 | 'standalone_static_library': 1, |
| 46 | 'include_dirs': [ |
ilewis | b70fd47 | 2015-10-29 13:24:11 -0700 | [diff] [blame] | 47 | '<@(DEPTH)/external', |
Vitaly Buka | dd3b58a | 2015-09-02 13:29:58 -0700 | [diff] [blame] | 48 | ], |
| 49 | 'sources': [ |
| 50 | '<@(weave_test_sources)', |
| 51 | ], |
| 52 | }, |
| 53 | { |
| 54 | 'target_name': 'libweave_testrunner', |
| 55 | 'type': 'executable', |
| 56 | 'include_dirs': [ |
ilewis | b70fd47 | 2015-10-29 13:24:11 -0700 | [diff] [blame] | 57 | '<@(DEPTH)/external', |
Vitaly Buka | dd3b58a | 2015-09-02 13:29:58 -0700 | [diff] [blame] | 58 | ], |
| 59 | 'dependencies': [ |
| 60 | 'libweave_common', |
| 61 | 'libweave-test', |
| 62 | ], |
| 63 | 'sources': [ |
| 64 | '<@(weave_unittest_sources)', |
| 65 | '<@(base_unittests)', |
| 66 | ], |
| 67 | }, |
| 68 | { |
| 69 | 'target_name': 'libweave_exports_testrunner', |
| 70 | 'type': 'executable', |
| 71 | 'include_dirs': [ |
ilewis | b70fd47 | 2015-10-29 13:24:11 -0700 | [diff] [blame] | 72 | '<@(DEPTH)/external', |
Vitaly Buka | dd3b58a | 2015-09-02 13:29:58 -0700 | [diff] [blame] | 73 | ], |
| 74 | 'dependencies': [ |
| 75 | 'libweave', |
| 76 | 'libweave-test', |
| 77 | ], |
| 78 | 'sources': [ |
| 79 | '<@(weave_exports_unittest_sources)', |
| 80 | ], |
| 81 | }, |
| 82 | ], |
| 83 | } |