Merge branch 'master' into sdl2
This commit is contained in:
commit
c55df2c9aa
73 files changed
+60614
-31
No files matched your search
@@ -195,6 +195,10 @@ ifndef USE_INTERNAL_OGG
|
||||
USE_INTERNAL_OGG=1
|
||||
endif
|
||||
|
||||
ifndef USE_INTERNAL_VORBIS
|
||||
USE_INTERNAL_VORBIS=1
|
||||
endif
|
||||
|
||||
ifndef USE_INTERNAL_OPUS
|
||||
USE_INTERNAL_OPUS=1
|
||||
endif
|
||||
@@ -241,6 +245,7 @@ Q3UIDIR=$(MOUNT_DIR)/q3_ui
|
||||
JPDIR=$(MOUNT_DIR)/jpeg-8c
|
||||
SPEEXDIR=$(MOUNT_DIR)/libspeex
|
||||
OGGDIR=$(MOUNT_DIR)/libogg-1.3.1
|
||||
VORBISDIR=$(MOUNT_DIR)/libvorbis-1.3.4
|
||||
OPUSDIR=$(MOUNT_DIR)/opus-1.1
|
||||
OPUSFILEDIR=$(MOUNT_DIR)/opusfile-0.5
|
||||
ZDIR=$(MOUNT_DIR)/zlib
|
||||
@@ -322,15 +327,13 @@ ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu"))
|
||||
|
||||
ifeq ($(ARCH),x86_64)
|
||||
OPTIMIZEVM = -O3 -fomit-frame-pointer -funroll-loops \
|
||||
-falign-loops=2 -falign-jumps=2 -falign-functions=2 \
|
||||
-fstrength-reduce
|
||||
-falign-functions=2 -fstrength-reduce
|
||||
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
|
||||
HAVE_VM_COMPILED = true
|
||||
else
|
||||
ifeq ($(ARCH),x86)
|
||||
OPTIMIZEVM = -O3 -march=i586 -fomit-frame-pointer \
|
||||
-funroll-loops -falign-loops=2 -falign-jumps=2 \
|
||||
-falign-functions=2 -fstrength-reduce
|
||||
-funroll-loops -falign-functions=2 -fstrength-reduce
|
||||
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
|
||||
HAVE_VM_COMPILED=true
|
||||
else
|
||||
@@ -480,7 +483,6 @@ ifeq ($(PLATFORM),darwin)
|
||||
$(LIBSDIR)/macosx/libSDL2-2.0.0.dylib
|
||||
RENDERER_LIBS += -framework OpenGL $(LIBSDIR)/macosx/libSDL2-2.0.0.dylib
|
||||
|
||||
OPTIMIZEVM += -falign-loops=16
|
||||
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
|
||||
|
||||
SHLIBEXT=dylib
|
||||
@@ -555,15 +557,13 @@ ifeq ($(PLATFORM),mingw32)
|
||||
|
||||
ifeq ($(ARCH),x86_64)
|
||||
OPTIMIZEVM = -O3 -fno-omit-frame-pointer \
|
||||
-falign-loops=2 -funroll-loops -falign-jumps=2 -falign-functions=2 \
|
||||
-fstrength-reduce
|
||||
-funroll-loops -falign-functions=2 -fstrength-reduce
|
||||
OPTIMIZE = $(OPTIMIZEVM) --fast-math
|
||||
HAVE_VM_COMPILED = true
|
||||
endif
|
||||
ifeq ($(ARCH),x86)
|
||||
OPTIMIZEVM = -O3 -march=i586 -fno-omit-frame-pointer \
|
||||
-falign-loops=2 -funroll-loops -falign-jumps=2 -falign-functions=2 \
|
||||
-fstrength-reduce
|
||||
-funroll-loops -falign-functions=2 -fstrength-reduce
|
||||
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
|
||||
HAVE_VM_COMPILED = true
|
||||
endif
|
||||
@@ -708,15 +708,13 @@ ifeq ($(PLATFORM),openbsd)
|
||||
|
||||
ifeq ($(ARCH),x86_64)
|
||||
OPTIMIZEVM = -O3 -fomit-frame-pointer -funroll-loops \
|
||||
-falign-loops=2 -falign-jumps=2 -falign-functions=2 \
|
||||
-fstrength-reduce
|
||||
-falign-functions=2 -fstrength-reduce
|
||||
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
|
||||
HAVE_VM_COMPILED = true
|
||||
else
|
||||
ifeq ($(ARCH),x86)
|
||||
OPTIMIZEVM = -O3 -march=i586 -fomit-frame-pointer \
|
||||
-funroll-loops -falign-loops=2 -falign-jumps=2 \
|
||||
-falign-functions=2 -fstrength-reduce
|
||||
-funroll-loops -falign-functions=2 -fstrength-reduce
|
||||
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
|
||||
HAVE_VM_COMPILED=true
|
||||
else
|
||||
@@ -854,7 +852,6 @@ ifeq ($(PLATFORM),sunos)
|
||||
else
|
||||
ifeq ($(ARCH),x86)
|
||||
OPTIMIZEVM += -march=i586 -fomit-frame-pointer \
|
||||
-falign-loops=2 -falign-jumps=2 \
|
||||
-falign-functions=2 -fstrength-reduce
|
||||
HAVE_VM_COMPILED=true
|
||||
BASE_CFLAGS += -m32
|
||||
@@ -989,7 +986,6 @@ endif
|
||||
|
||||
ifeq ($(USE_CODEC_VORBIS),1)
|
||||
CLIENT_CFLAGS += -DUSE_CODEC_VORBIS
|
||||
CLIENT_LIBS += -lvorbisfile -lvorbis
|
||||
NEED_OGG=1
|
||||
endif
|
||||
|
||||
@@ -1015,6 +1011,15 @@ ifeq ($(NEED_OGG),1)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(USE_CODEC_VORBIS),1)
|
||||
ifeq ($(USE_INTERNAL_VORBIS),1)
|
||||
CLIENT_CFLAGS += -I$(VORBISDIR)/include -I$(VORBISDIR)/lib
|
||||
|
||||
else
|
||||
CLIENT_LIBS += -lvorbisfile -lvorbis
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(USE_RENDERER_DLOPEN),1)
|
||||
CLIENT_CFLAGS += -DUSE_RENDERER_DLOPEN
|
||||
endif
|
||||
@@ -1280,6 +1285,7 @@ makedirs:
|
||||
@if [ ! -d $(B) ];then $(MKDIR) $(B);fi
|
||||
@if [ ! -d $(B)/client ];then $(MKDIR) $(B)/client;fi
|
||||
@if [ ! -d $(B)/client/opus ];then $(MKDIR) $(B)/client/opus;fi
|
||||
@if [ ! -d $(B)/client/vorbis ];then $(MKDIR) $(B)/client/vorbis;fi
|
||||
@if [ ! -d $(B)/renderergl1 ];then $(MKDIR) $(B)/renderergl1;fi
|
||||
@if [ ! -d $(B)/renderergl2 ];then $(MKDIR) $(B)/renderergl2;fi
|
||||
@if [ ! -d $(B)/renderergl2/glsl ];then $(MKDIR) $(B)/renderergl2/glsl;fi
|
||||
@@ -1979,6 +1985,33 @@ Q3OBJ += \
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(USE_CODEC_VORBIS),1)
|
||||
ifeq ($(USE_INTERNAL_VORBIS),1)
|
||||
Q3OBJ += \
|
||||
$(B)/client/vorbis/analysis.o \
|
||||
$(B)/client/vorbis/bitrate.o \
|
||||
$(B)/client/vorbis/block.o \
|
||||
$(B)/client/vorbis/codebook.o \
|
||||
$(B)/client/vorbis/envelope.o \
|
||||
$(B)/client/vorbis/floor0.o \
|
||||
$(B)/client/vorbis/floor1.o \
|
||||
$(B)/client/vorbis/info.o \
|
||||
$(B)/client/vorbis/lookup.o \
|
||||
$(B)/client/vorbis/lpc.o \
|
||||
$(B)/client/vorbis/lsp.o \
|
||||
$(B)/client/vorbis/mapping0.o \
|
||||
$(B)/client/vorbis/mdct.o \
|
||||
$(B)/client/vorbis/psy.o \
|
||||
$(B)/client/vorbis/registry.o \
|
||||
$(B)/client/vorbis/res0.o \
|
||||
$(B)/client/vorbis/smallft.o \
|
||||
$(B)/client/vorbis/sharedbook.o \
|
||||
$(B)/client/vorbis/synthesis.o \
|
||||
$(B)/client/vorbis/vorbisfile.o \
|
||||
$(B)/client/vorbis/window.o
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(USE_INTERNAL_ZLIB),1)
|
||||
Q3OBJ += \
|
||||
$(B)/client/adler32.o \
|
||||
@@ -2506,6 +2539,9 @@ $(B)/client/%.o: $(SPEEXDIR)/%.c
|
||||
$(B)/client/%.o: $(OGGDIR)/src/%.c
|
||||
$(DO_CC)
|
||||
|
||||
$(B)/client/vorbis/%.o: $(VORBISDIR)/lib/%.c
|
||||
$(DO_CC)
|
||||
|
||||
$(B)/client/opus/%.o: $(OPUSDIR)/src/%.c
|
||||
$(DO_CC)
|
||||
|
||||
|
||||
Reference in new issue
Block a user