2003-12-12 Hans Breuer <hans@breuer.org> [ I've postponed my reservations against pangoft2/fontconfig/freetype2 usage, so The Gimp should now build with msvc without patching it. ] * app/makefile.msc app/text/makefile.msc : use $(PANGOFT2_CFLAGS) etc. * libgimpthumb/makefile.msc : (new file) * makefile.msc : added libgimpthumb * libgimpthumb/gimpthumbnail.c : include gimpwin32-io.h * libgimpthumb/gimpthumb-utils.c : don't compare size pointer with GIMP_THUMB_SIZE_FAIL but *size * plug-ins/makefile.msc : handle libgimpoldpreview * plug-ins/common/decompose.c : define cbrt() if not __GLIBC__ * plug-ins/common/winclipboard.c : make it compile without gimpcompat.h * plug-ins/imagemap/imagemap_csim_lex.c : its a generated file but still win32/msvc has no unistd.h * plug-ins/pygimp/makefile.msc : (new file) to use the binary you need to patch glib, see bug #98737 * plug-ins/libgimpoldpreview.c : use <libgimp/gimp.h> instead of "gimp.h" * **/Makefile.am : added makefile.msc to EXTRA_DIST
86 lines
2.4 KiB
Text
86 lines
2.4 KiB
Text
## Makefile for building the GIMP DLLs and LIBs with Microsoft C.
|
|
## Use: nmake -f makefile.msc
|
|
|
|
# Change this to wherever you want to install the DLLs. This directory
|
|
# should be in your PATH. As these DLLs are for the GIMP and its plug-ins
|
|
# only, it probably is best to keep them in the GIMP's bin directory.
|
|
BIN = C:\install\gimp\bin
|
|
TOP = ..\..
|
|
!include $(TOP)\glib\build\win32\make.msc
|
|
|
|
GIMP_VER = 1.3
|
|
|
|
# The name of the directory in your %HOME% where the GIMP's personal settings
|
|
# and stuff is saved.
|
|
GIMPDIR = _gimp$(GIMP_VER)
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
INCLUDES = -I..
|
|
# DEFINES = -DG_LOG_DOMAIN=\"LibGimpWidgets\"
|
|
DEPCFLAGS = \
|
|
-FImsvc_recommended_pragmas.h \
|
|
$(GLIB_CFLAGS) $(GTK2_CFLAGS) $(INTL_CFLAGS)
|
|
DEPLIBS = $(GLIB_LIBS) $(GTK2_LIBS) $(INTL_LIBS)
|
|
|
|
all : \
|
|
..\config.h \
|
|
gimpwidgetsmarshal.c \
|
|
gimpwidgets-$(GIMP_VER).dll
|
|
|
|
..\config.h : ..\config.h.win32
|
|
copy ..\config.h.win32 ..\config.h
|
|
|
|
install : all
|
|
$(INSTALL) gimpmath-$(GIMP_VER).dll $(BIN)
|
|
|
|
OBJECTS = \
|
|
gimpbutton.obj \
|
|
gimpchainbutton.obj \
|
|
gimpcolorarea.obj \
|
|
gimpcolorbutton.obj \
|
|
gimpcolordisplay.obj \
|
|
gimpcolornotebook.obj \
|
|
gimpcolorscale.obj \
|
|
gimpcolorscales.obj \
|
|
gimpcolorselect.obj \
|
|
gimpcolorselection.obj \
|
|
gimpcolordisplaystack.obj \
|
|
gimpcolorselector.obj \
|
|
gimpdialog.obj \
|
|
gimpfileentry.obj \
|
|
gimphelpui.obj \
|
|
gimpmemsizeentry.obj \
|
|
gimpoffsetarea.obj \
|
|
gimppatheditor.obj \
|
|
gimppickbutton.obj \
|
|
gimppixmap.obj \
|
|
gimpquerybox.obj \
|
|
gimpsizeentry.obj \
|
|
gimpstock.obj \
|
|
gimpunitmenu.obj \
|
|
gimpwidgets.obj \
|
|
gimpwidgets-private.obj \
|
|
gimpwidgetsmarshal.obj \
|
|
|
|
|
|
gimpwidgetsmarshal.h : gimpwidgetsmarshal.list
|
|
$(GLIB)\gobject\glib-genmarshal --prefix=_gimp_widgets_marshal gimpwidgetsmarshal.list --header >gimpwidgetsmarshal.h
|
|
|
|
gimpwidgetsmarshal.c : gimpwidgetsmarshal.list gimpwidgetsmarshal.h
|
|
$(GLIB)\gobject\glib-genmarshal --prefix=_gimp_widgets_marshal gimpwidgetsmarshal.list --body >gimpwidgetsmarshal.c
|
|
|
|
# questionable dependency between libgimpui/libgimpwidgets
|
|
gimpunit.obj : ..\app\gimpunit.c
|
|
$(CC) $(CFLAGS) -GD -c ..\app\gimpunit.c
|
|
|
|
gimpwidgets-$(GIMP_VER).dll : $(OBJECTS) gimpwidgets.def
|
|
$(CC) $(CFLAGS) -LD -Fegimpwidgets-$(GIMP_VER).dll $(OBJECTS) \
|
|
..\libgimpcolor\gimpcolor-$(GIMP_VER).lib \
|
|
..\libgimpbase\gimpbase-$(GIMP_VER).lib \
|
|
$(DEPLIBS) $(LDFLAGS) user32.lib /def:gimpwidgets.def
|
|
|
|
# ..\app\gimp.lib \
|
|
# ..\libgimp\gimpui-$(GIMP_VER).lib ..\libgimp\gimp-$(GIMP_VER).lib \
|