|
|
@ -5,6 +5,8 @@ |
|
|
|
gtest is a Waf tool for test builds in Ardupilot |
|
|
|
gtest is a Waf tool for test builds in Ardupilot |
|
|
|
""" |
|
|
|
""" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from waflib.Configure import conf |
|
|
|
|
|
|
|
|
|
|
|
def configure(cfg): |
|
|
|
def configure(cfg): |
|
|
|
cfg.env.HAS_GTEST = False |
|
|
|
cfg.env.HAS_GTEST = False |
|
|
|
|
|
|
|
|
|
|
@ -27,11 +29,13 @@ def configure(cfg): |
|
|
|
|
|
|
|
|
|
|
|
cfg.env.HAS_GTEST = True |
|
|
|
cfg.env.HAS_GTEST = True |
|
|
|
|
|
|
|
|
|
|
|
def build(bld): |
|
|
|
@conf |
|
|
|
bld.stlib( |
|
|
|
def libgtest(bld, **kw): |
|
|
|
|
|
|
|
kw.update( |
|
|
|
source='modules/gtest/src/gtest-all.cc', |
|
|
|
source='modules/gtest/src/gtest-all.cc', |
|
|
|
target='gtest/gtest', |
|
|
|
target='gtest/gtest', |
|
|
|
includes='modules/gtest/ modules/gtest/include', |
|
|
|
includes='modules/gtest/ modules/gtest/include', |
|
|
|
export_includes='modules/gtest/include', |
|
|
|
export_includes='modules/gtest/include', |
|
|
|
name='GTEST', |
|
|
|
name='GTEST', |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
return bld.stlib(**kw) |
|
|
|