forked from hertog/godot-module-template
Feat: compiledb is now used (more) dynamically
This commit is contained in:
parent
6f11ca2a48
commit
10ec9bb2bf
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -15,6 +15,8 @@ build.zip
|
||||||
|
|
||||||
*.o
|
*.o
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
|
.tree.hash
|
||||||
.cache
|
.cache
|
||||||
.kdev4
|
.kdev4
|
||||||
*.kdev4
|
*.kdev4
|
||||||
|
*__pycache__
|
||||||
|
|
4
justfile
4
justfile
|
@ -1,10 +1,12 @@
|
||||||
set export
|
set export
|
||||||
|
|
||||||
BUILD_NAME := "change_me"
|
BUILD_NAME := "change_me"
|
||||||
|
tree_hash := `tree ./modules | md5sum`
|
||||||
|
compiledb := if tree_hash == `cat .tree.hash` { "no" } else { "yes" }
|
||||||
|
|
||||||
build: format
|
build: format
|
||||||
# Compiling Editor
|
# Compiling Editor
|
||||||
cd engine/ && scons target=editor symbols=yes optimization=debug dev_build=yes linker=mold use_llvm=yes compiledb=yes custom_modules="../modules"
|
cd engine/ && scons target=editor symbols=yes optimization=debug dev_build=yes linker=mold use_llvm=yes compiledb={{compiledb}} custom_modules="../modules"
|
||||||
|
|
||||||
run: build
|
run: build
|
||||||
# Running Editor
|
# Running Editor
|
||||||
|
|
Loading…
Reference in a new issue