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)/cloud_print/cloud_print_resources.gyp:cloud_print_version_header', 
25        '<(DEPTH)/google_apis/google_apis.gyp:google_apis',
26        '<(DEPTH)/jingle/jingle.gyp:notifier',
27        '<(DEPTH)/net/net.gyp:http_server',
28        '<(DEPTH)/net/net.gyp:net',
29        '<(DEPTH)/url/url.gyp:url_lib',
30      ],
31      'sources': [
32        'cloud_print_response_parser.cc',        
33        'cloud_print_response_parser.h',
34        'cloud_print_request.cc',
35        'cloud_print_request.h',
36        'cloud_print_requester.cc',
37        'cloud_print_requester.h',
38        'cloud_print_url_request_context_getter.cc',
39        'cloud_print_url_request_context_getter.h',
40        'cloud_print_xmpp_listener.cc',
41        'cloud_print_xmpp_listener.h',
42        'conio_posix.cc',  
43        'conio_posix.h',  
44        'command_line_reader.cc',
45        'command_line_reader.h',
46        'dns_packet_parser.cc',
47        'dns_packet_parser.h',
48        'dns_response_builder.cc',
49        'dns_response_builder.h',
50        'dns_sd_server.cc',
51        'dns_sd_server.h',
52        'gcp20_switches.cc',
53        'gcp20_switches.h',
54        'local_settings.h',
55        'local_print_job.cc',
56        'local_print_job.h',
57        'print_job_handler.cc',
58        'print_job_handler.h',
59        'printer_state.cc',
60        'printer_state.h',
61        'printer.cc',
62        'printer.h',
63        'privet_http_server.cc',
64        'privet_http_server.h',
65        'service_parameters.cc',
66        'service_parameters.h',
67        'special_io.h',
68        'x_privet_token.cc',
69        'x_privet_token.h',
70      ],
71    },
72    {
73      'target_name': 'gcp20_device',
74      'type': 'executable',
75      'dependencies': [
76        'gcp20_device_lib',
77      ],
78      'sources': [
79        'gcp20_device.cc',
80      ],
81      'msvs_settings': {
82        'VCLinkerTool': {
83          'SubSystem': '1',         # Set /SUBSYSTEM:CONSOLE
84          'AdditionalDependencies': [
85# TODO(maksymb): Check which of whis libs is needed.
86            'secur32.lib',
87            'httpapi.lib',
88            'Ws2_32.lib',
89          ],
90        },
91      },
92    },
93    {
94      'target_name': 'gcp20_device_unittests',
95      'type': 'executable',
96      'sources': [
97        'printer_unittest.cc',
98        'x_privet_token_unittest.cc',
99      ],
100      'dependencies': [
101        'gcp20_device_lib',
102        '<(DEPTH)/base/base.gyp:run_all_unittests',
103        '<(DEPTH)/base/base.gyp:test_support_base',
104        '<(DEPTH)/testing/gmock.gyp:gmock',
105        '<(DEPTH)/testing/gtest.gyp:gtest',
106      ],
107      'msvs_settings': {
108        'VCLinkerTool': {
109          'SubSystem': '1',         # Set /SUBSYSTEM:CONSOLE
110          'AdditionalDependencies': [
111            'secur32.lib',
112          ],
113        },
114      },
115    },
116  ],
117}
118