Commit b83808c7 authored by DanmeiChen's avatar DanmeiChen
Browse files

fix swift file is attached to multiple targets

Showing with 7 additions and 1 deletion
...@@ -73,6 +73,12 @@ if (ENABLE_JAZZY_DOC OR ENABLE_SWIFT_WRAPPER_COMPILATION) ...@@ -73,6 +73,12 @@ if (ENABLE_JAZZY_DOC OR ENABLE_SWIFT_WRAPPER_COMPILATION)
PRIVATE ${BCTOOLBOX_CORE_LIBRARIES} ${BELLESIP_LIBRARIES} linphone PRIVATE ${BCTOOLBOX_CORE_LIBRARIES} ${BELLESIP_LIBRARIES} linphone
) )
if (NOT ENABLE_SWIFT_WRAPPER_COMPILATION)
# LinphoneWrapper.swift is attached to multiple targets: linphonesw linphoneswsource
# but none of these is a common dependency of the other(s). This is not
# allowed by the Xcode "new build system".
add_dependencies(linphonesw linphoneswsource)
endif()
if(CMAKE_GENERATOR STREQUAL Xcode) if(CMAKE_GENERATOR STREQUAL Xcode)
set_target_properties(linphonesw PROPERTIES set_target_properties(linphonesw PROPERTIES
FRAMEWORK TRUE FRAMEWORK TRUE
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
if(ENABLE_SWIFT_WRAPPER AND ENABLE_JAZZY_DOC) if(ENABLE_SWIFT_WRAPPER AND ENABLE_JAZZY_DOC)
message("Generating jazzy doc for swift module, we need archs x86_64 to generate jazzy doc!") message("Generating jazzy doc for swift module, we need archs x86_64 to generate jazzy doc!")
execute_process( execute_process(
COMMAND "jazzy" "-x" "-project,linphone.xcodeproj,-scheme,linphonesw" "--readme" "README" COMMAND "jazzy" "-x" "-project,linphone.xcodeproj,-scheme,linphonesw" "--readme" "wrappers/swift/README"
WORKING_DIRECTORY "${LINPHONESDK_BUILD_DIR}/WORK/ios-x86_64/Build/linphone/" WORKING_DIRECTORY "${LINPHONESDK_BUILD_DIR}/WORK/ios-x86_64/Build/linphone/"
) )
execute_process( execute_process(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment