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