Skip to content

Commit

Permalink
Reduce APK size further by removing MBs of needless qtdeclarative plu…
Browse files Browse the repository at this point in the history
…gins
  • Loading branch information
nirvn committed Feb 11, 2025
1 parent 02f2978 commit c5422ec
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
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"
]
}

1 comment on commit c5422ec

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.