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
61 lines
2 KiB
Text
61 lines
2 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.. $(GDK_PIXBUF_CFLAGS)
|
|
# DEFINES = -DG_LOG_DOMAIN=\"LibGimpThump\"
|
|
DEPCFLAGS = \
|
|
-FImsvc_recommended_pragmas.h \
|
|
$(GLIB_CFLAGS)
|
|
|
|
DEPLIBS = $(GLIB_LIBS) $(GDK_PIXBUF_LIBS) $(INTL_LIBS) \
|
|
..\libgimpbase\gimpbase-$(GIMP_VER).lib \
|
|
..\libgimpmath\gimpmath-$(GIMP_VER).lib
|
|
|
|
all : \
|
|
..\config.h \
|
|
gimpthumb-$(GIMP_VER).dll
|
|
|
|
..\config.h : ..\config.h.win32
|
|
copy ..\config.h.win32 ..\config.h
|
|
|
|
install : all
|
|
$(INSTALL) gimpcolor-$(GIMP_VER).dll $(BIN)
|
|
|
|
OBJECTS = \
|
|
gimpthumb-enums.obj \
|
|
gimpthumb-error.obj \
|
|
gimpthumb-utils.obj \
|
|
gimpthumbnail.obj \
|
|
|
|
!IFNDEF PERL
|
|
PERL = perl
|
|
!ENDIF
|
|
|
|
gimpthumb-enums.c: gimpthumb-enums.h
|
|
$(PERL) ..\tools\gimp-mkenums \
|
|
--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"gimpthumb-enums.h\"" \
|
|
--fprod "\n/* enumerations from \"@filename@\" */" \
|
|
--vhead "\nstatic const GEnumValue @enum_name@_enum_values[] =\n{" \
|
|
--vprod " { @VALUENAME@, @valuedesc@, \"@valuenick@\" }," \
|
|
--vtail " { 0, NULL, NULL }\n};\n\nGType\n@enum_name@_get_type (void)\n{\n static GType enum_type = 0;\n\n if (!enum_type)\n enum_type = g_enum_register_static (\"@EnumName@\", @enum_name@_enum_values);\n\n return enum_type;\n}\n" \
|
|
gimpthumb-enums.h > $@
|
|
gimpthumb-$(GIMP_VER).dll : $(OBJECTS) gimpthumb.def
|
|
$(CC) $(CFLAGS) -LD -Fegimpthumb-$(GIMP_VER).dll $(OBJECTS) $(DEPLIBS) $(LDFLAGS) user32.lib /def:gimpthumb.def
|
|
|