Fixed typo in CMakeLists.txt (ANDOID => ANDROID)
This commit is contained in:
parent
e77a684a20
commit
0901700176
3 changed files with 14 additions and 14 deletions
|
|
@ -17,7 +17,7 @@ option(KOMPUTE_OPT_INSTALL "Enable if you want to enable installation" 0)
|
||||||
option(KOMPUTE_OPT_BUILD_PYTHON "Enable if you want to build python bindings" 0)
|
option(KOMPUTE_OPT_BUILD_PYTHON "Enable if you want to build python bindings" 0)
|
||||||
option(KOMPUTE_OPT_ENABLE_SPDLOG "Extra compile flags for Kompute, see docs for full list" 0)
|
option(KOMPUTE_OPT_ENABLE_SPDLOG "Extra compile flags for Kompute, see docs for full list" 0)
|
||||||
option(KOMPUTE_OPT_REPO_SUBMODULE_BUILD "Use the submodule repos instead of external package manager" 0)
|
option(KOMPUTE_OPT_REPO_SUBMODULE_BUILD "Use the submodule repos instead of external package manager" 0)
|
||||||
option(KOMPUTE_OPT_ANDOID_BUILD "Enable android compilation flags required" 0)
|
option(KOMPUTE_OPT_ANDROID_BUILD "Enable android compilation flags required" 0)
|
||||||
option(KOMPUTE_OPT_DISABLE_VK_DEBUG_LAYERS "Explicitly disable debug layers even on debug" 0)
|
option(KOMPUTE_OPT_DISABLE_VK_DEBUG_LAYERS "Explicitly disable debug layers even on debug" 0)
|
||||||
option(KOMPUTE_OPT_DISABLE_SHADER_UTILS "Remove shader util code and dependencies including glslang" 0)
|
option(KOMPUTE_OPT_DISABLE_SHADER_UTILS "Remove shader util code and dependencies including glslang" 0)
|
||||||
option(KOMPUTE_OPT_DEPENDENCIES_SHARED_LIBS "Whether to use shared libraries for dependencies for install" 0)
|
option(KOMPUTE_OPT_DEPENDENCIES_SHARED_LIBS "Whether to use shared libraries for dependencies for install" 0)
|
||||||
|
|
@ -43,7 +43,7 @@ if(KOMPUTE_OPT_INSTALL)
|
||||||
set(FMT_INSTALL ON CACHE BOOL "Enables install of fmt" FORCE)
|
set(FMT_INSTALL ON CACHE BOOL "Enables install of fmt" FORCE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(KOMPUTE_OPT_ANDOID_BUILD)
|
if(KOMPUTE_OPT_ANDROID_BUILD)
|
||||||
set(KOMPUTE_EXTRA_CXX_FLAGS "${KOMPUTE_EXTRA_CXX_FLAGS} -DVK_USE_PLATFORM_ANDROID_KHR")
|
set(KOMPUTE_EXTRA_CXX_FLAGS "${KOMPUTE_EXTRA_CXX_FLAGS} -DVK_USE_PLATFORM_ANDROID_KHR")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ android {
|
||||||
abiFilters "armeabi-v7a", 'arm64-v8a', 'x86', 'x86_64'
|
abiFilters "armeabi-v7a", 'arm64-v8a', 'x86', 'x86_64'
|
||||||
arguments '-DANDROID_TOOLCHAIN=clang',
|
arguments '-DANDROID_TOOLCHAIN=clang',
|
||||||
'-DANDROID_STL=c++_static',
|
'-DANDROID_STL=c++_static',
|
||||||
'-DKOMPUTE_OPT_ANDOID_BUILD=1',
|
'-DKOMPUTE_OPT_ANDROID_BUILD=1',
|
||||||
'-DKOMPUTE_OPT_REPO_SUBMODULE_BUILD=1',
|
'-DKOMPUTE_OPT_REPO_SUBMODULE_BUILD=1',
|
||||||
'-DKOMPUTE_OPT_INSTALL=0',
|
'-DKOMPUTE_OPT_INSTALL=0',
|
||||||
'-DKOMPUTE_OPT_ENABLE_SPDLOG=0',
|
'-DKOMPUTE_OPT_ENABLE_SPDLOG=0',
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,17 @@
|
||||||
|
|
||||||
if(KOMPUTE_OPT_ANDOID_BUILD)
|
if(KOMPUTE_OPT_ANDROID_BUILD)
|
||||||
find_library(android android)
|
find_library(android android)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# We don't import Vulkan library if Android build as its build dynamically
|
# We don't import Vulkan library if Android build as its build dynamically
|
||||||
# Otherwise it is expected that the Vulkan SDK and dependencies are installed
|
# Otherwise it is expected that the Vulkan SDK and dependencies are installed
|
||||||
if(NOT KOMPUTE_OPT_ANDOID_BUILD)
|
if(NOT KOMPUTE_OPT_ANDROID_BUILD)
|
||||||
find_package(Vulkan REQUIRED)
|
find_package(Vulkan REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(KOMPUTE_OPT_BUILD_SHADERS)
|
if(KOMPUTE_OPT_BUILD_SHADERS)
|
||||||
# all shaders are compiled into cpp files
|
# all shaders are compiled into cpp files
|
||||||
kompute_make(build_shaders
|
kompute_make(build_shaders
|
||||||
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
@ -25,7 +25,7 @@ file(GLOB kompute_CPP
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/*.cpp"
|
"${CMAKE_CURRENT_SOURCE_DIR}/*.cpp"
|
||||||
)
|
)
|
||||||
|
|
||||||
if(KOMPUTE_OPT_ANDOID_BUILD)
|
if(KOMPUTE_OPT_ANDROID_BUILD)
|
||||||
set(VK_ANDROID_COMMON_DIR ${ANDROID_NDK}/sources/third_party/vulkan/src/common)
|
set(VK_ANDROID_COMMON_DIR ${ANDROID_NDK}/sources/third_party/vulkan/src/common)
|
||||||
set(VK_ANDROID_PATCH_DIR ${PROJECT_SOURCE_DIR}/vk_ndk_wrapper_include/)
|
set(VK_ANDROID_PATCH_DIR ${PROJECT_SOURCE_DIR}/vk_ndk_wrapper_include/)
|
||||||
set(VK_ANDROID_INCLUDE_DIR ${ANDROID_NDK}/sources/third_party/vulkan/src/include)
|
set(VK_ANDROID_INCLUDE_DIR ${ANDROID_NDK}/sources/third_party/vulkan/src/include)
|
||||||
|
|
@ -57,14 +57,14 @@ target_include_directories(
|
||||||
$<INSTALL_INTERFACE:single_include>
|
$<INSTALL_INTERFACE:single_include>
|
||||||
)
|
)
|
||||||
|
|
||||||
if(NOT KOMPUTE_OPT_ANDOID_BUILD)
|
if(NOT KOMPUTE_OPT_ANDROID_BUILD)
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
kompute
|
kompute
|
||||||
Vulkan::Vulkan
|
Vulkan::Vulkan
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
kompute
|
kompute
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
@ -89,7 +89,7 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
kompute
|
kompute
|
||||||
fmt::fmt
|
fmt::fmt
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -105,7 +105,7 @@ if(KOMPUTE_OPT_ENABLE_SPDLOG)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
kompute
|
kompute
|
||||||
spdlog::spdlog
|
spdlog::spdlog
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
@ -114,9 +114,9 @@ endif()
|
||||||
#################### Android #######################
|
#################### Android #######################
|
||||||
#####################################################
|
#####################################################
|
||||||
|
|
||||||
if(KOMPUTE_OPT_ANDOID_BUILD)
|
if(KOMPUTE_OPT_ANDROID_BUILD)
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
kompute
|
kompute
|
||||||
kompute_vk_ndk_wrapper
|
kompute_vk_ndk_wrapper
|
||||||
log
|
log
|
||||||
android
|
android
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue