Merge pull request #538 from atteneder/unity_ios

draco cmake: make unity plugin decoder a static lib on ios.
This commit is contained in:
Tom Finegan 2019-07-03 13:18:32 -07:00 committed by GitHub
commit 40dc50f35f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1010,7 +1010,11 @@ else()
$<TARGET_OBJECTS:draco_points_dec>
$<TARGET_OBJECTS:draco_points_enc>)
if(BUILD_UNITY_PLUGIN)
add_library(dracodec_unity MODULE
set(UNITY_TYPE MODULE)
if(IOS)
set(UNITY_TYPE STATIC)
endif()
add_library(dracodec_unity ${UNITY_TYPE}
${draco_version_sources}
$<TARGET_OBJECTS:draco_attributes>
$<TARGET_OBJECTS:draco_compression_attributes_dec>