Home | History | Annotate | Download | only in jni
      1 # Copyright 2015 The Android Open Source Project
      2 # Copyright (C) 2015 Valve Corporation
      3 
      4 # Licensed under the Apache License, Version 2.0 (the "License");
      5 # you may not use this file except in compliance with the License.
      6 # You may obtain a copy of the License at
      7 
      8 #      http://www.apache.org/licenses/LICENSE-2.0
      9 
     10 # Unless required by applicable law or agreed to in writing, software
     11 # distributed under the License is distributed on an "AS IS" BASIS,
     12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 # See the License for the specific language governing permissions and
     14 # limitations under the License.
     15 
     16 LOCAL_PATH := $(abspath $(call my-dir))
     17 SRC_DIR := $(LOCAL_PATH)/../../..
     18 DEMO_DIR := $(SRC_DIR)/demos
     19 
     20 include $(CLEAR_VARS)
     21 LOCAL_MODULE := Cube
     22 LOCAL_SRC_FILES += $(DEMO_DIR)/cube.c \
     23                    $(SRC_DIR)/common/vulkan_wrapper.cpp \
     24                    $(SRC_DIR)/common/android_util.cpp
     25 LOCAL_C_INCLUDES += $(SRC_DIR)/include \
     26                     $(DEMO_DIR)/android/include \
     27                     $(SRC_DIR)/libs \
     28                     $(SRC_DIR)/common
     29 LOCAL_CFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR --include=$(SRC_DIR)/common/vulkan_wrapper.h
     30 LOCAL_WHOLE_STATIC_LIBRARIES += android_native_app_glue
     31 LOCAL_LDLIBS    := -llog -landroid
     32 include $(BUILD_SHARED_LIBRARY)
     33 
     34 $(call import-module,android/native_app_glue)
     35