Skip to content

Commit

Permalink
[gsoap] msbuild (#33149)
Browse files Browse the repository at this point in the history
* [gsoap] msbuild

* v db
  • Loading branch information
Neumann-A committed Aug 16, 2023
1 parent a5eb920 commit c77bce4
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 32 deletions.
49 changes: 20 additions & 29 deletions ports/gsoap/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,41 @@ vcpkg_from_sourceforge(

set(BUILD_ARCH "Win32")

# Handle binary files and includes
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/gsoap ${CURRENT_PACKAGES_DIR}/debug/tools)
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/gsoap" "${CURRENT_PACKAGES_DIR}/debug/tools")

if (VCPKG_TARGET_IS_WINDOWS)
vcpkg_build_msbuild(
USE_VCPKG_INTEGRATION
PROJECT_PATH ${SOURCE_PATH}/gsoap/VisualStudio2005/soapcpp2/soapcpp2.sln
vcpkg_msbuild_install(
PROJECT_PATH "${SOURCE_PATH}/gsoap/VisualStudio2005/soapcpp2/soapcpp2.sln"
PLATFORM ${BUILD_ARCH}
TARGET Build
)
vcpkg_build_msbuild(
USE_VCPKG_INTEGRATION
PROJECT_PATH ${SOURCE_PATH}/gsoap/VisualStudio2005/wsdl2h/wsdl2h.sln
vcpkg_msbuild_install(
PROJECT_PATH "${SOURCE_PATH}/gsoap/VisualStudio2005/wsdl2h/wsdl2h.sln"
PLATFORM ${BUILD_ARCH}
TARGET Build
)

file(COPY ${SOURCE_PATH}/gsoap/VisualStudio2005/soapcpp2/release/soapcpp2.exe DESTINATION ${CURRENT_PACKAGES_DIR}/tools/gsoap/)
file(COPY ${SOURCE_PATH}/gsoap/VisualStudio2005/wsdl2h/release/wsdl2h.exe DESTINATION ${CURRENT_PACKAGES_DIR}/tools/gsoap/)
file(COPY ${SOURCE_PATH}/gsoap/VisualStudio2005/soapcpp2/debug/soapcpp2.exe DESTINATION ${CURRENT_PACKAGES_DIR}/debug/tools/gsoap/)
file(COPY ${SOURCE_PATH}/gsoap/VisualStudio2005/wsdl2h/debug/wsdl2h.exe DESTINATION ${CURRENT_PACKAGES_DIR}/debug/tools/gsoap/)
else()
message(FATAL_ERROR "Sorry but gsoap only can be build in Windows temporary")
endif()


file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include)
file(COPY ${SOURCE_PATH}/gsoap/stdsoap2.h ${SOURCE_PATH}/gsoap/stdsoap2.c ${SOURCE_PATH}/gsoap/stdsoap2.cpp ${SOURCE_PATH}/gsoap/dom.c ${SOURCE_PATH}/gsoap/dom.cpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)

# Handle import files
file(COPY ${SOURCE_PATH}/gsoap/import DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/include")

# Handle custom files
file(COPY ${SOURCE_PATH}/gsoap/custom DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
file(COPY
"${SOURCE_PATH}/gsoap/stdsoap2.h"
"${SOURCE_PATH}/gsoap/stdsoap2.c"
"${SOURCE_PATH}/gsoap/stdsoap2.cpp"
"${SOURCE_PATH}/gsoap/dom.c"
"${SOURCE_PATH}/gsoap/dom.cpp"
DESTINATION "${CURRENT_PACKAGES_DIR}/include"
)

# Handle plugin files
file(COPY ${SOURCE_PATH}/gsoap/plugin DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
file(COPY "${SOURCE_PATH}/gsoap/import" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(COPY "${SOURCE_PATH}/gsoap/custom" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(COPY "${SOURCE_PATH}/gsoap/plugin" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

# Cleanup surplus empty directory
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/gsoap/plugin/.deps")

# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(INSTALL ${SOURCE_PATH}/INSTALL.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME install)
file(INSTALL ${SOURCE_PATH}/README.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME readme)

vcpkg_copy_pdbs()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
file(INSTALL "${SOURCE_PATH}/INSTALL.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME install)
file(INSTALL "${SOURCE_PATH}/README.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME readme)
11 changes: 9 additions & 2 deletions ports/gsoap/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
{
"name": "gsoap",
"version": "2.8.112",
"port-version": 1,
"port-version": 2,
"description": "The gSOAP toolkit is a C and C++ software development toolkit for SOAP and REST XML Web services and generic C/C++ XML data bindings.",
"homepage": "https://sourceforge.net/projects/gsoap2/",
"supports": "!(linux | osx | arm | uwp)"
"supports": "!(linux | osx | arm | uwp)",
"dependencies": [
{
"name": "vcpkg-msbuild",
"host": true,
"platform": "windows"
}
]
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3042,7 +3042,7 @@
},
"gsoap": {
"baseline": "2.8.112",
"port-version": 1
"port-version": 2
},
"gst-rtsp-server": {
"baseline": "1.20.5",
Expand Down
5 changes: 5 additions & 0 deletions versions/g-/gsoap.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "86dc8a8487c3f3dd327cc36c94e19fe371fa4c4f",
"version": "2.8.112",
"port-version": 2
},
{
"git-tree": "1fa5f6d124e48e4c9c80949c5b8e9c6d40dc2e43",
"version": "2.8.112",
Expand Down

0 comments on commit c77bce4

Please sign in to comment.