| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2011 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 'targets': [ | |
| 7 { | |
| 8 'target_name': 'ppapi_example', | |
| 9 'dependencies': [ | |
| 10 'ppapi_cpp' | |
| 11 ], | |
| 12 'xcode_settings': { | |
| 13 'INFOPLIST_FILE': 'example/Info.plist', | |
| 14 }, | |
| 15 'sources': [ | |
| 16 'example/example.cc', | |
| 17 ], | |
| 18 'conditions': [ | |
| 19 ['OS=="win"', { | |
| 20 'product_name': 'ppapi_example', | |
| 21 'type': 'shared_library', | |
| 22 'msvs_guid': 'EE00E36E-9E8C-4DFB-925E-FBE32CEDB91B', | |
| 23 'sources': [ | |
| 24 'example/example.rc', | |
| 25 ], | |
| 26 'run_as': { | |
| 27 'action': [ | |
| 28 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', | |
| 29 '--register-pepper-plugins=$(TargetPath);application/x-ppapi-examp
le', | |
| 30 'file://$(ProjectDir)/example/example.html', | |
| 31 ], | |
| 32 }, | |
| 33 }], | |
| 34 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { | |
| 35 'product_name': 'ppapi_example', | |
| 36 'type': 'shared_library', | |
| 37 'cflags': ['-fvisibility=hidden'], | |
| 38 # -gstabs, used in the official builds, causes an ICE. Simply remove | |
| 39 # it. | |
| 40 'cflags!': ['-gstabs'], | |
| 41 }], | |
| 42 ['OS=="mac"', { | |
| 43 'type': 'loadable_module', | |
| 44 'mac_bundle': 1, | |
| 45 'product_name': 'PPAPIExample', | |
| 46 'product_extension': 'plugin', | |
| 47 'sources+': [ | |
| 48 'example/Info.plist' | |
| 49 ], | |
| 50 }], | |
| 51 ], | |
| 52 # See README for instructions on how to run and debug on the Mac. | |
| 53 #'conditions' : [ | |
| 54 # ['OS=="mac"', { | |
| 55 # 'target_name' : 'Chromium', | |
| 56 # 'type' : 'executable', | |
| 57 # 'xcode_settings' : { | |
| 58 # 'ARGUMENTS' : '--renderer-startup-dialog --internal-pepper --no-san
dbox file://${SRCROOT}/test_page.html' | |
| 59 # }, | |
| 60 # }], | |
| 61 #], | |
| 62 }, | |
| 63 # { | |
| 64 # 'target_name': 'ppapi_example_skeleton', | |
| 65 # 'type': 'none', | |
| 66 # 'dependencies': [ | |
| 67 # 'ppapi_cpp', | |
| 68 # ], | |
| 69 # 'export_dependent_setting': ['ppapi_cpp'], | |
| 70 # 'direct_dependent_settings': { | |
| 71 # 'product_name': '>(_target_name)', | |
| 72 # 'conditions': [ | |
| 73 # ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { | |
| 74 # 'type': 'shared_library', | |
| 75 # 'cflags': ['-fvisibility=hidden'], | |
| 76 # # -gstabs, used in the official builds, causes an ICE. Simply remov
e | |
| 77 # # it. | |
| 78 # 'cflags!': ['-gstabs'], | |
| 79 # }], | |
| 80 # # TODO(ppapi authors): Make the examples build on Windows & Mac | |
| 81 # ['OS=="win"', { | |
| 82 # 'suppress_wildcard': 1, | |
| 83 # 'type': 'shared_library', | |
| 84 # }], | |
| 85 # ['OS=="mac"', { | |
| 86 # 'suppress_wildcard': 1, | |
| 87 # 'type': 'loadable_module', | |
| 88 # }], | |
| 89 # ], | |
| 90 # }, | |
| 91 # }, | |
| 92 # { | |
| 93 # 'target_name': 'ppapi_example_c_stub', | |
| 94 # 'dependencies': [ | |
| 95 # 'ppapi_example_skeleton', | |
| 96 # ], | |
| 97 # 'sources': [ | |
| 98 # 'examples/stub/stub.c', | |
| 99 # ], | |
| 100 # }, | |
| 101 # { | |
| 102 # 'target_name': 'ppapi_example_cc_stub', | |
| 103 # 'dependencies': [ | |
| 104 # 'ppapi_example_skeleton', | |
| 105 # ], | |
| 106 # 'sources': [ | |
| 107 # 'examples/stub/stub.cc', | |
| 108 # ], | |
| 109 # }, | |
| 110 # { | |
| 111 # 'target_name': 'ppapi_example_audio', | |
| 112 # 'dependencies': [ | |
| 113 # 'ppapi_example_skeleton', | |
| 114 # ], | |
| 115 # 'sources': [ | |
| 116 # 'examples/audio/audio.cc', | |
| 117 # ], | |
| 118 # }, | |
| 119 # { | |
| 120 # 'target_name': 'ppapi_example_file_chooser', | |
| 121 # 'dependencies': [ | |
| 122 # 'ppapi_example_skeleton', | |
| 123 # ], | |
| 124 # 'sources': [ | |
| 125 # 'examples/file_chooser/file_chooser.cc', | |
| 126 # ], | |
| 127 # }, | |
| 128 # { | |
| 129 # 'target_name': 'ppapi_example_graphics_2d', | |
| 130 # 'dependencies': [ | |
| 131 # 'ppapi_example_skeleton', | |
| 132 # ], | |
| 133 # 'sources': [ | |
| 134 # 'examples/2d/graphics_2d_example.c', | |
| 135 # ], | |
| 136 # }, | |
| 137 # { | |
| 138 # 'target_name': 'ppapi_example_paint_manager', | |
| 139 # 'dependencies': [ | |
| 140 # 'ppapi_example_skeleton', | |
| 141 # ], | |
| 142 # 'sources': [ | |
| 143 # 'examples/2d/paint_manager_example.cc', | |
| 144 # ], | |
| 145 # }, | |
| 146 # { | |
| 147 # 'target_name': 'ppapi_example_post_message', | |
| 148 # 'dependencies': [ | |
| 149 # 'ppapi_example_skeleton', | |
| 150 # ], | |
| 151 # 'sources': [ | |
| 152 # 'examples/scripting/post_message.cc', | |
| 153 # ], | |
| 154 # }, | |
| 155 # { | |
| 156 # 'target_name': 'ppapi_example_scroll', | |
| 157 # 'dependencies': [ | |
| 158 # 'ppapi_example_skeleton', | |
| 159 # ], | |
| 160 # 'sources': [ | |
| 161 # 'examples/2d/scroll.cc', | |
| 162 # ], | |
| 163 # }, | |
| 164 # { | |
| 165 # 'target_name': 'ppapi_example_simple_font', | |
| 166 # 'dependencies': [ | |
| 167 # 'ppapi_example_skeleton', | |
| 168 # ], | |
| 169 # 'sources': [ | |
| 170 # 'examples/font/simple_font.cc', | |
| 171 # ], | |
| 172 # }, | |
| 173 # { | |
| 174 # 'target_name': 'ppapi_example_gles2', | |
| 175 # 'dependencies': [ | |
| 176 # 'ppapi_example_skeleton', | |
| 177 # 'ppapi_gles2', | |
| 178 # 'lib/gl/gl.gyp:ppapi_egl', | |
| 179 # ], | |
| 180 # 'include_dirs': [ | |
| 181 # 'lib/gl/include', | |
| 182 # ], | |
| 183 # 'sources': [ | |
| 184 # 'examples/gles2/gles2.cc', | |
| 185 # ], | |
| 186 # }, | |
| 187 { | |
| 188 'target_name': 'ppapi_tests', | |
| 189 'type': 'loadable_module', | |
| 190 'sources': [ | |
| 191 # Common test files. | |
| 192 'tests/test_case.cc', | |
| 193 'tests/test_case.h', | |
| 194 'tests/testing_instance.cc', | |
| 195 'tests/testing_instance.h', | |
| 196 | |
| 197 # Test cases. | |
| 198 'tests/all_c_includes.h', | |
| 199 'tests/all_cpp_includes.h', | |
| 200 'tests/arch_dependent_sizes_32.h', | |
| 201 'tests/arch_dependent_sizes_64.h', | |
| 202 'tests/test_buffer.cc', | |
| 203 'tests/test_buffer.h', | |
| 204 'tests/test_c_includes.c', | |
| 205 'tests/test_char_set.cc', | |
| 206 'tests/test_char_set.h', | |
| 207 'tests/test_cpp_includes.cc', | |
| 208 'tests/test_directory_reader.cc', | |
| 209 'tests/test_directory_reader.h', | |
| 210 'tests/test_file_io.cc', | |
| 211 'tests/test_file_io.h', | |
| 212 'tests/test_file_ref.cc', | |
| 213 'tests/test_file_ref.h', | |
| 214 'tests/test_file_system.cc', | |
| 215 'tests/test_file_system.h', | |
| 216 'tests/test_graphics_2d.cc', | |
| 217 'tests/test_graphics_2d.h', | |
| 218 'tests/test_image_data.cc', | |
| 219 'tests/test_image_data.h', | |
| 220 'tests/test_paint_aggregator.cc', | |
| 221 'tests/test_paint_aggregator.h', | |
| 222 'tests/test_post_message.cc', | |
| 223 'tests/test_post_message.h', | |
| 224 'tests/test_scrollbar.cc', | |
| 225 'tests/test_scrollbar.h', | |
| 226 'tests/test_struct_sizes.c', | |
| 227 'tests/test_uma.cc', | |
| 228 'tests/test_uma.h', | |
| 229 'tests/test_url_loader.cc', | |
| 230 'tests/test_url_loader.h', | |
| 231 'tests/test_url_util.cc', | |
| 232 'tests/test_url_util.h', | |
| 233 'tests/test_utils.cc', | |
| 234 'tests/test_utils.h', | |
| 235 'tests/test_video_decoder.cc', | |
| 236 'tests/test_video_decoder.h', | |
| 237 | |
| 238 # Deprecated test cases. | |
| 239 'tests/test_instance_deprecated.cc', | |
| 240 'tests/test_instance_deprecated.h', | |
| 241 'tests/test_var_deprecated.cc', | |
| 242 'tests/test_var_deprecated.h', | |
| 243 ], | |
| 244 'dependencies': [ | |
| 245 'ppapi_cpp' | |
| 246 ], | |
| 247 'conditions': [ | |
| 248 ['OS=="win"', { | |
| 249 'defines': [ | |
| 250 '_CRT_SECURE_NO_DEPRECATE', | |
| 251 '_CRT_NONSTDC_NO_WARNINGS', | |
| 252 '_CRT_NONSTDC_NO_DEPRECATE', | |
| 253 '_SCL_SECURE_NO_DEPRECATE', | |
| 254 ], | |
| 255 }], | |
| 256 ['OS=="mac"', { | |
| 257 'mac_bundle': 1, | |
| 258 'product_name': 'ppapi_tests', | |
| 259 'product_extension': 'plugin', | |
| 260 }], | |
| 261 ['p2p_apis==1', { | |
| 262 'sources': [ | |
| 263 'tests/test_transport.cc', | |
| 264 'tests/test_transport.h', | |
| 265 ], | |
| 266 }], | |
| 267 ], | |
| 268 # TODO(dmichael): Figure out what is wrong with the script on Windows and add | |
| 269 # it as an automated action. | |
| 270 # 'actions': [ | |
| 271 # { | |
| 272 # 'action_name': 'generate_ppapi_include_tests', | |
| 273 # 'inputs': [], | |
| 274 # 'outputs': [ | |
| 275 # 'tests/test_c_includes.c', | |
| 276 # 'tests/test_cc_includes.cc', | |
| 277 # ], | |
| 278 # 'action': [ | |
| 279 # '<!@(python generate_ppapi_include_tests.py)', | |
| 280 # ], | |
| 281 # }, | |
| 282 # ], | |
| 283 }, | |
| 284 { | |
| 285 'target_name': 'ppapi_unittests', | |
| 286 'type': 'executable', | |
| 287 'variables': { | |
| 288 'chromium_code': 1, | |
| 289 }, | |
| 290 'msvs_guid': 'C2BD9365-5BD7-44A7-854E-A49E606BE8E4', | |
| 291 'dependencies': [ | |
| 292 'ppapi_proxy', | |
| 293 '../base/base.gyp:test_support_base', | |
| 294 '../ipc/ipc.gyp:test_support_ipc', | |
| 295 '../testing/gmock.gyp:gmock', | |
| 296 '../testing/gtest.gyp:gtest', | |
| 297 ], | |
| 298 'sources': [ | |
| 299 'proxy/run_all_unittests.cc', | |
| 300 | |
| 301 'proxy/host_dispatcher_unittest.cc', | |
| 302 'proxy/mock_resource.cc', | |
| 303 'proxy/mock_resource.h', | |
| 304 'proxy/plugin_dispatcher_unittest.cc', | |
| 305 'proxy/plugin_resource_tracker_unittest.cc', | |
| 306 'proxy/plugin_var_tracker_unittest.cc', | |
| 307 'proxy/ppapi_proxy_test.cc', | |
| 308 'proxy/ppapi_proxy_test.h', | |
| 309 'proxy/serialized_var_unittest.cc', | |
| 310 ], | |
| 311 }, | |
| 312 ], | |
| 313 } | |
| OLD | NEW |