diff options
-rw-r--r-- | src/gtkmm-test.cpp | 17 | ||||
-rw-r--r-- | src/gtkmm.mk | 6 |
2 files changed, 23 insertions, 0 deletions
diff --git a/src/gtkmm-test.cpp b/src/gtkmm-test.cpp new file mode 100644 index 0000000..d92177a --- /dev/null +++ b/src/gtkmm-test.cpp @@ -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; +} diff --git a/src/gtkmm.mk b/src/gtkmm.mk index 94882e4..e8b604a 100644 --- a/src/gtkmm.mk +++ b/src/gtkmm.mk @@ -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 |