mirror of https://github.com/deavminet/libdnet.git
Fixed compilation of generated D files from protoc
This commit is contained in:
parent
4557a8c550
commit
70c78d37ff
Binary file not shown.
Binary file not shown.
BIN
bin/liblibdnet.a
BIN
bin/liblibdnet.a
Binary file not shown.
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
# File to fix import paths for the generated D modules
|
||||
protoCodeFile=source/libdnet/protobuf/dnet.d
|
||||
|
||||
# Fix up
|
||||
cat $protoCodeFile | sed -e "s/source.libdnet.protobuf./ /" > tmpFile
|
||||
|
||||
# This thing got whacky
|
||||
mv tmpFile $protoCodeFile
|
5
dub.json
5
dub.json
|
@ -13,7 +13,8 @@
|
|||
"name": "libdnet",
|
||||
"targetPath": "bin",
|
||||
"targetType": "library",
|
||||
"preBuildCommands": ["protoc --plugin=\"$HOME/.dub/packages/protobuf-0.6.2/protobuf/protoc_gen_d/../build/protoc-gen-d\" source/libdnet/protobuf/dnet.proto --d_out=source/libdnet/protobuf/."
|
||||
|
||||
"preBuildCommands": ["protoc --plugin=\"$HOME/.dub/packages/protobuf-0.6.2/protobuf/protoc_gen_d/../build/protoc-gen-d\" source/libdnet/protobuf/dnet.proto --d_out=source/libdnet/protobuf/.",
|
||||
"chmod +x ./cleanUp.sh",
|
||||
"./cleanUp.sh"
|
||||
]
|
||||
}
|
|
@ -1,13 +1,13 @@
|
|||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: source/libdnet/protobuf/dnet.proto
|
||||
// source: dnet.proto
|
||||
|
||||
module dnet;
|
||||
|
||||
import google.protobuf;
|
||||
import source.libdnet.protobuf.account;
|
||||
import source.libdnet.protobuf.channel;
|
||||
import source.libdnet.protobuf.server;
|
||||
import source.libdnet.protobuf.property;
|
||||
import account;
|
||||
import channel;
|
||||
import server;
|
||||
import property;
|
||||
|
||||
enum protocVersion = 3014000;
|
||||
|
||||
|
|
Loading…
Reference in New Issue