Gimp/app/core/makefile.msc
Hans Breuer 8522a8470d add appconfig.lib. Statically link libgimptool/gimptool.lib.
2001-05-11  Hans Breuer  <hans@breuer.org>

	* app/makefile.msc : add appconfig.lib. Statically
	link libgimptool/gimptool.lib.

	* app/main.c : use gimp_locale_directory()

	* app/config/gimpconfig-utils.c : <string.h>

	* app/config/makefile.msc : add gimpscanner

	* app/core/gimpimagefile.c : some G_OS_WIN32 mess to get
	mkdir() and chmod()

	* app/display/gimpdisplayshell.c
	  app/plug-in/plug-in-progrss.c
	  app/tool/gimpcolorpickertool.c
	  app/tool/gimpcroptool.c
	  app/tool/gimpmeasuretool.c
	  app/tool/gimpperspectivetool.c
	  app/tool/gimprotatetool.c
	  app/tool/gimpscaletool.c
	  app/tool/gimpsheartool.c
	  app/tool/gimptransformtool.c
	  app/widgets/gimpcolormapeditor.c
	  app/widgets/gimpcolorpanel.c
	  app/widgets/gimptoolbox-color-area.c
	add #ifdef __GNUC__ to avoid breaking on non standard
	pragma #warning

	* app/tools/makefile.msc : add gimptoolcontrol remove
	tools-enum

	* app/tools/tool_manager.c : need to include
	libgimptool/gimptoolcontrol.h after core includes
	otherwise we would compile without prototypes or
	break miserably

	* app/gui/plug-in-menus.c : replace LOCALEDIR with
	gimp_locale_directory ()

	* app/gui/preferences-dialog.c (prefs_notebook_append_page) :
	only try to gdk_pixbuf_new_from_file() with a valid filename.
	It should simply return NULL otherwise, but fails if the
	filename is an empty string.

	* app/paint-funcs/makefile.msc : add -FImsvc_recommended_pragmas.h

	* app/widgets/gimpcolormapeditor.c : the 'row'
	allocated needs to be 'xn * cellsize * 2' (to avoid
	accessing unowned memory) not only width, which has
	become allocation.width by someone commenting out
	the correct size calculation

	* app/widgets/gimpdialogfactory.c : varargs to macros
	are GCCism or at least non standard. #define DEBUG
	to g_print or nothing - without arguments - does fix
	it somewhat dirty as the compiler needs to tolerate
	the '(blah, foo, bar);' statement than

	* app/widgets/makefile.msc : updated

	* app/xcf/makefile.msc : add -FImsvc_recommended_pragmas.h

	* etc/gimprc.win32 : use ';' to separate theme-path

	* libgimpbase/gimpenv.c : #include <stdio.h>
	for sprintf()

	* app/widgets/gimpdnd.c (gimp_dnd_set_file_data) :
	the passed in vals chunk is not always null-terminated
	(at least not on win32). Use the length parameter too
	to avoid reading junk filenames.

	* libgimp/gimp.def : export gimp_image_get_name()

	* libgimpbase/gimpbase.def : export gimp_locale_directory()
	* libgimpbase/gimpenv.[ch] : added gimp_locale_directory ()

	* libgimpbase/makefile.msc : define DATADIR and SYSCONFDIR
	to empty string to let gimp find its files in the common
	place (win32: relative to the top level gimp dir)

	* plug-ins/common/pixelize.c : <string.h>

	* plug-ins/flame/cmap.c : #include <glib.h> for g_random_int()

	* plug-ins/makefile.msc : -FImsvc_recommended_pragams.h
	and a little hack to give imagemap the prototypes it
	desires without changing the lexed source

	* themes/Default/images/makefile.msc : now added (see below)

	* themes/Default/images/stock-button-reset.png : made it binary
2002-05-10 23:30:09 +00:00

159 lines
No EOL
3.9 KiB
Text

