mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 11:59:08 +08:00
2f0f813af3
* [litehtml] add port in version 0.6 * [litehtml] update versions * [litehtml] is not semver * [litehtml] update versions * [qttools] remove vendored litehtml * [qtttools] remove unused fix_static_build.patch * [qttools] fix manifest formatting * [qttools] add version baseline * [litehtml] fix find gumbo * [litehtml] update version baseline. * [litehtml] fix gumboConfig.cmake * [litehtml] update version baseline
57 lines
1.6 KiB
Diff
57 lines
1.6 KiB
Diff
--- a/src/assistant/qlitehtml/src/CMakeLists.txt
|
|
+++ b/src/assistant/qlitehtml/src/CMakeLists.txt
|
|
@@ -15,45 +15,11 @@
|
|
set(QLITEHTML_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
|
|
set(QLITEHTML_VERSION_COMPAT ${QLITEHTML_VERSION} CACHE STRING "qlitehtml compat version number.")
|
|
|
|
-find_package(litehtml QUIET)
|
|
-if(NOT TARGET litehtml AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/litehtml/CMakeLists.txt)
|
|
- set(ORIG_FPIC ${CMAKE_POSITION_INDEPENDENT_CODE})
|
|
- set(ORIG_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
|
|
- if (WIN32)
|
|
- set(LITEHTML_UTF8 ON CACHE BOOL "")
|
|
- endif()
|
|
- set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
- set(BUILD_SHARED_LIBS OFF)
|
|
-
|
|
- add_subdirectory(3rdparty/litehtml EXCLUDE_FROM_ALL)
|
|
-
|
|
- # suppress compiler warnings from litehtml
|
|
- set_target_properties(
|
|
- litehtml
|
|
- PROPERTIES
|
|
- QT_COMPILE_OPTIONS_DISABLE_WARNINGS ON
|
|
- )
|
|
- set_target_properties(
|
|
- gumbo
|
|
- PROPERTIES
|
|
- QT_COMPILE_OPTIONS_DISABLE_WARNINGS ON
|
|
- )
|
|
-
|
|
- set(CMAKE_POSITION_INDEPENDENT_CODE "${ORIG_FPIC}")
|
|
- set(BUILD_SHARED_LIBS ${ORIG_BUILD_SHARED_LIBS})
|
|
- # force optimized litehtml even in debug
|
|
- if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
- # except for windows
|
|
- if (NOT WIN32)
|
|
- target_compile_options(gumbo PRIVATE -O2)
|
|
- target_compile_options(litehtml PRIVATE -O2)
|
|
- endif()
|
|
- endif()
|
|
-endif()
|
|
+find_package(litehtml CONFIG REQUIRED)
|
|
|
|
# TODO error if litehtml was not found?
|
|
|
|
-if(TARGET litehtml)
|
|
+
|
|
set(PUBLIC_HEADERS
|
|
container_qpainter.h
|
|
container_qpainter_p.h
|
|
@@ -155,5 +121,3 @@
|
|
${_DEVEL_COMPONENT}
|
|
OPTIONAL)
|
|
endif()
|
|
-
|
|
-endif()
|