Make hitting "Enter" submit the add/change profile dialog.
[chromium-blink-merge.git] / chrome / nacl.gypi
blob334b9452c464c36e661d17d62dd7f5553849d21f
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.
6   'include': [
7     '../native_client/build/untrusted.gypi',
8   ],
9   'target_defaults': {
10     'variables': {
11       'nacl_target': 0,
12     },
13     'target_conditions': [
14       # This part is shared between the targets defined below. Only files and
15       # settings relevant for building the Win64 target should be added here.
16       ['nacl_target==1', {
17         'include_dirs': [
18           '<(INTERMEDIATE_DIR)',
19         ],
20         'defines': [
21           '<@(nacl_defines)',
22         ],
23         'sources': [
24           # .cc, .h, and .mm files under nacl that are used on all
25           # platforms, including both 32-bit and 64-bit Windows.
26           # Test files are also not included.
27           'nacl/nacl_ipc_adapter.cc',
28           'nacl/nacl_ipc_adapter.h',
29           'nacl/nacl_main.cc',
30           'nacl/nacl_main_platform_delegate.h',
31           'nacl/nacl_main_platform_delegate_linux.cc',
32           'nacl/nacl_main_platform_delegate_mac.mm',
33           'nacl/nacl_main_platform_delegate_win.cc',
34           'nacl/nacl_listener.cc',
35           'nacl/nacl_listener.h',
36           'nacl/nacl_validation_db.h',
37           'nacl/nacl_validation_query.cc',
38           'nacl/nacl_validation_query.h',
39         ],
40         # TODO(gregoryd): consider switching NaCl to use Chrome OS defines
41         'conditions': [
42           ['OS=="win"', {
43             'defines': [
44               '__STDC_LIMIT_MACROS=1',
45             ],
46             'include_dirs': [
47               '<(DEPTH)/third_party/wtl/include',
48             ],
49           },],
50           ['OS=="linux"', {
51             'defines': [
52               '__STDC_LIMIT_MACROS=1',
53             ],
54             'sources': [
55               'app/nacl_fork_delegate_linux.cc',
56               'app/nacl_fork_delegate_linux.h',
57             ],
58           },],
59         ],
60       }],
61     ],
62   },
63   'conditions': [
64     ['disable_nacl!=1', {
65       'targets': [
66         {
67           'target_name': 'nacl',
68           'type': 'static_library',
69           'variables': {
70             'nacl_target': 1,
71           },
72           'dependencies': [
73             '../base/base.gyp:base',
74             '../ipc/ipc.gyp:ipc',
75             '../ppapi/native_client/src/trusted/plugin/plugin.gyp:ppGoogleNaClPluginChrome',
76             '../ppapi/ppapi_internal.gyp:ppapi_shared',
77             '../ppapi/ppapi_internal.gyp:ppapi_ipc',
78             '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel_main_chrome',
79           ],
80           'conditions': [
81             ['disable_nacl_untrusted==0', {
82               'dependencies': [
83                 '../ppapi/native_client/native_client.gyp:nacl_irt',
84                 '../ppapi/native_client/native_client.gyp:nacl_irt_srpc',
85                 '../ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_irt_shim.gyp:pnacl_irt_shim',
86                 '../ppapi/native_client/src/untrusted/pnacl_support_extension/pnacl_support_extension.gyp:pnacl_support_extension',
87               ],
88             }],
89           ],
90           'direct_dependent_settings': {
91             'defines': [
92               '<@(nacl_defines)',
93             ],
94           },
95         },
96       ],
97       'conditions': [
98         ['OS=="win"', {
99           'targets': [
100             {
101               'target_name': 'nacl_win64',
102               'type': 'static_library',
103               'variables': {
104                 'nacl_target': 1,
105               },
106               'dependencies': [
107                 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel_main_chrome64',
108                 '../ppapi/ppapi_internal.gyp:ppapi_shared_win64',
109                 '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
110               ],
111               'export_dependent_settings': [
112                 '../ppapi/ppapi_internal.gyp:ppapi_ipc_win64',
113               ],
114               'sources': [
115                 'common/nacl_cmd_line.cc',
116                 'common/nacl_debug_exception_handler_win.cc',
117                 'common/nacl_messages.cc',
118                 'common/nacl_types.cc',
119                 'nacl/nacl_broker_listener.cc',
120                 'nacl/nacl_broker_listener.h',
121               ],
122               'include_dirs': [
123                 '..',
124               ],
125               'defines': [
126                 '<@(nacl_win64_defines)',
127                 'COMPILE_CONTENT_STATICALLY',
128               ],
129               'configurations': {
130                 'Common_Base': {
131                   'msvs_target_platform': 'x64',
132                 },
133               },
134               'direct_dependent_settings': {
135                 'defines': [
136                   '<@(nacl_defines)',
137                 ],
138               },
139             },
140           ],
141         }],
142         ['OS=="linux"', {
143           'targets': [
144             {
145               'target_name': 'nacl_helper',
146               'type': 'executable',
147               'include_dirs': [
148                 '..',
149               ],
150               'dependencies': [
151                 '../crypto/crypto.gyp:crypto',
152                 '../sandbox/sandbox.gyp:libc_urandom_override',
153                 'nacl',
154               ],
155               'sources': [
156                 'nacl/nacl_helper_linux.cc',
157                 '../base/posix/unix_domain_socket.cc',
158                 '../chrome/common/nacl_messages.cc',
159                 '../chrome/common/nacl_types.cc',
160                 '../content/common/child_process_sandbox_support_impl_shm_linux.cc',
161               ],
162               'conditions': [
163                 ['toolkit_uses_gtk == 1', {
164                   'dependencies': [
165                     '../build/linux/system.gyp:gtk',
166                   ],
167                 }],
168                 ['use_glib == 1', {
169                   'dependencies': [
170                     '../build/linux/system.gyp:glib',
171                   ],
172                 }],
173                 ['os_posix == 1 and OS != "mac"', {
174                   'conditions': [
175                     ['linux_use_tcmalloc==1', {
176                       'dependencies': [
177                         '../base/allocator/allocator.gyp:allocator',
178                       ],
179                     }],
180                   ],
181                 }],
182               ],
183               'cflags': ['-fPIE'],
184               'link_settings': {
185                 'ldflags': ['-pie'],
186               },
187             },
188           ],
189         }],
190       ],
191     }, {  # else (disable_nacl==1)
192       'targets': [
193         {
194           'target_name': 'nacl',
195           'type': 'none',
196           'sources': [],
197         },
198       ],
199       'conditions': [
200         ['OS=="win"', {
201           'targets': [
202             {
203               'target_name': 'nacl_win64',
204               'type': 'none',
205               'sources': [],
206             },
207           ],
208         }],
209       ],
210     }],
211   ],