Replace USE_LOCAL_HEADERS with USE_INTERNAL_*
This commit is contained in:
parent
7962686d2d
commit
96fefcb7c9
32
Makefile
32
Makefile
|
|
@ -207,10 +207,18 @@ ifndef USE_INTERNAL_LIBS
|
|||
USE_INTERNAL_LIBS=1
|
||||
endif
|
||||
|
||||
ifndef USE_INTERNAL_CURL_HEADERS
|
||||
USE_INTERNAL_CURL_HEADERS=$(USE_INTERNAL_LIBS)
|
||||
endif
|
||||
|
||||
ifndef USE_INTERNAL_OGG
|
||||
USE_INTERNAL_OGG=$(USE_INTERNAL_LIBS)
|
||||
endif
|
||||
|
||||
ifndef USE_INTERNAL_OPENAL_HEADERS
|
||||
USE_INTERNAL_OPENAL_HEADERS=$(USE_INTERNAL_LIBS)
|
||||
endif
|
||||
|
||||
ifndef USE_INTERNAL_VORBIS
|
||||
USE_INTERNAL_VORBIS=$(USE_INTERNAL_LIBS)
|
||||
endif
|
||||
|
|
@ -219,6 +227,10 @@ ifndef USE_INTERNAL_OPUS
|
|||
USE_INTERNAL_OPUS=$(USE_INTERNAL_LIBS)
|
||||
endif
|
||||
|
||||
ifndef USE_INTERNAL_SDL
|
||||
USE_INTERNAL_SDL=$(USE_INTERNAL_LIBS)
|
||||
endif
|
||||
|
||||
ifndef USE_INTERNAL_ZLIB
|
||||
USE_INTERNAL_ZLIB=$(USE_INTERNAL_LIBS)
|
||||
endif
|
||||
|
|
@ -540,7 +552,7 @@ ifeq ($(PLATFORM),darwin)
|
|||
CLIENT_LIBS += -framework IOKit
|
||||
RENDERER_LIBS += -framework OpenGL
|
||||
|
||||
ifeq ($(USE_LOCAL_HEADERS),1)
|
||||
ifeq ($(USE_INTERNAL_SDL),1)
|
||||
BASE_CFLAGS += -I$(SDLHDIR)/include
|
||||
|
||||
# We copy sdlmain before ranlib'ing it so that subversion doesn't think
|
||||
|
|
@ -697,7 +709,7 @@ ifdef MINGW
|
|||
CLIENT_LIBS += -lmingw32
|
||||
RENDERER_LIBS += -lmingw32
|
||||
|
||||
ifeq ($(USE_LOCAL_HEADERS),1)
|
||||
ifeq ($(USE_INTERNAL_SDL),1)
|
||||
CLIENT_CFLAGS += -I$(SDLHDIR)/include
|
||||
ifeq ($(ARCH),x86)
|
||||
CLIENT_LIBS += $(LIBSDIR)/win32/libSDL2main.a \
|
||||
|
|
@ -1277,8 +1289,20 @@ ifdef DEFAULT_BASEDIR
|
|||
BASE_CFLAGS += -DDEFAULT_BASEDIR=\\\"$(DEFAULT_BASEDIR)\\\"
|
||||
endif
|
||||
|
||||
ifeq ($(USE_LOCAL_HEADERS),1)
|
||||
BASE_CFLAGS += -DUSE_LOCAL_HEADERS
|
||||
ifeq ($(USE_INTERNAL_OPENAL_HEADERS),1)
|
||||
BASE_CFLAGS += -DUSE_INTERNAL_OPENAL_HEADERS
|
||||
endif
|
||||
|
||||
ifeq ($(USE_INTERNAL_CURL_HEADERS),1)
|
||||
BASE_CFLAGS += -DUSE_INTERNAL_CURL_HEADERS
|
||||
endif
|
||||
|
||||
ifeq ($(USE_INTERNAL_SDL),1)
|
||||
BASE_CFLAGS += -DUSE_INTERNAL_SDL_HEADERS
|
||||
endif
|
||||
|
||||
ifeq ($(USE_INTERNAL_ZLIB),1)
|
||||
BASE_CFLAGS += -DUSE_INTERNAL_ZLIB
|
||||
endif
|
||||
|
||||
ifeq ($(BUILD_STANDALONE),1)
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
#include "client.h"
|
||||
|
||||
#ifdef USE_LOCAL_HEADERS
|
||||
#ifdef USE_INTERNAL_CURL_HEADERS
|
||||
#include "curl/curl.h"
|
||||
#else
|
||||
#include <curl/curl.h>
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#define ALC_NO_PROTOTYPES
|
||||
#endif
|
||||
|
||||
#ifdef USE_LOCAL_HEADERS
|
||||
#ifdef USE_INTERNAL_OPENAL_HEADERS
|
||||
#include "AL/al.h"
|
||||
#include "AL/alc.h"
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef USE_LOCAL_HEADERS
|
||||
#ifdef USE_INTERNAL_ZLIB
|
||||
#include "zlib.h"
|
||||
#else
|
||||
#include <zlib.h>
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef USE_LOCAL_HEADERS
|
||||
#ifdef USE_INTERNAL_ZLIB
|
||||
#include "zlib.h"
|
||||
#else
|
||||
#include <zlib.h>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#ifndef __QGL_H__
|
||||
#define __QGL_H__
|
||||
|
||||
#ifdef USE_LOCAL_HEADERS
|
||||
#ifdef USE_INTERNAL_SDL_HEADERS
|
||||
# include "SDL_opengl.h"
|
||||
#else
|
||||
# include <SDL_opengl.h>
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
*/
|
||||
// tr_extensions.c - extensions needed by the renderer not in sdl_glimp.c
|
||||
|
||||
#ifdef USE_LOCAL_HEADERS
|
||||
#ifdef USE_INTERNAL_SDL_HEADERS
|
||||
# include "SDL.h"
|
||||
#else
|
||||
# include <SDL.h>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#ifdef USE_LOCAL_HEADERS
|
||||
#ifdef USE_INTERNAL_SDL_HEADERS
|
||||
# include "SDL.h"
|
||||
#else
|
||||
# include <SDL.h>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#ifdef USE_LOCAL_HEADERS
|
||||
#ifdef USE_INTERNAL_SDL_HEADERS
|
||||
# include "SDL.h"
|
||||
#else
|
||||
# include <SDL.h>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
===========================================================================
|
||||
*/
|
||||
|
||||
#ifdef USE_LOCAL_HEADERS
|
||||
#ifdef USE_INTERNAL_SDL_HEADERS
|
||||
# include "SDL.h"
|
||||
#else
|
||||
# include <SDL.h>
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef USE_LOCAL_HEADERS
|
||||
#ifdef USE_INTERNAL_SDL_HEADERS
|
||||
# include "SDL.h"
|
||||
#else
|
||||
# include <SDL.h>
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
# define Sys_LibraryError() dlerror()
|
||||
# endif
|
||||
#else
|
||||
# ifdef USE_LOCAL_HEADERS
|
||||
# ifdef USE_INTERNAL_SDL_HEADERS
|
||||
# include "SDL.h"
|
||||
# include "SDL_loadso.h"
|
||||
# else
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#include "../qcommon/qcommon.h"
|
||||
|
||||
#ifndef DEDICATED
|
||||
#ifdef USE_LOCAL_HEADERS
|
||||
#ifdef USE_INTERNAL_SDL_HEADERS
|
||||
# include "SDL_version.h"
|
||||
#else
|
||||
# include <SDL_version.h>
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#endif
|
||||
|
||||
#ifndef DEDICATED
|
||||
#ifdef USE_LOCAL_HEADERS
|
||||
#ifdef USE_INTERNAL_SDL_HEADERS
|
||||
# include "SDL.h"
|
||||
# include "SDL_cpuinfo.h"
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user