- add sources.
[platform/framework/web/crosswalk.git] / src / cloud_print / gcp20 / prototype / gcp20_device.gyp
1 # Copyright 2013 The Chromium 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 {
6   'target_defaults': {
7     'variables': {
8       'chromium_code': 1,
9       'enable_wexit_time_destructors': 1,
10     },
11     'include_dirs': [
12       '<(DEPTH)',
13       # To allow including "version.h"
14       '<(SHARED_INTERMEDIATE_DIR)',
15     ],
16   },
17   'targets': [
18     {
19       'target_name': 'gcp20_device_lib',
20       'type': 'static_library',
21       'dependencies': [
22         '<(DEPTH)/base/base.gyp:base',
23         '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
24         '<(DEPTH)/google_apis/google_apis.gyp:google_apis',
25         '<(DEPTH)/jingle/jingle.gyp:notifier',
26         '<(DEPTH)/net/net.gyp:http_server',
27         '<(DEPTH)/net/net.gyp:net',
28         '<(DEPTH)/url/url.gyp:url_lib',
29       ],
30       'sources': [
31         'cloud_print_response_parser.cc',        
32         'cloud_print_response_parser.h',
33         'cloud_print_request.cc',
34         'cloud_print_request.h',
35         'cloud_print_requester.cc',
36         'cloud_print_requester.h',
37         'cloud_print_url_request_context_getter.cc',
38         'cloud_print_url_request_context_getter.h',
39         'cloud_print_xmpp_listener.cc',
40         'cloud_print_xmpp_listener.h',
41         'conio_posix.cc',  
42         'conio_posix.h',  
43         'command_line_reader.cc',
44         'command_line_reader.h',
45         'dns_packet_parser.cc',
46         'dns_packet_parser.h',
47         'dns_response_builder.cc',
48         'dns_response_builder.h',
49         'dns_sd_server.cc',
50         'dns_sd_server.h',
51         'local_settings.h',
52         'local_print_job.cc',
53         'local_print_job.h',
54         'print_job_handler.cc',
55         'print_job_handler.h',
56         'printer_state.cc',
57         'printer_state.h',
58         'printer.cc',
59         'printer.h',
60         'privet_http_server.cc',
61         'privet_http_server.h',
62         'service_parameters.cc',
63         'service_parameters.h',
64         'special_io.h',
65         'x_privet_token.cc',
66         'x_privet_token.h',
67       ],
68     },
69     {
70       'target_name': 'gcp20_device',
71       'type': 'executable',
72       'dependencies': [
73         'gcp20_device_lib',
74       ],
75       'sources': [
76         'gcp20_device.cc',
77       ],
78       'msvs_settings': {
79         'VCLinkerTool': {
80           'SubSystem': '1',         # Set /SUBSYSTEM:CONSOLE
81           'AdditionalDependencies': [
82 # TODO(maksymb): Check which of whis libs is needed.
83             'secur32.lib',
84             'httpapi.lib',
85             'Ws2_32.lib',
86           ],
87         },
88       },
89     },
90     {
91       'target_name': 'gcp20_device_unittests',
92       'type': 'executable',
93       'sources': [
94         'printer_unittest.cc',
95         'x_privet_token_unittest.cc',
96       ],
97       'dependencies': [
98         'gcp20_device_lib',
99         '<(DEPTH)/base/base.gyp:run_all_unittests',
100         '<(DEPTH)/base/base.gyp:test_support_base',
101         '<(DEPTH)/testing/gmock.gyp:gmock',
102         '<(DEPTH)/testing/gtest.gyp:gtest',
103       ],
104       'msvs_settings': {
105         'VCLinkerTool': {
106           'SubSystem': '1',         # Set /SUBSYSTEM:CONSOLE
107           'AdditionalDependencies': [
108             'secur32.lib',
109           ],
110         },
111       },
112     },
113   ],
114 }