changed how building is triggered, now there is a [twn] shell script that is exptected to be in PATH. also physfs and libxm cmake targets no longer recompiled per every target, but shared

This commit is contained in:
2024-09-25 19:51:39 +03:00
parent a500fcd97c
commit 4c9278a927
8 changed files with 21 additions and 25 deletions

View File

@ -6,10 +6,7 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif()
# add root townengine cmake file
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
add_subdirectory(../../ ../../../.build)
endif()
add_subdirectory($ENV{TWNROOT} $ENV{TWNBUILDDIR})
set(SOURCE_FILES
game.c

View File

@ -1,7 +0,0 @@
#!/bin/env sh
if [ $1 = "web" ]; then
emcmake cmake -B .build-web "${@:2}" && cmake --build .build-web
else
cmake -B .build "$@" && cmake --build .build
fi

View File

@ -6,10 +6,7 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif()
# add root townengine cmake file
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
add_subdirectory(../../ ../../../.build)
endif()
add_subdirectory($ENV{TWNROOT} $ENV{TWNBUILDDIR})
set(SOURCE_FILES
game.c

View File

@ -1,7 +0,0 @@
#!/bin/env sh
if [ $1 = "web" ]; then
emcmake cmake -B .build-web "${@:2}" && cmake --build .build-web
else
cmake -B .build "$@" && cmake --build .build
fi

View File

@ -6,10 +6,7 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif()
# add root townengine cmake file
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
add_subdirectory(../../ ../../../.build)
endif()
add_subdirectory($ENV{TWNROOT} $ENV{TWNBUILDDIR})
set(SOURCE_FILES
game.c

View File

@ -1,3 +0,0 @@
#!/bin/env sh
cmake -B .build "$@" && cmake --build .build