| 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': [
|
| {
|
|
|