diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..e69de29b diff --git a/WORKSPACE b/WORKSPACE index 262f67d6..c20b2345 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -205,12 +205,8 @@ http_archive( strip_prefix="protobuf-25.3", sha256 = "3ae7a8f2181be28e5d694617c2b85c6561ba6a16bfcdc9db8e3a95077cab8815", patches = [ - "@//third_party:protobuf-0002-use-rules-python-headers.patch", - ], - patch_args=["-p1"], -) - -load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") + "@//third_party:protobuf-0002- +)buf_deps.bzl", "protobuf_deps") protobuf_deps() http_archive( @@ -428,3 +424,9 @@ http_archive( integrity = "sha256-cSp9CdKiJlL7BqSa9RbgUZeaOYStsGfahnYOYO1Rp/U=" ) +http_archive( + name="fast-cpp-csv-parser", + urls = ["https://github.com/ben-strasser/fast-cpp-csv-parser/archive/refs/heads/master.zip"], + strip_prefix = "fast-cpp-csv-parser-master", +) + diff --git a/common/csv_reader/BUILD b/common/csv_reader/BUILD new file mode 100644 index 00000000..b7c54a15 --- /dev/null +++ b/common/csv_reader/BUILD @@ -0,0 +1,20 @@ +package(features=["warning_compile_flags"]) + +cc_library( + name = "csv_reader", + hdrs = ["learn_descriptorcsv.hh"], + visibility = ["//visibility:public"], + srcs = ["learn_descriptors.cc"], + deps = [ + "@" + ] +) + +cc_test( + name = "csv_reader_test", + srcs = ["csv_reader_test.cc"], + deps = [ + "@com_google_googletest//:gtest_main", + ":learn_descriptors", + ] +) diff --git a/common/csv_reader/csv_reader.cc b/common/csv_reader/csv_reader.cc new file mode 100644 index 00000000..e69de29b diff --git a/common/csv_reader/csv_reader.hh b/common/csv_reader/csv_reader.hh new file mode 100644 index 00000000..0ea4fda1 --- /dev/null +++ b/common/csv_reader/csv_reader.hh @@ -0,0 +1 @@ +#include "csv.h" \ No newline at end of file diff --git a/common/csv_reader/csv_reader_test.cc b/common/csv_reader/csv_reader_test.cc new file mode 100644 index 00000000..e69de29b diff --git a/experimental/learn_descriptors/BUILD b/experimental/learn_descriptors/BUILD index 1649bf8c..5d4f6204 100644 --- a/experimental/learn_descriptors/BUILD +++ b/experimental/learn_descriptors/BUILD @@ -1,4 +1,3 @@ - package(features=["warning_compile_flags"]) cc_library( diff --git a/third_party/BUILD.cpp_fast_csv_parser b/third_party/BUILD.cpp_fast_csv_parser new file mode 100644 index 00000000..487303e4 --- /dev/null +++ b/third_party/BUILD.cpp_fast_csv_parser @@ -0,0 +1,6 @@ +cc_library( + name = "cpp_fast_csv_parser", + srcs = ["csv.h"], + hdrs = ["csh.h"], + visibility = ["//visibility:public"], +) \ No newline at end of file