Index: pdfium.gyp |
diff --git a/pdfium.gyp b/pdfium.gyp |
index 6ea3f4ab07bb2de5f6b16023a7fb1cc898cf99eb..2c1117277d5153576a7f434dde145355709e9c3c 100644 |
--- a/pdfium.gyp |
+++ b/pdfium.gyp |
@@ -721,6 +721,7 @@ |
'<(DEPTH)/testing/gtest.gyp:gtest_main', |
'<(DEPTH)/testing/gtest.gyp:gtest', |
'pdfium', |
+ 'test_support', |
], |
'include_dirs': [ |
'<(DEPTH)' |
@@ -744,6 +745,7 @@ |
'<(DEPTH)/testing/gmock.gyp:gmock', |
'<(DEPTH)/testing/gtest.gyp:gtest', |
'pdfium', |
+ 'test_support', |
], |
'include_dirs': [ |
'<(DEPTH)', |
@@ -762,8 +764,6 @@ |
'testing/embedder_test.h', |
'testing/embedder_test_mock_delegate.h', |
'testing/embedder_test_timer_handling_delegate.h', |
- 'testing/fx_string_testhelpers.cpp', |
- 'testing/fx_string_testhelpers.h', |
], |
'conditions': [ |
['pdf_enable_v8==1', { |
@@ -781,5 +781,34 @@ |
}], |
], |
}, |
+ { |
+ 'target_name': 'test_support', |
+ 'type': 'static_library', |
+ 'dependencies': [ |
+ '<(DEPTH)/testing/gmock.gyp:gmock', |
+ '<(DEPTH)/testing/gtest.gyp:gtest', |
+ ], |
+ 'include_dirs': [ |
+ '<(DEPTH)', |
+ ], |
+ 'sources': [ |
+ 'testing/fx_string_testhelpers.cpp', |
+ 'testing/fx_string_testhelpers.h', |
+ 'testing/test_support.cpp', |
+ 'testing/test_support.h', |
+ ], |
+ 'conditions': [ |
+ ['pdf_enable_v8==1', { |
+ 'include_dirs': [ |
+ '<(DEPTH)/v8', |
+ '<(DEPTH)/v8/include', |
+ ], |
+ 'dependencies': [ |
+ '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', |
+ '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', |
+ ], |
+ }], |
+ ], |
+ }, |
], |
} |