Javascript example Makefiles more consistent with other languages
This commit is contained in:
parent
a5e91f26a1
commit
dbf80cbaa5
14 changed files with 35 additions and 63 deletions
|
|
@ -1,3 +1,3 @@
|
|||
SRCS = example.cxx
|
||||
|
||||
include ../js_example.mk
|
||||
include ../example.mk
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
SRCS =
|
||||
|
||||
include ../js_example.mk
|
||||
include ../example.mk
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
SRCS = example.cxx
|
||||
|
||||
include ../js_example.mk
|
||||
include ../example.mk
|
||||
|
|
|
|||
27
Examples/javascript/example.mk
Normal file
27
Examples/javascript/example.mk
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# Note: as a convention an example must be in a child directory of this.
|
||||
# These paths are relative to such an example directory
|
||||
|
||||
ifneq (, $(ENGINE))
|
||||
JSENGINE=$(ENGINE)
|
||||
else
|
||||
JSENGINE=node
|
||||
endif
|
||||
|
||||
EXAMPLES_TOP=../..
|
||||
SWIG_TOP=../../..
|
||||
SWIG = $(SWIG_TOP)/preinst-swig
|
||||
TARGET = example
|
||||
INTERFACE = example.i
|
||||
SWIGOPT=-$(JSENGINE)
|
||||
|
||||
check: build
|
||||
$(MAKE) -f $(EXAMPLES_TOP)/Makefile JSENGINE='$(JSENGINE)' TARGET='$(TARGET)' javascript_run
|
||||
|
||||
build:
|
||||
$(MAKE) -f $(EXAMPLES_TOP)/Makefile CXXSRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' javascript_wrapper_cpp
|
||||
$(MAKE) -f $(EXAMPLES_TOP)/Makefile CXXSRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' JSENGINE='$(JSENGINE)' javascript_build_cpp
|
||||
|
||||
clean:
|
||||
$(MAKE) -f $(EXAMPLES_TOP)/Makefile javascript_clean
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
SRCS = example.cxx
|
||||
|
||||
include ../js_example.mk
|
||||
include ../example.mk
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
SRCS = example.cxx
|
||||
|
||||
include ../js_example.mk
|
||||
include ../example.mk
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
SRCS = example.cxx
|
||||
|
||||
include ../js_example.mk
|
||||
include ../example.mk
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
SRCS =
|
||||
|
||||
include ../js_example.mk
|
||||
include ../example.mk
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
SRCS =
|
||||
|
||||
include ../js_example.mk
|
||||
include ../example.mk
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
SRCS = example.cxx
|
||||
|
||||
include ../js_example.mk
|
||||
include ../example.mk
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
SRCS = example.cxx
|
||||
|
||||
include ../js_example.mk
|
||||
include ../example.mk
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
SRCS = example.cxx
|
||||
|
||||
include ../js_example.mk
|
||||
include ../example.mk
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
SRCS =
|
||||
|
||||
include ../js_example.mk
|
||||
include ../example.mk
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
SRCS = example.cxx
|
||||
|
||||
include ../js_example.mk
|
||||
include ../example.mk
|
||||
|
|
|
|||
Loading…
Reference in a new issue