make LibSDL compliant with giteapc
This commit is contained in:
parent
1587f3e8dc
commit
db6a9f28da
|
@ -1,17 +1,17 @@
|
|||
# libustl: build system
|
||||
# libSDL_prizm: build system
|
||||
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(LibSDL_prizm VERSION 1.2.15 LANGUAGES C)
|
||||
|
||||
# Libraries that libexample depends on
|
||||
find_package(Gint 2.7 REQUIRED)
|
||||
find_package(Gint 2.7.1 REQUIRED)
|
||||
|
||||
# Turn include/config.h.in into a proper config.h where the @VAR@ have
|
||||
# been replaced; this is how version numbers are maintained. libexample_VERSION
|
||||
# is set to "1.0" by the project() command.
|
||||
# Note that the input (config.h.in) is relative to the source dir, but the
|
||||
# output (config.h) is in the build dir, so it doesn't pollute the Git repo.
|
||||
configure_file(./include/SDL_config.h.in include/include/SDL_config.h)
|
||||
configure_file(./include/SDL_config.h.in include/SDL/SDL_config.h)
|
||||
|
||||
set(SOURCES
|
||||
src/SDL.c
|
||||
|
@ -77,10 +77,10 @@ include_directories(
|
|||
"${FXSDK_COMPILER_INSTALL}/include/openlibm")
|
||||
add_compile_options(-Os -lm -m4-nofpu -mb -std=c11 -ffreestanding -nostdlib -Wa,--dsp)
|
||||
|
||||
# Target name is "ustl", output file is "libustl.a" (by default)
|
||||
# Target name is "SDL_prizm", output file is "libSDL_prizm.a" (by default)
|
||||
add_library(SDL_prizm STATIC ${SOURCES})
|
||||
|
||||
# After building, install the target (that is, libustl.a) in the compiler
|
||||
# After building, install the target (that is, libSDL_prizm.a) in the compiler
|
||||
install(TARGETS SDL_prizm
|
||||
DESTINATION "${FXSDK_COMPILER_INSTALL}")
|
||||
|
||||
|
@ -93,10 +93,10 @@ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/SDL"
|
|||
# Slyvtt : replaced "*.h" with "*" as some headers are in the C++ style, without .h extension
|
||||
|
||||
# Install config.h from the build dir
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/include/SDL_config.h"
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/include/SDL/SDL_config.h"
|
||||
DESTINATION "${FXSDK_COMPILER_INSTALL}/include/SDL")
|
||||
|
||||
# Install FindLibUstl.cmake so that users can do find_package(Libustl)
|
||||
# Install FindSDL_prizm.cmake so that users can do find_package(LibSDL_prizm)
|
||||
install(FILES cmake/FindSDL_prizm.cmake
|
||||
DESTINATION "${FXSDK_CMAKE_MODULE_PATH}")
|
||||
|
||||
|
|
Loading…
Reference in New Issue