diff --git a/dub.json b/dub.json index e017a51..35d681b 100644 --- a/dub.json +++ b/dub.json @@ -11,5 +11,7 @@ "license": "LGPL v2.1", "name": "libdnet", "targetPath": "bin", - "targetType": "library" + "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/." + ] } \ No newline at end of file