mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 15:55:31 +00:00
c9c2d099ba
Port the current installer infrastructure from the gtk-sharp-2-12 branch, adapting it as needed. Credits go to Duncan Mak for maintaining the 2.12 installer in the past few years. When building on Windows, if the WiX toolset is available, the msi is generated automatically at the end of the build.
31 lines
988 B
Makefile
31 lines
988 B
Makefile
SUBDIRS = unmanaged .
|
|
|
|
assembly_dirs = glib gio pango atk gdk gtk gtkdotnet cairo
|
|
|
|
if ENABLE_MSI
|
|
TARGET=gtk-sharp-3.0.msi
|
|
else
|
|
TARGET=
|
|
endif
|
|
|
|
noinst_DATA = $(TARGET)
|
|
|
|
gtk-sharp-3.0.msi: gtk-sharp-3.0.wxs
|
|
mkdir -p binaries
|
|
rm -rf binaries/*
|
|
cp $(top_builddir)/generator/gapi_codegen.exe binaries
|
|
cp $(top_builddir)/*/glue/.libs/*.dll binaries
|
|
for a in $(assembly_dirs); do \
|
|
mkdir -p binaries/$$a; \
|
|
cp $(top_builddir)/$$a/*.dll binaries/$$a; \
|
|
cp $(top_builddir)/$$a/*.pdb binaries/$$a; \
|
|
done
|
|
mv binaries/libatksharpglue-3.dll binaries/atksharpglue-3.dll
|
|
mv binaries/libgiosharpglue-3.dll binaries/giosharpglue-3.dll
|
|
mv binaries/libgtksharpglue-3.dll binaries/gtksharpglue-3.dll
|
|
mv binaries/libpangosharpglue-3.dll binaries/pangosharpglue-3.dll
|
|
|
|
cp $(top_builddir)/sample/GtkDemo/GtkDemo.exe binaries
|
|
candle -ext WixUIExtension gtk-sharp-3.0.wxs
|
|
light -cultures:en-us -ext WixUIExtension -ext WixNetFxExtension -out gtk-sharp-$(VERSION).msi gtk-sharp-3.0.wixobj
|