Cleanup New Autofill UI Popup Location
[chromium-blink-merge.git] / ppapi / ppapi_tests.gypi
blob48ae15ebc504398b07e9a79f58a55a2c28bb8819
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   'targets': [
7     {
8       'target_name': 'ppapi_tests',
9       'type': 'loadable_module',
10       'include_dirs': [
11         'lib/gl/include',
12       ],
13       'defines': [
14         'GL_GLEXT_PROTOTYPES',
15       ],
16       'sources': [
17         '<@(test_common_source_files)',
18         '<@(test_trusted_source_files)',
19       ],
20       'dependencies': [
21         'ppapi.gyp:ppapi_cpp',
22         'ppapi_internal.gyp:ppapi_shared',
23       ],
24       'copies': [
25         {
26           'destination': '<(PRODUCT_DIR)',
27           'files': [
28             # Keep 'test_case.html.mock-http-headers' with 'test_case.html'.
29             'tests/test_case.html',
30             'tests/test_case.html.mock-http-headers',
31             'tests/test_page.css',
32             'tests/ppapi_nacl_tests_newlib.nmf',
33           ],
34         },
35         {
36           'destination': '<(PRODUCT_DIR)/test_url_loader_data',
37           'files': [
38             'tests/test_url_loader_data/hello.txt',
39           ],
40         },
41       ],
42       'run_as': {
43         'action': [
44           '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)',
45           '--enable-pepper-testing',
46           '--enable-accelerated-plugins',
47           '--register-pepper-plugins=$(TargetPath);application/x-ppapi-tests',
48           'file://$(ProjectDir)/tests/test_case.html?testcase=',
49         ],
50       },
51       'conditions': [
52         ['OS=="win"', {
53           'defines': [
54             '_CRT_SECURE_NO_DEPRECATE',
55             '_CRT_NONSTDC_NO_WARNINGS',
56             '_CRT_NONSTDC_NO_DEPRECATE',
57             '_SCL_SECURE_NO_DEPRECATE',
58           ],
59         }],
60         ['OS=="mac"', {
61           'mac_bundle': 1,
62           'product_name': 'ppapi_tests',
63           'product_extension': 'plugin',
64         }],
65       ],
66 # TODO(dmichael):  Figure out what is wrong with the script on Windows and add
67 #                  it as an automated action.
68 #      'actions': [
69 #        {
70 #          'action_name': 'generate_ppapi_include_tests',
71 #          'inputs': [],
72 #          'outputs': [
73 #            'tests/test_c_includes.c',
74 #            'tests/test_cc_includes.cc',
75 #          ],
76 #          'action': [
77 #            '<!@(python generate_ppapi_include_tests.py)',
78 #          ],
79 #        },
80 #      ],
81     },
82     {
83       'target_name': 'ppapi_unittest_shared',
84       'type': 'static_library',
85       'dependencies': [
86         'ppapi_proxy',
87         'ppapi_shared',
88         '../base/base.gyp:test_support_base',
89         '../ipc/ipc.gyp:ipc',
90         '../ipc/ipc.gyp:test_support_ipc',
91         '../testing/gmock.gyp:gmock',
92         '../testing/gtest.gyp:gtest',
93       ],
94       'sources': [
95         'proxy/ppapi_proxy_test.cc',
96         'proxy/ppapi_proxy_test.h',
97         'proxy/resource_message_test_sink.cc',
98         'proxy/resource_message_test_sink.h',
99         'shared_impl/test_globals.cc',
100         'shared_impl/test_globals.h',
101       ],
102     },
104     {
105       'target_name': 'ppapi_perftests',
106       'type': 'executable',
107       'variables': {
108         'chromium_code': 1,
109       },
110       'dependencies': [
111         'ppapi_proxy',
112         'ppapi_shared',
113         'ppapi_unittest_shared',
114         '../base/base.gyp:test_support_base',
115         '../testing/gtest.gyp:gtest',
116       ],
117       'sources': [
118         'proxy/ppapi_perftests.cc',
119         'proxy/ppp_messaging_proxy_perftest.cc',
120       ],
121     },
122     {
123       'target_name': 'ppapi_unittests',
124       'type': 'executable',
125       'variables': {
126         'chromium_code': 1,
127       },
128       'dependencies': [
129         'ppapi_proxy',
130         'ppapi_shared',
131         'ppapi_unittest_shared',
132         '../base/base.gyp:test_support_base',
133         '../gpu/gpu.gyp:gpu_ipc',
134         '../ipc/ipc.gyp:ipc',
135         '../ipc/ipc.gyp:test_support_ipc',
136         '../media/media.gyp:shared_memory_support',
137         '../testing/gmock.gyp:gmock',
138         '../testing/gtest.gyp:gtest',
139         '../ui/surface/surface.gyp:surface',
140       ],
141       'sources': [
142         'proxy/run_all_unittests.cc',
144         'proxy/file_chooser_resource_unittest.cc',
145         'proxy/flash_resource_unittest.cc',
146         'proxy/mock_resource.cc',
147         'proxy/mock_resource.h',
148         'proxy/plugin_dispatcher_unittest.cc',
149         'proxy/plugin_resource_tracker_unittest.cc',
150         'proxy/plugin_var_tracker_unittest.cc',
151         'proxy/ppb_var_unittest.cc',
152         'proxy/ppp_instance_private_proxy_unittest.cc',
153         'proxy/ppp_instance_proxy_unittest.cc',
154         'proxy/ppp_messaging_proxy_unittest.cc',
155         'proxy/printing_resource_unittest.cc',
156         'proxy/serialized_var_unittest.cc',
157         'proxy/websocket_resource_unittest.cc',
158         'shared_impl/resource_tracker_unittest.cc',
159         'shared_impl/tracked_callback_unittest.cc',
160         'shared_impl/var_tracker_unittest.cc',
161       ],
162       'conditions': [
163         [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
164           'conditions': [
165             [ 'linux_use_tcmalloc == 1', {
166               'dependencies': [
167                 '../base/allocator/allocator.gyp:allocator',
168               ],
169             }],
170           ],
171         }],
172       ],
173     },
174     {
175       'target_name': 'ppapi_example_skeleton',
176       'suppress_wildcard': 1,
177       'type': 'none',
178       'direct_dependent_settings': {
179         'product_name': '>(_target_name)',
180         'conditions': [
181           ['os_posix==1 and OS!="mac"', {
182             'cflags': ['-fvisibility=hidden'],
183             'type': 'shared_library',
184             # -gstabs, used in the official builds, causes an ICE. Simply remove
185             # it.
186             'cflags!': ['-gstabs'],
187           }],
188           ['OS=="win"', {
189             'type': 'shared_library',
190           }],
191           ['OS=="mac"', {
192             'type': 'loadable_module',
193             'mac_bundle': 1,
194             'product_extension': 'plugin',
195             'xcode_settings': {
196               'OTHER_LDFLAGS': [
197                 # Not to strip important symbols by -Wl,-dead_strip.
198                 '-Wl,-exported_symbol,_PPP_GetInterface',
199                 '-Wl,-exported_symbol,_PPP_InitializeModule',
200                 '-Wl,-exported_symbol,_PPP_ShutdownModule'
201               ]},
202           }],
203         ],
204       },
205     },
206     {
207       'target_name': 'ppapi_example_mouse_cursor',
208       'dependencies': [
209         'ppapi_example_skeleton',
210         'ppapi.gyp:ppapi_cpp',
211       ],
212       'sources': [
213         'examples/mouse_cursor/mouse_cursor.cc',
214       ],
215     },
216     {
217       'target_name': 'ppapi_example_mouse_lock',
218       'dependencies': [
219         'ppapi_example_skeleton',
220         'ppapi.gyp:ppapi_cpp',
221       ],
222       'sources': [
223         'examples/mouse_lock/mouse_lock.cc',
224       ],
225     },
227     {
228       'target_name': 'ppapi_example_gamepad',
229       'dependencies': [
230         'ppapi_example_skeleton',
231         'ppapi.gyp:ppapi_cpp',
232       ],
233       'sources': [
234         'examples/gamepad/gamepad.cc',
235       ],
236     },
238     {
239       'target_name': 'ppapi_example_c_stub',
240       'dependencies': [
241         'ppapi_example_skeleton',
242         'ppapi.gyp:ppapi_c',
243       ],
244       'sources': [
245         'examples/stub/stub.c',
246       ],
247     },
248     {
249       'target_name': 'ppapi_example_cc_stub',
250       'dependencies': [
251         'ppapi_example_skeleton',
252         'ppapi.gyp:ppapi_cpp',
253       ],
254       'sources': [
255         'examples/stub/stub.cc',
256       ],
257     },
258     {
259       'target_name': 'ppapi_example_audio',
260       'dependencies': [
261         'ppapi_example_skeleton',
262         'ppapi.gyp:ppapi_cpp',
263       ],
264       'sources': [
265         'examples/audio/audio.cc',
266       ],
267     },
268     {
269       'target_name': 'ppapi_example_audio_input',
270       'dependencies': [
271         'ppapi_example_skeleton',
272         'ppapi.gyp:ppapi_cpp',
273       ],
274       'sources': [
275         'examples/audio_input/audio_input.cc',
276       ],
277     },
278     {
279       'target_name': 'ppapi_example_file_chooser',
280       'dependencies': [
281         'ppapi_example_skeleton',
282         'ppapi.gyp:ppapi_cpp',
283       ],
284       'sources': [
285         'examples/file_chooser/file_chooser.cc',
286       ],
287     },
288     {
289       'target_name': 'ppapi_example_graphics_2d',
290       'dependencies': [
291         'ppapi_example_skeleton',
292         'ppapi.gyp:ppapi_c',
293       ],
294       'sources': [
295         'examples/2d/graphics_2d_example.c',
296       ],
297     },
298     {
299       'target_name': 'ppapi_example_ime',
300       'dependencies': [
301         'ppapi_example_skeleton',
302         'ppapi.gyp:ppapi_cpp',
303       ],
304       'sources': [
305         'examples/ime/ime.cc',
306       ],
307     },
308     {
309       'target_name': 'ppapi_example_paint_manager',
310       'dependencies': [
311         'ppapi_example_skeleton',
312         'ppapi.gyp:ppapi_cpp',
313       ],
314       'sources': [
315         'examples/2d/paint_manager_example.cc',
316       ],
317     },
318     {
319       'target_name': 'ppapi_example_input',
320       'dependencies': [
321         'ppapi_example_skeleton',
322         'ppapi.gyp:ppapi_cpp',
323       ],
324       'sources': [
325         'examples/input/pointer_event_input.cc',
326       ],
327     },
328     {
329       'target_name': 'ppapi_example_post_message',
330       'dependencies': [
331         'ppapi_example_skeleton',
332         'ppapi.gyp:ppapi_cpp',
333       ],
334       'sources': [
335         'examples/scripting/post_message.cc',
336       ],
337     },
338     {
339       'target_name': 'ppapi_example_scroll',
340       'dependencies': [
341         'ppapi_example_skeleton',
342         'ppapi.gyp:ppapi_cpp',
343       ],
344       'sources': [
345         'examples/2d/scroll.cc',
346       ],
347     },
348     {
349       'target_name': 'ppapi_example_simple_font',
350       'dependencies': [
351         'ppapi_example_skeleton',
352         'ppapi.gyp:ppapi_cpp',
353       ],
354       'sources': [
355         'examples/font/simple_font.cc',
356       ],
357     },
358     {
359       'target_name': 'ppapi_example_url_loader',
360       'dependencies': [
361         'ppapi_example_skeleton',
362         'ppapi.gyp:ppapi_cpp',
363       ],
364       'sources': [
365         'examples/url_loader/streaming.cc',
366       ],
367     },
368     {
369       'target_name': 'ppapi_example_gles2',
370       'dependencies': [
371         'ppapi_example_skeleton',
372         'ppapi.gyp:ppapi_cpp',
373         'ppapi.gyp:ppapi_gles2',
374         'ppapi.gyp:ppapi_egl',
375       ],
376       'include_dirs': [
377         'lib/gl/include',
378       ],
379       'sources': [
380         'examples/gles2/gles2.cc',
381       ],
382     },
383     {
384       'target_name': 'ppapi_example_video_decode',
385       'dependencies': [
386         'ppapi_example_skeleton',
387         'ppapi.gyp:ppapi_cpp',
388         'ppapi.gyp:ppapi_gles2',
389         'ppapi.gyp:ppapi_egl',
390       ],
391       'include_dirs': [
392         'lib/gl/include',
393       ],
394       'sources': [
395         'examples/video_decode/video_decode.cc',
396         'examples/video_decode/testdata.h',
397       ],
398     },
399     {
400       'target_name': 'ppapi_example_vc',
401       'dependencies': [
402         'ppapi_example_skeleton',
403         'ppapi.gyp:ppapi_cpp',
404         'ppapi.gyp:ppapi_gles2',
405         'ppapi.gyp:ppapi_egl',
406       ],
407       'include_dirs': [
408         'lib/gl/include',
409       ],
410       'sources': [
411         'examples/video_capture/video_capture.cc',
412       ],
413     },
414     {
415       'target_name': 'ppapi_example_enumerate_devices',
416       'dependencies': [
417         'ppapi_example_skeleton',
418         'ppapi.gyp:ppapi_cpp',
419       ],
420       'sources': [
421         'examples/enumerate_devices/enumerate_devices.cc',
422       ],
423     },
424     {
425       'target_name': 'ppapi_example_flash_topmost',
426       'dependencies': [
427         'ppapi_example_skeleton',
428         'ppapi.gyp:ppapi_cpp',
429       ],
430       'sources': [
431         'examples/flash_topmost/flash_topmost.cc',
432       ],
433     },
434     {
435       'target_name': 'ppapi_example_printing',
436       'dependencies': [
437         'ppapi_example_skeleton',
438         'ppapi.gyp:ppapi_cpp',
439       ],
440       'sources': [
441         'examples/printing/printing.cc',
442       ],
443     },
444   ],