Add dub support
This commit is contained in:
parent
3fd5e4ee62
commit
5437ceb846
|
@ -1,14 +1,19 @@
|
||||||
# Windows binaries
|
# Windows binaries
|
||||||
*.exe
|
*.exe
|
||||||
*.obj
|
*.obj
|
||||||
|
*.lib
|
||||||
|
*.dll
|
||||||
|
|
||||||
# *nix binaries
|
# *nix binaries
|
||||||
dcd-client
|
dcd-client
|
||||||
dcd-server
|
dcd-server
|
||||||
*.o
|
*.o
|
||||||
|
*.a
|
||||||
|
*.so
|
||||||
|
|
||||||
# Perf reports
|
# Perf reports
|
||||||
perf.data
|
perf.data
|
||||||
|
perf.data.old
|
||||||
|
|
||||||
# Valgrind reports
|
# Valgrind reports
|
||||||
callgrind.*
|
callgrind.*
|
||||||
|
@ -20,3 +25,7 @@ githash.txt
|
||||||
tests/tc*/actual*.txt
|
tests/tc*/actual*.txt
|
||||||
stderr.txt
|
stderr.txt
|
||||||
stdout.txt
|
stdout.txt
|
||||||
|
|
||||||
|
# Dub files
|
||||||
|
.dub
|
||||||
|
dub.selections.json
|
||||||
|
|
|
@ -0,0 +1,43 @@
|
||||||
|
{
|
||||||
|
"name": "dcd",
|
||||||
|
"description": "The D Completion Daemon is an auto-complete program for the D programming language",
|
||||||
|
"copyright": "Copyright © 2015, Brian Schott",
|
||||||
|
"authors": [
|
||||||
|
"Brian Schott"
|
||||||
|
],
|
||||||
|
"license": "GPL-3.0",
|
||||||
|
"dependencies": {
|
||||||
|
"dsymbol": "~>0.1.0",
|
||||||
|
"libdparse": "~>0.3.0",
|
||||||
|
"msgpack-d": "~>1.0.0-beta.2"
|
||||||
|
},
|
||||||
|
"versions": ["built_with_dub"],
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "library",
|
||||||
|
"targetType": "library",
|
||||||
|
"excludedSourceFiles": [
|
||||||
|
"src/client/*",
|
||||||
|
"src/server/server.d"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "client",
|
||||||
|
"targetType": "executable",
|
||||||
|
"targetName": "dcd-client",
|
||||||
|
"mainSourceFile": "src/client/client.d",
|
||||||
|
"excludedSourceFiles": [
|
||||||
|
"src/server/*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "server",
|
||||||
|
"targetType": "executable",
|
||||||
|
"targetName": "dcd-server",
|
||||||
|
"mainSourceFile": "src/server/server.d",
|
||||||
|
"excludedSourceFiles": [
|
||||||
|
"src/client/*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -70,6 +70,8 @@ int main(string[] args)
|
||||||
{
|
{
|
||||||
version (Windows)
|
version (Windows)
|
||||||
writeln(DCD_VERSION);
|
writeln(DCD_VERSION);
|
||||||
|
else version(built_with_dub)
|
||||||
|
writeln(DCD_VERSION);
|
||||||
else
|
else
|
||||||
write(DCD_VERSION, " ", GIT_HASH);
|
write(DCD_VERSION, " ", GIT_HASH);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -21,9 +21,10 @@ module common.dcd_version;
|
||||||
/**
|
/**
|
||||||
* Human-readable version number
|
* Human-readable version number
|
||||||
*/
|
*/
|
||||||
enum DCD_VERSION = "v0.7.3";
|
enum DCD_VERSION = "v0.7.4";
|
||||||
|
|
||||||
version (Windows) {}
|
version (Windows) {}
|
||||||
|
else version (built_with_dub) {}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -82,6 +82,8 @@ int main(string[] args)
|
||||||
{
|
{
|
||||||
version (Windows)
|
version (Windows)
|
||||||
writeln(DCD_VERSION);
|
writeln(DCD_VERSION);
|
||||||
|
else version (built_with_dub)
|
||||||
|
writeln(DCD_VERSION);
|
||||||
else
|
else
|
||||||
write(DCD_VERSION, " ", GIT_HASH);
|
write(DCD_VERSION, " ", GIT_HASH);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue