mirror of https://github.com/microsoft/vcpkg.git
parent
df6c3cdd4b
commit
5d70180b00
|
|
@ -0,0 +1,33 @@
|
|||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO faaxm/spix
|
||||
REF "v${VERSION}"
|
||||
SHA512 5b66ca35e122f933eb73d9f6cc4ea4ad8f49f9dd29a9345b746b41e918634332e45699cd1a335b1a3e960b6c018913beda4ee02fb54803841ea10a57d0288330
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
# Check features for QtQuick and QtWidgets
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
qtwidgets SPIX_BUILD_QTWIDGETS
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DSPIX_BUILD_QTQUICK=ON
|
||||
-DSPIX_BUILD_EXAMPLES=OFF
|
||||
-DSPIX_BUILD_TESTS=OFF
|
||||
-DSPIX_QT_MAJOR=6
|
||||
${FEATURE_OPTIONS}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
spix provides CMake targets:
|
||||
|
||||
find_package(Spix CONFIG REQUIRED)
|
||||
|
||||
For test of QtQuick/QML based applications:
|
||||
|
||||
target_link_libraries(main PRIVATE Spix::QtQuick)
|
||||
|
||||
For test of QWidget based applications (requires qtwidgets feature enabled):
|
||||
|
||||
target_link_libraries(main PRIVATE Spix::QtWidgets)
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
"name": "spix",
|
||||
"version": "0.14",
|
||||
"description": "A minimally invasive UI testing library for Qt/QML applications. Control your application and verify its behavior using a simple C++ API.",
|
||||
"homepage": "https://github.com/faaxm/spix",
|
||||
"license": "MIT",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
"anyrpc",
|
||||
{
|
||||
"name": "qtdeclarative",
|
||||
"default-features": false
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"qtwidgets": {
|
||||
"description": "Build the QtWidgets scene library.",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "qtbase",
|
||||
"default-features": false,
|
||||
"features": [
|
||||
"widgets"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -9360,6 +9360,10 @@
|
|||
"baseline": "1.4.328.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"spix": {
|
||||
"baseline": "0.14",
|
||||
"port-version": 0
|
||||
},
|
||||
"spout2": {
|
||||
"baseline": "2.007.010",
|
||||
"port-version": 0
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "a9388d01dfd64497ebc8dfb7dae1d95c2dc5f5be",
|
||||
"version": "0.14",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "242f18b432502d15fba249b9b830ee7a4781599b",
|
||||
"version": "0.5",
|
||||
|
|
|
|||
Loading…
Reference in New Issue