Added functioning example

This commit is contained in:
Alejandro Saucedo 2020-10-03 13:10:40 +01:00
parent 32caa1aa60
commit 4c3b18d560
6 changed files with 100 additions and 62 deletions

View file

@ -44,14 +44,13 @@ if(KOMPUTE_OPT_ANDOID_BUILD)
add_library(android_app_glue STATIC
${ANDROID_APP_GLUE_DIR}/android_native_app_glue.c)
#add_library(android_vulkan_wrapper STATIC
# ${VK_ANDROID_COMMON_DIR}/vulkan_wrapper.cpp)
add_library(android_vulkan_wrapper STATIC
${PROJECT_SOURCE_DIR}/vulkan_ndk_patch_include/kompute_vulkan_wrapper.cpp)
endif()
if(KOMPUTE_OPT_ANDOID_BUILD)
add_library(kompute
${kompute_CPP}
${PROJECT_SOURCE_DIR}/vulkan_ndk_patch_include/kompute_vulkan_wrapper.cpp)
${kompute_CPP})
else()
add_library(kompute
${kompute_CPP})
@ -87,6 +86,7 @@ if(KOMPUTE_OPT_ANDOID_BUILD)
target_link_libraries(
kompute
android_app_glue
android_vulkan_wrapper
log
android
)