Skip to content

Commit

Permalink
add build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
recp committed Jun 24, 2017
1 parent 9602080 commit c33f2ea
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 7 deletions.
36 changes: 32 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# libds - Data Structures

Why? I've written a rbtree and used in two project (I duplicated it).
I need to maintain same source in two project,
Why? I've written a rbtree and used in two project (I duplicated it).
I need to maintain same source in two project,
I mean that if I fix a bug in one project then I need to copy-paste to another, it is hard to maintain.
Currently I need another data structures e.g. hashtable, octree...
Currently I need another data structures e.g. hashtable, octree...
now it is better to separate common data structures as external library

I think `ds` namespace is very good choice, we can use it like this:
Expand All @@ -19,8 +19,36 @@ I think `ds` namespace is very good choice, we can use it like this:
- [ ] octree
- [ ] quadtree

# Build
# Build
todo

# License
MIT. check the LICENSE file

## Build

### Unix (Autotools)

```text
$ sh ./build-deps.sh # run only once (dependencies)
$
$ sh autogen.sh
$ ./configure
$ make
$ make install
$ [sudo] make install
```

### Windows (MSBuild)
Windows related build files, project files are located in `win` folder,
make sure you are inside `libds/win` folder.
Code Analysis are enabled, it may take awhile to build

```Powershell
$ cd win
$ .\build.bat
```
if `msbuild` won't work (because of multi version VS) then try to build with `devenv`:
```Powershell
$ devenv libds.sln /Build Release
```
3 changes: 0 additions & 3 deletions win/libds.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\include\ds\rs.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\include\ds\rb.h">
<Filter>include\ds</Filter>
</ClInclude>
Expand Down

0 comments on commit c33f2ea

Please sign in to comment.