| OLD | NEW |
| 1 | 1 |
| 2 { | 2 { |
| 3 'targets': [ | 3 'targets': [ |
| 4 { | 4 { |
| 5 'target_name': 'pepper_test_plugin', | 5 'target_name': 'pepper_test_plugin', |
| 6 'type': 'shared_library', | 6 'type': 'shared_library', |
| 7 'dependencies': [ | 7 'dependencies': [ |
| 8 '../../../gpu/gpu.gyp:pgl', |
| 8 '../../../third_party/npapi/npapi.gyp:npapi', | 9 '../../../third_party/npapi/npapi.gyp:npapi', |
| 9 ], | 10 ], |
| 10 'include_dirs': [ | 11 'include_dirs': [ |
| 11 '../../..', # Root of Chrome Checkout | 12 '../../..', # Root of Chrome Checkout |
| 12 ], | 13 ], |
| 13 'conditions': [ | 14 'conditions': [ |
| 14 ['OS=="win"', { | 15 ['OS=="win"', { |
| 15 'product_name': 'pepper_test_plugin', | 16 'product_name': 'pepper_test_plugin', |
| 16 'msvs_guid': 'EE00E36E-9E8C-4DFB-925E-FBE32CEDB91A', | 17 'msvs_guid': 'EE00E36E-9E8C-4DFB-925E-FBE32CEDB91A', |
| 17 'dependencies': [ | 18 'dependencies': [ |
| 18 '../../../gpu/gpu.gyp:gles2_demo_lib', | 19 '../../../gpu/gpu.gyp:gles2_demo_lib', |
| 19 ], | 20 ], |
| 20 'sources': [ | 21 'sources': [ |
| 21 'pepper_test_plugin.def', | 22 'pepper_test_plugin.def', |
| 22 'pepper_test_plugin.rc', | 23 'pepper_test_plugin.rc', |
| 23 ], | 24 ], |
| 24 }], | 25 }], |
| 25 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm")', { | 26 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm")', { |
| 26 # Shared libraries need -fPIC on x86-64 | 27 # Shared libraries need -fPIC on x86-64 |
| 27 'cflags': ['-fPIC'], | 28 'cflags': ['-fPIC'], |
| 28 'defines': ['INDEPENDENT_PLUGIN'], | 29 'defines': ['INDEPENDENT_PLUGIN'], |
| 29 }, { | 30 }, { |
| 30 'dependencies': [ | 31 'dependencies': [ |
| 31 '../../../base/base.gyp:base', | 32 '../../../base/base.gyp:base', |
| 32 '../../../skia/skia.gyp:skia', | 33 '../../../skia/skia.gyp:skia', |
| 33 ], | 34 ], |
| 34 }], | 35 }], |
| 35 ], | 36 ], |
| 36 'sources': [ | 37 'sources': [ |
| 37 'command_buffer_pepper.cc', | |
| 38 'command_buffer_pepper.h', | |
| 39 'main.cc', | 38 'main.cc', |
| 40 'plugin_object.cc', | 39 'plugin_object.cc', |
| 41 'plugin_object.h', | 40 'plugin_object.h', |
| 42 'test_object.cc', | 41 'test_object.cc', |
| 43 'test_object.h', | 42 'test_object.h', |
| 44 'event_handler.cc', | 43 'event_handler.cc', |
| 45 'event_handler.h' | 44 'event_handler.h' |
| 46 ], | 45 ], |
| 47 'run_as': { | 46 'run_as': { |
| 48 'action': [ | 47 'action': [ |
| 49 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', | 48 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', |
| 50 '--no-sandbox', | 49 '--no-sandbox', |
| 51 '--internal-pepper', | 50 '--internal-pepper', |
| 52 '--enable-gpu-plugin', | 51 '--enable-gpu-plugin', |
| 53 '--load-plugin=$(TargetPath)', | 52 '--load-plugin=$(TargetPath)', |
| 54 'file://$(ProjectDir)test_page.html', | 53 'file://$(ProjectDir)test_page.html', |
| 55 ], | 54 ], |
| 56 }, | 55 }, |
| 57 } | 56 } |
| 58 ], | 57 ], |
| 59 } | 58 } |
| OLD | NEW |