forked from KomodoPlatform/komodo-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bf6e69
commit 3007d6b
Showing
1 changed file
with
75 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,75 @@ | ||
import strutils ##! Official Package | ||
|
||
import docopt ##! Dependencies Packages | ||
|
||
import vcpkg ##! Local packages | ||
import dependencies | ||
import generate | ||
import build | ||
import bundle | ||
import tests | ||
import clean | ||
|
||
let doc = """ | ||
Atomic Dex CI Tools. | ||
Usage: | ||
ci_tools_atomic_dex --install_vcpkg | ||
ci_tools_atomic_dex --install_dependencies | ||
ci_tools_atomic_dex build (Release|Debug) [--osx_sdk=<sdk_path>] [--compiler=<compiler_path>] | ||
ci_tools_atomic_dex clean (full|dependencies|build_dir) | ||
ci_tools_atomic_dex generate (Release|Debug) [--osx_sdk=<sdk_path>] [--compiler=<compiler_path>] | ||
ci_tools_atomic_dex bundle (Release|Debug) [--osx_sdk=<sdk_path>] [--compiler=<compiler_path>] | ||
ci_tools_atomic_dex tests (Release|Debug) [--osx_sdk=<sdk_path>] [--compiler=<compiler_path>] | ||
ci_tools_atomic_dex --version | ||
ci_tools_atomic_dex (-h | --help) | ||
Options: | ||
-h --help Show this screen. | ||
--version Show version. | ||
""" | ||
|
||
proc main() = | ||
let args = docopt(doc, version = "Atomic Dex CI Tools 0.0.1") | ||
vcpkg_prepare() | ||
|
||
if args["--install_vcpkg"]: | ||
install_vcpkg() | ||
|
||
elif args["--install_dependencies"]: | ||
download_packages() | ||
|
||
elif args["generate"]: | ||
if args["Release"]: | ||
generate_solution("Release", $args["--osx_sdk"], $args["--compiler"]) | ||
elif args["Debug"]: | ||
generate_solution("Debug", $args["--osx_sdk"], $args["--compiler"]) | ||
|
||
elif args["build"]: | ||
if args["Release"]: | ||
build_atomic_qt("Release", $args["--osx_sdk"], $args["--compiler"]) | ||
elif args["Debug"]: | ||
build_atomic_qt("Debug", $args["--osx_sdk"], $args["--compiler"]) | ||
|
||
elif args["bundle"]: | ||
if args["Release"]: | ||
bundle("Release", $args["--osx_sdk"], $args["--compiler"]) | ||
elif args["Debug"]: | ||
bundle("Debug", $args["--osx_sdk"], $args["--compiler"]) | ||
|
||
elif args["tests"]: | ||
if args["Release"]: | ||
run_tests("Release", $args["--osx_sdk"], $args["--compiler"]) | ||
elif args["Debug"]: | ||
run_tests("Debug", $args["--osx_sdk"], $args["--compiler"]) | ||
|
||
elif args["clean"]: | ||
if args["full"]: | ||
clean("full") | ||
elif args["dependencies"]: | ||
clean("dependencies") | ||
elif args["build_dir"]: | ||
clean("build_dir") | ||
|
||
when isMainModule: | ||
main() | ||
import strutils ##! Official Package | ||
|
||
import docopt ##! Dependencies Packages | ||
|
||
import vcpkg ##! Local packages | ||
import dependencies | ||
import generate | ||
import build | ||
import bundle | ||
import tests | ||
import clean | ||
|
||
let doc = """ | ||
Atomic Dex CI Tools. | ||
Usage: | ||
ci_tools_atomic_dex --install_vcpkg | ||
ci_tools_atomic_dex --install_dependencies | ||
ci_tools_atomic_dex build (Release|Debug) [--osx_sdk=<sdk_path>] [--compiler=<compiler_path>] | ||
ci_tools_atomic_dex clean (full|dependencies|build_dir) | ||
ci_tools_atomic_dex generate (Release|Debug) [--osx_sdk=<sdk_path>] [--compiler=<compiler_path>] | ||
ci_tools_atomic_dex bundle (Release|Debug) [--osx_sdk=<sdk_path>] [--compiler=<compiler_path>] | ||
ci_tools_atomic_dex tests (Release|Debug) [--osx_sdk=<sdk_path>] [--compiler=<compiler_path>] | ||
ci_tools_atomic_dex --version | ||
ci_tools_atomic_dex (-h | --help) | ||
Options: | ||
-h --help Show this screen. | ||
--version Show version. | ||
""" | ||
|
||
proc main() {.gcsafe.} = | ||
let args = docopt(doc, version = "Atomic Dex CI Tools 0.0.1") | ||
vcpkg_prepare() | ||
|
||
if args["--install_vcpkg"]: | ||
install_vcpkg() | ||
|
||
elif args["--install_dependencies"]: | ||
download_packages() | ||
|
||
elif args["generate"]: | ||
if args["Release"]: | ||
generate_solution("Release", $args["--osx_sdk"], $args["--compiler"]) | ||
elif args["Debug"]: | ||
generate_solution("Debug", $args["--osx_sdk"], $args["--compiler"]) | ||
|
||
elif args["build"]: | ||
if args["Release"]: | ||
build_atomic_qt("Release", $args["--osx_sdk"], $args["--compiler"]) | ||
elif args["Debug"]: | ||
build_atomic_qt("Debug", $args["--osx_sdk"], $args["--compiler"]) | ||
|
||
elif args["bundle"]: | ||
if args["Release"]: | ||
bundle("Release", $args["--osx_sdk"], $args["--compiler"]) | ||
elif args["Debug"]: | ||
bundle("Debug", $args["--osx_sdk"], $args["--compiler"]) | ||
|
||
elif args["tests"]: | ||
if args["Release"]: | ||
run_tests("Release", $args["--osx_sdk"], $args["--compiler"]) | ||
elif args["Debug"]: | ||
run_tests("Debug", $args["--osx_sdk"], $args["--compiler"]) | ||
|
||
elif args["clean"]: | ||
if args["full"]: | ||
clean("full") | ||
elif args["dependencies"]: | ||
clean("dependencies") | ||
elif args["build_dir"]: | ||
clean("build_dir") | ||
|
||
when isMainModule: | ||
main() |