blob: 6b08e4c03510b318b79c2b5e0981e4c5a13d4a58 [file] [log] [blame]
Chris Sosa45d9f102014-03-24 11:18:54 -07001{
2 'variables': {
3 'libbase_ver': 242728,
4 },
5 'target_defaults': {
6 'dependencies': [
7 '../../metrics/libmetrics-<(libbase_ver).gyp:libmetrics-<(libbase_ver)',
8 ],
9 'variables': {
10 'deps': [
11 'dbus-1',
12 'libchrome-<(libbase_ver)',
13 'libcurl',
14 ],
15 },
16 # TODO(sosa): Remove gflags: crbug.com/356745.
17 'link_settings': {
18 'libraries': [
19 '-lgflags',
20 ],
21 },
22 'include_dirs': [
23 '..' # To access all src/platform2 directories
24 ],
25 # TODO(sosa): Remove no-strict-aliasing: crbug.com/356745.
26 'cflags_cc': [
27 '-std=gnu++11',
28 '-fno-strict-aliasing',
29 ],
30 },
31 'targets': [
32 {
33 'target_name': 'buffet_common',
34 'type': 'static_library',
35 'sources': [
36 'data_encoding.cc',
37 'dbus_manager.cc',
38 'http_request.cc',
39 'http_transport_curl.cc',
40 'http_utils.cc',
41 'mime_utils.cc',
42 'string_utils.cc',
43 ],
44 },
45 {
46 'target_name': 'buffet',
47 'type': 'executable',
48 'sources': [
49 'main.cc',
50 ],
51 'dependencies': [
52 'buffet_common',
53 ],
54 },
55 {
56 'target_name': 'buffet_client',
57 'type': 'executable',
58 'sources': [
59 'buffet_client.cc',
60 ],
61 },
62 {
63 'target_name': 'buffet_testrunner',
64 'type': 'executable',
65 'dependencies': [
66 'buffet_common',
67 ],
68 'includes': ['../../common-mk/common_test.gypi'],
69 'sources': [
70 'buffet_testrunner.cc',
71 'data_encoding_unittest.cc',
72 'mime_utils_unittest.cc',
73 'string_utils_unittest.cc',
74 ],
75 },
76 ],
77}