change package structure - #56

This commit is contained in:
Vadim Lopatin 2015-02-10 09:53:21 +03:00
parent 266c24936e
commit 9db29a19cd
6 changed files with 41 additions and 51 deletions

View File

@ -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) Screenshots: [http://buggins.github.io/dlangui/screenshots.html](http://buggins.github.io/dlangui/screenshots.html)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/buggins/dlangui?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build Status](https://travis-ci.org/buggins/dlangui.svg?branch=master)](https://travis-ci.org/buggins/dlangui)
WARNING: recent breaking change: when specifying dlangui library as DUB dependency, use "dlangui" instead of "dlangui:dlanguilib".
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/buggins/dlangui?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build Status](https://travis-ci.org/buggins/dlangui.svg?branch=master)](https://travis-ci.org/buggins/dlangui)
Main features: Main features:
@ -241,7 +244,7 @@ Sample dub.json:
"targetType": "executable", "targetType": "executable",
"dependencies": { "dependencies": {
"dlangui:dlanguilib": "~master" "dlangui": "~master"
} }
} }

View File

@ -8,56 +8,43 @@
"buildRequirements":[ "buildRequirements":[
"allowWarnings" "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", "targetName": "dlangui",
"targetPath": "lib", "targetPath": "lib",
"targetType": "staticLibrary", "targetType": "staticLibrary",
"versions-posix": ["USE_SDL", "USE_OPENGL"],
"versions-windows": ["Unicode", "USE_FREETYPE"],
"versions": ["EmbedStandardResources"],
"versions-posix": ["USE_SDL", "USE_OPENGL"], "copyFiles-windows": ["lib/libfreetype-6.dll", "lib/zlib1.dll"],
"versions-windows": ["Unicode", "USE_FREETYPE"],
"versions": ["EmbedStandardResources"],
"copyFiles-windows": ["lib/libfreetype-6.dll", "lib/zlib1.dll"], "sourcePaths": [
"3rdparty", "src"
],
"sourcePaths": [ "importPaths": [
"3rdparty", "src" "3rdparty", "src"
], ],
"importPaths": [ "stringImportPaths": [
"3rdparty", "src" "views",
], "views/res",
"views/res/mdpi",
"stringImportPaths": [ "views/res/i18n"
"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/"
], ],
"dependencies": { "dependencies": {
"dlangui:dlanguilib": "*", "derelict-gl3": ">=1.0.12",
"dlangui:example1": "*", "dlib": "~master",
"dlangui:helloworld": "*", "derelict-ft": ">=1.0.0",
"dlangui:tetris": "*" "derelict-sdl2": ">=1.9.1"
} },
"-ddoxFilterArgs": ["--unittest-examples", "--min-protection=Protected", "--ex", "win32.", "--ex", "src.dlangui"],
"subPackages": [
"./examples/helloworld/",
"./examples/example1/",
"./examples/tetris/"
]
} }

View File

@ -12,6 +12,6 @@
"stringImportPaths": ["views", "views/res", "views/res/i18n", "views/res/mdpi"], "stringImportPaths": ["views", "views/res", "views/res/i18n", "views/res/mdpi"],
"dependencies": { "dependencies": {
"dlangui:dlanguilib": "*" "dlangui": "*"
} }
} }

View File

@ -10,6 +10,6 @@
"targetType": "executable", "targetType": "executable",
"dependencies": { "dependencies": {
"dlangui:dlanguilib": "*", "dlangui": "*",
} }
} }

View File

@ -12,6 +12,6 @@
"stringImportPaths": ["views", "views/res", "views/res/i18n", "views/res/mdpi"], "stringImportPaths": ["views", "views/res", "views/res/i18n", "views/res/mdpi"],
"dependencies": { "dependencies": {
"dlangui:dlanguilib": "*" "dlangui": "*"
} }
} }

View File

@ -431,7 +431,7 @@ class Win32Font : Font {
lf.lfCharSet = ANSI_CHARSET; //DEFAULT_CHARSET; lf.lfCharSet = ANSI_CHARSET; //DEFAULT_CHARSET;
lf.lfFaceName[0..def.face.length] = def.face; lf.lfFaceName[0..def.face.length] = def.face;
lf.lfFaceName[def.face.length] = 0; lf.lfFaceName[def.face.length] = 0;
lf.lfHeight = size; //pixelsToPoints(size); lf.lfHeight = -size; //pixelsToPoints(size);
lf.lfItalic = italic; lf.lfItalic = italic;
lf.lfWeight = weight; lf.lfWeight = weight;
lf.lfOutPrecision = OUT_TT_ONLY_PRECIS; //OUT_OUTLINE_PRECIS; //OUT_TT_ONLY_PRECIS; lf.lfOutPrecision = OUT_TT_ONLY_PRECIS; //OUT_OUTLINE_PRECIS; //OUT_TT_ONLY_PRECIS;