Skip to content

Commit eb15db4

Browse files
committedMar 5, 2015
Refactoring everything into src/ for a little sanity
1 parent 6be8c7c commit eb15db4

35 files changed

+14
-21
lines changed
 

‎CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if (WIN32 AND WANT_CRYPTOPP)
88
add_subdirectory(cryptopp)
99
endif()
1010

11-
add_subdirectory(libethash)
12-
add_subdirectory(libethash-cl EXCLUDE_FROM_ALL)
13-
add_subdirectory(benchmark EXCLUDE_FROM_ALL)
11+
add_subdirectory(src/libethash)
12+
add_subdirectory(src/libethash-cl EXCLUDE_FROM_ALL)
13+
add_subdirectory(src/benchmark EXCLUDE_FROM_ALL)
1414
add_subdirectory(test/c EXCLUDE_FROM_ALL)

‎ethash.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ package ethash
22

33
/*
44
#cgo CFLAGS: -std=gnu99 -Wall
5-
#include "libethash/ethash.h"
6-
#include "libethash/util.c"
7-
#include "libethash/internal.c"
8-
#include "libethash/sha3.c"
5+
#include "src/libethash/ethash.h"
6+
#include "src/libethash/util.c"
7+
#include "src/libethash/internal.c"
8+
#include "src/libethash/sha3.c"
99
*/
1010
import "C"
1111

‎libethash-js/LICENSE ‎js/LICENSE

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎libethash-js/test.js ‎js/test.js

File renamed without changes.

‎libethash-js/util.js ‎js/util.js

File renamed without changes.

‎setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
pyethash_core = Extension('pyethash.core',
55
sources = [
6-
'python-src/core.c',
7-
'libethash/util.c',
8-
'libethash/internal.c',
9-
'libethash/sha3.c'
6+
'src/python/core.c',
7+
'src/libethash/util.c',
8+
'src/libethash/internal.c',
9+
'src/libethash/sha3.c'
1010
])
1111

1212
setup (name = 'pyethash',
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎test/c/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ENDIF()
44

55
IF( Boost_FOUND )
66
include_directories( ${Boost_INCLUDE_DIR} )
7-
include_directories(../..)
7+
include_directories(../../src)
88

99
link_directories ( ${Boost_LIBRARY_DIRS} )
1010
file(GLOB HEADERS "*.h")

‎test/go/test.sh

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ while [ -h "$SOURCE" ]; do
1111
done
1212
TEST_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
1313

14-
echo "################# Testing Go ##################"
1514
rm -rf $TEST_DIR/go-build
1615
# TODO: go-ethereum needs to integrate ethash for this to work
1716
#export GOPATH=$TEST_DIR/../go-build

‎test/test.sh

+2-8
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ TEST_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
1313

1414
echo -e "\n################# Testing JS ##################"
1515
# TODO: Use mocha and real testing tools instead of rolling our own
16-
cd $TEST_DIR/../libethash-js
16+
cd $TEST_DIR/../js
1717
node test.js
1818

1919
echo -e "\n################# Testing Python ##################"
@@ -23,10 +23,4 @@ echo -e "\n################# Testing C ##################"
2323
$TEST_DIR/c/test.sh
2424

2525
#echo "################# Testing Go ##################"
26-
#( rm -rf $TEST_DIR/../go-build
27-
# export GOPATH=$TEST_DIR/../go-build
28-
# export PATH=$PATH:$GOPATH/bin
29-
# cd $TEST_DIR/go
30-
# go get -dv
31-
# go get -v github.com/ethereum/ethash
32-
# go test )
26+
#$TEST_DIR/go/test.sh

0 commit comments

Comments
 (0)
Please sign in to comment.