bindings/cxx/enums.timestamp
$(AM_V_GEN)cd $(srcdir)/bindings/cxx && BUILDDIR=$(abs_builddir)/bindings/cxx/ doxygen Doxyfile 2>/dev/null
+# Macro definitions to be used by the SWIG parser.
+swig_defs = -Dnoexcept= -Dprivate=protected -DG_GNUC_BEGIN_IGNORE_DEPRECATIONS= -DG_GNUC_END_IGNORE_DEPRECATIONS=
+
if BINDINGS_PYTHON
PDIR = bindings/python
$(nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS) \
@ORDER@ bindings/cxx/libsigrokcxx.la
$(AM_V_at)$(setup_py) clean --all 2>/dev/null
- $(AM_V_GEN)$(setup_py) build_ext --swig "$(SWIG)" build_py
+ $(AM_V_GEN)$(setup_py) build_ext --swig "$(SWIG)" --swig-opts '$(swig_defs)' build_py
$(AM_V_at): >$@
python-install:
$(bindings_cxx_libsigrokcxx_la_include_HEADERS) \
$(nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS)
-$(AM_V_at)rm -f $(java_cleanfiles)
- $(AM_V_GEN)$(SWIG) -c++ -Dnoexcept= -Dprivate=protected \
+ $(AM_V_GEN)$(SWIG) -c++ $(swig_defs) \
-java -package org.sigrok.core.classes \
-Ibindings -I$(JCLS) $(local_includes) -I$(srcdir) $(JNI_CPPFLAGS) \
-outdir $(JCLS) -o $@ $(srcdir)/$(JSWG)
return _build_py.check_package(self, package, vpath(package_dir))
class build_ext(_build_ext):
+ def finalize_options(self):
+ _build_ext.finalize_options(self)
+ self.swig_opts = ['-c++', '-threads', '-Isigrok/core', '-I..',
+ '-I' + srcdir_parent] + ['-I%s' % i for i in includes] + self.swig_opts
def spawn (self, cmd):
cmd[1:-1] = [arg if arg.startswith('-') else unvpath(arg) for arg in
cmd[1:-1]]
ext_modules = [
Extension('sigrok.core._classes',
sources = [vpath('sigrok/core/classes.i')],
- swig_opts = ['-c++', '-threads', '-Dnoexcept=', '-Dprivate=protected',
- '-Isigrok/core', '-I..', '-I' + srcdir_parent] +
- ['-I%s' % i for i in includes],
extra_compile_args = ['-Wno-uninitialized'],
include_dirs = includes,
library_dirs = libdirs,