-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[avro-cpp] update to latest master and fix windows build
- Loading branch information
1 parent
b560fcb
commit 1b1abc8
Showing
5 changed files
with
80 additions
and
20 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,33 @@ | ||
diff --git a/lang/c++/impl/avrogencpp.cc b/lang/c++/impl/avrogencpp.cc | ||
index 61570413..0b6b35a2 100644 | ||
--- a/lang/c++/impl/avrogencpp.cc | ||
+++ b/lang/c++/impl/avrogencpp.cc | ||
@@ -804,8 +804,8 @@ static string readGuard(const string &filename) { | ||
|
||
int main(int argc, char **argv) { | ||
const string NS("namespace"); | ||
- const string OUT("output"); | ||
- const string IN("input"); | ||
+ const string OUT_FILE("output"); | ||
+ const string IN_FILE("input"); | ||
const string INCLUDE_PREFIX("include-prefix"); | ||
const string NO_UNION_TYPEDEF("no-union-typedef"); | ||
|
||
@@ -817,14 +817,14 @@ int main(int argc, char **argv) { | ||
po::store(po::parse_command_line(argc, argv, desc), vm); | ||
po::notify(vm); | ||
|
||
- if (vm.count("help") || vm.count(IN) == 0 || vm.count(OUT) == 0) { | ||
+ if (vm.count("help") || vm.count(IN_FILE) == 0 || vm.count(OUT_FILE) == 0) { | ||
std::cout << desc << std::endl; | ||
return 1; | ||
} | ||
|
||
string ns = vm.count(NS) > 0 ? vm[NS].as<string>() : string(); | ||
- string outf = vm.count(OUT) > 0 ? vm[OUT].as<string>() : string(); | ||
- string inf = vm.count(IN) > 0 ? vm[IN].as<string>() : string(); | ||
+ string outf = vm.count(OUT_FILE) > 0 ? vm[OUT_FILE].as<string>() : string(); | ||
+ string inf = vm.count(IN_FILE) > 0 ? vm[IN_FILE].as<string>() : string(); | ||
string incPrefix = vm[INCLUDE_PREFIX].as<string>(); | ||
bool noUnion = vm.count(NO_UNION_TYPEDEF) != 0; | ||
if (incPrefix == "-") { |
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
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
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,30 @@ | ||
{ | ||
"name": "avro-cpp", | ||
"version-date": "2021-06-01", | ||
"description": "Apache Avro is a data serialization system", | ||
"homepage": "https://github.com/apache/avro", | ||
"supports": "!(windows & static)", | ||
"dependencies": [ | ||
"boost-crc", | ||
"boost-filesystem", | ||
"boost-format", | ||
"boost-iostreams", | ||
"boost-program-options", | ||
"boost-random", | ||
"boost-test", | ||
"boost-thread", | ||
"bzip2", | ||
"liblzma", | ||
"libzip", | ||
"zlib", | ||
"zstd" | ||
], | ||
"features": { | ||
"snappy": { | ||
"description": "Support Snappy for compression", | ||
"dependencies": [ | ||
"snappy" | ||
] | ||
} | ||
} | ||
} |