mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-12 23:54:37 +00:00
More Android build changes. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5719 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
0331870c1b
commit
e0ab25a24c
2 changed files with 12 additions and 4 deletions
|
@ -2,15 +2,24 @@ LOCAL_PATH := $(call my-dir)
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
ifeq ($(findstring clang,$(NDK_TOOLCHAIN_VERSION)),)
|
||||||
|
FOUND_CLANG := 0
|
||||||
|
else
|
||||||
|
FOUND_CLANG := 1
|
||||||
|
endif
|
||||||
|
|
||||||
LOCAL_MODULE := duke3d
|
LOCAL_MODULE := duke3d
|
||||||
|
|
||||||
COMMONFLAGS := -x c++ -std=gnu++11 -fvisibility=hidden -fPIC -funsigned-char -fno-strict-aliasing -pthread \
|
COMMONFLAGS := -x c++ -std=gnu++11 -fvisibility=hidden -fPIC -funsigned-char -fno-strict-aliasing -pthread \
|
||||||
-W -Wall -Wextra -Wpointer-arith -Wno-char-subscripts -Wno-missing-braces -Wwrite-strings -Wuninitialized \
|
-W -Wall -Wextra -Wpointer-arith -Wno-char-subscripts -Wno-missing-braces -Wwrite-strings -Wuninitialized \
|
||||||
-Wno-attributes -Wno-strict-overflow -Wno-unused-result -Wlogical-op -Wcast-qual \
|
-Wno-attributes -Wno-strict-overflow -Wno-unused-result -Wlogical-op -Wcast-qual -Werror=return-type \
|
||||||
-Wno-unknown-warning-option -Wno-deprecated-register -Werror=return-type \
|
|
||||||
-DHAVE_SDL -DHAVE_VORBIS -DHAVE_JWZGLES -DHAVE_ANDROID -DRENDERTYPESDL=1 -DUSE_OPENGL -DNETCODE_DISABLE -DUSE_LIBVPX \
|
-DHAVE_SDL -DHAVE_VORBIS -DHAVE_JWZGLES -DHAVE_ANDROID -DRENDERTYPESDL=1 -DUSE_OPENGL -DNETCODE_DISABLE -DUSE_LIBVPX \
|
||||||
-DHAVE_INTTYPES -D_GNU_SOURCE=1 -D_REENTRANT
|
-DHAVE_INTTYPES -D_GNU_SOURCE=1 -D_REENTRANT
|
||||||
|
|
||||||
|
ifeq ($(FOUND_CLANG),1)
|
||||||
|
COMMONFLAGS += -Wno-unknown-warning-option -Wno-deprecated-register
|
||||||
|
endif
|
||||||
|
|
||||||
LOCAL_LDFLAGS := -fuse-ld=bfd
|
LOCAL_LDFLAGS := -fuse-ld=bfd
|
||||||
LOCAL_ARM_NEON = true
|
LOCAL_ARM_NEON = true
|
||||||
|
|
||||||
|
@ -18,7 +27,7 @@ ifeq ($(NDK_DEBUG), 1)
|
||||||
COMMONFLAGS += -O0 -ggdb -fno-omit-frame-pointer -fno-stack-protector -D_FORTIFY_SOURCE=0 -DDEBUGGINGAIDS=0
|
COMMONFLAGS += -O0 -ggdb -fno-omit-frame-pointer -fno-stack-protector -D_FORTIFY_SOURCE=0 -DDEBUGGINGAIDS=0
|
||||||
else
|
else
|
||||||
COMMONFLAGS += -O2 -DNDEBUG -D_FORTIFY_SOURCE=2
|
COMMONFLAGS += -O2 -DNDEBUG -D_FORTIFY_SOURCE=2
|
||||||
ifeq ($(findstring clang,$(NDK_TOOLCHAIN_VERSION)),)
|
ifeq ($(FOUND_CLANG),0)
|
||||||
COMMONFLAGS += -DUSING_LTO -flto
|
COMMONFLAGS += -DUSING_LTO -flto
|
||||||
LOCAL_LDFLAGS += -flto
|
LOCAL_LDFLAGS += -flto
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#include "function.h"
|
#include "function.h"
|
||||||
#include "compat.h"
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
|
|
Loading…
Reference in a new issue