[DEV] update Build interface

This commit is contained in:
Edouard DUPIN 2015-09-14 21:11:04 +02:00
parent a0086b4905
commit 2c6af25277

View File

@ -9,7 +9,7 @@ def get_license():
return "BSD 3 clauses"
def create(target):
myModule = module.Module(__file__, 'gtest', 'LIBRARY')
myModule = module.Module(__file__, 'gtest', 'LIBRARY_STATIC')
myModule.add_src_file([
'gtest/src/gtest-all.cc',
'gtest/src/gtest.cc',
@ -21,6 +21,18 @@ def create(target):
'gtest/src/gtest-test-part.cc',
'gtest/src/gtest-typed-test.cc'
])
myModule.add_header_file([
'gtest/include/gtest/gtest-death-test.h',
'gtest/include/gtest/gtest.h',
'gtest/include/gtest/gtest-message.h',
'gtest/include/gtest/gtest-param-test.h',
'gtest/include/gtest/gtest_pred_impl.h',
'gtest/include/gtest/gtest-printers.h',
'gtest/include/gtest/gtest_prod.h',
'gtest/include/gtest/gtest-spi.h',
'gtest/include/gtest/gtest-test-part.h',
'gtest/include/gtest/gtest-typed-test.h'
], rm_path='gtest/include/')
myModule.add_path(tools.get_current_path(__file__)+"/gtest")
myModule.add_export_path(tools.get_current_path(__file__)+"/gtest/include/")
return myModule