diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2024-07-04 00:26:11 +0100 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2024-08-16 21:19:11 +0100 |
commit | 84ac35cfd4dfa6f235f6e5a00b571846358f45ce (patch) | |
tree | adf330de899da834f613dc4d1c21cf1e69508101 /depends | |
parent | 0d01c228a7d39bb4918b5cb9f6db25cb8c30567a (diff) |
cmake: Add cross-compiling support
To configure CMake for cross-compiling, use
`--toolchain depends/${HOST}/toolchain.cmake` command-line option.
Diffstat (limited to 'depends')
-rw-r--r-- | depends/packages/qt.mk | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/depends/packages/qt.mk b/depends/packages/qt.mk index 998ce539a0..917e179932 100644 --- a/depends/packages/qt.mk +++ b/depends/packages/qt.mk @@ -265,13 +265,14 @@ define $(package)_build_cmds $(MAKE) endef +# TODO: Investigate whether specific targets can be used here to minimize the amount of files/components installed. define $(package)_stage_cmds - $(MAKE) -C qtbase/src INSTALL_ROOT=$($(package)_staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package)_qt_libs))) && \ - $(MAKE) -C qttools/src/linguist INSTALL_ROOT=$($(package)_staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package)_linguist_tools))) && \ + $(MAKE) -C qtbase INSTALL_ROOT=$($(package)_staging_dir) install && \ + $(MAKE) -C qttools INSTALL_ROOT=$($(package)_staging_dir) install && \ $(MAKE) -C qttranslations INSTALL_ROOT=$($(package)_staging_dir) install_subtargets endef define $(package)_postprocess_cmds - rm -rf native/mkspecs/ native/lib/ lib/cmake/ && \ - rm -f lib/lib*.la lib/*.prl plugins/*/*.prl + rm -rf doc/ native/lib/ && \ + rm -f lib/lib*.la endef |