mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-11 06:24:30 +00:00
Turn on mobile hacks for Android by default.
This commit is contained in:
parent
01d12d88f5
commit
6605b07027
@ -75,6 +75,10 @@ else()
|
|||||||
message(STATUS "Building for 32 Bit")
|
message(STATUS "Building for 32 Bit")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(XASH_ANDROID)
|
||||||
|
add_definitions(-DMOBILE_HACKS)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (MINGW)
|
if (MINGW)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc")
|
||||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--add-stdcall-alias")
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--add-stdcall-alias")
|
||||||
@ -95,7 +99,6 @@ if(NOT MSVC)
|
|||||||
add_compile_options(-Wreturn-type) # GCC/Clang flag
|
add_compile_options(-Wreturn-type) # GCC/Clang flag
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
if(BUILD_CLIENT)
|
if(BUILD_CLIENT)
|
||||||
add_subdirectory(cl_dll)
|
add_subdirectory(cl_dll)
|
||||||
endif()
|
endif()
|
||||||
|
@ -92,7 +92,7 @@ SRCS+=./input_xash3d.cpp
|
|||||||
SRCS+=./scoreboard.cpp
|
SRCS+=./scoreboard.cpp
|
||||||
SRCS+=./MOTD.cpp
|
SRCS+=./MOTD.cpp
|
||||||
INCLUDES = -I../common -I. -I../game_shared -I../pm_shared -I../engine -I../dlls -I../utils/false_vgui/include
|
INCLUDES = -I../common -I. -I../game_shared -I../pm_shared -I../engine -I../dlls -I../utils/false_vgui/include
|
||||||
DEFINES = -Wno-write-strings -DLINUX -D_LINUX -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DCLIENT_WEAPONS -DCLIENT_DLL -w -D_snprintf=snprintf
|
DEFINES = -Wno-write-strings -DLINUX -D_LINUX -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DCLIENT_WEAPONS -DCLIENT_DLL -DMOBILE_HACKS -w -D_snprintf=snprintf
|
||||||
|
|
||||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/. \
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/. \
|
||||||
$(LOCAL_PATH)/../common \
|
$(LOCAL_PATH)/../common \
|
||||||
|
@ -14,7 +14,7 @@ LOCAL_MODULE_FILENAME = libserver_hardfp
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
LOCAL_CFLAGS += -D_LINUX -DCLIENT_WEAPONS -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf \
|
LOCAL_CFLAGS += -D_LINUX -DCLIENT_WEAPONS -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf \
|
||||||
-fno-exceptions -DNO_VOICEGAMEMGR -w
|
-fno-exceptions -DNO_VOICEGAMEMGR -DMOBILE_HACKS -w
|
||||||
|
|
||||||
LOCAL_CPPFLAGS := $(LOCAL_CFLAGS)
|
LOCAL_CPPFLAGS := $(LOCAL_CFLAGS)
|
||||||
|
|
||||||
|
3
wscript
3
wscript
@ -263,6 +263,9 @@ def configure(conf):
|
|||||||
|
|
||||||
conf.define('CLIENT_WEAPONS', '1')
|
conf.define('CLIENT_WEAPONS', '1')
|
||||||
|
|
||||||
|
if conf.env.DEST_OS == 'android':
|
||||||
|
conf.define('MOBILE_HACKS', '1')
|
||||||
|
|
||||||
conf.add_subproject(["cl_dll", "dlls"])
|
conf.add_subproject(["cl_dll", "dlls"])
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user