This repository has been archived by the owner on May 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove gpb plugin and include generated files
--> Windows clients don't need to compile protobuf files, which was problematic
- Loading branch information
1 parent
06e052d
commit fdae22c
Showing
6 changed files
with
8,272 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,4 @@ erl_crash.dump | |
logs | ||
_build | ||
.idea | ||
*_pb.?rl | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
REBAR = rebar3 | ||
|
||
|
||
all: compile | ||
|
||
|
||
|
||
|
||
compile: | ||
$(REBAR) compile | ||
|
||
clean: | ||
rm -rf ebin/* test/*.beam logs log | ||
$(REBAR) clean | ||
|
||
test: | ||
$(REBAR) eunit | ||
|
||
dialyzer: | ||
$(REBAR) dialyzer | ||
|
||
shell: | ||
$(REBAR) shell | ||
|
||
|
||
_build/gpb: | ||
mkdir -p _build/ | ||
(cd _build/ && git clone https://github.com/tomas-abrahamsson/gpb && cd gpb && git checkout 4.1.8) | ||
|
||
_build/gpb/bin/protoc-erl: _build/gpb | ||
(cd _build/gpb && make) | ||
|
||
|
||
|
||
generate_pb: proto/antidote.proto _build/gpb/bin/protoc-erl | ||
_build/gpb/bin/protoc-erl -I. proto/antidote.proto -o-hrl include -o-erl src -modsuffix _pb -strbin | ||
cp _build/gpb/include/gpb.hrl include/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,275 @@ | ||
%% -*- coding: utf-8 -*- | ||
%% Automatically generated, do not edit | ||
%% Generated by gpb_compile version 4.1.8 | ||
|
||
-ifndef(antidote_pb). | ||
-define(antidote_pb, true). | ||
|
||
-define(antidote_pb_gpb_version, "4.1.8"). | ||
|
||
-ifndef('APBERRORRESP_PB_H'). | ||
-define('APBERRORRESP_PB_H', true). | ||
-record('ApbErrorResp', | ||
{errmsg, % = 1, bytes | ||
errcode % = 2, uint32 | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBCOUNTERUPDATE_PB_H'). | ||
-define('APBCOUNTERUPDATE_PB_H', true). | ||
-record('ApbCounterUpdate', | ||
{inc % = 1, sint64 (optional) | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBGETCOUNTERRESP_PB_H'). | ||
-define('APBGETCOUNTERRESP_PB_H', true). | ||
-record('ApbGetCounterResp', | ||
{value % = 1, sint32 | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBSETUPDATE_PB_H'). | ||
-define('APBSETUPDATE_PB_H', true). | ||
-record('ApbSetUpdate', | ||
{optype, % = 1, {enum,'ApbSetUpdate.SetOpType'} | ||
adds = [], % = 2, [bytes] | ||
rems = [] % = 3, [bytes] | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBGETSETRESP_PB_H'). | ||
-define('APBGETSETRESP_PB_H', true). | ||
-record('ApbGetSetResp', | ||
{value = [] % = 1, [bytes] | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBREGUPDATE_PB_H'). | ||
-define('APBREGUPDATE_PB_H', true). | ||
-record('ApbRegUpdate', | ||
{value % = 1, bytes | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBGETREGRESP_PB_H'). | ||
-define('APBGETREGRESP_PB_H', true). | ||
-record('ApbGetRegResp', | ||
{value % = 1, bytes | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBGETMVREGRESP_PB_H'). | ||
-define('APBGETMVREGRESP_PB_H', true). | ||
-record('ApbGetMVRegResp', | ||
{values = [] % = 1, [bytes] | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBMAPKEY_PB_H'). | ||
-define('APBMAPKEY_PB_H', true). | ||
-record('ApbMapKey', | ||
{key, % = 1, bytes | ||
type % = 2, {enum,'CRDT_type'} | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBMAPUPDATE_PB_H'). | ||
-define('APBMAPUPDATE_PB_H', true). | ||
-record('ApbMapUpdate', | ||
{updates = [], % = 1, [{msg,'ApbMapNestedUpdate'}] | ||
removedKeys = [] % = 2, [{msg,'ApbMapKey'}] | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBMAPNESTEDUPDATE_PB_H'). | ||
-define('APBMAPNESTEDUPDATE_PB_H', true). | ||
-record('ApbMapNestedUpdate', | ||
{key, % = 1, {msg,'ApbMapKey'} | ||
update % = 2, {msg,'ApbUpdateOperation'} | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBGETMAPRESP_PB_H'). | ||
-define('APBGETMAPRESP_PB_H', true). | ||
-record('ApbGetMapResp', | ||
{entries = [] % = 1, [{msg,'ApbMapEntry'}] | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBMAPENTRY_PB_H'). | ||
-define('APBMAPENTRY_PB_H', true). | ||
-record('ApbMapEntry', | ||
{key, % = 1, {msg,'ApbMapKey'} | ||
value % = 2, {msg,'ApbReadObjectResp'} | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBFLAGUPDATE_PB_H'). | ||
-define('APBFLAGUPDATE_PB_H', true). | ||
-record('ApbFlagUpdate', | ||
{value % = 1, bool | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBGETFLAGRESP_PB_H'). | ||
-define('APBGETFLAGRESP_PB_H', true). | ||
-record('ApbGetFlagResp', | ||
{value % = 1, bool | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBCRDTRESET_PB_H'). | ||
-define('APBCRDTRESET_PB_H', true). | ||
-record('ApbCrdtReset', | ||
{ | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBOPERATIONRESP_PB_H'). | ||
-define('APBOPERATIONRESP_PB_H', true). | ||
-record('ApbOperationResp', | ||
{success, % = 1, bool | ||
errorcode % = 2, uint32 (optional) | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBTXNPROPERTIES_PB_H'). | ||
-define('APBTXNPROPERTIES_PB_H', true). | ||
-record('ApbTxnProperties', | ||
{read_write, % = 1, uint32 (optional) | ||
red_blue % = 2, uint32 (optional) | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBBOUNDOBJECT_PB_H'). | ||
-define('APBBOUNDOBJECT_PB_H', true). | ||
-record('ApbBoundObject', | ||
{key, % = 1, bytes | ||
type, % = 2, {enum,'CRDT_type'} | ||
bucket % = 3, bytes | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBREADOBJECTS_PB_H'). | ||
-define('APBREADOBJECTS_PB_H', true). | ||
-record('ApbReadObjects', | ||
{boundobjects = [], % = 1, [{msg,'ApbBoundObject'}] | ||
transaction_descriptor % = 2, bytes | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBUPDATEOP_PB_H'). | ||
-define('APBUPDATEOP_PB_H', true). | ||
-record('ApbUpdateOp', | ||
{boundobject, % = 1, {msg,'ApbBoundObject'} | ||
operation % = 2, {msg,'ApbUpdateOperation'} | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBUPDATEOPERATION_PB_H'). | ||
-define('APBUPDATEOPERATION_PB_H', true). | ||
-record('ApbUpdateOperation', | ||
{counterop, % = 1, {msg,'ApbCounterUpdate'} (optional) | ||
setop, % = 2, {msg,'ApbSetUpdate'} (optional) | ||
regop, % = 3, {msg,'ApbRegUpdate'} (optional) | ||
mapop, % = 5, {msg,'ApbMapUpdate'} (optional) | ||
resetop, % = 6, {msg,'ApbCrdtReset'} (optional) | ||
flagop % = 7, {msg,'ApbFlagUpdate'} (optional) | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBUPDATEOBJECTS_PB_H'). | ||
-define('APBUPDATEOBJECTS_PB_H', true). | ||
-record('ApbUpdateObjects', | ||
{updates = [], % = 1, [{msg,'ApbUpdateOp'}] | ||
transaction_descriptor % = 2, bytes | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBSTARTTRANSACTION_PB_H'). | ||
-define('APBSTARTTRANSACTION_PB_H', true). | ||
-record('ApbStartTransaction', | ||
{timestamp, % = 1, bytes (optional) | ||
properties % = 2, {msg,'ApbTxnProperties'} (optional) | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBABORTTRANSACTION_PB_H'). | ||
-define('APBABORTTRANSACTION_PB_H', true). | ||
-record('ApbAbortTransaction', | ||
{transaction_descriptor % = 1, bytes | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBCOMMITTRANSACTION_PB_H'). | ||
-define('APBCOMMITTRANSACTION_PB_H', true). | ||
-record('ApbCommitTransaction', | ||
{transaction_descriptor % = 1, bytes | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBSTATICUPDATEOBJECTS_PB_H'). | ||
-define('APBSTATICUPDATEOBJECTS_PB_H', true). | ||
-record('ApbStaticUpdateObjects', | ||
{transaction, % = 1, {msg,'ApbStartTransaction'} | ||
updates = [] % = 2, [{msg,'ApbUpdateOp'}] | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBSTATICREADOBJECTS_PB_H'). | ||
-define('APBSTATICREADOBJECTS_PB_H', true). | ||
-record('ApbStaticReadObjects', | ||
{transaction, % = 1, {msg,'ApbStartTransaction'} | ||
objects = [] % = 2, [{msg,'ApbBoundObject'}] | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBSTARTTRANSACTIONRESP_PB_H'). | ||
-define('APBSTARTTRANSACTIONRESP_PB_H', true). | ||
-record('ApbStartTransactionResp', | ||
{success, % = 1, bool | ||
transaction_descriptor, % = 2, bytes (optional) | ||
errorcode % = 3, uint32 (optional) | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBREADOBJECTRESP_PB_H'). | ||
-define('APBREADOBJECTRESP_PB_H', true). | ||
-record('ApbReadObjectResp', | ||
{counter, % = 1, {msg,'ApbGetCounterResp'} (optional) | ||
set, % = 2, {msg,'ApbGetSetResp'} (optional) | ||
reg, % = 3, {msg,'ApbGetRegResp'} (optional) | ||
mvreg, % = 4, {msg,'ApbGetMVRegResp'} (optional) | ||
map, % = 6, {msg,'ApbGetMapResp'} (optional) | ||
flag % = 7, {msg,'ApbGetFlagResp'} (optional) | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBREADOBJECTSRESP_PB_H'). | ||
-define('APBREADOBJECTSRESP_PB_H', true). | ||
-record('ApbReadObjectsResp', | ||
{success, % = 1, bool | ||
objects = [], % = 2, [{msg,'ApbReadObjectResp'}] | ||
errorcode % = 3, uint32 (optional) | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBCOMMITRESP_PB_H'). | ||
-define('APBCOMMITRESP_PB_H', true). | ||
-record('ApbCommitResp', | ||
{success, % = 1, bool | ||
commit_time, % = 2, bytes (optional) | ||
errorcode % = 3, uint32 (optional) | ||
}). | ||
-endif. | ||
|
||
-ifndef('APBSTATICREADOBJECTSRESP_PB_H'). | ||
-define('APBSTATICREADOBJECTSRESP_PB_H', true). | ||
-record('ApbStaticReadObjectsResp', | ||
{objects, % = 1, {msg,'ApbReadObjectsResp'} | ||
committime % = 2, {msg,'ApbCommitResp'} | ||
}). | ||
-endif. | ||
|
||
-endif. |
Oops, something went wrong.