test program for package gtkmm

This commit is contained in:
Martin Gerhardy 2010-09-23 18:15:05 +10:00
parent 7a2c1cb301
commit cf62383b1d
2 changed files with 23 additions and 0 deletions

17
src/gtkmm-test.cpp Normal file
View File

@ -0,0 +1,17 @@
/* This file is part of mingw-cross-env. */
/* See doc/index.html for further information. */
#include <gtkmm/window.h>
#include <gtkmm/main.h>
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;
}

View File

@ -29,4 +29,10 @@ define $(PKG)_BUILD
--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