$(library_include_HEADERS) $(nodist_library_include_HEADERS)
$(AM_V_at)make java-clean
$(AM_V_GEN)swig -c++ -java -package org.sigrok.core.classes \
- $(local_includes) -I$(JCLS) -I. -I$(srcdir) -outdir $(JCLS) -o $@ $<
+ -Ibindings -I$(JCLS) $(local_includes) -I$(srcdir) -outdir $(JCLS) -o $@ $<
$(JJAR): $(JCXX)
$(AM_V_GEN)$(JAVAC) -sourcepath $(JDIR) -d $(JDIR) $(JSRC)
includes = ['../../include', '../cxx/include']
includes += [os.path.join(srcdir, path) for path in includes]
-includes += ['../..', '../../include/libsigrok', '../cxx/include/libsigrokcxx']
+includes += ['../..']
includes += [i[2:] for i in sr_includes]
includes += [np.get_include(), ]
libdirs = ['../../.libs', '../cxx/.libs'] + [l[2:] for l in sr_lib_dirs]
ext_modules = [
Extension('sigrok.core._classes',
sources = [vpath('sigrok/core/classes.i')],
- swig_opts = ['-c++', '-threads', '-Isigrok/core'] +
+ swig_opts = ['-c++', '-threads', '-Isigrok/core',
+ '-I..', '-I%s' % os.path.join(srcdir, '..')] +
['-I%s' % i for i in includes],
extra_compile_args = ['-std=c++11', '-Wno-uninitialized'],
include_dirs = includes,