Almost done with new language tools

This commit is contained in:
2023-02-14 23:03:11 -08:00
parent a93ef4208f
commit 984e3b1a73
45 changed files with 416 additions and 289 deletions

View File

@ -3,16 +3,22 @@
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
# Custom variables
set(
DAWN_TARGET_DEPENDENCIES_LAST
CACHE INTERNAL ${DAWN_CACHE_TARGET}
)
# Include shared libs
add_subdirectory(dawnshared)
# Include tools
add_subdirectory(dawntools)
# Change what we are building
# Change what we are building. Pulled from the cmake/targets dir.
add_subdirectory(${DAWN_BUILDING})
# Check the game project includes the target name
# Validate game project includes the target name
if(NOT DEFINED DAWN_TARGET_NAME)
message(FATAL_ERROR "You need to define a DAWN_TARGET_NAME")
endif()
@ -46,4 +52,11 @@ if(DAWN_TARGET_SDL2)
add_subdirectory(dawnopengl)
endif()
add_subdirectory(dawnopenal)
add_subdirectory(dawnopenal)
# Late definitions, used by tools
if(NOT DAWN_TARGET_DEPENDENCIES_LAST)
# message(FATAL_ERROR "List empty")
else()
add_dependencies(${DAWN_TARGET_NAME} ${DAWN_TARGET_DEPENDENCIES_LAST})
endif()