trivial: install fwupd.exe into bindir for Windows

In Windows we'll be placing everything in the same directory so that
libraries can be resolved.
This commit is contained in:
Mario Limonciello 2022-05-05 12:19:22 -05:00
parent 97aa7b2eb6
commit 532dfd54b1
4 changed files with 15 additions and 13 deletions

View File

@ -20,8 +20,9 @@ python3 -m pip install --user "meson >= 0.60.0"
meson .. \ meson .. \
--cross-file=../contrib/mingw64.cross \ --cross-file=../contrib/mingw64.cross \
--prefix=/ \ --prefix=/ \
--libexecdir="" \ --sysconfdir="etc" \
--bindir="" \ --libexecdir="bin" \
--bindir="bin" \
-Dbuild=all \ -Dbuild=all \
-Ddocs=none \ -Ddocs=none \
-Dhsi=false \ -Dhsi=false \
@ -60,7 +61,7 @@ mkdir -p $DESTDIR/setup
makensis -NOCD $build/contrib/setup-win32.nsi makensis -NOCD $build/contrib/setup-win32.nsi
#so that it's actually executable #so that it's actually executable
cp /usr/x86_64-w64-mingw32/sys-root/mingw/bin/*.dll . cp /usr/x86_64-w64-mingw32/sys-root/mingw/bin/*.dll bin
#remove static archives #remove static archives
find -type f -print0 -name "*.dll.a" | xargs rm -f find -type f -print0 -name "*.dll.a" | xargs rm -f

View File

@ -64,15 +64,14 @@ Section "fwupd"
File "/etc/pki/tls/certs/ca-bundle.crt" File "/etc/pki/tls/certs/ca-bundle.crt"
# fwupd # fwupd
File "dfu-tool.exe" File "bin/jcat-tool.exe"
File "jcat-tool.exe" File "bin/fwupdtool.exe"
File "fwupdtool.exe" File "bin/libfwupd-2.dll"
File "libfwupd-2.dll" File "bin/libfwupdplugin-@FWUPD_PLUGINVER@.dll"
File "libfwupdplugin-@FWUPD_PLUGINVER@.dll" File "bin/libgcab-1.0-0.dll"
File "libgcab-1.0-0.dll" File "bin/libxmlb-2.dll"
File "libxmlb-2.dll" File "bin/libjcat-1.dll"
File "libjcat-1.dll" File "bin/libgusb-2.dll"
File "libgusb-2.dll"
SetOutPath "$INSTDIR\fwupd-plugins-@FWUPD_PLUGINVER@" SetOutPath "$INSTDIR\fwupd-plugins-@FWUPD_PLUGINVER@"
File /r "fwupd-plugins-@FWUPD_PLUGINVER@/libfu_plugin_*.dll" File /r "fwupd-plugins-@FWUPD_PLUGINVER@/libfu_plugin_*.dll"
SetOutPath "$INSTDIR\etc\fwupd" SetOutPath "$INSTDIR\etc\fwupd"

View File

@ -183,12 +183,14 @@ if host_machine.system() == 'windows'
datadir = get_option('datadir') datadir = get_option('datadir')
installed_test_bindir = get_option('libexecdir') installed_test_bindir = get_option('libexecdir')
installed_test_datadir = get_option('datadir') installed_test_datadir = get_option('datadir')
daemon_dir = get_option('libexecdir')
else else
datadir = join_paths(prefix, get_option('datadir')) datadir = join_paths(prefix, get_option('datadir'))
sysconfdir = join_paths(prefix, get_option('sysconfdir')) sysconfdir = join_paths(prefix, get_option('sysconfdir'))
localstatedir = join_paths(prefix, get_option('localstatedir')) localstatedir = join_paths(prefix, get_option('localstatedir'))
installed_test_bindir = join_paths(libexecdir, 'installed-tests', meson.project_name()) installed_test_bindir = join_paths(libexecdir, 'installed-tests', meson.project_name())
installed_test_datadir = join_paths(datadir, 'installed-tests', meson.project_name()) installed_test_datadir = join_paths(datadir, 'installed-tests', meson.project_name())
daemon_dir = join_paths(libexecdir, 'fwupd')
endif endif
mandir = join_paths(prefix, get_option('mandir')) mandir = join_paths(prefix, get_option('mandir'))
localedir = join_paths(prefix, get_option('localedir')) localedir = join_paths(prefix, get_option('localedir'))

View File

@ -224,7 +224,7 @@ executable(
'-DFU_OFFLINE_DESTDIR=""', '-DFU_OFFLINE_DESTDIR=""',
], ],
install : true, install : true,
install_dir : join_paths(libexecdir, 'fwupd') install_dir : daemon_dir
) )
endif endif