mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
26 lines
782 B
CMake
26 lines
782 B
CMake
add_swift_host_tool(swift-ide-test
|
|
swift-ide-test.cpp
|
|
ModuleAPIDiff.cpp
|
|
XMLValidator.cpp
|
|
LINK_LIBRARIES
|
|
swiftDriver
|
|
swiftFrontend
|
|
swiftIDE
|
|
LLVM_COMPONENT_DEPENDS
|
|
DebugInfoCodeView
|
|
SWIFT_COMPONENT tools
|
|
)
|
|
|
|
# If libxml2 is available, make it available for swift-ide-test.
|
|
if(SWIFT_HAVE_LIBXML)
|
|
include_directories(SYSTEM ${LIBXML2_INCLUDE_DIR})
|
|
target_link_libraries(swift-ide-test ${LIBXML2_LIBRARIES})
|
|
add_definitions(-DSWIFT_HAVE_LIBXML="1")
|
|
endif()
|
|
|
|
# Create a symlink for swift-api-dump.py in the bin directory
|
|
swift_create_post_build_symlink(swift-ide-test
|
|
SOURCE "${SWIFT_SOURCE_DIR}/utils/swift-api-dump.py"
|
|
DESTINATION "${SWIFT_RUNTIME_OUTPUT_INTDIR}/swift-api-dump.py"
|
|
COMMENT "Creating development symlink for swift-api-dump.py.")
|
|
|