mirror of https://github.com/buggins/dlangui.git
change package structure - #56
This commit is contained in:
parent
266c24936e
commit
9db29a19cd
|
@ -13,8 +13,11 @@ Wiki: [https://github.com/buggins/dlangui/wiki/Home](https://github.com/buggins/
|
|||
|
||||
Screenshots: [http://buggins.github.io/dlangui/screenshots.html](http://buggins.github.io/dlangui/screenshots.html)
|
||||
|
||||
[](https://gitter.im/buggins/dlangui?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://travis-ci.org/buggins/dlangui)
|
||||
|
||||
WARNING: recent breaking change: when specifying dlangui library as DUB dependency, use "dlangui" instead of "dlangui:dlanguilib".
|
||||
|
||||
|
||||
[](https://gitter.im/buggins/dlangui?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [](https://travis-ci.org/buggins/dlangui)
|
||||
|
||||
Main features:
|
||||
|
||||
|
@ -241,7 +244,7 @@ Sample dub.json:
|
|||
"targetType": "executable",
|
||||
|
||||
"dependencies": {
|
||||
"dlangui:dlanguilib": "~master"
|
||||
"dlangui": "~master"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
77
dub.json
77
dub.json
|
@ -8,56 +8,43 @@
|
|||
"buildRequirements":[
|
||||
"allowWarnings"
|
||||
],
|
||||
"subPackages": [
|
||||
{
|
||||
"name": "dlanguilib",
|
||||
"description": "D language cross platform GUI library, inspired by Android UI API. Supports OpenGL based hardware acceleration, i18n, styles and themes.",
|
||||
"homepage": "https://github.com/buggins/dlangui",
|
||||
"license": "Boost",
|
||||
"authors": ["Vadim Lopatin"],
|
||||
|
||||
"targetName": "dlanguilib",
|
||||
"targetPath": "lib",
|
||||
"targetType": "staticLibrary",
|
||||
"targetName": "dlangui",
|
||||
"targetPath": "lib",
|
||||
"targetType": "staticLibrary",
|
||||
"versions-posix": ["USE_SDL", "USE_OPENGL"],
|
||||
"versions-windows": ["Unicode", "USE_FREETYPE"],
|
||||
"versions": ["EmbedStandardResources"],
|
||||
|
||||
"versions-posix": ["USE_SDL", "USE_OPENGL"],
|
||||
"versions-windows": ["Unicode", "USE_FREETYPE"],
|
||||
"versions": ["EmbedStandardResources"],
|
||||
"copyFiles-windows": ["lib/libfreetype-6.dll", "lib/zlib1.dll"],
|
||||
|
||||
"copyFiles-windows": ["lib/libfreetype-6.dll", "lib/zlib1.dll"],
|
||||
"sourcePaths": [
|
||||
"3rdparty", "src"
|
||||
],
|
||||
|
||||
"sourcePaths": [
|
||||
"3rdparty", "src"
|
||||
],
|
||||
|
||||
"importPaths": [
|
||||
"3rdparty", "src"
|
||||
],
|
||||
|
||||
"stringImportPaths": [
|
||||
"views",
|
||||
"views/res",
|
||||
"views/res/mdpi",
|
||||
"views/res/i18n"
|
||||
],
|
||||
|
||||
"dependencies": {
|
||||
"derelict-gl3": ">=1.0.12",
|
||||
"dlib": ">=0.4.1",
|
||||
"derelict-ft": ">=1.0.0",
|
||||
"derelict-sdl2": ">=1.9.1"
|
||||
},
|
||||
"-ddoxFilterArgs": ["--unittest-examples", "--min-protection=Protected", "--ex", "win32.", "--ex", "src.dlangui"]
|
||||
},
|
||||
"./examples/helloworld/",
|
||||
"./examples/example1/",
|
||||
"./examples/tetris/"
|
||||
"importPaths": [
|
||||
"3rdparty", "src"
|
||||
],
|
||||
|
||||
"stringImportPaths": [
|
||||
"views",
|
||||
"views/res",
|
||||
"views/res/mdpi",
|
||||
"views/res/i18n"
|
||||
],
|
||||
|
||||
"dependencies": {
|
||||
"dlangui:dlanguilib": "*",
|
||||
"dlangui:example1": "*",
|
||||
"dlangui:helloworld": "*",
|
||||
"dlangui:tetris": "*"
|
||||
}
|
||||
"derelict-gl3": ">=1.0.12",
|
||||
"dlib": "~master",
|
||||
"derelict-ft": ">=1.0.0",
|
||||
"derelict-sdl2": ">=1.9.1"
|
||||
},
|
||||
|
||||
"-ddoxFilterArgs": ["--unittest-examples", "--min-protection=Protected", "--ex", "win32.", "--ex", "src.dlangui"],
|
||||
|
||||
"subPackages": [
|
||||
"./examples/helloworld/",
|
||||
"./examples/example1/",
|
||||
"./examples/tetris/"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
"stringImportPaths": ["views", "views/res", "views/res/i18n", "views/res/mdpi"],
|
||||
|
||||
"dependencies": {
|
||||
"dlangui:dlanguilib": "*"
|
||||
"dlangui": "*"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
"targetType": "executable",
|
||||
|
||||
"dependencies": {
|
||||
"dlangui:dlanguilib": "*",
|
||||
"dlangui": "*",
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
"stringImportPaths": ["views", "views/res", "views/res/i18n", "views/res/mdpi"],
|
||||
|
||||
"dependencies": {
|
||||
"dlangui:dlanguilib": "*"
|
||||
"dlangui": "*"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -431,7 +431,7 @@ class Win32Font : Font {
|
|||
lf.lfCharSet = ANSI_CHARSET; //DEFAULT_CHARSET;
|
||||
lf.lfFaceName[0..def.face.length] = def.face;
|
||||
lf.lfFaceName[def.face.length] = 0;
|
||||
lf.lfHeight = size; //pixelsToPoints(size);
|
||||
lf.lfHeight = -size; //pixelsToPoints(size);
|
||||
lf.lfItalic = italic;
|
||||
lf.lfWeight = weight;
|
||||
lf.lfOutPrecision = OUT_TT_ONLY_PRECIS; //OUT_OUTLINE_PRECIS; //OUT_TT_ONLY_PRECIS;
|
||||
|
|
Loading…
Reference in New Issue