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