Skip to content
Merged
8 changes: 7 additions & 1 deletion ports/qtbase/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ if(VCPKG_TARGET_IS_WINDOWS AND NOT "doubleconversion" IN_LIST FEATURES)
message(FATAL_ERROR "${PORT} requires feature doubleconversion on windows!" )
endif()

if(VCPKG_TARGET_IS_ANDROID AND NOT ANDROID_SDK_ROOT)
message(FATAL_ERROR "${PORT} requires ANDROID_SDK_ROOT to be set. Consider adding it to the triplet." )
endif()
# Features can be found via searching for qt_feature in all configure.cmake files in the source:
# The files also contain information about the Platform for which it is searched
# Always use FEATURE_<feature> in vcpkg_cmake_configure
Expand Down Expand Up @@ -193,7 +196,9 @@ list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Libdrm:BOOL=ON)
list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_gbm:BOOL=ON)
list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Libinput:BOOL=ON)
list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Mtdev:BOOL=ON)
list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_GLESv2:BOOL=ON) # only used if INPUT_opengl is correctly set
if(NOT VCPKG_TARGET_IS_ANDROID)
list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_GLESv2:BOOL=ON) # only used if INPUT_opengl is correctly set
endif()
Comment thread
m-kuhn marked this conversation as resolved.
Outdated
list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Tslib:BOOL=ON)
# sql-drivers features:

Expand Down Expand Up @@ -269,6 +274,7 @@ qt_install_submodule(PATCHES ${${PORT}_PATCHES}
-DINPUT_bundled_xcb_xinput:STRING=no
-DFEATURE_force_debug_info:BOOL=ON
-DFEATURE_relocatable:BOOL=ON
-DANDROID_SDK_ROOT=${ANDROID_SDK_ROOT}
CONFIGURE_OPTIONS_RELEASE
CONFIGURE_OPTIONS_DEBUG
-DFEATURE_debug:BOOL=ON
Expand Down
11 changes: 11 additions & 0 deletions ports/qtbase/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,17 @@
"xrender"
],
"platform": "linux"
},
{
"name": "qtbase",
"default-features": false,
"features": [
"fontconfig",
"xcb",
"xcb-xlib",
"xrender"
],
"platform": "android"
}
]
},
Expand Down