mirror of
https://github.com/corda/corda.git
synced 2025-01-17 02:09:50 +00:00
use compile-object to build jni-objects
This commit is contained in:
parent
e403a625d1
commit
aa081089ce
5
makefile
5
makefile
@ -129,7 +129,6 @@ java-classes = $(foreach x,$(1),$(patsubst $(2)/%.java,$(3)/%.class,$(x)))
|
||||
|
||||
jni-sources = $(shell find $(classpath) -name '*.cpp')
|
||||
jni-objects = $(call cpp-objects,$(jni-sources),$(classpath),$(native-build))
|
||||
jni-cflags = $(cflags)
|
||||
|
||||
generated-code = \
|
||||
$(native-build)/type-enums.cpp \
|
||||
@ -313,9 +312,7 @@ $(generator-objects): $(native-build)/%.o: $(src)/%.cpp
|
||||
-c $(<) -o $(@)
|
||||
|
||||
$(jni-objects): $(native-build)/%.o: $(classpath)/%.cpp
|
||||
@echo "compiling $(@)"
|
||||
@mkdir -p $(dir $(@))
|
||||
$(cxx) $(jni-cflags) -c $(<) -o $(@)
|
||||
$(compile-object)
|
||||
|
||||
$(libvm): $(vm-objects) $(jni-objects)
|
||||
@echo "creating $(@)"
|
||||
|
Loading…
Reference in New Issue
Block a user