# autogenerated from automake.am with automake.py
TOP = ..\..\..
PRJ_TOP = ..\..
PACKAGE = appcore
PKG_VER = 1.3
!INCLUDE $(TOP)\glib\build\win32\make.msc
PKG_LINK = \
$(GLIB_LIBS) $(GTK2_LIBS) $(INTL_LIBS) \
$(LIBART_LIBS) \
..\base\appbase-$(PKG_VER).lib \
..\paint-funcs\apppaint-funcs-$(PKG_VER).lib \
..\vectors\appvectors-$(PKG_VER).lib \
..\xcf\xcf.lib \
..\..\libgimpbase\gimpbase-$(PKG_VER).lib \
..\..\libgimpcolor\gimpcolor-$(PKG_VER).lib \
..\..\libgimpmath\gimpmath-$(PKG_VER).lib \
..\..\libgimpwidgets\gimpwidgets-$(PKG_VER).lib
OBJECTS = \
# ..\undo.obj \
core-enums.obj \
cpercep.obj \
gimp.obj \
gimpbrush.obj \
gimpbrushgenerated.obj \
gimpbrushpipe.obj \
gimpbuffer.obj \
gimpchannel.obj \
gimpcontainer.obj \
gimpcontext.obj \
gimpcoreconfig.obj \
gimpdata.obj \
gimpdatafactory.obj \
gimpdatafiles.obj \
gimpdatalist.obj \
gimpdocuments.obj \
gimpdrawable.obj \
gimpdrawable-blend.obj \
gimpdrawable-bucket-fill.obj \
gimpdrawable-desaturate.obj \
gimpdrawable-equalize.obj \
gimpdrawable-histogram.obj \
gimpdrawable-invert.obj \
gimpdrawable-offset.obj \
gimpdrawable-preview.obj \
gimpdrawable-transform.obj \
gimpdrawable-transform-utils.obj \
gimpedit.obj \
gimpgradient.obj \
gimpimage.obj \
gimpimage-colorhash.obj \
gimpimage-contiguous-region.obj \
gimpimage-convert.obj \
gimpimage-crop.obj \
gimpimage-duplicate.obj \
gimpimage-guides.obj \
gimpimage-mask.obj \
gimpimage-mask-select.obj \
gimpimage-merge.obj \
gimpimage-new.obj \
gimpimage-pick-color.obj \
gimpimage-projection.obj \
gimpimage-qmask.obj \
gimpimage-resize.obj \
gimpimage-scale.obj \
gimpimage-undo.obj \
gimpimagefile.obj \
gimpitem.obj \
gimplayer.obj \
gimplayer-floating-sel.obj \
gimplayermask.obj \
gimplist.obj \
gimpmarshal.obj \
gimpmoduleinfo.obj \
gimpmodules.obj \
gimpobject.obj \
gimppaintinfo.obj \
gimppalette.obj \
gimppalette-import.obj \
gimpparasite.obj \
gimpparasitelist.obj \
gimppattern.obj \
gimppreviewcache.obj \
gimpscanconvert.obj \
gimptoolinfo.obj \
gimpundo.obj \
gimpundostack.obj \
gimpunit.obj \
gimpunits.obj \
gimpviewable.obj \
OTHER_FILES = \
\
..\floating_sel.obj \
..\gimpparasite.obj \
..\parasitelist.obj \
..\drawable.obj \
..\datafiles.obj \
..\undo.obj \
..\path.obj
INCLUDES = \
-FImsvc_recommended_pragmas.h \
-I$(PRJ_TOP) \
-I$(PRJ_TOP)/app \
$(GTK2_CFLAGS) \
$(LIBART_CFLAGS) \
DEFINES = \
-DGIMP_COMPILATION \
-DG_LOG_DOMAIN=\"Gimp-Core\"
all : \
$(PRJ_TOP)\config.h \
gimpmarshal.h \
gimpmarshal.c \
$(PACKAGE).lib \
!IFDEF DLLGIMP
$(PACKAGE)-$(PKG_VER).dll
!ENDIF
gimpmarshal.h : gimpmarshal.list
echo #ifndef __GIMP_MARSHAL_H__ > xgen-gmh
echo #define __GIMP_MARSHAL_H__ >> xgen-gmh
$(GLIB)\gobject\glib-genmarshal --nostdinc --prefix=gimp_marshal gimpmarshal.list --header >> xgen-gmh
echo #endif /* __GIMP_MARSHAL_H__ */ >> xgen-gmh
copy xgen-gmh gimpmarshal.h
gimpmarshal.c : gimpmarshal.h gimpmarshal.list
echo #include "glib.h" > xgen-gmc
echo #include "glib-object.h" >> xgen-gmc
echo #include "gimpmarshal.h" >> xgen-gmc
$(GLIB)\gobject\glib-genmarshal --nostdinc --prefix=gimp_marshal gimpmarshal.list --body >> xgen-gmc
copy xgen-gmc gimpmarshal.c
$(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32
copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h
RESOURCE = $(PACKAGE).res
$(PACKAGE).lib : $(OBJECTS)
lib /out:$(PACKAGE).lib $(OBJECTS)
$(PACKAGE)-$(PKG_VER).dll : $(OBJECTS) $(PACKAGE).def
$(CC) $(CFLAGS) -LD -Fe$(PACKAGE)-$(PKG_VER).dll $(OBJECTS) $(PKG_LINK) user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /def:$(PACKAGE).def
$(PACKAGE).exe : $(OBJECTS) $(PACKAGE).def $(PACKAGE).res
$(CC) $(CFLAGS) -Fe$(PACKAGE).exe $(PACKAGE).res $(OBJECTS) $(PKG_LINK) \
user32.lib advapi32.lib shell32.lib wsock32.lib winspool.lib $(LDFLAGS) /def:$(PACKAGE).def
.c.obj :
$(CC) $(CFLAGS) -GD -c $(PKG_CFLAGS) $<
clean ::
del gimpmarshal.c
del gimpmarshal.h