Skip to content

How to define "platform-like" postprocessing steps? #13009

Closed Answered by nils-werner
nils-werner asked this question in Q&A
Discussion options

You must be logged in to vote

I realized that what I'm trying to do is actually packaging, not building, so I ended up with the following structure:

# meson.build
project('gui-qt', 'cpp',)

qt5 = import('qt5')
qt5_dep = dependency('qt5')

gui = executable(
    'gui',
    [ 'src/gui.cpp' ],
    dependencies : qt5_dep,
    install: true,
    install_dir : '/usr/bin/',
)

install_data(
    'appdir/gui.desktop',
    install_dir : '/usr/share/applications/'
)

install_data(
    'appdir/gui.png',
    install_dir : '/usr/share/icons/hicolor/128x128/apps/'
)

and then running

env DESTDIR=appdir meson install
./linuxdeployqt-x86_64.AppImage --appimage-extract-and-run appdir/usr/bin/gui -unsupported-allow-new-glibc -appimage -ve…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@nils-werner
Comment options

Comment options

You must be logged in to vote
2 replies
@eli-schwartz
Comment options

@nils-werner
Comment options

Answer selected by nils-werner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants