| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'targets': [ | 6 'targets': [ |
| 7 { | 7 { |
| 8 'target_name': 'ppapi_example', | 8 'target_name': 'ppapi_example', |
| 9 'dependencies': [ | 9 'dependencies': [ |
| 10 'ppapi.gyp:ppapi_cpp' | 10 'ppapi.gyp:ppapi_cpp' |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 }, | 190 }, |
| 191 ], | 191 ], |
| 192 | 192 |
| 193 'conditions': [ | 193 'conditions': [ |
| 194 # NOTE: the PPAPI examples fail to build on mac & windows. | 194 # NOTE: the PPAPI examples fail to build on mac & windows. |
| 195 # http://code.google.com/p/chromium/issues/detail?id=54005 tracks mac. | 195 # http://code.google.com/p/chromium/issues/detail?id=54005 tracks mac. |
| 196 # TODO(ppapi authors): Make the examples build on Windows as well. | 196 # TODO(ppapi authors): Make the examples build on Windows as well. |
| 197 ['OS!="win" and OS!="mac"', { | 197 ['OS!="win" and OS!="mac"', { |
| 198 'targets': [ | 198 'targets': [ |
| 199 { | 199 { |
| 200 'target_name': 'ppapi_example_base_skeleton', | 200 'target_name': 'ppapi_example_skeleton', |
| 201 'type': 'none', | 201 'type': 'none', |
| 202 'direct_dependent_settings': { | 202 'direct_dependent_settings': { |
| 203 'product_name': '>(_target_name)', | 203 'product_name': '>(_target_name)', |
| 204 'conditions': [ | 204 'conditions': [ |
| 205 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"',
{ | 205 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"',
{ |
| 206 'cflags': ['-fvisibility=hidden'], | 206 'cflags': ['-fvisibility=hidden'], |
| 207 'variables': { 'concrete_type': 'shared_library' }, | 207 'type': 'shared_library', |
| 208 # -gstabs, used in the official builds, causes an ICE. Simply re
move | 208 # -gstabs, used in the official builds, causes an ICE. Simply re
move |
| 209 # it. | 209 # it. |
| 210 'cflags!': ['-gstabs'], | 210 'cflags!': ['-gstabs'], |
| 211 }], | 211 }], |
| 212 ['OS=="win"', { | 212 ['OS=="win"', { |
| 213 'variables': { 'concrete_type': 'shared_library' }, | 213 'type': 'shared_library', |
| 214 }], | 214 }], |
| 215 ['OS=="mac"', { | 215 ['OS=="mac"', { |
| 216 'variables': { 'concrete_type': 'loadable_module' }, | 216 'type': 'loadable_module', |
| 217 }], | 217 }], |
| 218 ], | 218 ], |
| 219 }, | 219 }, |
| 220 }, | 220 }, |
| 221 { | 221 { |
| 222 'target_name': 'ppapi_example_cpp_skeleton', | |
| 223 'type': 'none', | |
| 224 'direct_dependent_settings': { | |
| 225 'type': '>(concrete_type)', | |
| 226 }, | |
| 227 'dependencies': [ | |
| 228 'ppapi_example_base_skeleton', | |
| 229 'ppapi.gyp:ppapi_cpp', | |
| 230 ], | |
| 231 'export_dependent_settings': [ | |
| 232 'ppapi_example_base_skeleton', | |
| 233 'ppapi.gyp:ppapi_cpp', | |
| 234 ], | |
| 235 }, | |
| 236 { | |
| 237 'target_name': 'ppapi_example_c_skeleton', | |
| 238 'type': 'none', | |
| 239 'direct_dependent_settings': { | |
| 240 'type': '>(concrete_type)', | |
| 241 }, | |
| 242 'dependencies': [ | |
| 243 'ppapi_example_base_skeleton', | |
| 244 'ppapi.gyp:ppapi_c', | |
| 245 ], | |
| 246 'export_dependent_settings': [ | |
| 247 'ppapi_example_base_skeleton', | |
| 248 'ppapi.gyp:ppapi_c', | |
| 249 ], | |
| 250 }, | |
| 251 { | |
| 252 'target_name': 'ppapi_example_c_stub', | 222 'target_name': 'ppapi_example_c_stub', |
| 253 'dependencies': [ | 223 'dependencies': [ |
| 254 'ppapi_example_c_skeleton', | 224 'ppapi_example_skeleton', |
| 225 'ppapi.gyp:ppapi_c', |
| 255 ], | 226 ], |
| 256 'sources': [ | 227 'sources': [ |
| 257 'examples/stub/stub.c', | 228 'examples/stub/stub.c', |
| 258 ], | 229 ], |
| 259 }, | 230 }, |
| 260 { | 231 { |
| 261 'target_name': 'ppapi_example_cc_stub', | 232 'target_name': 'ppapi_example_cc_stub', |
| 262 'dependencies': [ | 233 'dependencies': [ |
| 263 'ppapi_example_cpp_skeleton', | 234 'ppapi_example_skeleton', |
| 235 'ppapi.gyp:ppapi_cpp', |
| 264 ], | 236 ], |
| 265 'sources': [ | 237 'sources': [ |
| 266 'examples/stub/stub.cc', | 238 'examples/stub/stub.cc', |
| 267 ], | 239 ], |
| 268 }, | 240 }, |
| 269 { | 241 { |
| 270 'target_name': 'ppapi_example_audio', | 242 'target_name': 'ppapi_example_audio', |
| 271 'dependencies': [ | 243 'dependencies': [ |
| 272 'ppapi_example_cpp_skeleton', | 244 'ppapi_example_skeleton', |
| 245 'ppapi.gyp:ppapi_cpp', |
| 273 ], | 246 ], |
| 274 'sources': [ | 247 'sources': [ |
| 275 'examples/audio/audio.cc', | 248 'examples/audio/audio.cc', |
| 276 ], | 249 ], |
| 277 }, | 250 }, |
| 278 { | 251 { |
| 279 'target_name': 'ppapi_example_file_chooser', | 252 'target_name': 'ppapi_example_file_chooser', |
| 280 'dependencies': [ | 253 'dependencies': [ |
| 281 'ppapi_example_cpp_skeleton', | 254 'ppapi_example_skeleton', |
| 255 'ppapi.gyp:ppapi_cpp', |
| 282 ], | 256 ], |
| 283 'sources': [ | 257 'sources': [ |
| 284 'examples/file_chooser/file_chooser.cc', | 258 'examples/file_chooser/file_chooser.cc', |
| 285 ], | 259 ], |
| 286 }, | 260 }, |
| 287 { | 261 { |
| 288 'target_name': 'ppapi_example_graphics_2d', | 262 'target_name': 'ppapi_example_graphics_2d', |
| 289 'dependencies': [ | 263 'dependencies': [ |
| 290 'ppapi_example_c_skeleton', | 264 'ppapi_example_skeleton', |
| 265 'ppapi.gyp:ppapi_c', |
| 291 ], | 266 ], |
| 292 'sources': [ | 267 'sources': [ |
| 293 'examples/2d/graphics_2d_example.c', | 268 'examples/2d/graphics_2d_example.c', |
| 294 ], | 269 ], |
| 295 }, | 270 }, |
| 296 { | 271 { |
| 297 'target_name': 'ppapi_example_paint_manager', | 272 'target_name': 'ppapi_example_paint_manager', |
| 298 'dependencies': [ | 273 'dependencies': [ |
| 299 'ppapi_example_cpp_skeleton', | 274 'ppapi_example_skeleton', |
| 275 'ppapi.gyp:ppapi_cpp', |
| 300 ], | 276 ], |
| 301 'sources': [ | 277 'sources': [ |
| 302 'examples/2d/paint_manager_example.cc', | 278 'examples/2d/paint_manager_example.cc', |
| 303 ], | 279 ], |
| 304 }, | 280 }, |
| 305 { | 281 { |
| 306 'target_name': 'ppapi_example_post_message', | 282 'target_name': 'ppapi_example_post_message', |
| 307 'dependencies': [ | 283 'dependencies': [ |
| 308 'ppapi_example_cpp_skeleton', | 284 'ppapi_example_skeleton', |
| 285 'ppapi.gyp:ppapi_cpp', |
| 309 ], | 286 ], |
| 310 'sources': [ | 287 'sources': [ |
| 311 'examples/scripting/post_message.cc', | 288 'examples/scripting/post_message.cc', |
| 312 ], | 289 ], |
| 313 }, | 290 }, |
| 314 { | 291 { |
| 315 'target_name': 'ppapi_example_scroll', | 292 'target_name': 'ppapi_example_scroll', |
| 316 'dependencies': [ | 293 'dependencies': [ |
| 317 'ppapi_example_cpp_skeleton', | 294 'ppapi_example_skeleton', |
| 295 'ppapi.gyp:ppapi_cpp', |
| 318 ], | 296 ], |
| 319 'sources': [ | 297 'sources': [ |
| 320 'examples/2d/scroll.cc', | 298 'examples/2d/scroll.cc', |
| 321 ], | 299 ], |
| 322 }, | 300 }, |
| 323 { | 301 { |
| 324 'target_name': 'ppapi_example_simple_font', | 302 'target_name': 'ppapi_example_simple_font', |
| 325 'dependencies': [ | 303 'dependencies': [ |
| 326 'ppapi_example_cpp_skeleton', | 304 'ppapi_example_skeleton', |
| 305 'ppapi.gyp:ppapi_cpp', |
| 327 ], | 306 ], |
| 328 'sources': [ | 307 'sources': [ |
| 329 'examples/font/simple_font.cc', | 308 'examples/font/simple_font.cc', |
| 330 ], | 309 ], |
| 331 }, | 310 }, |
| 332 { | 311 { |
| 333 'target_name': 'ppapi_example_gles2', | 312 'target_name': 'ppapi_example_gles2', |
| 334 'dependencies': [ | 313 'dependencies': [ |
| 335 'ppapi_example_cpp_skeleton', | 314 'ppapi_example_skeleton', |
| 315 'ppapi.gyp:ppapi_cpp', |
| 336 'ppapi.gyp:ppapi_gles2', | 316 'ppapi.gyp:ppapi_gles2', |
| 337 'lib/gl/gl.gyp:ppapi_egl', | 317 'lib/gl/gl.gyp:ppapi_egl', |
| 338 ], | 318 ], |
| 339 'include_dirs': [ | 319 'include_dirs': [ |
| 340 'lib/gl/include', | 320 'lib/gl/include', |
| 341 ], | 321 ], |
| 342 'sources': [ | 322 'sources': [ |
| 343 'examples/gles2/gles2.cc', | 323 'examples/gles2/gles2.cc', |
| 344 'examples/gles2/testdata.h', | 324 'examples/gles2/testdata.h', |
| 345 ], | 325 ], |
| 346 }, | 326 }, |
| 347 ], | 327 ], |
| 348 }] | 328 }] |
| 349 ] | 329 ] |
| 350 } | 330 } |
| OLD | NEW |