Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce APK size further by removing MBs of needless qtdeclarative plugins #5996

Merged
merged 1 commit into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions vcpkg/ports/qtdeclarative/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
include("${SCRIPT_PATH}/qt_install_submodule.cmake")

vcpkg_buildpath_length_warning(44)

set(${PORT}_PATCHES "")

set(TOOL_NAMES
qml
qmlaotstats
qmlcachegen
qmleasing
qmlformat
qmlimportscanner
qmllint
qmlplugindump
qmlpreview
qmlprofiler
qmlscene
qmltestrunner
qmltime
qmltyperegistrar
qmldom
qmltc
qmlls
qmljsrootgen
svgtoqml
)

qt_install_submodule(PATCHES ${${PORT}_PATCHES}
TOOL_NAMES ${TOOL_NAMES}
CONFIGURE_OPTIONS
-DFEATURE_quickcontrols2_fusion:BOOL=ON
-DFEATURE_quickcontrols2_material:BOOL=ON
-DFEATURE_quickcontrols2_imagine:BOOL=OFF
-DFEATURE_quickcontrols2_universal:BOOL=OFF
-DFEATURE_quickcontrols2_fluentwinui3:BOOL=OFF
-DFEATURE_quickcontrols2_macos:BOOL=OFF
-DFEATURE_quickcontrols2_ios:BOOL=OFF
-DFEATURE_quickcontrols2_windows:BOOL=OFF
-DCMAKE_DISABLE_FIND_PACKAGE_LTTngUST:BOOL=ON
CONFIGURE_OPTIONS_RELEASE
CONFIGURE_OPTIONS_DEBUG
)
28 changes: 28 additions & 0 deletions vcpkg/ports/qtdeclarative/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "qtdeclarative",
"version": "6.8.2",
"description": "Qt Declarative (Quick 2)",
"homepage": "https://www.qt.io/",
"license": null,
"dependencies": [
{
"name": "qtbase",
"default-features": false,
"features": [
"network",
"testlib"
]
},
{
"name": "qtdeclarative",
"host": true,
"default-features": false
},
"qtlanguageserver",
{
"name": "qtshadertools",
"default-features": false
},
"qtsvg"
]
}
Loading