Move stb_image_write.h into vid. It's used there, only.

This commit is contained in:
Yamagi Burmeister 2018-08-07 11:45:26 +02:00
parent af703e8cd9
commit 10bdaaec06
4 changed files with 4 additions and 6 deletions

View File

@ -167,7 +167,6 @@ set(Backends-Generic-Source
) )
set(Backends-Unix-Source set(Backends-Unix-Source
${BACKENDS_SRC_DIR}/generic/misc.c
${BACKENDS_SRC_DIR}/unix/main.c ${BACKENDS_SRC_DIR}/unix/main.c
${BACKENDS_SRC_DIR}/unix/network.c ${BACKENDS_SRC_DIR}/unix/network.c
${BACKENDS_SRC_DIR}/unix/signalhandler.c ${BACKENDS_SRC_DIR}/unix/signalhandler.c
@ -363,6 +362,7 @@ set(Client-Header
${CLIENT_SRC_DIR}/sound/header/sound.h ${CLIENT_SRC_DIR}/sound/header/sound.h
${CLIENT_SRC_DIR}/sound/header/vorbis.h ${CLIENT_SRC_DIR}/sound/header/vorbis.h
${CLIENT_SRC_DIR}/vid/header/ref.h ${CLIENT_SRC_DIR}/vid/header/ref.h
${CLIENT_SRC_DIR}/vid/header/stb_image_write.h
${CLIENT_SRC_DIR}/vid/header/vid.h ${CLIENT_SRC_DIR}/vid/header/vid.h
${COMMON_SRC_DIR}/header/common.h ${COMMON_SRC_DIR}/header/common.h
${COMMON_SRC_DIR}/header/crc.h ${COMMON_SRC_DIR}/header/crc.h
@ -452,7 +452,6 @@ set(GL1-Header
${REF_SRC_DIR}/gl1/header/local.h ${REF_SRC_DIR}/gl1/header/local.h
${REF_SRC_DIR}/gl1/header/model.h ${REF_SRC_DIR}/gl1/header/model.h
${REF_SRC_DIR}/gl1/header/qgl.h ${REF_SRC_DIR}/gl1/header/qgl.h
${BACKENDS_SRC_DIR}/generic/header/stb_image_write.h
${COMMON_SRC_DIR}/header/shared.h ${COMMON_SRC_DIR}/header/shared.h
) )
@ -492,7 +491,6 @@ set(GL3-Header
${REF_SRC_DIR}/gl3/header/HandmadeMath.h ${REF_SRC_DIR}/gl3/header/HandmadeMath.h
${REF_SRC_DIR}/gl3/header/local.h ${REF_SRC_DIR}/gl3/header/local.h
${REF_SRC_DIR}/gl3/header/model.h ${REF_SRC_DIR}/gl3/header/model.h
${BACKENDS_SRC_DIR}/generic/header/stb_image_write.h
${COMMON_SRC_DIR}/header/shared.h ${COMMON_SRC_DIR}/header/shared.h
) )

View File

@ -871,6 +871,7 @@ endif
# Used by the server # Used by the server
SERVER_OBJS_ := \ SERVER_OBJS_ := \
src/backends/generic/misc.o \
src/common/argproc.o \ src/common/argproc.o \
src/common/clientserver.o \ src/common/clientserver.o \
src/common/collision.o \ src/common/collision.o \
@ -899,8 +900,7 @@ SERVER_OBJS_ := \
src/server/sv_save.o \ src/server/sv_save.o \
src/server/sv_send.o \ src/server/sv_send.o \
src/server/sv_user.o \ src/server/sv_user.o \
src/server/sv_world.o \ src/server/sv_world.o
src/backends/generic/misc.o
ifeq ($(YQ2_OSTYPE), Windows) ifeq ($(YQ2_OSTYPE), Windows)
SERVER_OBJS_ += \ SERVER_OBJS_ += \

View File

@ -67,7 +67,7 @@ compress_for_stbiw(unsigned char *data, int data_len, int *out_len, int quality)
#endif #endif
#define STB_IMAGE_WRITE_IMPLEMENTATION #define STB_IMAGE_WRITE_IMPLEMENTATION
#include "../../backends/generic/header/stb_image_write.h" #include "header/stb_image_write.h"
/* /*
* Writes a screenshot. This function is called with raw image data of * Writes a screenshot. This function is called with raw image data of