sokol demo moved to the examples dir
This commit is contained in:
		@@ -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})
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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 $@
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user