# Copyright 2017 Xored Software, Inc. import nake import os, ospaths, times import apigen.apigen proc cmdParams(): string = let params = commandLineParams() assert(params.len > 0) result = params[1.. jsonFile.getLastModificationTime(): direShell(godotBin, "--gdnative-generate-json-api", jsonFile) if not fileExists(jsonFile): echo "Failed to generate api.json" quit(-1) genApi(targetDir, jsonFile) task "build", "Builds the client for the current platform": genGodotApi() withDir "src": direShell("nimble", "make")