mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
947b32b7dc
2003-11-15 Hans Breuer <hans@breuer.org> * gdk/makefile.msc gdk/gdk.def gtk/gtk.def gtk/makefile.msc.in : updated * tests/makefile.msc : added all the new tests * gtk/gtkfilefilter.c(finalize) : initialize filter from object not from itself * gtk/gtkfilesystemwin32.[hc] : copied from gtkfilesystemunix.[hc] modified as less as posible to have aworking implementation on win32. There maybe the desire to merge the unchanged pats into a common base class. Also implemented a simple glib based bookmark handling, which is currently missing in gtkfilesystemunix.[hc] but can be copied over there. * gtk/gtkfilechooserwidget.c : conditional include gtkfilesystemwin32.h * gdk/win32/gdkwindow-win32.c : implement gdk_window_set_keep_above() and gdk_window_set_keep_below() * tests/testmerge.c : don't include unistd.h unconditionally, #define STDOUT_FILENO if it isn't defined * tests/testfilechooser.c : make it compile on win32
95 lines
2.2 KiB
Plaintext
95 lines
2.2 KiB
Plaintext
## Makefile for building the gtk test apps with Microsoft C
|
|
## Use: nmake -f makefile.msc
|
|
|
|
## There is no install target, you have to decide where and
|
|
## how to install for yourself.
|
|
|
|
TOP = ..\..
|
|
!INCLUDE $(TOP)/glib/build/win32/make.msc
|
|
|
|
################################################################
|
|
|
|
# Possibly override versions from build/win32/module.defs
|
|
GTK_VER = 2.0
|
|
GDK_PIXBUF_VER = 2.0
|
|
|
|
GDK_LIBS = ../gdk/gdk-win32-$(GTK_VER).lib
|
|
GTK_LIBS = ../gtk/gtk-win32-$(GTK_VER).lib
|
|
GDK_PIXBUF_LIBS = ../gdk-pixbuf/gdk_pixbuf-$(GDK_PIXBUF_VER).lib
|
|
|
|
INCLUDES = -I . -I .. -I ../gdk -I ../gdk-pixbuf -I ../gtk
|
|
DEPCFLAGS = $(PANGO_CFLAGS) $(GLIB_CFLAGS) $(LIBICONV_CFLAGS) $(INTL_CFLAGS) $(ATK_CFLAGS)
|
|
LDFLAGS = /link /machine:ix86 $(LINKDEBUG)
|
|
DEFINES = -DG_LOG_DOMAIN=\"GtkTest\" -DGTK_VERSION=\"$(GTK_VER)\"
|
|
|
|
TOUCH = copy makefile.msc+nul
|
|
|
|
!IFNDEF TESTAPP
|
|
|
|
all : \
|
|
..\config.h \
|
|
prop-editor.obj \
|
|
all-test-apps
|
|
|
|
..\config.h : ..\config.h.win32
|
|
copy ..\config.h.win32 ..\config.h
|
|
|
|
|
|
#
|
|
# Test programs:
|
|
#
|
|
TESTAPPS = \
|
|
testabi testactions \
|
|
testcalendar testcombo \
|
|
testdnd \
|
|
testfilechooser \
|
|
testgtk \
|
|
testicontheme testinput \
|
|
testmenus testmerge testmultidisplay testmultiscreen \
|
|
testrgb \
|
|
testselection \
|
|
testtext testtextbuffer testtoolbar \
|
|
testtreecolumns testtreeedit testtreeflow testtreefocus \
|
|
testtreesort testtreeview treestoretest \
|
|
testsocket testsocket_child \
|
|
testthreads \
|
|
simple
|
|
|
|
|
|
all-test-apps:
|
|
for %d in ($(TESTAPPS)) do nmake -nologo -f makefile.msc one-test-app THIS=%d
|
|
|
|
one-test-app:
|
|
@nmake -nologo -f makefile.msc $(THIS).exe TESTAPP=$(THIS) EXTRA_$(THIS)=1
|
|
|
|
!ELSE
|
|
|
|
!IFDEF EXTRA_testgtk
|
|
EXTRA_OBJETCS = prop-editor.obj
|
|
!ENDIF
|
|
|
|
!IFDEF EXTRA_testtreeview
|
|
EXTRA_OBJETCS = prop-editor.obj
|
|
!ENDIF
|
|
|
|
!IFDEF EXTRA_testtext
|
|
EXTRA_OBJETCS = prop-editor.obj
|
|
!ENDIF
|
|
|
|
!IFDEF EXTRA_testtoolbar
|
|
EXTRA_OBJETCS = prop-editor.obj
|
|
!ENDIF
|
|
|
|
!IFDEF EXTRA_testfilechooser
|
|
EXTRA_OBJETCS = prop-editor.obj
|
|
EXTRA_LIBS = gdi32.lib user32.lib shell32.lib
|
|
!ENDIF
|
|
|
|
$(TESTAPP).exe : ../gtk/gtk-win32-$(GTK_VER).lib $(TESTAPP).obj
|
|
$(CC) $(CFLAGS) $(TESTAPP).obj $(EXTRA_OBJETCS) $(GTK_LIBS) $(GDK_LIBS) $(GDK_PIXBUF_LIBS) $(PANGO_LIBS) $(GLIB_LIBS) $(EXTRA_LIBS) $(LDFLAGS)
|
|
|
|
$(TESTAPP).obj : $(TESTAPP).c
|
|
$(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"$(TESTAPP)\" $(TESTAPP).c
|
|
|
|
!ENDIF
|