From e0ab25a24c0f21c40712542f36ec349b8bc8f8d6 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 11 May 2016 01:03:56 +0000 Subject: [PATCH] More Android build changes. DONT_BUILD. git-svn-id: https://svn.eduke32.com/eduke32@5719 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/Android.mk | 15 ++++++++++++--- polymer/eduke32/source/android/in_android.h | 1 - 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/polymer/eduke32/Android.mk b/polymer/eduke32/Android.mk index 364c04702..cf291f7be 100644 --- a/polymer/eduke32/Android.mk +++ b/polymer/eduke32/Android.mk @@ -2,15 +2,24 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) +ifeq ($(findstring clang,$(NDK_TOOLCHAIN_VERSION)),) + FOUND_CLANG := 0 +else + FOUND_CLANG := 1 +endif + LOCAL_MODULE := duke3d 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 \ - -Wno-attributes -Wno-strict-overflow -Wno-unused-result -Wlogical-op -Wcast-qual \ - -Wno-unknown-warning-option -Wno-deprecated-register -Werror=return-type \ + -Wno-attributes -Wno-strict-overflow -Wno-unused-result -Wlogical-op -Wcast-qual -Werror=return-type \ -DHAVE_SDL -DHAVE_VORBIS -DHAVE_JWZGLES -DHAVE_ANDROID -DRENDERTYPESDL=1 -DUSE_OPENGL -DNETCODE_DISABLE -DUSE_LIBVPX \ -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_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 else COMMONFLAGS += -O2 -DNDEBUG -D_FORTIFY_SOURCE=2 - ifeq ($(findstring clang,$(NDK_TOOLCHAIN_VERSION)),) + ifeq ($(FOUND_CLANG),0) COMMONFLAGS += -DUSING_LTO -flto LOCAL_LDFLAGS += -flto endif diff --git a/polymer/eduke32/source/android/in_android.h b/polymer/eduke32/source/android/in_android.h index dc927d8bf..7e9234ea6 100644 --- a/polymer/eduke32/source/android/in_android.h +++ b/polymer/eduke32/source/android/in_android.h @@ -1,5 +1,4 @@ #include "function.h" -#include "compat.h" #ifdef __cplusplus extern "C"