From 968fae625741464aa9c3de9c1574b73b56c7cae0 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Fri, 29 May 2015 08:22:34 +0300 Subject: [PATCH] Win 8.1 build as GUI app --- dub.json | 2 ++ src/dlangui/widgets/metadata.d | 1 + src/win_app.def | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 src/win_app.def diff --git a/dub.json b/dub.json index f0aa2d2a..895ec83d 100644 --- a/dub.json +++ b/dub.json @@ -27,6 +27,8 @@ "-ddoxFilterArgs": ["--unittest-examples", "--min-protection=Protected", "--ex", "win32.", "--ex", "src.dlangui"], + "sourceFiles-windows": ["$PACKAGE_DIR/src/win_app.def"], + "subPackages": [ "./examples/helloworld/", "./examples/example1/", diff --git a/src/dlangui/widgets/metadata.d b/src/dlangui/widgets/metadata.d index 239b93c0..3789310c 100644 --- a/src/dlangui/widgets/metadata.d +++ b/src/dlangui/widgets/metadata.d @@ -99,3 +99,4 @@ string registerWidgets(T...)() { bool isWidgetClassName(string name) { return (name in _registeredWidgets) !is null; } + diff --git a/src/win_app.def b/src/win_app.def new file mode 100644 index 00000000..40b796c7 --- /dev/null +++ b/src/win_app.def @@ -0,0 +1,2 @@ +EXETYPE NT +SUBSYSTEM WINDOWS