File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
hello-vulkan/app/src/main/cpp Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 1515#]]
1616
1717cmake_minimum_required (VERSION 4.1.0)
18- project (hellovkjni )
18+ project (HelloVulkan LANGUAGES CXX )
1919
2020include (AppLibrary)
21-
22- # Include the GameActivity static lib to the project.
2321find_package (game-activity REQUIRED CONFIG)
2422
25- set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
26-
27- add_definitions (-DVK_USE_PLATFORM_ANDROID_KHR=1 )
23+ add_app_library(hellovkjni SHARED
24+ vk_main.cpp
25+ )
2826
29- add_app_library(${PROJECT_NAME} SHARED
30- vk_main.cpp)
27+ target_compile_definitions (hellovkjni PRIVATE
28+ VK_USE_PLATFORM_ANDROID_KHR=1
29+ )
3130
32- # add lib dependencies
33- target_link_libraries (${PROJECT_NAME} PUBLIC
31+ target_link_libraries (hellovkjni PUBLIC
3432 vulkan
3533 $<LINK_LIBRARY:WHOLE_ARCHIVE,game-activity::game-activity_static>
3634 android
37- log )
35+ log
36+ )
You can’t perform that action at this time.
0 commit comments