Remove use of preinst-swig script
Complete the prototype removal in ca1431. The script prevents SWIGTOOL=gdb from working as gdb can't be used to debug a shell script, it requires a binary. Add support for SWIGTOOL in all the examples. SWIG_LIB_DIR and SWIGEXE must now instead be set by all Makefiles. See issue #473.
This commit is contained in:
parent
4ef3507e8b
commit
8e2bc595c6
249 changed files with 1518 additions and 817 deletions
|
|
@ -1,5 +1,6 @@
|
|||
TOP = ../..
|
||||
SWIG = $(TOP)/../preinst-swig
|
||||
SWIGEXE = $(TOP)/../swig
|
||||
SWIG_LIB_DIR = $(TOP)/../$(TOP_BUILDDIR_TO_TOP_SRCDIR)Lib
|
||||
CXXSRCS = extend.cxx
|
||||
GOSRCS = ceo.go
|
||||
TARGET = example
|
||||
|
|
@ -15,10 +16,11 @@ build:
|
|||
fi
|
||||
@# Note: example.go gets generated by SWIG
|
||||
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' CXXSRCS='$(CXXSRCS)' GOSRCS='example.go $(GOSRCS)' \
|
||||
SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' go_cpp
|
||||
SWIG_LIB_DIR='$(SWIG_LIB_DIR)' SWIGEXE='$(SWIGEXE)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' go_cpp
|
||||
|
||||
clean:
|
||||
if [ -n '$(SRCDIR)' ]; then \
|
||||
rm $(GOSRCS) || true; \
|
||||
rm -f $(GOSRCS); \
|
||||
fi
|
||||
$(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' INTERFACE='$(INTERFACE)' go_clean
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue