MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3 / build_jsoncpp

Function build_jsoncpp

win/buildep.py:116–134  ·  view source on GitHub ↗
(parms)

Source from the content-addressed store, hash-verified

114 rm(arch_name)
115
116def build_jsoncpp(parms):
117 print "**************** JSONCPP"
118 with Cd(build_dir(parms)):
119 url = "https://github.com/open-source-parsers/jsoncpp/archive/%s.tar.gz" % parms["JSONCPP_VERSION"]
120 arch_name = download(url)
121 checksum = sha256_checksum(arch_name)
122 if checksum != parms["JSONCPP_CSUM"]:
123 sys.exit("Checksum mismatch, expected %s, actual %s" % (parms["JSONCPP_CSUM"], checksum))
124 with ModEnv('PATH', "%s\\bin;%s" % (parms.get('GIT'), os.environ['PATH'])):
125 dist = os.path.realpath('jsoncpp')
126 rmtree(dist)
127 extract(arch_name, "gz")
128 rm(arch_name)
129 os.rename("jsoncpp-%s" % parms["JSONCPP_VERSION"], dist)
130 os.chdir(dist)
131 call(["python", "amalgamate.py"])
132 os.chdir(os.path.join(dist, "dist"))
133 compile_one_file(parms, "jsoncpp.cpp", (".",))
134 vc_cmd(parms, r"lib /OUT:jsoncpp.lib jsoncpp.obj")
135
136def build_all(parms):
137 wipetree(build_dir(parms))

Callers 1

build_allFunction · 0.85

Calls 13

CdClass · 0.85
build_dirFunction · 0.85
downloadFunction · 0.85
sha256_checksumFunction · 0.85
ModEnvClass · 0.85
rmtreeFunction · 0.85
extractFunction · 0.85
rmFunction · 0.85
compile_one_fileFunction · 0.85
vc_cmdFunction · 0.85
callFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected