Skip to content

Commit

Permalink
[submodule][test] refs #4 Update submodule and delete test, integrate…
Browse files Browse the repository at this point in the history
… swig Tests run: 77, Failures: 0, Errors: 0, Skipped: 0
  • Loading branch information
Maykel Arias Torres committed Nov 17, 2018
1 parent 02f733d commit f5c1312
Show file tree
Hide file tree
Showing 37 changed files with 2,094 additions and 830 deletions.
12 changes: 5 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ SKYCOIN_DIR = gopath/src/github.com/skycoin/skycoin
SKYBUILD_DIR = $(SKYCOIN_DIR)/build
BUILDLIBC_DIR = $(SKYBUILD_DIR)/libskycoin
LIBC_DIR = $(SKYCOIN_DIR)/lib/cgo
LIBSWIG_DIR = $(SKYCOIN_DIR)/lib/swig
LIBSWIG_DIR = swig
BUILD_DIR = build
BIN_DIR = $(SKYCOIN_DIR)/bin
INCLUDE_DIR = $(SKYCOIN_DIR)/include
FULL_PATH_LIB = $(PWD)/$(BUILDLIBC_DIR)
LD_LIBRARY_PATH=.:/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/usr/lib:

LIB_FILES = $(shell find $(SKYCOIN_DIR)/lib/cgo -type f -name "*.go")
SRC_FILES = $(shell find $(SKYCOIN_DIR)/src -type f -name "*.go")
Expand All @@ -25,14 +24,13 @@ $(BUILDLIBC_DIR)/libskycoin.a: $(LIB_FILES) $(SRC_FILES) $(HEADER_FILES)
GOPATH="$(GOPATH_DIR)" make -C $(SKYCOIN_DIR) build-libc-static
ls $(BUILDLIBC_DIR)
rm -f swig/include/libskycoin.h
mkdir -p swig
mkdir -p swig/include
grep -v _Complex $(INCLUDE_DIR)/libskycoin.h > swig/include/libskycoin.h

## Build libskycoin C client library
build-libc: configure $(BUILDLIBC_DIR)/libskycoin.a

build-swig: build-libc
build-swig:
#Generate structs.i from skytypes.gen.h
rm -f $(LIBSWIG_DIR)/structs.i
cp $(INCLUDE_DIR)/skytypes.gen.h $(LIBSWIG_DIR)/structs.i
Expand All @@ -44,9 +42,9 @@ build-swig: build-libc
sed -i 's/#/%/g' $(LIBSWIG_DIR)/structs.i ;\
fi \
}
# rm -rfv src/main/java/skycoin/libjava/
# mkdir -p src/main/java/skycoin/libjava/
rm -f skycoin_wrap.c
rm -f swig/include/swig.h
rm -f skycoinnet_wrap.c
cp -v gopath/src/github.com/skycoin/skycoin/include/swig.h swig/include/
swig -DUSE_ASSERT_EXCEPTIONS -java -v -package skycoin.libjava -Iswig/include -I$(INCLUDE_DIR) -outdir src/main/java/skycoin/libjava -o skycoin_wrap.c $(LIBSWIG_DIR)/skycoin.i

build-libjava: build-swig
Expand Down
2 changes: 1 addition & 1 deletion gopath/src/github.com/skycoin/skycoin
Submodule skycoin updated 162 files
Binary file modified libskycoin.so
Binary file not shown.
Loading

0 comments on commit f5c1312

Please sign in to comment.