Skip to content

Commit af910b8

Browse files
committed
Additional package configurations
The previously available minimal configuration is complemented by the panels and the full configuration. The "panels" configuration additionally links the panelw shared library. The "full" configuration additionaly links the panelw, formw and menuw library.
1 parent 505f56a commit af910b8

File tree

2 files changed

+44
-4
lines changed

2 files changed

+44
-4
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Ncurses
1+
Ncurses
22
=======
33
[![Build Status](https://travis-ci.org/1100110/ncurses.png?branch=master)](https://travis-ci.org/1100110/ncurses)
44

@@ -9,6 +9,25 @@ There will be bugs. C Macros are missing, enums are slightly renamed.
99
If you have any trouble, or think that something should be fixed,
1010
then please create a bug report.
1111

12+
Variants of this package
13+
------------------------
14+
15+
This package can be build in three variants:
16+
17+
* **minimal**: The minimal (which is the default configuration) configurations only links the ncursesw library.
18+
19+
* **panels**: The panels configuration additionally links the panelw library.
20+
21+
* **full**: The full configuration additionally links the formw and menuw library.
22+
23+
To use a specific configuration in your projects, depend on this package by adding the following config snippet to your project's dub.json:
24+
25+
```
26+
"subConfigurations": {
27+
"ncurses": "full"
28+
}
29+
```
30+
1231
WARNINGS & PRECAUTIONS
1332
----------------------
1433
What files make up the 'official' ncurses package?

package.json

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,30 @@
88
"Jude \"1100110\" Young"
99
],
1010
"license": "ncurses",
11-
"libs": [
12-
"ncursesw"
13-
],
1411
"targetType": "staticLibrary",
1512
"targetName": "ncurses-d",
13+
"configurations": [
14+
{
15+
"name": "minimal",
16+
"libs": [
17+
"ncursesw"
18+
]
19+
},
20+
{
21+
"name": "panels",
22+
"libs": [
23+
"ncursesw",
24+
"panelw"
25+
]
26+
},
27+
{
28+
"name": "full",
29+
"libs": [
30+
"ncursesw",
31+
"panelw",
32+
"menuw",
33+
"formw"
34+
]
35+
}
36+
]
1637
}

0 commit comments

Comments
 (0)