make build directory now prefixed with dot, as it what clangd expects, remove .clangd file
This commit is contained in:
parent
b18f6f1d87
commit
f9bb6412b7
4
.gitignore
vendored
4
.gitignore
vendored
@ -22,8 +22,8 @@
|
||||
.vscode/
|
||||
.idea/
|
||||
.cache/
|
||||
.build/
|
||||
.build-web/
|
||||
build/
|
||||
build-web/
|
||||
build/
|
||||
out/
|
||||
|
||||
|
@ -340,8 +340,3 @@ include_deps(${TWN_TARGET})
|
||||
link_deps(${TWN_TARGET})
|
||||
target_link_libraries(${TWN_TARGET} PUBLIC twn_third_parties)
|
||||
target_include_directories(${TWN_TARGET} PRIVATE ${TWN_ROOT_DIR}/src)
|
||||
|
||||
# move compie_commands.json into root directory so that it plays nicer with code editors without any configuration
|
||||
add_custom_target(copy-compile-commands ALL
|
||||
${CMAKE_COMMAND} -E copy_if_different ${CMAKE_BINARY_DIR}/compile_commands.json
|
||||
${TWN_ROOT_DIR})
|
||||
|
@ -11,7 +11,7 @@ if [ -x "$(command -v clang)" ]; then
|
||||
fi
|
||||
|
||||
if [ "$1" = "web" ]; then
|
||||
emcmake cmake $generator $cc -B .build-web "${@:2}" && cmake --build .build-web --parallel
|
||||
emcmake cmake $generator $cc -B build-web "${@:2}" && cmake --build build-web --parallel
|
||||
else
|
||||
cmake $generator $cc -B .build "$@" && cmake --build .build --parallel
|
||||
cmake $generator $cc -B build "$@" && cmake --build build --parallel
|
||||
fi
|
||||
|
@ -6,7 +6,7 @@ set +e
|
||||
exe="$(basename $PWD)"
|
||||
toolpath="$(dirname -- "${BASH_SOURCE[0]}")"
|
||||
export TWNROOT=$(realpath "$toolpath"/../)
|
||||
export TWNBUILDDIR=$(realpath "$toolpath"/../.build)
|
||||
export TWNBUILDDIR=$(realpath "$toolpath"/../build)
|
||||
|
||||
case "$1" in
|
||||
build ) "$toolpath"/build.sh "${@:2}"
|
||||
|
Loading…
Reference in New Issue
Block a user