Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
Update Toolchain Name
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang committed Mar 23, 2018
1 parent dc1d1fa commit 3ef5f3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/xcode-toolchain/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,18 @@ if(NOT toolchains_match)
endif()
set(toolchains_dir ${CMAKE_MATCH_1})

set(LLVMToolchainDir "${CMAKE_INSTALL_PREFIX}/Toolchains/LLVM${PACKAGE_VERSION}.xctoolchain/")
set(LLVMToolchainDir "${CMAKE_INSTALL_PREFIX}/Toolchains/Hikari.xctoolchain/")

add_custom_command(OUTPUT ${LLVMToolchainDir}
COMMAND ${CMAKE_COMMAND} -E make_directory ${LLVMToolchainDir})

add_custom_command(OUTPUT ${LLVMToolchainDir}/Info.plist
DEPENDS ${LLVMToolchainDir}
COMMAND ${CMAKE_COMMAND} -E remove ${LLVMToolchainDir}/Info.plist
COMMAND /usr/libexec/PlistBuddy -c "Add:CFBundleIdentifier string org.llvm.${PACKAGE_VERSION}" "${LLVMToolchainDir}/Info.plist"
COMMAND /usr/libexec/PlistBuddy -c "Add:CFBundleIdentifier string com.naville.hikari" "${LLVMToolchainDir}/Info.plist"
COMMAND /usr/libexec/PlistBuddy -c "Add:CompatibilityVersion integer ${COMPAT_VERSION}" "${LLVMToolchainDir}/Info.plist"
COMMAND /usr/libexec/PlistBuddy -c "Add:DisplayName string HikariObfuscator" "${LLVMToolchainDir}/Info.plist"
COMMAND /usr/libexec/PlistBuddy -c "Add:ShortDisplayName string HikariObfuscator" "${LLVMToolchainDir}/Info.plist"
)

add_custom_target(build-xcode-toolchain
Expand Down

0 comments on commit 3ef5f3b

Please sign in to comment.