Skip to content
Snippets Groups Projects
Commit 9c9545e9 authored by Cody Northrop's avatar Cody Northrop
Browse files

vulkaninfo: Android executable build

parent 354ad3ba
No related tags found
No related merge requests found
......@@ -32,4 +32,17 @@ LOCAL_LDLIBS := -llog -landroid
LOCAL_LDFLAGS := -u ANativeActivity_onCreate
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := vulkaninfo
LOCAL_SRC_FILES += $(DEMO_DIR)/vulkaninfo.c \
$(SRC_DIR)/common/vulkan_wrapper.cpp
LOCAL_C_INCLUDES += $(SRC_DIR)/include \
$(DEMO_DIR)/android/include \
$(SRC_DIR)/libs \
$(SRC_DIR)/common
LOCAL_CFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR --include=$(SRC_DIR)/common/vulkan_wrapper.h
LOCAL_LDLIBS := -llog
LOCAL_LDFLAGS := -Wl,--exclude-libs,ALL
include $(BUILD_EXECUTABLE)
$(call import-module,android/native_app_glue)
......@@ -16,7 +16,7 @@
APP_ABI := armeabi-v7a arm64-v8a x86 x86_64
APP_PLATFORM := android-23
APP_STL := gnustl_static
APP_MODULES := Cube
APP_MODULES := Cube vulkaninfo
APP_CPPFLAGS += -std=c++11 -fexceptions -Wall -Werror -Wextra -Wno-unused-parameter -DVK_NO_PROTOTYES -DGLM_FORCE_RADIANS
APP_CFLAGS += -Wall -Werror -Wextra -Wno-unused-parameter -DVK_NO_PROTOTYES -DGLM_FORCE_RADIANS
NDK_TOOLCHAIN_VERSION := clang
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment