Skip to content

Commit

Permalink
Merge pull request #2720 from bagong/fix_win_build
Browse files Browse the repository at this point in the history
Fix symlinks in win build system
  • Loading branch information
telephon committed Feb 20, 2017
2 parents 6c932e7 + 6b359a4 commit cd14eaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -362,13 +362,15 @@ elseif(WIN32)
if(MSYS)
add_custom_command(TARGET sclang
POST_BUILD
COMMAND "${CMAKE_SOURCE_DIR}/platform/windows/symlinks.sh" "remove" "$<TARGET_FILE_DIR:sclang>"
COMMAND ${CMAKE_COMMAND} -E copy_directory $<TARGET_FILE_DIR:sclang> $<TARGET_FILE_DIR:SuperCollider>
COMMAND "${CMAKE_SOURCE_DIR}/platform/windows/symlinks.sh" "create" "${CMAKE_SOURCE_DIR}" "$<TARGET_FILE_DIR:sclang>"
COMMENT "Copying files in target sclang to target SuperCollider (scide) and creating links to SCClassLibrary e.a."
)
else()
add_custom_command(TARGET sclang
POST_BUILD
COMMAND cmd /C ${CMAKE_SOURCE_DIR}/platform/windows/junctions.bat remove \"$<TARGET_FILE_DIR:sclang>\"
COMMAND ${CMAKE_COMMAND} -E copy_directory $<TARGET_FILE_DIR:sclang> $<TARGET_FILE_DIR:SuperCollider>
COMMAND cmd /C ${CMAKE_SOURCE_DIR}/platform/windows/junctions.bat create \"$<TARGET_FILE_DIR:sclang>\" \"${CMAKE_SOURCE_DIR}\"
COMMENT "Copying files in target sclang to target SuperCollider (scide) and creating links to SCClassLibrary e.a."
Expand Down
2 changes: 1 addition & 1 deletion platform/windows/junctions.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ IF NOT EXIST %2\SCClassLibrary (mklink /J %2\SCClassLibrary %3\SCClassLibrary)
IF NOT EXIST %2\HelpSource (mklink /J %2\HelpSource %3\HelpSource)
IF NOT EXIST %2\examples (mklink /J %2\examples %3\examples)
IF NOT EXIST %2\sounds (mklink /J %2\sounds %3\sounds)
GOTO :END
GOTO END

:REMOVE
IF EXIST %2\SCClassLibrary (rmdir %2\SCClassLibrary)
Expand Down

0 comments on commit cd14eaf

Please sign in to comment.