sokol demo moved to the examples dir

This commit is contained in:
nesbox 2018-09-21 17:41:09 +03:00
parent c1fee278f3
commit e01daea353
5 changed files with 3 additions and 28 deletions

View File

@ -203,7 +203,7 @@ endif()
if(NOT EMSCRIPTEN) if(NOT EMSCRIPTEN)
set(EXAMPLE_DIR examples) set(EXAMPLE_DIR examples)
set(EXAMPLE_SRC set(EXAMPLE_SRC
${EXAMPLE_DIR}/sdl-renderer.c ${EXAMPLE_DIR}/sdl/main.c
) )
if(WIN32) if(WIN32)
@ -228,15 +228,13 @@ endif()
# Sokol renderer example # Sokol renderer example
################################ ################################
set(SOKOL_DIR sokol)
set(SOKOL_SRC set(SOKOL_SRC
${SOKOL_DIR}/main.c ${EXAMPLE_DIR}/sokol/main.c
) )
if(APPLE) if(APPLE)
add_definitions(-DSOKOL_METAL) add_definitions(-DSOKOL_METAL)
set(SOKOL_SRC ${SOKOL_SRC} ${SOKOL_DIR}/sokol.m) set(SOKOL_SRC ${SOKOL_SRC} ${EXAMPLE_DIR}/sokol/sokol.m)
endif() endif()
add_executable(sokol ${SOKOL_SRC}) add_executable(sokol ${SOKOL_SRC})

View File

@ -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 $@