Skip to content

Commit

Permalink
Simplify building examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydg committed Nov 14, 2017
1 parent e353d6d commit be0e193
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 31 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ATTENTION: the x86_64 version of the Linux library seems to be very unstable
and the demo application crashed immediately upon startup. The x86 variant
works almost fine, though.

To try the samples, change to examples/samples_d and run dub.
To try the samples, run `dub run -a x86 -c samples_d`

The bindings are a strict port of the C API, so refer to libtcod
documentation for more details. If I can get motivated, an object
Expand Down
23 changes: 21 additions & 2 deletions dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,30 @@
"copyright": "Copyright © 2012, Bernard Helyer",
"authors": ["Bernard Helyer", "Joachim de Groot"],
"license": "BSD",
"targetType": "sourceLibrary",
"copyFiles-linux-x86": ["libs/linux/x86/*"],
"copyFiles-linux-x86_64": ["libs/linux/x86_64/*"],
"copyFiles-windows-x86": ["libs/windows/x86/*"],
"dependencies": {
"derelict-util": "~>3.0.0-beta.2"
}
},
"configurations": [
{
"name": "default",
"targetType": "sourceLibrary"
},
{
"name": "samples_d",
"mainSourceFile" : "examples/samples_d",
"targetName": "samples_d",
"targetType": "executable",
"targetPath": "bin"
},
{
"name": "simple",
"mainSourceFile" : "examples/simple.d",
"targetName": "simple",
"targetType": "executable",
"targetPath": "bin"
}
]
}
File renamed without changes.
14 changes: 0 additions & 14 deletions examples/samples_d/dub.json

This file was deleted.

File renamed without changes.
14 changes: 0 additions & 14 deletions examples/simple/dub.json

This file was deleted.

0 comments on commit be0e193

Please sign in to comment.