Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Unified Diff: chrome/chrome_tests.gypi

Issue 2043006: WTF NPAPI extension. Early draft. Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/common.gypi ('k') | chrome/test/wtflib/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/chrome_tests.gypi
===================================================================
--- chrome/chrome_tests.gypi (revision 46298)
+++ chrome/chrome_tests.gypi (working copy)
@@ -2205,6 +2205,101 @@
}, # target 'pyautolib'
] # targets
}],
+ ['(OS=="linux") and linux_fpic==1', {
+ 'targets': [
+ {
+ 'target_name': 'wtflib',
+ 'type': 'shared_library',
+ 'product_prefix': 'np',
+ 'dependencies': [
+ 'chrome',
+ 'debugger',
+ 'syncapi',
+ 'test_support_common',
+ 'chrome_resources',
+ 'chrome_strings',
+ 'theme_resources',
+ '../skia/skia.gyp:skia',
+ '../testing/gtest.gyp:gtest',
+ ],
+ 'export_dependent_settings': [
+ 'test_support_common',
+ ],
+ 'include_dirs': [
+ '..',
+ 'test/wtflib',
+ '../tools/nixysa/nixysa/static_glue/npapi',
+ '../tools/nixysa/third_party/npapi/include',
+ '<(INTERMEDIATE_DIR)/glue',
+ ],
+ 'sources': [
+ 'test/wtflib/wtf.cc',
+ 'test/wtflib/wtf.h',
+
+ 'test/wtflib/wtf_testsuite.cc',
+ 'test/wtflib/wtf_testsuite.h',
+
+ 'test/ui/ui_test.cc',
+ 'test/ui/ui_test.h',
+ 'test/ui/ui_test_suite.cc',
+ 'test/ui/ui_test_suite.h',
+
+ # npapi glue from here on
+ 'test/wtflib/plugin.cc',
+ '../tools/nixysa/nixysa/static_glue/npapi/common.cc',
+ '../tools/nixysa/nixysa/static_glue/npapi/common.h',
+ '../tools/nixysa/nixysa/static_glue/npapi/npn_api.cc',
+ '../tools/nixysa/nixysa/static_glue/npapi/npn_api.h',
+ '../tools/nixysa/nixysa/static_glue/npapi/static_object.cc',
+ '../tools/nixysa/nixysa/static_glue/npapi/static_object.h',
+ '../tools/nixysa/nixysa/static_glue/npapi/main.cc',
+ '../tools/nixysa/nixysa/static_glue/npapi/plugin_main.h',
+
+ '<(INTERMEDIATE_DIR)/glue/wtf_glue.cc',
+ '<(INTERMEDIATE_DIR)/glue/wtf_glue.h',
+ '<(INTERMEDIATE_DIR)/glue/globals_glue.cc',
+ '<(INTERMEDIATE_DIR)/glue/globals_glue.h',
+ ],
+ 'conditions': [
+ ['OS=="linux"', {
+ 'include_dirs': [
+ '..',
+ ],
+ 'dependencies': [
+ '../build/linux/system.gyp:gtk',
+ ],
+ 'cflags': [
+ '-Wno-error',
+ '-fPIC',
+ '-DOS_LINUX',
+ '-fvisibility=default',
+ ],
+ 'link_settings': {
+ },
+ }],
+ ],
+ 'actions': [
+ {
+ 'action_name': 'wtflib_nyxia_gen',
+ 'inputs': [
+ 'test/wtflib/wtf.idl',
+ ],
+ 'outputs': [
+ '<(INTERMEDIATE_DIR)/glue/wtf_glue.cc',
+ '<(INTERMEDIATE_DIR)/glue/wtf_glue.h',
+ '<(INTERMEDIATE_DIR)/glue/globals_glue.cc',
+ '<(INTERMEDIATE_DIR)/glue/globals_glue.h',
+ ],
+ 'action': ['../tools/nixysa/nixysa/codegen.sh',
+ '--output-dir=<(INTERMEDIATE_DIR)/glue'
+ '--generate=npapi'
+ 'test/wtflib/wtf.idl',],
+ 'message': 'Generating NPAPI glue for test/wtflib/wtf.idl',
+ },
+ ], # actions
+ }, # target 'wtflib'
+ ] # targets
+ }],
['coverage!=0',
{ 'targets': [
{
« no previous file with comments | « build/common.gypi ('k') | chrome/test/wtflib/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698