|
|
|
@ -14,7 +14,7 @@ def execute(cmd, shell=False): |
|
|
|
|
log.info("Executing: %s" % cmd) |
|
|
|
|
retcode = subprocess.call(cmd, shell=shell) |
|
|
|
|
if retcode < 0: |
|
|
|
|
raise Fail("Child was terminated by signal:" %s -retcode) |
|
|
|
|
raise Fail("Child was terminated by signal: %s" % -retcode) |
|
|
|
|
elif retcode > 0: |
|
|
|
|
raise Fail("Child returned: %s" % retcode) |
|
|
|
|
except OSError as e: |
|
|
|
@ -159,7 +159,7 @@ class Builder: |
|
|
|
|
if flags: |
|
|
|
|
cmd += ["-DCMAKE_C_FLAGS='%s'" % flags, |
|
|
|
|
"-DCMAKE_CXX_FLAGS='%s'" % flags] |
|
|
|
|
return cmd; |
|
|
|
|
return cmd |
|
|
|
|
|
|
|
|
|
def get_build_flags(self): |
|
|
|
|
flags = "" |
|
|
|
@ -235,7 +235,7 @@ if __name__ == "__main__": |
|
|
|
|
builder.config() |
|
|
|
|
|
|
|
|
|
if args.config_only: |
|
|
|
|
sys.exit(0); |
|
|
|
|
sys.exit(0) |
|
|
|
|
|
|
|
|
|
log.info("=====") |
|
|
|
|
log.info("===== Building OpenCV.js in %s", "asm.js" if not args.build_wasm else "wasm") |
|
|
|
|