OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2010 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_scroll', |
| 148 # 'dependencies': [ |
| 149 # 'ppapi_example_skeleton', |
| 150 # ], |
| 151 # 'sources': [ |
| 152 # 'examples/2d/scroll.cc', |
| 153 # ], |
| 154 # }, |
| 155 # { |
| 156 # 'target_name': 'ppapi_example_simple_font', |
| 157 # 'dependencies': [ |
| 158 # 'ppapi_example_skeleton', |
| 159 # ], |
| 160 # 'sources': [ |
| 161 # 'examples/font/simple_font.cc', |
| 162 # ], |
| 163 # }, |
| 164 { |
| 165 'target_name': 'ppapi_tests', |
| 166 'type': 'loadable_module', |
| 167 'sources': [ |
| 168 # Common test files. |
| 169 'tests/test_case.cc', |
| 170 'tests/test_case.h', |
| 171 'tests/testing_instance.cc', |
| 172 'tests/testing_instance.h', |
| 173 |
| 174 # Test cases. |
| 175 'tests/all_c_includes.h', |
| 176 'tests/all_cpp_includes.h', |
| 177 'tests/arch_dependent_sizes_32.h', |
| 178 'tests/arch_dependent_sizes_64.h', |
| 179 'tests/test_buffer.cc', |
| 180 'tests/test_buffer.h', |
| 181 'tests/test_c_includes.c', |
| 182 'tests/test_char_set.cc', |
| 183 'tests/test_char_set.h', |
| 184 'tests/test_class.cc', |
| 185 'tests/test_class.h', |
| 186 'tests/test_cpp_includes.cc', |
| 187 'tests/test_directory_reader.cc', |
| 188 'tests/test_directory_reader.h', |
| 189 'tests/test_file_io.cc', |
| 190 'tests/test_file_io.h', |
| 191 'tests/test_file_ref.cc', |
| 192 'tests/test_file_ref.h', |
| 193 'tests/test_graphics_2d.cc', |
| 194 'tests/test_graphics_2d.h', |
| 195 'tests/test_image_data.cc', |
| 196 'tests/test_image_data.h', |
| 197 'tests/test_paint_aggregator.cc', |
| 198 'tests/test_paint_aggregator.h', |
| 199 'tests/test_scrollbar.cc', |
| 200 'tests/test_scrollbar.h', |
| 201 'tests/test_struct_sizes.c', |
| 202 'tests/test_transport.cc', |
| 203 'tests/test_transport.h', |
| 204 'tests/test_url_loader.cc', |
| 205 'tests/test_url_loader.h', |
| 206 'tests/test_url_util.cc', |
| 207 'tests/test_url_util.h', |
| 208 'tests/test_utils.cc', |
| 209 'tests/test_utils.h', |
| 210 'tests/test_var.cc', |
| 211 'tests/test_var.h', |
| 212 |
| 213 # Deprecated test cases. |
| 214 'tests/test_instance_deprecated.cc', |
| 215 'tests/test_instance_deprecated.h', |
| 216 'tests/test_var_deprecated.cc', |
| 217 'tests/test_var_deprecated.h', |
| 218 ], |
| 219 'dependencies': [ |
| 220 'ppapi_cpp' |
| 221 ], |
| 222 'conditions': [ |
| 223 ['OS=="win"', { |
| 224 'defines': [ |
| 225 '_CRT_SECURE_NO_DEPRECATE', |
| 226 '_CRT_NONSTDC_NO_WARNINGS', |
| 227 '_CRT_NONSTDC_NO_DEPRECATE', |
| 228 '_SCL_SECURE_NO_DEPRECATE', |
| 229 ], |
| 230 }], |
| 231 ['OS=="mac"', { |
| 232 'mac_bundle': 1, |
| 233 'product_name': 'ppapi_tests', |
| 234 'product_extension': 'plugin', |
| 235 }], |
| 236 ], |
| 237 # TODO(dmichael): Figure out what is wrong with the script on Windows and add |
| 238 # it as an automated action. |
| 239 # 'actions': [ |
| 240 # { |
| 241 # 'action_name': 'generate_ppapi_include_tests', |
| 242 # 'inputs': [], |
| 243 # 'outputs': [ |
| 244 # 'tests/test_c_includes.c', |
| 245 # 'tests/test_cc_includes.cc', |
| 246 # ], |
| 247 # 'action': [ |
| 248 # '<!@(python generate_ppapi_include_tests.py)', |
| 249 # ], |
| 250 # }, |
| 251 # ], |
| 252 }, |
| 253 { |
| 254 'target_name': 'ppapi_unittests', |
| 255 'type': 'executable', |
| 256 'variables': { |
| 257 'chromium_code': 1, |
| 258 }, |
| 259 'msvs_guid': 'C2BD9365-5BD7-44A7-854E-A49E606BE8E4', |
| 260 'dependencies': [ |
| 261 'ppapi_proxy', |
| 262 '../base/base.gyp:test_support_base', |
| 263 '../ipc/ipc.gyp:test_support_ipc', |
| 264 '../testing/gmock.gyp:gmock', |
| 265 '../testing/gtest.gyp:gtest', |
| 266 ], |
| 267 'sources': [ |
| 268 'proxy/run_all_unittests.cc', |
| 269 |
| 270 'proxy/plugin_var_tracker_unittest.cc', |
| 271 ], |
| 272 }, |
| 273 ], |
| 274 } |
OLD | NEW |