From b12faa6a4489d4239d98315f94ab1691e3b01ac8 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Mon, 7 Oct 2024 19:08:25 +0300 Subject: [PATCH] remove legacy app specification over cmake --- CMakeLists.txt | 7 ------- include/twn_config.h | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 93ae628..43b267c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,10 +135,6 @@ target_precompile_headers(${TWN_TARGET} PRIVATE $<$>:third-party/glad/include/glad/glad.h> third-party/stb/stb_ds.h) -# distribution definitions, set them with -DX=X in cli -set(PACKAGE_EXTENSION "btw" CACHE STRING - "File extension used to look for data archives") - function(give_options_without_warnings target) set(BUILD_FLAGS @@ -185,9 +181,6 @@ function(give_options_without_warnings target) -Wl,--hash-style=gnu) target_compile_definitions(${target} PUBLIC - ORGANIZATION_NAME="${ORGANIZATION_NAME}" - APP_NAME="${APP_NAME}" - PACKAGE_EXTENSION="${PACKAGE_EXTENSION}" $<$:TWN_FEATURE_DYNLIB_GAME>) endfunction() diff --git a/include/twn_config.h b/include/twn_config.h index 200dda2..818a476 100644 --- a/include/twn_config.h +++ b/include/twn_config.h @@ -3,6 +3,7 @@ /* TODO: consider if it's still necessary to keep these in one place */ +#define PACKAGE_EXTENSION "btw" #define TICKS_PER_SECOND_DEFAULT 60