Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement buildsystem #4

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 1 addition & 33 deletions .gitignore
@@ -1,33 +1 @@
# Object files
*.o
*.ko
*.obj
*.elf

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex
jwHash

# Debug files
*.dSYM/
/build/
Empty file modified LICENSE 100755 → 100644
Empty file.
19 changes: 0 additions & 19 deletions Makefile

This file was deleted.

15 changes: 14 additions & 1 deletion README.md 100755 → 100644
Expand Up @@ -25,7 +25,20 @@ Performance seems decent. Saving 1,000,000 int values by string key is done in a

## Building and Using

Type make in the folder to build the code. Type ./test to run the demo.
Building code:
```
$ mkdir build/
$ meson build/ --buildtype=release
$ ninja-build build/
```
Run demo:
```
$ ./build/jwHash-test
```
or
```
$ ninja-build test build/
```

## References

Expand Down
Empty file modified jwHash.c 100755 → 100644
Empty file.
Empty file modified jwHash.h 100755 → 100644
Empty file.
6 changes: 6 additions & 0 deletions meson.build
@@ -0,0 +1,6 @@
project('jwHash', 'c')
add_global_arguments('-DHASHTHREADED', language: 'c')
add_global_arguments('-DHASHTEST', language: 'c')
jwhash_lib = shared_library('jwHash', 'jwHash.c', link_args: '-lpthread')
t = executable('jwHash-test', 'test.c', link_with: jwhash_lib, link_args: '-lpthread')
test('jwHash test', t)