Skip to content

Commit

Permalink
Make: Remove robin-map dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Aug 14, 2023
1 parent 0307e6e commit 9f16628
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
1 change: 0 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ let package = Package(
cxxSettings: [
.headerSearchPath("../include/"),
.headerSearchPath("../fp16/include/"),
.headerSearchPath("../robin-map/include/"),
.headerSearchPath("../simismd/include/")
]
),
Expand Down
28 changes: 16 additions & 12 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,36 @@
"targets": [
{
"target_name": "usearch",
"sources": [
"javascript/lib.cpp"
],
"sources": ["javascript/lib.cpp"],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
"include",
"fp16/include",
"robin-map/include",
"simsimd/include"
"simsimd/include",
],
"dependencies": ["<!(node -p \"require('node-addon-api').gyp\")"],
"cflags": [
"-fexceptions",
"-Wno-unknown-pragmas",
"-Wno-maybe-uninitialized",
],
"dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")"
"cflags_cc": [
"-fexceptions",
"-Wno-unknown-pragmas",
"-Wno-maybe-uninitialized",
"-std=c++11",
],
"cflags": ["-fexceptions", "-Wno-unknown-pragmas", "-Wno-maybe-uninitialized"],
"cflags_cc": ["-fexceptions", "-Wno-unknown-pragmas", "-Wno-maybe-uninitialized", "-std=c++11"],
"xcode_settings": {
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"CLANG_CXX_LIBRARY": "libc++",
"MACOSX_DEPLOYMENT_TARGET": "10.15"
"MACOSX_DEPLOYMENT_TARGET": "10.15",
},
"msvs_settings": {
"VCCLCompilerTool": {
"ExceptionHandling": 1,
"AdditionalOptions": ["-std:c++11"]
"AdditionalOptions": ["-std:c++11"],
}
}
},
}
]
}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ model {
include "**/*.cpp"
}
exportedHeaders {
srcDirs "include", "fp16/include", "robin-map/include", "simsimd/include", "${Jvm.current().javaHome}/include"
srcDirs "include", "fp16/include", "simsimd/include", "${Jvm.current().javaHome}/include"
}
}
}
Expand Down
1 change: 0 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ fn main() {
.include("include")
.include("rust")
.include("fp16/include")
.include("robin-map/include")
.include("simsimd/include")
.compile("usearch");

Expand Down
3 changes: 1 addition & 2 deletions docs/compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ g++ -shared -o USearchJNI.dll cloud_unum_usearch_Index.o -Wl,--add-stdcall-alias
g++ -std=c++11 -c -fPIC \
-I../../../../include \
-I../../../../fp16/include \
-I../../../../robin-map/include \
-I../../../../simsimd/include \
-I${JAVA_HOME}/include -I${JAVA_HOME}/include/darwin cloud_unum_usearch_Index.cpp -o cloud_unum_usearch_Index.o
g++ -dynamiclib -o libusearch.dylib cloud_unum_usearch_Index.o -lc
Expand Down Expand Up @@ -168,7 +167,7 @@ cmake -B ./build_release -DUSEARCH_BUILD_CLIB=1 && make -C ./build_release -j
Linux:

```sh
g++ -std=c++11 -shared -fPIC c/lib.cpp -I ./include/ -I ./fp16/include/ -I ./robin-map/include/ -o libusearch_c.so
g++ -std=c++11 -shared -fPIC c/lib.cpp -I ./include/ -I ./fp16/include/ -o libusearch_c.so
```


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"Topic :: Database :: Database Engines/Servers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
include_dirs=["include", "fp16/include", "robin-map/include", "simsimd/include"],
include_dirs=["include", "fp16/include", "simsimd/include"],
ext_modules=ext_modules,
install_requires=[
"numpy",
Expand Down
1 change: 0 additions & 1 deletion wasm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ set(USEARCH_PUNNED_INCLUDE_DIRS
"${CMAKE_CURRENT_SOURCE_DIR}/../c"
"${CMAKE_CURRENT_SOURCE_DIR}/../include"
"${CMAKE_CURRENT_SOURCE_DIR}/../fp16/include"
"${CMAKE_CURRENT_SOURCE_DIR}/../robin-map/include"
)

add_executable(index lib.cpp)
Expand Down

0 comments on commit 9f16628

Please sign in to comment.