mirror of
https://github.com/DrBeef/QuakeQuest.git
synced 2024-11-28 06:52:13 +00:00
30 lines
1.2 KiB
Makefile
30 lines
1.2 KiB
Makefile
# This file is included in all .mk files to ensure their compilation flags are in sync
|
|
# across debug and release builds.
|
|
|
|
# NOTE: this is not part of import_vrlib.mk because VRLib itself needs to have these flags
|
|
# set, but VRLib's make file cannot include import_vrlib.mk or it would be importing itself.
|
|
|
|
LOCAL_CFLAGS := -DANDROID_NDK
|
|
LOCAL_CFLAGS += -Werror # error on warnings
|
|
LOCAL_CFLAGS += -Wall
|
|
LOCAL_CFLAGS += -Wextra
|
|
#LOCAL_CFLAGS += -Wlogical-op # not part of -Wall or -Wextra
|
|
#LOCAL_CFLAGS += -Weffc++ # too many issues to fix for now
|
|
LOCAL_CFLAGS += -Wno-strict-aliasing # TODO: need to rewrite some code
|
|
LOCAL_CFLAGS += -Wno-unused-parameter
|
|
LOCAL_CFLAGS += -Wno-missing-field-initializers # warns on this: SwipeAction ret = {}
|
|
LOCAL_CFLAGS += -Wno-multichar # used in internal Android headers: DISPLAY_EVENT_VSYNC = 'vsyn',
|
|
LOCAL_CPPFLAGS := -Wno-type-limits
|
|
LOCAL_CPPFLAGS += -Wno-invalid-offsetof
|
|
|
|
# disable deprecation errors, but keep the warnings
|
|
LOCAL_CFLAGS += -Wno-error=deprecated-declarations
|
|
|
|
ifeq ($(OVR_DEBUG),1)
|
|
LOCAL_CFLAGS += -DOVR_BUILD_DEBUG=1 -O0 -g
|
|
else
|
|
LOCAL_CFLAGS += -O3
|
|
endif
|
|
|
|
# Explicitly compile for the ARM and not the Thumb instruction set.
|
|
LOCAL_ARM_MODE := arm
|