| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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 { | 6 { |
| 7 'targets': [ | 7 'targets': [ |
| 8 { | 8 { |
| 9 'target_name': 'pepper_test_plugin', | 9 'target_name': 'pepper_test_plugin', |
| 10 'dependencies': [ | 10 'dependencies': [ |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 'test_object.cc', | 23 'test_object.cc', |
| 24 'test_object.h', | 24 'test_object.h', |
| 25 'event_handler.cc', | 25 'event_handler.cc', |
| 26 'event_handler.h' | 26 'event_handler.h' |
| 27 ], | 27 ], |
| 28 'conditions': [ | 28 'conditions': [ |
| 29 ['OS=="win"', { | 29 ['OS=="win"', { |
| 30 'product_name': 'pepper_test_plugin', | 30 'product_name': 'pepper_test_plugin', |
| 31 'type': 'shared_library', | 31 'type': 'shared_library', |
| 32 'msvs_guid': 'EE00E36E-9E8C-4DFB-925E-FBE32CEDB91A', | 32 'msvs_guid': 'EE00E36E-9E8C-4DFB-925E-FBE32CEDB91A', |
| 33 'dependencies': [ | |
| 34 '../../../gpu/gpu.gyp:gles2_demo_lib', | |
| 35 '../../../gpu/gpu.gyp:pgl', | |
| 36 ], | |
| 37 'sources': [ | 33 'sources': [ |
| 38 'pepper_test_plugin.def', | 34 'pepper_test_plugin.def', |
| 39 'pepper_test_plugin.rc', | 35 'pepper_test_plugin.rc', |
| 40 ], | 36 ], |
| 41 'run_as': { | 37 'run_as': { |
| 42 'action': [ | 38 'action': [ |
| 43 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', | 39 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)chrome<(EXECUTABLE_SUFFIX)', |
| 44 '--no-sandbox', | 40 '--no-sandbox', |
| 45 '--internal-pepper', | 41 '--internal-pepper', |
| 46 '--enable-gpu-plugin', | 42 '--enable-gpu-plugin', |
| 47 '--load-plugin=$(TargetPath)', | 43 '--load-plugin=$(TargetPath)', |
| 48 'file://$(ProjectDir)test_page.html', | 44 'file://$(ProjectDir)test_page.html', |
| 49 ], | 45 ], |
| 50 }, | 46 }, |
| 51 }], | 47 }], |
| 52 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm")', { | 48 ['OS=="linux"', { |
| 49 'type': 'shared_library', |
| 50 'cflags': ['-fvisibility=hidden'], |
| 51 # -gstabs, used in the official builds, causes an ICE. Simply remove |
| 52 # it. |
| 53 'cflags!': ['-gstabs'], |
| 54 }], |
| 55 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm") and linux_f
pic!=1', { |
| 53 'product_name': 'pepper_test_plugin', | 56 'product_name': 'pepper_test_plugin', |
| 54 # Shared libraries need -fPIC on x86-64 | 57 # Shared libraries need -fPIC on x86-64 |
| 55 'cflags': ['-fPIC'], | 58 'cflags': ['-fPIC'], |
| 56 'defines': ['INDEPENDENT_PLUGIN'], | 59 'defines': ['INDEPENDENT_PLUGIN'], |
| 57 }, { | 60 }, { |
| 58 'dependencies': [ | 61 'dependencies': [ |
| 59 '../../../base/base.gyp:base', | 62 '../../../base/base.gyp:base', |
| 60 '../../../skia/skia.gyp:skia', | 63 '../../../skia/skia.gyp:skia', |
| 61 ], | 64 ], |
| 65 'conditions': [ |
| 66 ['OS!="mac"', { |
| 67 'dependencies': [ |
| 68 '../../../gpu/gpu.gyp:gles2_demo_lib', |
| 69 '../../../gpu/gpu.gyp:pgl', |
| 70 ], |
| 71 }], |
| 72 ] |
| 62 }], | 73 }], |
| 63 ['OS=="mac"', { | 74 ['OS=="mac"', { |
| 64 'type': 'loadable_module', | 75 'type': 'loadable_module', |
| 65 'mac_bundle': 1, | 76 'mac_bundle': 1, |
| 66 'product_name': 'PepperTestPlugin', | 77 'product_name': 'PepperTestPlugin', |
| 67 'product_extension': 'plugin', | 78 'product_extension': 'plugin', |
| 68 'defines': ['INDEPENDENT_PLUGIN'], | 79 'defines': ['INDEPENDENT_PLUGIN'], |
| 69 'sources+': [ | 80 'sources+': [ |
| 70 'Info.plist' | 81 'Info.plist' |
| 71 ], | 82 ], |
| 72 }], | 83 }], |
| 73 ], | 84 ], |
| 74 # See README for instructions on how to run and debug on the Mac. | 85 # See README for instructions on how to run and debug on the Mac. |
| 75 #'conditions' : [ | 86 #'conditions' : [ |
| 76 # ['OS=="mac"', { | 87 # ['OS=="mac"', { |
| 77 # 'target_name' : 'Chromium', | 88 # 'target_name' : 'Chromium', |
| 78 # 'type' : 'executable', | 89 # 'type' : 'executable', |
| 79 # 'xcode_settings' : { | 90 # 'xcode_settings' : { |
| 80 # 'ARGUMENTS' : '--renderer-startup-dialog --internal-pepper --no-san
dbox file://${SRCROOT}/test_page.html' | 91 # 'ARGUMENTS' : '--renderer-startup-dialog --internal-pepper --no-san
dbox file://${SRCROOT}/test_page.html' |
| 81 # }, | 92 # }, |
| 82 # }], | 93 # }], |
| 83 #], | 94 #], |
| 84 }, | 95 }, |
| 85 ], | 96 ], |
| 86 } | 97 } |
| OLD | NEW |