aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dune
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2024-10-26 14:26:10 -0300
committerGitHub <noreply@github.com>2024-10-26 14:26:10 -0300
commit2eab114a120c7818861c0640ecdc300cf7366e53 (patch)
treebeb69c7038d79d8ca77d072d6f3afb144b5ff891 /lib/dune
parentda309e886e31e6d55e46339647d56769d417114e (diff)
downloadSakura-2eab114a120c7818861c0640ecdc300cf7366e53.tar.gz
Sakura-2eab114a120c7818861c0640ecdc300cf7366e53.zip
Basic storage with C interop (#1)
* writer command design * dune build with shared core lib * port c lib project inside ocaml * os specific dynamic link * fix project name on flake * fix: cmake cxx version breaking merklecpp * finish write to disk and update maps func * add non atomic commit to transaction graph * merkle tree binding for generating root hash * disk module refactor --------- Co-authored-by: Renan Lopes <renans.l@icloud.com>
Diffstat (limited to '')
-rw-r--r--lib/dune56
1 files changed, 27 insertions, 29 deletions
diff --git a/lib/dune b/lib/dune
index bdde443..a5d0378 100644
--- a/lib/dune
+++ b/lib/dune
@@ -1,31 +1,29 @@
(library
(name relational_engine)
- (libraries ctypes ctypes-foreign)
- (modes native)
- (foreign_stubs
- (language cxx)
- (names merklecpp_stubs)
- (flags
- (:standard -lssl -lcrypto)
- (-L %{env:LIBRESSL_LIB_PATH=})
- (-I %{env:LIBRESSL_INCLUDE_PATH=})
- (-I %{env:MERKLECPP_INCLUDE_PATH=})))
-
- ;; (ctypes
- ;; (external_library_name merklecpp_stub)
- ;; (headers (include "/Users/mmagueta/CLionProjects/merklecpp_stub/library.h"))
- ;; (build_flags_resolver
- ;; (vendored
- ;; (c_flags
- ;; -L %{env:MERKLECPP_LIB_PATH=})))
- ;; (type_description
- ;; (instance Types)
- ;; (functor Type_description))
- ;; (function_description
- ;; (concurrency unlocked)
- ;; (instance Functions)
- ;; (functor Function_description))
- ;; (generated_types Types_generated)
- ;; (generated_entry_point C))
-
- )
+ (libraries ctypes ctypes-foreign data-encoding)
+ ;; (c_library_flags -lssl -lcrypto -L %{env:LIBRESSL_LIB_PATH=})
+ ;; (foreign_stubs
+ ;; (language cxx)
+ ;; (names merklecpp_stubs)
+ ;; (flags
+ ;; (:standard -lssl -lcrypto)
+ ;; (-L %{env:LIBRESSL_LIB_PATH=})
+ ;; (-I %{env:LIBRESSL_INCLUDE_PATH=})
+ ;; (-I %{env:MERKLECPP_INCLUDE_PATH=})))
+
+ (ctypes
+ (external_library_name relational_engine)
+ (headers (include %{env:LIBRELATIONAL_ENGINE_INCLUDE_PATH=}/library.h))
+ (build_flags_resolver
+ (vendored
+ (c_flags
+ -L %{env:LIBRELATIONAL_ENGINE_LIB_PATH=})))
+ (type_description
+ (instance Types)
+ (functor core_types))
+ (function_description
+ (concurrency unlocked)
+ (instance Functions)
+ (functor core_functions))
+ (generated_types Types_generated)
+ (generated_entry_point C)))