forked from AuroraMiddleware/gtk
8b8f378050
This updates all the projects files to be be named appropriately as we move from GTK-3.x to 4.x, and updates the autotools files so that things are distributed and generated properly. Also remove deprecated/gtkstatusicon-quartz.c from gtk/Makefile.am, as that was causing 'make dist' to fail as that file has been removed. This fixes 'make dist' with the updated existing project files in proper order. Note that this does not include the new GSK, which will be added later, so the project files do not yet build the whole stack on Visual Studio at this point.
44 lines
1009 B
Makefile
44 lines
1009 B
Makefile
# NMake Makefile to build Introspection Files for GTK+
|
|
|
|
!include detectenv-msvc.mak
|
|
|
|
APIVERSION = 4.0
|
|
|
|
CHECK_PACKAGE = gdk-pixbuf-2.0 atk pangocairo gio-2.0
|
|
|
|
built_install_girs = Gdk-$(APIVERSION).gir GdkWin32-$(APIVERSION).gir Gtk-$(APIVERSION).gir
|
|
built_install_typelibs = Gdk-$(APIVERSION).typelib GdkWin32-$(APIVERSION).typelib Gtk-$(APIVERSION).typelib
|
|
|
|
!include introspection-msvc.mak
|
|
|
|
!if "$(BUILD_INTROSPECTION)" == "TRUE"
|
|
|
|
!if "$(PLAT)" == "x64"
|
|
AT_PLAT=x86_64
|
|
!else
|
|
AT_PLAT=i686
|
|
!endif
|
|
|
|
all: setgirbuildenv $(built_install_girs) $(built_install_typelibs)
|
|
|
|
setgirbuildenv:
|
|
@set PYTHONPATH=$(PREFIX)\lib\gobject-introspection
|
|
@set PATH=vs$(VSVER)\$(CFG)\$(PLAT)\bin;$(PREFIX)\bin;$(PATH)
|
|
@set PKG_CONFIG_PATH=$(PKG_CONFIG_PATH)
|
|
@set LIB=vs$(VSVER)\$(CFG)\$(PLAT)\bin;$(LIB)
|
|
|
|
!include introspection.body.mak
|
|
|
|
install-introspection: all
|
|
@-copy *.gir $(G_IR_INCLUDEDIR)
|
|
@-copy /b *.typelib $(G_IR_TYPELIBDIR)
|
|
|
|
!else
|
|
all:
|
|
@-echo $(ERROR_MSG)
|
|
!endif
|
|
|
|
clean:
|
|
@-del /f/q *.typelib
|
|
@-del /f/q *.gir
|