summaryrefslogtreecommitdiff
path: root/pdfium.gyp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-10-19 14:03:31 -0700
committerTom Sepez <tsepez@chromium.org>2015-10-19 14:03:31 -0700
commit6d34d056a7188b7ae9800fe3ceb68645e0442879 (patch)
tree44f6f20b8726dfaa76b55a625b8052fade57f486 /pdfium.gyp
parentaff4635dad81bc319266d9d84b81552580cd2b65 (diff)
downloadpdfium-6d34d056a7188b7ae9800fe3ceb68645e0442879.tar.xz
Consolidate test support code.
Removes duplication between pdfium_test and pdfium_embeddertest R=thestig@chromium.org Review URL: https://codereview.chromium.org/1416713002 .
Diffstat (limited to 'pdfium.gyp')
-rw-r--r--pdfium.gyp33
1 files changed, 31 insertions, 2 deletions
diff --git a/pdfium.gyp b/pdfium.gyp
index 6ea3f4ab07..2c1117277d 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',
+ ],
+ }],
+ ],
+ },
],
}