sokol demo moved to the examples dir
This commit is contained in:
parent
c1fee278f3
commit
e01daea353
|
@ -203,7 +203,7 @@ endif()
|
|||
if(NOT EMSCRIPTEN)
|
||||
set(EXAMPLE_DIR examples)
|
||||
set(EXAMPLE_SRC
|
||||
${EXAMPLE_DIR}/sdl-renderer.c
|
||||
${EXAMPLE_DIR}/sdl/main.c
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
|
@ -228,15 +228,13 @@ endif()
|
|||
# Sokol renderer example
|
||||
################################
|
||||
|
||||
set(SOKOL_DIR sokol)
|
||||
|
||||
set(SOKOL_SRC
|
||||
${SOKOL_DIR}/main.c
|
||||
${EXAMPLE_DIR}/sokol/main.c
|
||||
)
|
||||
|
||||
if(APPLE)
|
||||
add_definitions(-DSOKOL_METAL)
|
||||
set(SOKOL_SRC ${SOKOL_SRC} ${SOKOL_DIR}/sokol.m)
|
||||
set(SOKOL_SRC ${SOKOL_SRC} ${EXAMPLE_DIR}/sokol/sokol.m)
|
||||
endif()
|
||||
|
||||
add_executable(sokol ${SOKOL_SRC})
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
CC=gcc
|
||||
OPT=-O3 -Wall -std=c99
|
||||
INCLUDES= \
|
||||
-I../include \
|
||||
-I../include/sdl2 \
|
||||
-I../include/tic80
|
||||
|
||||
LINKER_FLAGS= \
|
||||
-L../lib/mingw \
|
||||
-L../bin \
|
||||
-ltic80 \
|
||||
-lmingw32 -lSDL2main -lSDL2.dll \
|
||||
-mwindows
|
||||
|
||||
SOURCES=\
|
||||
sdl-renderer.c
|
||||
|
||||
SDL_RENDERER = ../bin/sdl-renderer.exe
|
||||
|
||||
all: $(SDL_RENDERER)
|
||||
|
||||
$(SDL_RENDERER): $(SOURCES)
|
||||
$(CC) $(INCLUDES) $< $(OPT) $(LINKER_FLAGS) -o $@
|
Loading…
Reference in New Issue