/bin/twn: devcompl command to generate clangd completions in root
This commit is contained in:
parent
62866d33ae
commit
d5aec5e6e1
@ -1,3 +1,3 @@
|
||||
[[deps]]
|
||||
source = "../../../common-data"
|
||||
source = "../../../data"
|
||||
name = "common-data"
|
||||
|
@ -1,3 +1,3 @@
|
||||
[[deps]]
|
||||
source = "../../../common-data" # where does it come from, might be an url
|
||||
source = "../../../data" # where does it come from, might be an url
|
||||
name = "common-data" # should be globally unique
|
||||
|
@ -1,3 +1,3 @@
|
||||
[[deps]]
|
||||
source = "../../../common-data" # where does it come from, might be an url
|
||||
name = "common-data" # should be globally unique
|
||||
source = "../../../data" # where does it come from, might be an url
|
||||
name = "common-data" # should be globally unique
|
||||
|
@ -1,3 +1,3 @@
|
||||
[[deps]]
|
||||
source = "../../common-data" # where does it come from, might be an url
|
||||
name = "common-data" # should be globally unique
|
||||
source = "../../data" # where does it come from, might be an url
|
||||
name = "common-data" # should be globally unique
|
||||
|
3
bin/twn
3
bin/twn
@ -57,6 +57,9 @@ case "$1" in
|
||||
fi
|
||||
;;
|
||||
|
||||
devcompl ) (cd "$TWNROOT" && "$toolpath"/twnbuild "--build_dir=$TWNROOT/build" "${@:2}")
|
||||
;;
|
||||
|
||||
* ) echo "Unknown command."
|
||||
;;
|
||||
esac
|
||||
|
@ -5,6 +5,7 @@ from os import getcwd
|
||||
from os.path import expandvars
|
||||
from pathlib import Path
|
||||
from sys import argv
|
||||
from functools import reduce
|
||||
import tomllib
|
||||
|
||||
#TODO: support for default pack override
|
||||
@ -16,8 +17,9 @@ has_clang = getoutput("command -v clang") != ""
|
||||
target_web = "--target=web" in argv
|
||||
|
||||
#TODO: infer what "native" means for current env
|
||||
build_dir = "build/web" if target_web else "build/native"
|
||||
build_dir += "/release" if "--release" in argv else "/debug"
|
||||
build_dir_arg = reduce(lambda c, n: c if c.startswith("--build_dir=") else n, argv + [""], "")
|
||||
build_dir = "build/web" if target_web else build_dir_arg.split("=")[1] if build_dir_arg else "build/native"
|
||||
build_dir += "" if build_dir_arg else "/release" if "--release" in argv else "/debug"
|
||||
|
||||
cmake = ["emcmake", "cmake"] if target_web else ["cmake"]
|
||||
# cmake configuration command
|
||||
|
BIN
data/assets/dirt/1.png
(Stored with Git LFS)
Normal file
BIN
data/assets/dirt/1.png
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
data/assets/dirt/2.png
(Stored with Git LFS)
Normal file
BIN
data/assets/dirt/2.png
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user