Skip to content

Commit

Permalink
Path adjustment for nanoarrow include, pkg-config update
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Apr 4, 2024
1 parent 46aebeb commit f2ea6f5
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion apis/r/inst/include/tiledbsoma_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#define TILEDB_NO_API_DEPRECATION_WARNINGS
#endif

#include <tiledbsoma/nanoarrow/nanoarrow.h> // for C interface to Arrow
#include <nanoarrow/nanoarrow.h> // for C interface to Arrow
#include <tiledb/tiledb> // for QueryCondition etc
#define ARROW_SCHEMA_AND_ARRAY_DEFINED 1
#include <tiledbsoma/tiledbsoma>
Expand Down
2 changes: 1 addition & 1 deletion apis/r/src/rinterface.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <Rcpp.h> // for R interface to C++
#include <nanoarrow/r.h> // for C interface to Arrow (via R package)
#include <tiledbsoma/nanoarrow/nanoarrow.hpp> // for C/C++ interface to Arrow
#include <nanoarrow/nanoarrow.hpp> // for C/C++ interface to Arrow
#include <RcppInt64> // for fromInteger64

// we currently get deprecation warnings by default which are noisy
Expand Down
2 changes: 1 addition & 1 deletion apis/r/src/riterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <Rcpp.h> // for R interface to C++
#include <nanoarrow/r.h> // for C interface to Arrow (via R package nanoarrow)
#include <tiledbsoma/nanoarrow/nanoarrow.h>
#include <nanoarrow/nanoarrow.h>
#include <RcppInt64> // for fromInteger64

#include <tiledb/tiledb>
Expand Down
2 changes: 1 addition & 1 deletion apis/r/src/rutilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#endif

#include <Rcpp.h> // for R interface to C++
#include <tiledbsoma/nanoarrow/nanoarrow.h> // for C interface to Arrow
#include <nanoarrow/nanoarrow.h> // for C interface to Arrow
#include <RcppInt64> // for fromInteger64
#include <tiledbsoma/tiledbsoma>

Expand Down
8 changes: 0 additions & 8 deletions apis/r/src/xptr-utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ const tiledb_xptr_object tiledb_xptr_vlv_buf_t { 180 };
const tiledb_xptr_object tiledb_xptr_query_buf_t { 190 };

// the definitions above are internal to tiledb-r but we need a new value here if we want tag the external pointer
const tiledb_xptr_object tiledb_arrow_array_t { 300 };
const tiledb_xptr_object tiledb_arrow_schema_t { 310 };

const tiledb_xptr_object tiledb_soma_reader_t { 500 };

// templated checkers for external pointer tags
Expand All @@ -52,10 +49,6 @@ template <> inline const int32_t XPtrTagType<tiledb::VFS> = til
// template <> inline const int32_t XPtrTagType<vlv_buf_t> = tiledb_xptr_vlv_buf_t;
// template <> inline const int32_t XPtrTagType<query_buf_t> = tiledb_xptr_query_buf_t;


template <> inline const int32_t XPtrTagType<ArrowArray> = tiledb_arrow_array_t;
template <> inline const int32_t XPtrTagType<ArrowSchema> = tiledb_arrow_schema_t;

template <> inline const int32_t XPtrTagType<tdbs::SOMAArray> = tiledb_soma_reader_t;

template <typename T> Rcpp::XPtr<T> make_xptr(T* p, bool finalize=true) {
Expand All @@ -81,4 +74,3 @@ template<typename T> void check_xptr_tag(Rcpp::XPtr<T> ptr) {
// in rinterface.cpp
Rcpp::XPtr<ArrowSchema> schema_owning_xptr(void);
Rcpp::XPtr<ArrowArray> array_owning_xptr(void);

4 changes: 2 additions & 2 deletions libtiledbsoma/cmake/inputs/tiledbsoma.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ URL: https://github.com/single-cell-data/TileDB-SOMA
Version: @VERSION@
Requires: @PKGCONF_REQ_PUB@
Requires.private: @PKGCONF_REQ_PRIV@
Cflags: -I"${includedir}"
Cflags: -I"${includedir}" -I"${includedir}/tiledbsoma"
Libs: -L"${libdir}" -ltiledbsoma
Libs.private: -L"${libdir}" -ltiledbsoma @PKGCONF_LIBS_PRIV@
Libs.private: -L"${libdir}" -ltiledbsoma @PKGCONF_LIBS_PRIV@
2 changes: 1 addition & 1 deletion libtiledbsoma/src/utils/arrow_adapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// https://arrow.apache.org/docs/format/Columnar.html#buffer-listing-for-each-layout
// https://arrow.apache.org/docs/format/CDataInterface.html#exporting-a-simple-int32-array

#include "tiledbsoma/nanoarrow/nanoarrow.hpp"
#include "nanoarrow/nanoarrow.hpp"

namespace tiledbsoma {

Expand Down

0 comments on commit f2ea6f5

Please sign in to comment.