Skip to content

Commit ef65883

Browse files
authored
[kdstatemachineeditor] new port (microsoft#42664)
1 parent 7652725 commit ef65883

File tree

5 files changed

+97
-0
lines changed

5 files changed

+97
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO KDAB/KDStateMachineEditor
4+
REF v${VERSION}
5+
SHA512 dedd7166f434689cd5acf4ee3172169d3f77182269d3187f0a7a12966467dd5c7733e3ff64cd1fd03b0f3866c2aafa37cc3f2d7b8a3f4a5d8a7592da039de7af
6+
HEAD_REF master
7+
)
8+
9+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" VCPKG_BUILD_SHARED_LIBS)
10+
11+
vcpkg_cmake_configure(
12+
SOURCE_PATH ${SOURCE_PATH}
13+
OPTIONS
14+
-DKDSME_QT6=ON
15+
-DKDSME_INTERNAL_GRAPHVIZ=OFF
16+
-DKDSME_DOCS=OFF
17+
-DKDSME_EXAMPLES=OFF
18+
-DBUILD_TESTING=OFF
19+
-DBUILD_SHARED_LIBS=${VCPKG_BUILD_SHARED_LIBS}
20+
)
21+
22+
vcpkg_cmake_install()
23+
vcpkg_copy_pdbs()
24+
vcpkg_cmake_config_fixup(PACKAGE_NAME KDSME-qt6 CONFIG_PATH lib/cmake/KDSME-qt6)
25+
26+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
27+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
28+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
29+
30+
vcpkg_install_copyright(
31+
FILE_LIST
32+
"${SOURCE_PATH}/LICENSE.txt"
33+
"${SOURCE_PATH}/LICENSES/BSD-3-Clause.txt"
34+
"${SOURCE_PATH}/LICENSES/GPL-3.0-or-later.txt"
35+
"${SOURCE_PATH}/LICENSES/LicenseRef-CISST.txt"
36+
"${SOURCE_PATH}/LICENSES/LicenseRef-Qt-Commercial.txt"
37+
"${SOURCE_PATH}/LICENSES/GPL-3.0-only.txt"
38+
"${SOURCE_PATH}/LICENSES/LGPL-2.1-only.txt"
39+
"${SOURCE_PATH}/LICENSES/LicenseRef-KDAB-KDStateMachineEditor.txt"
40+
"${SOURCE_PATH}/LICENSES/MIT.txt"
41+
)
42+
43+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

ports/kdstatemachineeditor/usage

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
kdstatemachineeditor provides CMake targets:
2+
3+
find_package(KDSME-qt6 CONFIG REQUIRED)
4+
# Core library
5+
target_link_libraries(main PRIVATE KDSME::Core)
6+
# View library
7+
target_link_libraries(main PRIVATE KDSME::View)
8+
# Debug interface client library
9+
target_link_libraries(main PRIVATE KDSME::DebugInterfaceClient)
10+
# Debug interface server library
11+
target_link_libraries(main PRIVATE KDSME::DebugInterfaceSource)

ports/kdstatemachineeditor/vcpkg.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "kdstatemachineeditor",
3+
"version": "2.0.0",
4+
"description": "KDStateMachineEditor is a library for visualizing and editing state charts.",
5+
"homepage": "https://github.com/KDAB/KDStateMachineEditor",
6+
"license": "LGPL-2.1-only",
7+
"dependencies": [
8+
"graphviz",
9+
"qt5compat",
10+
{
11+
"name": "qtbase",
12+
"default-features": false,
13+
"features": [
14+
"testlib",
15+
"widgets"
16+
]
17+
},
18+
"qtdeclarative",
19+
"qtremoteobjects",
20+
"qtscxml",
21+
{
22+
"name": "vcpkg-cmake",
23+
"host": true
24+
},
25+
{
26+
"name": "vcpkg-cmake-config",
27+
"host": true
28+
}
29+
]
30+
}

versions/baseline.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3956,6 +3956,10 @@
39563956
"baseline": "2.2.0",
39573957
"port-version": 1
39583958
},
3959+
"kdstatemachineeditor": {
3960+
"baseline": "2.0.0",
3961+
"port-version": 0
3962+
},
39593963
"kealib": {
39603964
"baseline": "1.6.0",
39613965
"port-version": 0

versions/k-/kdstatemachineeditor.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"versions": [
3+
{
4+
"git-tree": "698e2dfa9c5950117cc66ad7a800d692d8c9a99e",
5+
"version": "2.0.0",
6+
"port-version": 0
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)