feat: update xr platform library and add ar platform library (#319)
This commit is contained in:
parent
8069d9713b
commit
23cbc65185
|
|
@ -160,6 +160,17 @@ else()
|
||||||
set(PhysXSDK)
|
set(PhysXSDK)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(USE_AR_MODULE)
|
||||||
|
set(ARSDK libAR)
|
||||||
|
add_library(libAR STATIC IMPORTED GLOBAL)
|
||||||
|
set_target_properties(libAR PROPERTIES
|
||||||
|
IMPORTED_LOCATION ${platform_spec_path}/ar/libar.a
|
||||||
|
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_LIST_DIR}/../../cocos/xr
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
set(ARSDK)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (USE_DEBUG_RENDERER)
|
if (USE_DEBUG_RENDERER)
|
||||||
list(APPEND CC_EXTERNAL_LIBS
|
list(APPEND CC_EXTERNAL_LIBS
|
||||||
freetype
|
freetype
|
||||||
|
|
@ -173,6 +184,7 @@ list(APPEND CC_EXTERNAL_LIBS
|
||||||
uv
|
uv
|
||||||
android_platform
|
android_platform
|
||||||
${PhysXSDK}
|
${PhysXSDK}
|
||||||
|
${ARSDK}
|
||||||
)
|
)
|
||||||
|
|
||||||
if(USE_JOB_SYSTEM_TBB OR CC_USE_VULKAN) ## VKDevice.cpp use tbb_allocator.h
|
if(USE_JOB_SYSTEM_TBB OR CC_USE_VULKAN) ## VKDevice.cpp use tbb_allocator.h
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -206,6 +206,17 @@ else()
|
||||||
set(PhysXSDK)
|
set(PhysXSDK)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(USE_AR_MODULE)
|
||||||
|
set(ARSDK libAR)
|
||||||
|
add_library(libAR STATIC IMPORTED GLOBAL)
|
||||||
|
set_target_properties(libAR PROPERTIES
|
||||||
|
IMPORTED_LOCATION ${CMAKE_CURRENT_LIST_DIR}/libs/ar/libar.a
|
||||||
|
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_LIST_DIR}/../../cocos/xr
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
set(ARSDK)
|
||||||
|
endif()
|
||||||
|
|
||||||
list(APPEND CC_EXTERNAL_INCLUDES
|
list(APPEND CC_EXTERNAL_INCLUDES
|
||||||
${CMAKE_CURRENT_LIST_DIR}/include
|
${CMAKE_CURRENT_LIST_DIR}/include
|
||||||
)
|
)
|
||||||
|
|
@ -224,6 +235,7 @@ list(APPEND CC_EXTERNAL_LIBS
|
||||||
${spirv-cross_libs_name}
|
${spirv-cross_libs_name}
|
||||||
${tbb_libs_name}
|
${tbb_libs_name}
|
||||||
${PhysXSDK}
|
${PhysXSDK}
|
||||||
|
${ARSDK}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(ZLIB z)
|
set(ZLIB z)
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue