# HG changeset patch # User Martin Gerhardy # Date 1285229705 -36000 # Node ID 72006e4e493adcf44530931d767aa11daaabe784 # Parent 8604afbeb8adacd7d696f0ada99a2a6380ea35d9 test program for package gtkmm diff -r 8604afbeb8ad -r 72006e4e493a src/gtkmm-test.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/gtkmm-test.cpp Thu Sep 23 18:15:05 2010 +1000 @@ -0,0 +1,17 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include +#include + +int main(int argc, char *argv[]) +{ + Gtk::Main g(argc, argv); + + Gtk::Window window; + window.set_title("Test App mingw-cross-env"); + window.set_default_size(200, 200); + window.show_all(); + g.run(window); + return 0; +} diff -r 8604afbeb8ad -r 72006e4e493a src/gtkmm.mk --- a/src/gtkmm.mk Thu Sep 23 03:21:35 2010 +0200 +++ b/src/gtkmm.mk Thu Sep 23 18:15:05 2010 +1000 @@ -29,4 +29,10 @@ --prefix='$(PREFIX)/$(TARGET)' \ MAKE=$(MAKE) $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= + + '$(TARGET)-g++' \ + -W -Wall -Werror -pedantic -std=c++0x\ + '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ + `'$(TARGET)-pkg-config' gtkmm-2.4 --cflags --libs` \ + -lwinspool -lcomctl32 -lcomdlg32 -ldnsapi endef