blob: d36d208b7c9f6581386fe527bae7f520633112ae [file] [log] [blame]
Vitaly Buka4615e0d2015-10-14 15:35:12 -07001# 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 Bukadd3b58a2015-09-02 13:29:58 -07004{
5 'includes': [
6 'libweave.gypi',
7 ],
8 'target_defaults': {
9 'libraries': [
10 '-lcrypto',
ilewisb70fd472015-10-29 13:24:11 -070011 '-lexpat',
Vitaly Buka9e9aca92015-11-23 23:20:12 -080012 '-lgmock',
13 '-lgtest',
Vitaly Buka17280372015-10-10 17:11:47 -070014 '-lpthread',
Vitaly Buka3bfb13d2015-11-24 14:46:13 -080015 '-lrt',
Vitaly Bukadd3b58a2015-09-02 13:29:58 -070016 ],
17 },
18 'targets': [
19 {
20 'target_name': 'libweave_common',
21 'type': 'static_library',
22 'include_dirs': [
ilewisb70fd472015-10-29 13:24:11 -070023 '<@(DEPTH)/external',
Vitaly Bukadd3b58a2015-09-02 13:29:58 -070024 ],
25 'sources': [
26 '<@(weave_sources)',
27 '<@(base_sources)',
28 ],
29 },
30 {
31 'target_name': 'libweave',
32 'type': 'shared_library',
33 'include_dirs': [
34 '../libweave/external',
35 ],
36 'dependencies': [
37 'libweave_common',
38 ],
39 'sources': [
40 'src/empty.cc'
41 ],
42 },
43 {
44 'target_name': 'libweave-test',
45 'type': 'static_library',
46 'standalone_static_library': 1,
47 'include_dirs': [
ilewisb70fd472015-10-29 13:24:11 -070048 '<@(DEPTH)/external',
Vitaly Bukadd3b58a2015-09-02 13:29:58 -070049 ],
50 'sources': [
51 '<@(weave_test_sources)',
52 ],
53 },
54 {
55 'target_name': 'libweave_testrunner',
56 'type': 'executable',
57 'include_dirs': [
ilewisb70fd472015-10-29 13:24:11 -070058 '<@(DEPTH)/external',
Vitaly Bukadd3b58a2015-09-02 13:29:58 -070059 ],
60 'dependencies': [
61 'libweave_common',
62 'libweave-test',
63 ],
64 'sources': [
65 '<@(weave_unittest_sources)',
66 '<@(base_unittests)',
67 ],
68 },
69 {
70 'target_name': 'libweave_exports_testrunner',
71 'type': 'executable',
72 'include_dirs': [
ilewisb70fd472015-10-29 13:24:11 -070073 '<@(DEPTH)/external',
Vitaly Bukadd3b58a2015-09-02 13:29:58 -070074 ],
75 'dependencies': [
76 'libweave',
77 'libweave-test',
78 ],
79 'sources': [
80 '<@(weave_exports_unittest_sources)',
81 ],
82 },
83 ],
84}