Skip to content

Commit

Permalink
[double-conversion] Reduce work done during deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0219-msft committed Oct 12, 2016
1 parent 2f0d6b0 commit 9c70bea
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions ports/double-conversion/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ vcpkg_build_msbuild(
message(STATUS "Installing")
file(INSTALL
${SOURCE_PATH}/msvc/Debug/Win32/double-conversion.lib
${SOURCE_PATH}/msvc/Debug/Win32/double-conversion.pdb
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
)
file(INSTALL
Expand All @@ -46,26 +45,5 @@ message(STATUS "Installing done")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)

# Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/doubleconversion)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/doubleconversion/LICENSE ${CURRENT_PACKAGES_DIR}/share/doubleconversion/copyright)

# Move the Release CMake files.
file(GLOB cacheFiles ${CURRENT_PACKAGES_DIR}/CMake/*.cmake)
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/doubleconversion/release)
foreach(cacheFile ${cacheFiles})
get_filename_component(filename ${cacheFile} NAME)
file(RENAME ${cacheFile} ${CURRENT_PACKAGES_DIR}/share/doubleconversion/release/${filename})
endforeach()
# Remove the original directory.
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/CMake)

# Move the Debug CMake files.
file(GLOB cacheFiles ${CURRENT_PACKAGES_DIR}/debug/CMake/*.cmake)
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/doubleconversion/debug)
foreach(cacheFile ${cacheFiles})
get_filename_component(filename ${cacheFile} NAME)
file(RENAME ${cacheFile} ${CURRENT_PACKAGES_DIR}/share/doubleconversion/debug/${filename})
endforeach()
# Remove the original directory.
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/CMake)

file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/double-conversion)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/double-conversion/LICENSE ${CURRENT_PACKAGES_DIR}/share/double-conversion/copyright)

0 comments on commit 9c70bea

Please sign in to comment.