implement game configuration file
this integrates https://github.com/cktan/tomlc99 into the repo as a dependency
This commit is contained in:
@ -86,6 +86,7 @@ endif()
|
||||
set(TWN_THIRD_PARTY_SOURCE_FILES
|
||||
third-party/physfs/extras/physfsrwops.c
|
||||
third-party/stb/stb_vorbis.c
|
||||
third-party/tomlc99/toml.c
|
||||
$<$<NOT:$<BOOL:${EMSCRIPTEN}>>:third-party/glad/src/glad.c>)
|
||||
|
||||
set(TWN_SOURCE_FILES
|
||||
@ -135,10 +136,6 @@ target_precompile_headers(${TWN_TARGET} PRIVATE
|
||||
third-party/stb/stb_ds.h)
|
||||
|
||||
# distribution definitions, set them with -DX=X in cli
|
||||
set(ORGANIZATION_NAME "wanp" CACHE STRING
|
||||
"App developer/publisher's identifier")
|
||||
set(APP_NAME "townengine" CACHE STRING
|
||||
"App identifier")
|
||||
set(PACKAGE_EXTENSION "btw" CACHE STRING
|
||||
"File extension used to look for data archives")
|
||||
|
||||
@ -226,6 +223,7 @@ function(include_deps target)
|
||||
third-party/libxm/include
|
||||
third-party/stb
|
||||
third-party/x-watcher
|
||||
third-party/tomlc99
|
||||
$<$<NOT:$<BOOL:${EMSCRIPTEN}>>:third-party/glad/include>)
|
||||
|
||||
list(TRANSFORM THIRD_PARTY_INCLUDES PREPEND ${TWN_ROOT_DIR}/)
|
||||
|
Reference in New Issue
Block a user