implement DLANGUI_VERSION #438

This commit is contained in:
Vadim Lopatin 2017-09-13 14:54:19 +03:00
parent fe4afc6975
commit 2c346c015f
3 changed files with 9 additions and 6 deletions

View File

@ -20,12 +20,7 @@
"libs-linux": ["z"],
"stringImportPaths": [
"views",
"views/res",
"views/res/mdpi",
"views/res/hdpi",
"views/res/shaders",
"views/res/i18n"
"views"
],
"-ddoxFilterArgs": ["--unittest-examples", "--min-protection=Protected", "--ex", "win32.",

View File

@ -1,5 +1,7 @@
module dlangui.core.config;
extern(C) @property dstring DLANGUI_VERSION();
//version = USE_CONSOLE;
version(USE_CONSOLE) {

View File

@ -6,6 +6,12 @@ import dlangui.widgets.styles;
import dlangui.graphics.fonts;
import dlangui.graphics.resources;
import dlangui.widgets.widget;
import std.utf : toUTF32;
private immutable dstring DLANGUI_VERSION_VALUE = toUTF32(import("DLANGUI_VERSION"));
extern(C) @property dstring DLANGUI_VERSION() {
return DLANGUI_VERSION_VALUE;
}
static if (BACKEND_GUI) {
import dlangui.graphics.ftfonts;