Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #12 from centaurean/dev
Browse files Browse the repository at this point in the history
Dev merge
  • Loading branch information
Guillaume Voirin committed Jun 26, 2015
2 parents f82ce50 + 1137414 commit 2c27b43
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 9 deletions.
11 changes: 11 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 1.0.6.{build}

install:
- cd build
- ps: wget https://github.com/premake/premake-core/releases/download/v5.0.0.alpha4/premake-5.0.0.alpha4-windows.zip -OutFile premake5.zip
- 7z x premake5.zip
- del premake5.zip

build_script:
- premake5 vs2013
- msbuild SpookyHash.sln
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "test/src/cputime"]
path = test/src/cputime
[submodule "test/libs/cputime"]
path = test/libs/cputime
url = https://github.com/centaurean/cputime.git
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: c

script:
- cd build
- wget https://github.com/premake/premake-core/releases/download/v5.0.0.alpha4/premake-5.0.0.alpha4-linux.tar.gz
- tar zxvf premake-5.0.0.alpha4-linux.tar.gz
- ./premake5 gmake
- make clean
- make
- ./spookyhash-test
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Switched to premake 5
* Updated API definitions
* Added version information access in the API
* Added build statuses

1.0.5
-----
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ The function allows a 128-bit seed. It's named SpookyHash because it was release

Centaurean's release of SpookyHash integrates support for big endian platforms and multithreading via context variables.

Branch | Linux | Windows
--- | --- | ---
Master | [![Build Status](https://travis-ci.org/centaurean/spookyhash.svg?branch=master)](https://travis-ci.org/centaurean/spookyhash) | [![Build status](https://ci.appveyor.com/api/projects/status/d3w4v68a5ws27g73/branch/master?svg=true)](https://ci.appveyor.com/project/gpnuma/spookyhash/branch/master)
Dev | [![Build Status](https://travis-ci.org/centaurean/spookyhash.svg?branch=dev)](https://travis-ci.org/centaurean/spookyhash) | [![Build status](https://ci.appveyor.com/api/projects/status/d3w4v68a5ws27g73/branch/dev?svg=true)](https://ci.appveyor.com/project/gpnuma/spookyhash/branch/dev)

Why use SpookyHash ?
--------------------

Expand All @@ -32,7 +37,7 @@ To build a static and dynamic library, as well as a test binary of SpookyHash on

or alternatively, on windows for example :

premake5.exe vs2010
premake5.exe vs2013

Quick start
-----------
Expand Down
9 changes: 6 additions & 3 deletions build/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ os.execute("git submodule update --init --recursive")

solution "SpookyHash"
configurations { "Release" }
buildoptions { "-std=c99" }
flags { "OptimizeSpeed", "NoFramePointer", "LinkTimeOptimization" }

project "spookyhash-static"
Expand All @@ -68,7 +69,9 @@ solution "SpookyHash"
kind "ConsoleApp"
language "C"
files {
"../test/src/**.h",
"../test/src/**.c"
"../test/libs/**.h",
"../test/libs/**.c",
"../test/src/*.h",
"../test/src/*.c"
}
links { "spookyhash-static" }
links { "spookyhash-static" }
1 change: 1 addition & 0 deletions test/libs/cputime
Submodule cputime added at d435d9
1 change: 0 additions & 1 deletion test/src/cputime
Submodule cputime deleted from 9a3b64
3 changes: 1 addition & 2 deletions test/src/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
*/

#include <string.h>
#include "../../src/spookyhash_api.h"
#include "../../src/spookyhash.h"
#include "cputime/src/cputime.h"
#include "../libs/cputime/src/cputime_api.h"

uint64_t m_a;
uint64_t m_b;
Expand Down

0 comments on commit 2c27b43

Please sign in to comment.