Permalink
Browse files

Upgrade wscript for new waf

  • Loading branch information...
petya2164 committed Feb 20, 2017
1 parent 85b5e1e commit ca9d0770d456e05dab1b29803f378bc011bbac28
Showing with 7 additions and 19 deletions.
  1. +7 −19 wscript
View
26 wscript
@@ -4,30 +4,20 @@
APPNAME = 'gtest'
VERSION = '3.0.0'
import waflib.extras.wurf_options
def options(opt):
opt.load('wurf_common_tools')
def resolve(ctx):
import waflib.extras.wurf_dependency_resolve as resolve
ctx.load('wurf_common_tools')
ctx.add_dependency(resolve.ResolveVersion(
ctx.add_dependency(
name='waf-tools',
git_repository='github.com/steinwurf/waf-tools.git',
major=3))
recurse=True,
optional=False,
resolver='git',
method='semver',
major=3,
sources=['github.com/steinwurf/waf-tools.git'])
def configure(conf):
conf.load('wurf_common_tools')
if conf.is_mkspec_platform('linux'):
if not conf.env['LIB_PTHREAD']:
# If we have not looked for pthread yet
@@ -36,8 +26,6 @@ def configure(conf):
def build(bld):
bld.load('wurf_common_tools')
bld.env.append_unique(
'DEFINES_STEINWURF_VERSION',
'STEINWURF_GTEST_VERSION="{}"'.format(VERSION))

0 comments on commit ca9d077

Please sign in to comment.