Upstream version 8.37.180.0
[platform/framework/web/crosswalk.git] / src / remoting / remoting_host_linux.gypi
1 # Copyright 2014 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   'conditions': [
7     ['OS=="linux" and branding=="Chrome" and enable_remoting_host==1', {
8       'variables': {
9         'build_deb_script': 'host/installer/linux/build-deb.sh',
10         'deb_filename': 'host/installer/<!(["<(build_deb_script)", "-p", "-s", "<(DEPTH)"])',
11         'packaging_outputs': [
12           '<(deb_filename)',
13           '<!(echo <(deb_filename) | sed -e "s/.deb$/.changes/")',
14           '<(PRODUCT_DIR)/remoting_me2me_host.debug',
15           '<(PRODUCT_DIR)/remoting_start_host.debug',
16           '<(PRODUCT_DIR)/native_messaging_host.debug',
17           '<(PRODUCT_DIR)/remote_assistance_host.debug',
18         ]
19       },
20       'targets': [
21         {
22           # Store the installer package(s) into a zip file so there is a
23           # consistent filename to reference for build archiving (i.e. in
24           # FILES.cfg). This also avoids possible conflicts with "wildcard"
25           # package handling in other build/signing scripts.
26           'target_name': 'remoting_me2me_host_archive',
27           'type': 'none',
28           'dependencies': [
29             'remoting_me2me_host_deb_installer',
30           ],
31           'actions': [
32             {
33               'action_name': 'build_linux_installer_zip',
34               'inputs': [
35                 '<@(packaging_outputs)',
36               ],
37               'outputs': [
38                 '<(PRODUCT_DIR)/remoting-me2me-host-<(OS).zip',
39               ],
40               'action': [ 'zip', '-j', '-0', '<@(_outputs)', '<@(_inputs)' ],
41             },
42           ],
43         },
44         {
45           'target_name': 'remoting_me2me_host_deb_installer',
46           'type': 'none',
47           'dependencies': [
48             '<(icu_gyp_path):icudata',
49             'remoting_it2me_native_messaging_host',
50             'remoting_me2me_host',
51             'remoting_me2me_native_messaging_host',
52             'remoting_native_messaging_manifests',
53             'remoting_resources',
54             'remoting_start_host',
55           ],
56           'actions': [
57             {
58               'action_name': 'build_debian_package',
59               'inputs': [
60                 '<(build_deb_script)',
61                 'host/installer/linux/Makefile',
62                 'host/installer/linux/debian/chrome-remote-desktop.init',
63                 'host/installer/linux/debian/chrome-remote-desktop.pam',
64                 'host/installer/linux/debian/compat',
65                 'host/installer/linux/debian/control',
66                 'host/installer/linux/debian/copyright',
67                 'host/installer/linux/debian/postinst',
68                 'host/installer/linux/debian/preinst',
69                 'host/installer/linux/debian/rules',
70               ],
71               'outputs': [
72                 '<@(packaging_outputs)',
73               ],
74               'action': [ '<(build_deb_script)', '-s', '<(DEPTH)' ],
75             },
76           ],
77         },
78       ],
79     }],  # OS=="linux" and branding=="Chrome"
80
81     ['OS=="linux" and enable_remoting_host==1', {
82       'targets': [
83         # Linux breakpad processing
84         {
85           'target_name': 'remoting_linux_symbols',
86           'type': 'none',
87           'conditions': [
88             ['linux_dump_symbols==1', {
89               'actions': [
90                 {
91                   'action_name': 'dump_symbols',
92                   'inputs': [
93                     '<(DEPTH)/build/linux/dump_app_syms',
94                     '<(PRODUCT_DIR)/dump_syms',
95                     '<(PRODUCT_DIR)/remoting_me2me_host',
96                   ],
97                   'outputs': [
98                     '<(PRODUCT_DIR)/remoting_me2me_host.breakpad.<(target_arch)',
99                   ],
100                   'action': ['<(DEPTH)/build/linux/dump_app_syms',
101                              '<(PRODUCT_DIR)/dump_syms',
102                              '<(linux_strip_binary)',
103                              '<(PRODUCT_DIR)/remoting_me2me_host',
104                              '<@(_outputs)'],
105                   'message': 'Dumping breakpad symbols to <(_outputs)',
106                   'process_outputs_as_sources': 1,
107                 },
108               ],
109               'dependencies': [
110                 'remoting_me2me_host',
111                 '../breakpad/breakpad.gyp:dump_syms',
112               ],
113             }],  # 'linux_dump_symbols==1'
114           ],  # end of 'conditions'
115         },  # end of target 'linux_symbols'
116         {
117           'target_name': 'remoting_start_host',
118           'type': 'executable',
119           'dependencies': [
120             'remoting_host_setup_base',
121           ],
122           'sources': [
123             'host/setup/host_starter.cc',
124             'host/setup/host_starter.h',
125             'host/setup/start_host.cc',
126           ],
127           'conditions': [
128             ['use_allocator!="none"', {
129               'dependencies': [
130                 '../base/allocator/allocator.gyp:allocator',
131               ],
132             }],
133           ],
134         },  # end of target 'remoting_start_host'
135       ],  # end of 'targets'
136     }],  # 'OS=="linux"'
137
138   ],  # end of 'conditions'
139 }