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

Qt6 macros #22

Closed
wants to merge 1 commit into from
Closed
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
22 changes: 22 additions & 0 deletions ypkg2/rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ actions:
DESTDIR="%installroot%" ninja install %JOBS% -C solusBuildDir
- ninja_check: &ninja_check |
ninja test %JOBS% -C solusBuildDir
- ninja_qt6_install: |
DESTDIR="%installroot%" ninja install %JOBS% -C solusBuildDir
function ninja_qt6_install() {
pushd $installdir
install -dm00755 usr/bin
while read _line; do
ln -s $_line
done < %workdir%/solusBuildDir/user_facing_tool_links.txt
Comment on lines +41 to +43
Copy link
Member

Choose a reason for hiding this comment

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

Could you explain the purpose of this / provide a real world example?

popd
}
ninja_qt6_install
# These macros are for backward compatibility only. Please use the ninja ones
- meson_build: *ninja_build
- meson_install: *ninja_install
Expand All @@ -52,6 +63,17 @@ actions:
popd
}
generate_cache
- qml6_cache: |
function generate_qt6_cache() {
pushd $installdir
find . -type f -name "*.qml" -print0 | while IFS= read -r -d '' i; do
if ! [ -a "${i}"c ]; then
qmlcachegen-qt6 -o "${i}"c "${i}" $*
fi
done
popd
}
generate_qt6_cache
- patch: |
patch -t -E --no-backup-if-mismatch -f
# Only works if the user has a series file. They can provide the name to
Expand Down