1# Copyright 2019 The Amber Authors. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15LOCAL_PATH:= $(call my-dir) 16 17include $(CLEAR_VARS) 18LOCAL_MODULE:=amber_ndk 19LOCAL_CPP_EXTENSION := .cc .cpp .cxx 20LOCAL_SRC_FILES:= \ 21 amber.cc \ 22 config_helper.cc \ 23 config_helper_vulkan.cc \ 24 log.cc \ 25 ppm.cc \ 26 png.cc \ 27 timestamp.cc 28LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. $(LOCAL_PATH)/../include 29LOCAL_LDLIBS:=-landroid -lvulkan -llog 30LOCAL_CXXFLAGS:=-std=c++11 -fno-exceptions -fno-rtti -Werror -Wno-unknown-pragmas -DAMBER_ENGINE_VULKAN=1 -DAMBER_ENABLE_LODEPNG=1 31LOCAL_STATIC_LIBRARIES:=amber lodepng 32include $(BUILD_EXECUTABLE) 33 34LOCAL_MODULE:=amber_ndk_sharedlib 35LOCAL_MODULE_FILENAME:=libamber_ndk 36LOCAL_SRC_FILES+=android_helper.cc 37LOCAL_CXXFLAGS+=-DAMBER_ANDROID_MAIN=1 38include $(BUILD_SHARED_LIBRARY) 39 40include $(LOCAL_PATH)/../Android.mk 41