mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
Ensure JNI header file is generated for a clean build. (#18)
This commit is contained in:
parent
b6fd5ede58
commit
2cfadd8b95
@ -1,5 +1,5 @@
|
|||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: standalone/build/standalone_sgx_verify jni/build/libuntrusted_corda_sgx.so
|
all: standalone_sgx_verify libuntrusted_corda_sgx.so
|
||||||
|
|
||||||
standalone/build:
|
standalone/build:
|
||||||
mkdir -p standalone/build
|
mkdir -p standalone/build
|
||||||
@ -7,14 +7,14 @@ standalone/build:
|
|||||||
standalone/build/Makefile: | standalone/build
|
standalone/build/Makefile: | standalone/build
|
||||||
cd standalone/build/ && cmake ..
|
cd standalone/build/ && cmake ..
|
||||||
|
|
||||||
.PHONY: standalone/build/standalone_sgx_verify
|
.PHONY: standalone_sgx_verify
|
||||||
standalone/build/standalone_sgx_verify: standalone/build/Makefile ../../verify-enclave/build/libs/corda-enclavelet.jar
|
standalone_sgx_verify: standalone/build/Makefile ../../verify-enclave/build/libs/corda-enclavelet.jar
|
||||||
$(MAKE) -C $(<D) VERBOSE=1
|
$(MAKE) -C $(<D) VERBOSE=1
|
||||||
|
|
||||||
jni/build:
|
jni/build:
|
||||||
mkdir -p jni/build
|
mkdir -p jni/build
|
||||||
|
|
||||||
jni/build/Makefile: | jni/build
|
jni/build/Makefile: ../../verify-enclave/build/native/include/jni_sgx_api.h | jni/build
|
||||||
cd jni/build/ && cmake ..
|
cd jni/build/ && cmake ..
|
||||||
|
|
||||||
../../verify-enclave/build/libs/corda-enclavelet.jar: $(shell find ../../*/src -name "*.kt")
|
../../verify-enclave/build/libs/corda-enclavelet.jar: $(shell find ../../*/src -name "*.kt")
|
||||||
@ -23,8 +23,8 @@ jni/build/Makefile: | jni/build
|
|||||||
../../verify-enclave/build/native/include/jni_sgx_api.h: ../../verify-enclave/src/main/kotlin/com/r3/enclaves/txverify/NativeSgxApi.kt
|
../../verify-enclave/build/native/include/jni_sgx_api.h: ../../verify-enclave/src/main/kotlin/com/r3/enclaves/txverify/NativeSgxApi.kt
|
||||||
cd ../.. && ./gradlew verify-enclave:generateNativeSgxHeaders
|
cd ../.. && ./gradlew verify-enclave:generateNativeSgxHeaders
|
||||||
|
|
||||||
.PHONY: jni/build/libuntrusted_corda_sgx.so
|
.PHONY: libuntrusted_corda_sgx.so
|
||||||
jni/build/libuntrusted_corda_sgx.so: jni/build/Makefile ../../verify-enclave/build/native/include/jni_sgx_api.h ../../verify-enclave/build/libs/corda-enclavelet.jar
|
libuntrusted_corda_sgx.so: jni/build/Makefile ../../verify-enclave/build/native/include/jni_sgx_api.h ../../verify-enclave/build/libs/corda-enclavelet.jar
|
||||||
$(MAKE) -C $(<D) VERBOSE=1
|
$(MAKE) -C $(<D) VERBOSE=1
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
Loading…
Reference in New Issue
Block a user