Skip to content

Commit ac0c1df

Browse files
committed
Build examples with dub
1 parent af910b8 commit ac0c1df

File tree

42 files changed

+367
-77
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+367
-77
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
examples/bin
2-
examples/bin/*
1+
examples/*/bin
32

43
*.o
54
*.so

examples/Makefile

Lines changed: 0 additions & 65 deletions
This file was deleted.

examples/README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,17 @@ Here are a few examples to get you started.
55
The main site where these examples were originally found is here [tldp.org](http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/)
66
These examples need some work, but they should demonstrate that most everything is in working order.
77

8-
All of the files *should* be executable and set to link with ncursesw by default.
9-
If you have rdmd installed in /usr/bin/rdmd, then ./helloWorld.d should get you going!
10-
11-
if not, then make [filename], and the programs will be in ./bin/
8+
To run the examples, change to the specific directory and build and execute the example with "dub run".
129

1310
### Requirements:
1411
- [rdmd](http://github.com/D-Programming-Language/tools)
1512
- ncursesw
1613

17-
### Files
18-
- helloWorld.d - a simple hello world example.
19-
- helloUnicode.d - a simple unicode example.
20-
- keyCode.d - returns the number code of the key you pressed.
21-
- simpleColor.d - a simple example that demonstrates color output.
14+
### Examples
15+
- helloWorld - a simple hello world example.
16+
- helloUnicode - a simple unicode example.
17+
- keyCode - returns the number code of the key you pressed.
18+
- simpleColor - a simple example that demonstrates color output.
2219

2320
### TODO
2421
[ ] review, and fix anything that's broken.
@@ -27,5 +24,5 @@ if not, then make [filename], and the programs will be in ./bin/
2724
[ ] fix so that examples are compilable on Windows.
2825

2926
Again, please file any bugs that you come across.
30-
Even if you don't know if it is actually a bug, we appreciate the time.
27+
Even if you don't know if it is actually a bug, we appreciate the time.
3128
We understand that sometimes it is hard to figure out.

examples/acsvars/dub.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "acsvars",
3+
"description": "Example application for the D ncurses library",
4+
"homepage": "https://github.com/D-Programming-Deimos/ncurses",
5+
"authors": [
6+
"Jon \"ylixir\" Allen",
7+
"Dejan Lekic",
8+
"Jude \"1100110\" Young"
9+
],
10+
"license": "ncurses",
11+
"dependencies": {
12+
"ncurses": "*"
13+
},
14+
"targetPath": "bin",
15+
"targetType": "executable",
16+
"targetName": "acsVars"
17+
}
File renamed without changes.

examples/attribmenu/dub.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "attribmenu",
3+
"description": "Example application for the D ncurses library",
4+
"homepage": "https://github.com/D-Programming-Deimos/ncurses",
5+
"authors": [
6+
"Jon \"ylixir\" Allen",
7+
"Dejan Lekic",
8+
"Jude \"1100110\" Young"
9+
],
10+
"license": "ncurses",
11+
"dependencies": {
12+
"ncurses": "*"
13+
},
14+
"subConfigurations": {
15+
"ncurses": "full"
16+
},
17+
"targetPath": "bin",
18+
"targetType": "executable",
19+
"targetName": "attribMenu"
20+
}
File renamed without changes.

examples/chgat/dub.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "chgat",
3+
"description": "Example application for the D ncurses library",
4+
"homepage": "https://github.com/D-Programming-Deimos/ncurses",
5+
"authors": [
6+
"Jon \"ylixir\" Allen",
7+
"Dejan Lekic",
8+
"Jude \"1100110\" Young"
9+
],
10+
"license": "ncurses",
11+
"dependencies": {
12+
"ncurses": "*"
13+
},
14+
"targetPath": "bin",
15+
"targetType": "executable",
16+
"targetName": "chgat"
17+
}
File renamed without changes.

examples/form_attrib/dub.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "form_attrib",
3+
"description": "Example application for the D ncurses library",
4+
"homepage": "https://github.com/D-Programming-Deimos/ncurses",
5+
"authors": [
6+
"Jon \"ylixir\" Allen",
7+
"Dejan Lekic",
8+
"Jude \"1100110\" Young"
9+
],
10+
"license": "ncurses",
11+
"dependencies": {
12+
"ncurses": "*"
13+
},
14+
"subConfigurations": {
15+
"ncurses": "full"
16+
},
17+
"targetPath": "bin",
18+
"targetType": "executable",
19+
"targetName": "form_attrib"
20+
}

0 commit comments

Comments
 (0)