- add sources.
[platform/framework/web/crosswalk.git] / src / cloud_print / cloud_print.gyp
1 # Copyright (c) 2012 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   'variables': {
6     'chromium_code': 1,
7
8     'variables': {
9       'version_py_path': '../tools/build/version.py',
10       'version_path': 'VERSION',
11     },
12     'version_py_path': '<(version_py_path) -f',
13     'version_path': '<(version_path)',
14   },
15   'includes': [
16     '../chrome/version.gypi',
17   ],
18   'targets': [
19     {
20       'target_name': 'cloud_print_version_resources',
21       'type': 'none',
22       'conditions': [
23         ['branding == "Chrome"', {
24           'variables': {
25              'branding_path': '<(DEPTH)/chrome/app/theme/google_chrome/BRANDING',
26           },
27         }, { # else branding!="Chrome"
28           'variables': {
29              'branding_path': '<(DEPTH)/chrome/app/theme/chromium/BRANDING',
30           },
31         }],
32       ],
33       'variables': {
34         'output_dir': 'cloud_print',
35         'template_input_path': '../chrome/app/chrome_version.rc.version', 
36         'extra_variable_files_arguments': [ '-f', 'BRANDING' ],
37         'extra_variable_files': [ 'BRANDING' ], # NOTE: matches that above
38       },
39       'direct_dependent_settings': {
40         'include_dirs': [
41           '<(SHARED_INTERMEDIATE_DIR)/<(output_dir)',
42         ],
43       },
44       'sources': [
45         'service/win/cloud_print_service_exe.ver',
46         'service/win/cloud_print_service_config_exe.ver',
47         'service/win/cloud_print_service_setup_exe.ver',
48         'virtual_driver/win/gcp_portmon64_dll.ver',
49         'virtual_driver/win/gcp_portmon_dll.ver',
50         'virtual_driver/win/install/virtual_driver_setup_exe.ver',
51       ],
52       'includes': [
53         '../chrome/version_resource_rules.gypi',
54       ],
55     },
56     {
57       'target_name': 'cloud_print',
58       'type': 'none',
59       'dependencies': [
60         'service/service.gyp:*',
61         'gcp20/prototype/gcp20_device.gyp:*',
62       ],
63       'conditions': [
64         ['OS=="win"', {
65           'dependencies': [
66             'virtual_driver/win/install/virtual_driver_install.gyp:*',
67             'virtual_driver/win/virtual_driver.gyp:*',
68           ],
69         }],
70         ['OS=="win" and target_arch=="ia32"', {
71           'dependencies': [
72             'virtual_driver/win/virtual_driver64.gyp:*',
73           ],
74         }],
75       ],
76     },
77     {
78       'target_name': 'cloud_print_unittests',
79       'type': 'executable',
80       'sources': [
81         'service/service_state_unittest.cc',
82       ],
83       'dependencies': [
84         '<(DEPTH)/base/base.gyp:base',
85         '<(DEPTH)/base/base.gyp:run_all_unittests',
86         '<(DEPTH)/base/base.gyp:test_support_base',
87         '<(DEPTH)/testing/gmock.gyp:gmock',
88         '<(DEPTH)/testing/gtest.gyp:gtest',
89         'service/service.gyp:cloud_print_service_lib',
90       ],
91       'conditions': [
92         ['OS=="win"', {
93           'sources': [
94             'service/win/service_ipc_unittest.cc',
95             'virtual_driver/win/port_monitor/port_monitor_unittest.cc',
96           ],
97           'dependencies': [
98             'virtual_driver/win/virtual_driver.gyp:gcp_portmon_lib',
99           ],
100         }],
101         # See http://crbug.com/162998#c4 for why this is needed.
102         ['OS=="linux" and linux_use_tcmalloc==1', {
103           'dependencies': [
104             '../base/allocator/allocator.gyp:allocator',
105           ],
106         }],
107       ],
108       'msvs_settings': {
109         'VCLinkerTool': {
110           'AdditionalDependencies': [
111               'secur32.lib',
112           ],
113         },
114       },
115     },
116   ],
117 }