mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 13:31:27 +08:00
[qt-advanced-docking-system] Add new port
This commit is contained in:
parent
67643a0ea3
commit
8fccec58a6
4
ports/qt-advanced-docking-system/CONTROL
Normal file
4
ports/qt-advanced-docking-system/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: qt-advanced-docking-system
|
||||
Version: 2019-08-09
|
||||
Build-Depends: zlib, bzip2
|
||||
Description: Create customizable layouts using an advanced window docking system similar to what is found in many popular IDEs such as Visual Studio
|
30
ports/qt-advanced-docking-system/config_changes.patch
Normal file
30
ports/qt-advanced-docking-system/config_changes.patch
Normal file
@ -0,0 +1,30 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 289e108..c907c90 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -79,8 +79,8 @@ install(FILES
|
||||
DESTINATION license
|
||||
COMPONENT license
|
||||
)
|
||||
-install(TARGETS qtadvanceddocking
|
||||
- EXPORT adsBinary
|
||||
+install(TARGETS qtadvanceddocking
|
||||
+ EXPORT qt-advanced-docking-systemConfig
|
||||
RUNTIME DESTINATION bin COMPONENT library
|
||||
LIBRARY DESTINATION lib COMPONENT library
|
||||
ARCHIVE DESTINATION lib COMPONENT library
|
||||
@@ -93,7 +93,6 @@ target_link_libraries(qtadvanceddocking PUBLIC ${ads_LIBS})
|
||||
target_compile_definitions(qtadvanceddocking PRIVATE ${ads_COMPILE_DEFINE})
|
||||
set_target_properties(qtadvanceddocking PROPERTIES
|
||||
VERSION ${ads_VERSION}
|
||||
- EXPORT_NAME "Qt Advanced Docking System"
|
||||
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
|
||||
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/lib"
|
||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${ads_PlatformDir}/bin"
|
||||
@@ -103,3 +102,5 @@ if(BUILD_EXAMPLES)
|
||||
add_subdirectory(demo)
|
||||
endif()
|
||||
|
||||
+
|
||||
+install(EXPORT qt-advanced-docking-systemConfig NAMESPACE qt-advanced-docking-system:: DESTINATION share/qt-advanced-docking-system)
|
||||
\ No newline at end of file
|
24
ports/qt-advanced-docking-system/portfile.cmake
Normal file
24
ports/qt-advanced-docking-system/portfile.cmake
Normal file
@ -0,0 +1,24 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO githubuser0xFFFF/Qt-Advanced-Docking-System
|
||||
REF 6cc7d7983201596a3f579adbe09417fe8c73c409
|
||||
SHA512 fc508ffb69a265ac52a9be72854140717e7c61925c7275e44fd2f76d0df03637b8d7fd61b7ce86e03fa1e9bf0a0e4a9c2ed9477b9d758a3b0e4760839288e431
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
config_changes.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/qt-advanced-docking-system RENAME copyright)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/license)
|
||||
vcpkg_fixup_cmake_targets()
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
Loading…
Reference in New Issue
Block a user