diff options
Diffstat (limited to 'modules/call_scilab')
160 files changed, 14303 insertions, 0 deletions
diff --git a/modules/call_scilab/.libs/libscicall_scilab-algo.a b/modules/call_scilab/.libs/libscicall_scilab-algo.a Binary files differnew file mode 100755 index 000000000..dca4f7d95 --- /dev/null +++ b/modules/call_scilab/.libs/libscicall_scilab-algo.a diff --git a/modules/call_scilab/.libs/libscicall_scilab-algo.la b/modules/call_scilab/.libs/libscicall_scilab-algo.la new file mode 120000 index 000000000..986786c34 --- /dev/null +++ b/modules/call_scilab/.libs/libscicall_scilab-algo.la @@ -0,0 +1 @@ +../libscicall_scilab-algo.la
\ No newline at end of file diff --git a/modules/call_scilab/.libs/libscicall_scilab.la b/modules/call_scilab/.libs/libscicall_scilab.la new file mode 120000 index 000000000..2a9f73499 --- /dev/null +++ b/modules/call_scilab/.libs/libscicall_scilab.la @@ -0,0 +1 @@ +../libscicall_scilab.la
\ No newline at end of file diff --git a/modules/call_scilab/.libs/libscicall_scilab.lai b/modules/call_scilab/.libs/libscicall_scilab.lai new file mode 100755 index 000000000..2191432ed --- /dev/null +++ b/modules/call_scilab/.libs/libscicall_scilab.lai @@ -0,0 +1,41 @@ +# libscicall_scilab.la - a libtool library file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='libscicall_scilab.so.5' + +# Names of this library. +library_names='libscicall_scilab.so.5.5.2 libscicall_scilab.so.5 libscicall_scilab.so' + +# The name of the static archive. +old_library='' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='' + +# Libraries that this one depends upon. +dependency_libs=' -lpthread -ldl -lcurses -lm' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for libscicall_scilab. +current=10 +age=5 +revision=2 + +# Is this an already installed library? +installed=yes + +# Should we warn about portability when linking against -modules? +shouldnotlink=no + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='/usr/local/lib/scilab' diff --git a/modules/call_scilab/.libs/libscicall_scilab.so b/modules/call_scilab/.libs/libscicall_scilab.so new file mode 120000 index 000000000..02b1bfef1 --- /dev/null +++ b/modules/call_scilab/.libs/libscicall_scilab.so @@ -0,0 +1 @@ +libscicall_scilab.so.5.5.2
\ No newline at end of file diff --git a/modules/call_scilab/.libs/libscicall_scilab.so.5 b/modules/call_scilab/.libs/libscicall_scilab.so.5 new file mode 120000 index 000000000..02b1bfef1 --- /dev/null +++ b/modules/call_scilab/.libs/libscicall_scilab.so.5 @@ -0,0 +1 @@ +libscicall_scilab.so.5.5.2
\ No newline at end of file diff --git a/modules/call_scilab/.libs/libscicall_scilab.so.5.5.2 b/modules/call_scilab/.libs/libscicall_scilab.so.5.5.2 Binary files differnew file mode 100755 index 000000000..411e8ead6 --- /dev/null +++ b/modules/call_scilab/.libs/libscicall_scilab.so.5.5.2 diff --git a/modules/call_scilab/Makefile b/modules/call_scilab/Makefile new file mode 100755 index 000000000..729fadc98 --- /dev/null +++ b/modules/call_scilab/Makefile @@ -0,0 +1,1407 @@ +# Makefile.in generated by automake 1.14.1 from Makefile.am. +# modules/call_scilab/Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2009 - DIGITEO - Sylvestre Ledru +# +# This file is distributed under the same license as the Scilab package. + +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr> +# Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr> +# +# This file must be used under the terms of the CeCILL. +# This source file is licensed as described in the file COPYING, which +# you should have received as part of this distribution. The terms +# are also available at +# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +# + +########## +### Makefile included stuff +### Target, variable, suffixes which are supposed to be useful in every makefile.am +########## + + + + +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/scilab +pkgincludedir = $(includedir)/scilab +pkglibdir = $(libdir)/scilab +pkglibexecdir = $(libexecdir)/scilab +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +DIST_COMMON = $(top_srcdir)/Makefile.incl.am $(srcdir)/Makefile.in \ + $(srcdir)/Makefile.am $(top_srcdir)/config/mkinstalldirs \ + $(top_srcdir)/config/depcomp \ + $(libscicall_scilab_la_include_HEADERS) +am__append_1 = java +subdir = modules/call_scilab +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/backtrace.m4 \ + $(top_srcdir)/m4/compiler.m4 $(top_srcdir)/m4/curl.m4 \ + $(top_srcdir)/m4/docbook.m4 $(top_srcdir)/m4/doxygen.m4 \ + $(top_srcdir)/m4/fftw.m4 $(top_srcdir)/m4/fortran.m4 \ + $(top_srcdir)/m4/giws.m4 $(top_srcdir)/m4/hdf5.m4 \ + $(top_srcdir)/m4/intel_compiler.m4 \ + $(top_srcdir)/m4/java-thirdparty.m4 $(top_srcdir)/m4/java.m4 \ + $(top_srcdir)/m4/largefile.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/libsmath.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/macosx.m4 \ + $(top_srcdir)/m4/mpi.m4 $(top_srcdir)/m4/ocaml.m4 \ + $(top_srcdir)/m4/pcre.m4 $(top_srcdir)/m4/pkg.m4 \ + $(top_srcdir)/m4/relocatable.m4 $(top_srcdir)/m4/swig.m4 \ + $(top_srcdir)/m4/symlinks.m4 $(top_srcdir)/m4/tcltk.m4 \ + $(top_srcdir)/m4/umfpack.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/modules/core/includes/machine.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(pkglibdir)" \ + "$(DESTDIR)$(libscicall_scilab_la_etcdir)" \ + "$(DESTDIR)$(libscicall_scilab_la_rootdir)" \ + "$(DESTDIR)$(libscicall_scilab_la_sci_gatewaydir)" \ + "$(DESTDIR)$(libscicall_scilab_la_includedir)" +LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkglib_LTLIBRARIES) +libscicall_scilab_algo_la_LIBADD = +am__dirstamp = $(am__leading_dot)dirstamp +am__objects_1 = src/c/libscicall_scilab_algo_la-call_scilab.lo \ + src/c/libscicall_scilab_algo_la-fromc.lo \ + src/c/libscicall_scilab_algo_la-fromjava.lo \ + src/c/libscicall_scilab_algo_la-SendScilabJobs.lo +am_libscicall_scilab_algo_la_OBJECTS = $(am__objects_1) +libscicall_scilab_algo_la_OBJECTS = \ + $(am_libscicall_scilab_algo_la_OBJECTS) +AM_V_lt = $(am__v_lt_$(V)) +am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) +am__v_lt_0 = --silent +am__v_lt_1 = +libscicall_scilab_la_DEPENDENCIES = libscicall_scilab-algo.la +am__objects_2 = sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo \ + sci_gateway/c/libscicall_scilab_la-sci_fromc.lo \ + sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo +am_libscicall_scilab_la_OBJECTS = $(am__objects_2) +libscicall_scilab_la_OBJECTS = $(am_libscicall_scilab_la_OBJECTS) +AM_V_P = $(am__v_P_$(V)) +am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY)) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_$(V)) +am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_$(V)) +am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I. -I$(top_builddir)/modules/core/includes +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_$(V)) +am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_$(V)) +am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +SOURCES = $(libscicall_scilab_algo_la_SOURCES) \ + $(libscicall_scilab_la_SOURCES) +DIST_SOURCES = $(libscicall_scilab_algo_la_SOURCES) \ + $(libscicall_scilab_la_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DATA = $(libscicall_scilab_la_etc_DATA) \ + $(libscicall_scilab_la_root_DATA) \ + $(libscicall_scilab_la_sci_gateway_DATA) +HEADERS = $(libscicall_scilab_la_include_HEADERS) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing aclocal-1.14 +ALL_LINGUAS = en_US fr_FR zh_CN zh_TW ru_RU ca_ES de_DE es_ES pt_BR ja_JP it_IT uk_UA pl_PL cs_CZ +ALL_LINGUAS_DOC = en_US fr_FR pt_BR ja_JP ru_RU +AMTAR = $${TAR-tar} +AM_DEFAULT_VERBOSITY = 1 +ANT = /usr/bin/ant +ANTLR = /usr/share/java/antlr.jar +AR = ar +ARPACK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -larpack +ASM3 = /usr/share/java/asm3-3.3.2.jar +AUTOCONF = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing autoconf +AUTOHEADER = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing autoheader +AUTOMAKE = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing automake-1.14 +AVALON_FRAMEWORK = /home/shashank/scilab-master_5.5.2/thirdparty/avalon-framework.jar +AWK = mawk +BATIK = /home/shashank/scilab-master_5.5.2/thirdparty/batik-all-1.7.jar +BLAS_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lblas +CC = gcc +CCACHE = +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CHECKSTYLE = +COBERTURA = /usr/share/java/cobertura.jar +COMMONS_BEANUTILS = +COMMONS_IO = /home/shashank/scilab-master_5.5.2/thirdparty/commons-io.jar +COMMONS_LOGGING = /home/shashank/scilab-master_5.5.2/thirdparty/commons-logging.jar +CPP = gcc -E +CPPFLAGS = +CURL_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +CURL_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/curl-config +CURL_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lcurl -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -lssl -lcrypto -lrt -lz +CURL_VERSION = libcurl 7.19.7 +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DEFS = -DHAVE_CONFIG_H +DEMOTOOLS_ENABLE = yes +DEPDIR = .deps +DLLTOOL = false +DOCBOOK_ROOT = /home/shashank/scilab-master_5.5.2/thirdparty/docbook/ +DOXYGEN_BIN = +DSYMUTIL = +DUMPBIN = +ECHO_C = +ECHO_N = -n +ECHO_T = +ECJ = /home/shashank/scilab-master_5.5.2/thirdparty/ecj.jar +EGREP = /bin/grep -E +EXEEXT = +F77 = gfortran +FFLAGS = -g -O2 +FFTW3_LIB = -L/home/shashank/scilab-master_5.5.2/usr/lib -lfftw3 +FFTW_ENABLE = yes +FGREP = /bin/grep -F +FLEXDOCK = /home/shashank/scilab-master_5.5.2/thirdparty/flexdock-1.2.4.jar +FLIBS = -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. -lpthread -ldl -lcurses -lgfortran -lm -lquadmath +FOP = /home/shashank/scilab-master_5.5.2/thirdparty/fop.jar +FREEHEP_GRAPHICS2D = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphics2d.jar +FREEHEP_GRAPHICSIO = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphicsio.jar +FREEHEP_GRAPHICSIO_EMF = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphicsio-emf.jar +FREEHEP_IO = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-io.jar +FREEHEP_UTIL = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-util.jar +GENHTML = +GETTEXT_MACRO_VERSION = 0.19 +GIWS_BIN = +GLUEGEN2_RT = /home/shashank/scilab-master_5.5.2/thirdparty/gluegen2-rt.jar +GMSGFMT = /usr/bin/msgfmt +GMSGFMT_015 = /usr/bin/msgfmt +GRAPHICS_ENABLE = yes +GREP = /bin/grep +GUI_ENABLE = yes +HDF5_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +HDF5_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lhdf5 -lhdf5_hl +HELP_ENABLE = yes +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +INTLLIBS = +INTL_MACOSX_LIBS = +JAR = /usr/lib/jvm/java-8-openjdk-amd64/bin/jar +JAVA = /usr/lib/jvm/java-8-openjdk-amd64/bin/java +JAVAC = /usr/lib/jvm/java-8-openjdk-amd64/bin/javac +JAVAC_DEBUG = off +JAVADOC = /usr/lib/jvm/java-8-openjdk-amd64/bin/javadoc +JAVAH = /usr/lib/jvm/java-8-openjdk-amd64/bin/javah +JAVASCI_ENABLE = yes +JAVA_ENABLE = yes +JAVA_G = /usr/lib/jvm/java-8-openjdk-amd64/bin/java +JAVA_HOME = /usr/lib/jvm/java-8-openjdk-amd64 +JAVA_JNI_INCLUDE = -I/usr/lib/jvm/java-8-openjdk-amd64/include -I/usr/lib/jvm/java-8-openjdk-amd64/include/linux +JAVA_JNI_LIBS = -L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64 -ljava -lverify -L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server -ljvm +JDB = /usr/lib/jvm/java-8-openjdk-amd64/bin/jdb +JEUCLID_CORE = /home/shashank/scilab-master_5.5.2/thirdparty/jeuclid-core.jar +JGRAPHX = /home/shashank/scilab-master_5.5.2/thirdparty/jgraphx.jar +JHALL = /home/shashank/scilab-master_5.5.2/thirdparty/jhall.jar +JLATEXMATH = /home/shashank/scilab-master_5.5.2/thirdparty/jlatexmath-1.0.3.jar +JLATEXMATH_FOP = /home/shashank/scilab-master_5.5.2/thirdparty/jlatexmath-fop-1.0.3.jar +JOGL2 = /home/shashank/scilab-master_5.5.2/thirdparty/jogl2.jar +JROSETTA_API = /home/shashank/scilab-master_5.5.2/thirdparty/jrosetta-API.jar +JROSETTA_ENGINE = /home/shashank/scilab-master_5.5.2/thirdparty/jrosetta-engine.jar +JUNIT4 = /usr/share/java/junit4.jar +LAPACK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -llapack +LCOV = +LD = /usr/bin/ld -m elf_x86_64 +LDFLAGS = -Wl,--no-as-needed +LIBICONV = -liconv +LIBINTL = +LIBM = -lm +LIBOBJS = +LIBS = -lpthread -ldl -lcurses -lm +LIBTOOL = $(SHELL) $(top_builddir)/libtool +LIPO = +LN_S = ln -s +LOGGING_LEVEL = SEVERE +LOOKS = /home/shashank/scilab-master_5.5.2/thirdparty/looks-2.1.1.jar +LTLIBICONV = -liconv +LTLIBINTL = +LTLIBOBJS = +MAINT = # +MAKEINFO = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing makeinfo +MANIFEST_TOOL = : +MATIO_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +MATIO_ENABLE = yes +MATIO_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lm -lz -lmatio -lhdf5 +MKDIR_P = /bin/mkdir -p +MPI_ENABLE = no +MSGCAT = /usr/bin/msgcat +MSGFMT = /usr/bin/msgfmt +MSGFMT_015 = /usr/bin/msgfmt +MSGMERGE = /usr/bin/msgmerge +NM = nm +NMEDIT = +OBJDUMP = objdump +OBJEXT = o +OCAMLC = ocamlc +OCAMLDEP = ocamldep +OCAMLLEX = ocamllex +OCAMLOPT = ocamlopt +OCAMLYACC = ocamlyacc +OPENMPI_CC = +OPENMPI_CFLAGS = +OPENMPI_CXX = +OPENMPI_CXXFLAGS = +OPENMPI_LIBS = +OPENMP_CFLAGS = -fopenmp +OPENMP_CXXFLAGS = -fopenmp +OPENMP_ENABLE = yes +OPENMP_LIBS = -lgomp -lstdc++ +OTOOL = +OTOOL64 = +PACKAGE = scilab +PACKAGE_BUGREPORT = http://bugzilla.scilab.org/ +PACKAGE_NAME = Scilab +PACKAGE_STRING = Scilab 5 +PACKAGE_TARNAME = scilab +PACKAGE_URL = +PACKAGE_VERSION = 5 +PATH_SEPARATOR = : +PCRE_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +PCRE_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/pcre-config +PCRE_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lpcreposix -lpcre +PCRE_VERSION = 8.35 +PKG_CONFIG = /usr/bin/pkg-config +POSUB = po +POW_LIB = +PYTHON = +RANLIB = ranlib +RELOCATABLE = no +RT_LIB = -lrt +SAXON = /home/shashank/scilab-master_5.5.2/thirdparty/saxon9he.jar +SCILAB_BINARY_VERSION = 5.5.2 +SCILAB_LIBRARY_VERSION = 5:5:2 +SCILAB_VERSION_MAINTENANCE = 2 +SCILAB_VERSION_MAJOR = 5 +SCILAB_VERSION_MINOR = 5 +SCIRENDERER = ${modules.dir}/scirenderer/${build.jar.dir}/scirenderer.jar +SCIRENDERER_CP = $SCILAB/modules/scirenderer/jar/scirenderer.jar +SCI_CFLAGS = -D_LARGEFILE64_SOURCE -DNDEBUG -m64 -fno-stack-protector +SCI_CXXFLAGS = -DNDEBUG -fno-stack-protector +SCI_FFLAGS = -DNDEBUG -m64 -fPIC +SCI_LDFLAGS = +SED = /bin/sed +SET_MAKE = +SET_RELOCATABLE = +SHELL = /bin/bash +SKINLF = /home/shashank/scilab-master_5.5.2/thirdparty/skinlf.jar +SPLINT = no +STRIP = strip +SWIG_BIN = +SWIG_JAVA = +SWIG_RUNTIME_LIBS_DIR = +SWIG_SCILAB = +TCLTK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -ltk8.5 -L/home/shashank/scilab-master_5.5.2/usr/lib -ltcl8.5 -ldl +TCL_INC_PATH = -I/home/shashank/scilab-master_5.5.2/usr/include +TK_INC_PATH = -I/home/shashank/scilab-master_5.5.2/usr/include +UMFPACK_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include +UMFPACK_ENABLE = yes +UMFPACK_LIB = -L/home/shashank/scilab-master_5.5.2/usr/lib -lumfpack -lamd +USE_NLS = yes +VERSION = 5 +WITH_OCAML = +WITH_TKSCI = yes +XCOS_ENABLE = yes +XGETTEXT = /usr/bin/xgettext +XGETTEXT_015 = /usr/bin/xgettext +XGETTEXT_EXTRA_OPTIONS = +XMKMF = +XMLGRAPHICS_COMMONS = /home/shashank/scilab-master_5.5.2/thirdparty/xmlgraphics-commons-1.4.jar +XML_APIS_EXT = /home/shashank/scilab-master_5.5.2/thirdparty/xml-apis-ext.jar +XML_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/xml2-config +XML_FLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include/libxml2 +XML_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lxml2 -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -lz -lm -ldl +XML_VERSION = 2.9.1 +X_CFLAGS = +X_EXTRA_LIBS = +X_LIBS = +X_PRE_LIBS = +abs_builddir = /home/shashank/scilab-master_5.5.2/modules/call_scilab +abs_srcdir = /home/shashank/scilab-master_5.5.2/modules/call_scilab +abs_top_builddir = /home/shashank/scilab-master_5.5.2 +abs_top_srcdir = /home/shashank/scilab-master_5.5.2 +ac_ct_AR = ar +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_DUMPBIN = +ac_ct_F77 = gfortran +am__include = include +am__leading_dot = . +am__quote = +am__tar = $${TAR-tar} chof - "$$tardir" +am__untar = $${TAR-tar} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +cxx_present = yes +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE_TARNAME} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = ${SHELL} /home/shashank/scilab-master_5.5.2/config/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = $(MKDIR_P) +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_build_prefix = ../../ +top_builddir = ../.. +top_srcdir = ../.. + +### SOURCES ### +CALLSCILAB_C_SOURCES = src/c/call_scilab.c \ + src/c/fromc.c \ + src/c/fromjava.c \ + src/c/SendScilabJobs.c + +GATEWAY_C_SOURCES = sci_gateway/c/sci_fromjava.c \ + sci_gateway/c/sci_fromc.c \ + sci_gateway/c/gw_call_scilab.c + +libscicall_scilab_la_CPPFLAGS = -I$(srcdir)/includes/ \ + -I$(srcdir)/src/c/ \ + -I$(top_srcdir)/modules/localization/includes/ \ + -I$(top_srcdir)/modules/output_stream/includes/ \ + -I$(top_srcdir)/modules/action_binding/includes/ \ + -I$(top_srcdir)/modules/api_scilab/includes/ \ + -I$(top_srcdir)/modules/fileio/includes/ \ + -I$(top_srcdir)/modules/graphics/includes/ \ + -I$(top_srcdir)/modules/graphic_objects/includes/ \ + -I$(top_srcdir)/modules/core/src/c/ \ + $(AM_CPPFLAGS) + +pkglib_LTLIBRARIES = libscicall_scilab.la +noinst_LTLIBRARIES = libscicall_scilab-algo.la +libscicall_scilab_algo_la_SOURCES = $(CALLSCILAB_C_SOURCES) +libscicall_scilab_la_SOURCES = $(GATEWAY_C_SOURCES) +libscicall_scilab_algo_la_CPPFLAGS = $(libscicall_scilab_la_CPPFLAGS) + +# For the code check (splint) +CHECK_SRC = $(libscicall_scilab_la_SOURCES) +INCLUDE_FLAGS = $(libscicall_scilab_la_CPPFLAGS) +libscicall_scilab_la_LIBADD = libscicall_scilab-algo.la + +#### Target ###### +modulename = call_scilab + +#### call_scilab : Conf files #### +libscicall_scilab_la_rootdir = $(mydatadir) +libscicall_scilab_la_root_DATA = license.txt + +#### call_scilab : init scripts #### +libscicall_scilab_la_etcdir = $(mydatadir)/etc +libscicall_scilab_la_etc_DATA = etc/call_scilab.quit etc/call_scilab.start + +#### call_scilab : gateway declaration #### +libscicall_scilab_la_sci_gatewaydir = $(mydatadir)/sci_gateway +libscicall_scilab_la_sci_gateway_DATA = sci_gateway/call_scilab_gateway.xml + +#### call_scilab : include files #### +libscicall_scilab_la_includedir = $(pkgincludedir) +libscicall_scilab_la_include_HEADERS = includes/call_scilab.h + +# Where all the Scilab stuff is installed (macros, help, ...) +mydatadir = $(pkgdatadir)/modules/$(modulename) + +# Set AM_* SCI detected settings +AM_CPPFLAGS = $(SCI_CPPFLAGS) +AM_CFLAGS = $(SCI_CFLAGS) +AM_CXXFLAGS = $(SCI_CXXFLAGS) +# append includes to AM_FFLAGS to manage fortran includes +AM_FFLAGS = $(SCI_FFLAGS) -I$(top_srcdir)/modules/core/includes/ + +# Tag shared libraries with the Scilab version +AM_LDFLAGS = $(SCI_LDFLAGS) -version-number $(SCILAB_LIBRARY_VERSION) + +# splint options +SPLINT_OPTIONS = -weak -booltype BOOL + +########################### JAVA ###################################### +#### We are delegating java compilation to ant... Thanks to that +#### the procedure will be the same with Microsoft Windows (C) +#### and Linux/Unix +####################################################################### +TARGETS_ALL = $(am__append_1) + +################ MACROS ###################### +# Rule to build a macro +# NOT USED AT THE MOMENT +SUFFIXES = .sci + +########### INSTALL DOCUMENTATION ################### + +# Install documentation files into the right target +# We do not use the automake mechanism (libxxxx_la_help_fr_DATA) because +# automake needs the html files to be present which is not the case when +# we are building Scilab + +# Where it should be installed +pkgdocdir = $(mydatadir) + +# What is the mask of the help source +DOCMASKXML = *.xml + +# What is the mask of the MathML sources +DOCMASKMML = *.mml + +########### INSTALL DATA ################### +# Install macros, help & demos +# Where it should be installed +pkgmacrosdir = $(mydatadir) +# Which directory we process +MACRODIRS = macros/ +# Mask of the Scilab sources macros +MACROMASK = *.sci +# Mask of the Scilab executable sources macros +MACROBUILDMASK = *.sce +# Mask of the Scilab compiled macros +MACROBINMASK = *.bin +# List of the standard directory for tests +TESTS_DIR = tests/benchmarks tests/nonreg_tests tests/unit_tests tests/java +# Where the demos should be installed +pkgdemosdir = $(mydatadir) +# List of the standard directory for demos +DEMOS_DIR = demos +# List of the standard directory for examples +EXAMPLES_DIR = examples +# Where to export JAVA archives (.jar) +JARDIR = jar/ +# JAR files mask +JARMASK = *.jar +# Chapter file +HELP_CHAPTERDIR = help/ +HELP_CHAPTERFILE = addchapter.sce +HELP_CHAPTERLANG = en_US fr_FR pt_BR +all: all-am + +.SUFFIXES: +.SUFFIXES: .sci .bin .c .lo .o .obj +$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(top_srcdir)/Makefile.incl.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign modules/call_scilab/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign modules/call_scilab/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; +$(top_srcdir)/Makefile.incl.am: + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: # $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): # $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +clean-noinstLTLIBRARIES: + -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) + @list='$(noinst_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } + +install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkglibdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \ + } + +uninstall-pkglibLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \ + done + +clean-pkglibLTLIBRARIES: + -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) + @list='$(pkglib_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } +src/c/$(am__dirstamp): + @$(MKDIR_P) src/c + @: > src/c/$(am__dirstamp) +src/c/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) src/c/$(DEPDIR) + @: > src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscicall_scilab_algo_la-call_scilab.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscicall_scilab_algo_la-fromc.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscicall_scilab_algo_la-fromjava.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscicall_scilab_algo_la-SendScilabJobs.lo: \ + src/c/$(am__dirstamp) src/c/$(DEPDIR)/$(am__dirstamp) + +libscicall_scilab-algo.la: $(libscicall_scilab_algo_la_OBJECTS) $(libscicall_scilab_algo_la_DEPENDENCIES) $(EXTRA_libscicall_scilab_algo_la_DEPENDENCIES) + $(AM_V_CCLD)$(LINK) $(libscicall_scilab_algo_la_OBJECTS) $(libscicall_scilab_algo_la_LIBADD) $(LIBS) +sci_gateway/c/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/c + @: > sci_gateway/c/$(am__dirstamp) +sci_gateway/c/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/c/$(DEPDIR) + @: > sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscicall_scilab_la-sci_fromc.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) + +libscicall_scilab.la: $(libscicall_scilab_la_OBJECTS) $(libscicall_scilab_la_DEPENDENCIES) $(EXTRA_libscicall_scilab_la_DEPENDENCIES) + $(AM_V_CCLD)$(LINK) -rpath $(pkglibdir) $(libscicall_scilab_la_OBJECTS) $(libscicall_scilab_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + -rm -f sci_gateway/c/*.$(OBJEXT) + -rm -f sci_gateway/c/*.lo + -rm -f src/c/*.$(OBJEXT) + -rm -f src/c/*.lo + +distclean-compile: + -rm -f *.tab.c + +include sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-gw_call_scilab.Plo +include sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-sci_fromc.Plo +include sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-sci_fromjava.Plo +include src/c/$(DEPDIR)/libscicall_scilab_algo_la-SendScilabJobs.Plo +include src/c/$(DEPDIR)/libscicall_scilab_algo_la-call_scilab.Plo +include src/c/$(DEPDIR)/libscicall_scilab_algo_la-fromc.Plo +include src/c/$(DEPDIR)/libscicall_scilab_algo_la-fromjava.Plo + +.c.o: + $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ + $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ + $(am__mv) $$depbase.Tpo $$depbase.Po +# $(AM_V_CC)source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(COMPILE) -c -o $@ $< + +.c.obj: + $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ + $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ + $(am__mv) $$depbase.Tpo $$depbase.Po +# $(AM_V_CC)source='$<' object='$@' libtool=no \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: + $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ + $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ + $(am__mv) $$depbase.Tpo $$depbase.Plo +# $(AM_V_CC)source='$<' object='$@' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LTCOMPILE) -c -o $@ $< + +src/c/libscicall_scilab_algo_la-call_scilab.lo: src/c/call_scilab.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscicall_scilab_algo_la-call_scilab.lo -MD -MP -MF src/c/$(DEPDIR)/libscicall_scilab_algo_la-call_scilab.Tpo -c -o src/c/libscicall_scilab_algo_la-call_scilab.lo `test -f 'src/c/call_scilab.c' || echo '$(srcdir)/'`src/c/call_scilab.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscicall_scilab_algo_la-call_scilab.Tpo src/c/$(DEPDIR)/libscicall_scilab_algo_la-call_scilab.Plo +# $(AM_V_CC)source='src/c/call_scilab.c' object='src/c/libscicall_scilab_algo_la-call_scilab.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscicall_scilab_algo_la-call_scilab.lo `test -f 'src/c/call_scilab.c' || echo '$(srcdir)/'`src/c/call_scilab.c + +src/c/libscicall_scilab_algo_la-fromc.lo: src/c/fromc.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscicall_scilab_algo_la-fromc.lo -MD -MP -MF src/c/$(DEPDIR)/libscicall_scilab_algo_la-fromc.Tpo -c -o src/c/libscicall_scilab_algo_la-fromc.lo `test -f 'src/c/fromc.c' || echo '$(srcdir)/'`src/c/fromc.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscicall_scilab_algo_la-fromc.Tpo src/c/$(DEPDIR)/libscicall_scilab_algo_la-fromc.Plo +# $(AM_V_CC)source='src/c/fromc.c' object='src/c/libscicall_scilab_algo_la-fromc.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscicall_scilab_algo_la-fromc.lo `test -f 'src/c/fromc.c' || echo '$(srcdir)/'`src/c/fromc.c + +src/c/libscicall_scilab_algo_la-fromjava.lo: src/c/fromjava.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscicall_scilab_algo_la-fromjava.lo -MD -MP -MF src/c/$(DEPDIR)/libscicall_scilab_algo_la-fromjava.Tpo -c -o src/c/libscicall_scilab_algo_la-fromjava.lo `test -f 'src/c/fromjava.c' || echo '$(srcdir)/'`src/c/fromjava.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscicall_scilab_algo_la-fromjava.Tpo src/c/$(DEPDIR)/libscicall_scilab_algo_la-fromjava.Plo +# $(AM_V_CC)source='src/c/fromjava.c' object='src/c/libscicall_scilab_algo_la-fromjava.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscicall_scilab_algo_la-fromjava.lo `test -f 'src/c/fromjava.c' || echo '$(srcdir)/'`src/c/fromjava.c + +src/c/libscicall_scilab_algo_la-SendScilabJobs.lo: src/c/SendScilabJobs.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscicall_scilab_algo_la-SendScilabJobs.lo -MD -MP -MF src/c/$(DEPDIR)/libscicall_scilab_algo_la-SendScilabJobs.Tpo -c -o src/c/libscicall_scilab_algo_la-SendScilabJobs.lo `test -f 'src/c/SendScilabJobs.c' || echo '$(srcdir)/'`src/c/SendScilabJobs.c + $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscicall_scilab_algo_la-SendScilabJobs.Tpo src/c/$(DEPDIR)/libscicall_scilab_algo_la-SendScilabJobs.Plo +# $(AM_V_CC)source='src/c/SendScilabJobs.c' object='src/c/libscicall_scilab_algo_la-SendScilabJobs.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscicall_scilab_algo_la-SendScilabJobs.lo `test -f 'src/c/SendScilabJobs.c' || echo '$(srcdir)/'`src/c/SendScilabJobs.c + +sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo: sci_gateway/c/sci_fromjava.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-sci_fromjava.Tpo -c -o sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo `test -f 'sci_gateway/c/sci_fromjava.c' || echo '$(srcdir)/'`sci_gateway/c/sci_fromjava.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-sci_fromjava.Tpo sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-sci_fromjava.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_fromjava.c' object='sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo `test -f 'sci_gateway/c/sci_fromjava.c' || echo '$(srcdir)/'`sci_gateway/c/sci_fromjava.c + +sci_gateway/c/libscicall_scilab_la-sci_fromc.lo: sci_gateway/c/sci_fromc.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscicall_scilab_la-sci_fromc.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-sci_fromc.Tpo -c -o sci_gateway/c/libscicall_scilab_la-sci_fromc.lo `test -f 'sci_gateway/c/sci_fromc.c' || echo '$(srcdir)/'`sci_gateway/c/sci_fromc.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-sci_fromc.Tpo sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-sci_fromc.Plo +# $(AM_V_CC)source='sci_gateway/c/sci_fromc.c' object='sci_gateway/c/libscicall_scilab_la-sci_fromc.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscicall_scilab_la-sci_fromc.lo `test -f 'sci_gateway/c/sci_fromc.c' || echo '$(srcdir)/'`sci_gateway/c/sci_fromc.c + +sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo: sci_gateway/c/gw_call_scilab.c + $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-gw_call_scilab.Tpo -c -o sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo `test -f 'sci_gateway/c/gw_call_scilab.c' || echo '$(srcdir)/'`sci_gateway/c/gw_call_scilab.c + $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-gw_call_scilab.Tpo sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-gw_call_scilab.Plo +# $(AM_V_CC)source='sci_gateway/c/gw_call_scilab.c' object='sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo' libtool=yes \ +# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ +# $(AM_V_CC_no)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo `test -f 'sci_gateway/c/gw_call_scilab.c' || echo '$(srcdir)/'`sci_gateway/c/gw_call_scilab.c + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + -rm -rf sci_gateway/c/.libs sci_gateway/c/_libs + -rm -rf src/c/.libs src/c/_libs +install-libscicall_scilab_la_etcDATA: $(libscicall_scilab_la_etc_DATA) + @$(NORMAL_INSTALL) + @list='$(libscicall_scilab_la_etc_DATA)'; test -n "$(libscicall_scilab_la_etcdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscicall_scilab_la_etcdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscicall_scilab_la_etcdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscicall_scilab_la_etcdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscicall_scilab_la_etcdir)" || exit $$?; \ + done + +uninstall-libscicall_scilab_la_etcDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscicall_scilab_la_etc_DATA)'; test -n "$(libscicall_scilab_la_etcdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscicall_scilab_la_etcdir)'; $(am__uninstall_files_from_dir) +install-libscicall_scilab_la_rootDATA: $(libscicall_scilab_la_root_DATA) + @$(NORMAL_INSTALL) + @list='$(libscicall_scilab_la_root_DATA)'; test -n "$(libscicall_scilab_la_rootdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscicall_scilab_la_rootdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscicall_scilab_la_rootdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscicall_scilab_la_rootdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscicall_scilab_la_rootdir)" || exit $$?; \ + done + +uninstall-libscicall_scilab_la_rootDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscicall_scilab_la_root_DATA)'; test -n "$(libscicall_scilab_la_rootdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscicall_scilab_la_rootdir)'; $(am__uninstall_files_from_dir) +install-libscicall_scilab_la_sci_gatewayDATA: $(libscicall_scilab_la_sci_gateway_DATA) + @$(NORMAL_INSTALL) + @list='$(libscicall_scilab_la_sci_gateway_DATA)'; test -n "$(libscicall_scilab_la_sci_gatewaydir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscicall_scilab_la_sci_gatewaydir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscicall_scilab_la_sci_gatewaydir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscicall_scilab_la_sci_gatewaydir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscicall_scilab_la_sci_gatewaydir)" || exit $$?; \ + done + +uninstall-libscicall_scilab_la_sci_gatewayDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscicall_scilab_la_sci_gateway_DATA)'; test -n "$(libscicall_scilab_la_sci_gatewaydir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscicall_scilab_la_sci_gatewaydir)'; $(am__uninstall_files_from_dir) +install-libscicall_scilab_la_includeHEADERS: $(libscicall_scilab_la_include_HEADERS) + @$(NORMAL_INSTALL) + @list='$(libscicall_scilab_la_include_HEADERS)'; test -n "$(libscicall_scilab_la_includedir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscicall_scilab_la_includedir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscicall_scilab_la_includedir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libscicall_scilab_la_includedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(libscicall_scilab_la_includedir)" || exit $$?; \ + done + +uninstall-libscicall_scilab_la_includeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(libscicall_scilab_la_include_HEADERS)'; test -n "$(libscicall_scilab_la_includedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscicall_scilab_la_includedir)'; $(am__uninstall_files_from_dir) + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) check-local +check: check-am +all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) all-local +installdirs: + for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(libscicall_scilab_la_etcdir)" "$(DESTDIR)$(libscicall_scilab_la_rootdir)" "$(DESTDIR)$(libscicall_scilab_la_sci_gatewaydir)" "$(DESTDIR)$(libscicall_scilab_la_includedir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -rm -f sci_gateway/c/$(DEPDIR)/$(am__dirstamp) + -rm -f sci_gateway/c/$(am__dirstamp) + -rm -f src/c/$(DEPDIR)/$(am__dirstamp) + -rm -f src/c/$(am__dirstamp) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-local \ + clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES mostlyclean-am + +distclean: distclean-am + -rm -rf sci_gateway/c/$(DEPDIR) src/c/$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-local distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-data-local \ + install-libscicall_scilab_la_etcDATA \ + install-libscicall_scilab_la_includeHEADERS \ + install-libscicall_scilab_la_rootDATA \ + install-libscicall_scilab_la_sci_gatewayDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-pkglibLTLIBRARIES + +install-html: install-html-am + +install-html-am: install-html-local + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf sci_gateway/c/$(DEPDIR) src/c/$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-libscicall_scilab_la_etcDATA \ + uninstall-libscicall_scilab_la_includeHEADERS \ + uninstall-libscicall_scilab_la_rootDATA \ + uninstall-libscicall_scilab_la_sci_gatewayDATA \ + uninstall-pkglibLTLIBRARIES + +.MAKE: check-am install-am install-strip + +.PHONY: CTAGS GTAGS TAGS all all-am all-local check check-am \ + check-local clean clean-generic clean-libtool clean-local \ + clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES cscopelist-am \ + ctags ctags-am distclean distclean-compile distclean-generic \ + distclean-libtool distclean-local distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-data-local install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-html-local install-info \ + install-info-am install-libscicall_scilab_la_etcDATA \ + install-libscicall_scilab_la_includeHEADERS \ + install-libscicall_scilab_la_rootDATA \ + install-libscicall_scilab_la_sci_gatewayDATA install-man \ + install-pdf install-pdf-am install-pkglibLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags tags-am uninstall uninstall-am \ + uninstall-libscicall_scilab_la_etcDATA \ + uninstall-libscicall_scilab_la_includeHEADERS \ + uninstall-libscicall_scilab_la_rootDATA \ + uninstall-libscicall_scilab_la_sci_gatewayDATA \ + uninstall-pkglibLTLIBRARIES + + +# This target enables tests for Scilab +check-local: $(top_builddir)/scilab-bin test + if test -d $(mydatadir)/tests; then \ + @COMMAND="try test_run('$(modulename)');catch exit(-1);end;exit(0)"; export LANG=C; $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \ + fi +check-code: + if test -f build.xml; then \ + $(ANT) checkstyle; \ + fi + if test -x "$(SPLINT)"; then \ + $(SPLINT) $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC); \ + fi +java: +# Some configurations needs to export JAVA_HOME in the current env + @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \ + if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ + if test -f build.xml -a $$USEANT -eq 1; then \ + $(ANT); \ + fi + +clean-java: +# Some configurations needs to export JAVA_HOME in the current env + @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \ + if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ + if test -f build.xml -a $$USEANT -eq 1; then \ + $(ANT) clean; \ + fi; + +# If the user request for the SWIG generation of the wrappers Java => C/C++ +# We call the target swig-build on the variable SWIG_WRAPPERS + +#swig: $(SWIG_WRAPPERS) +# @SWIG_PACKAGENAME=org.scilab.modules.$(modulename); \ +# SWIG_OUTDIR=src/java/org/scilab/modules/$(modulename)/; \ +# if test -n "$(SWIG_WRAPPERS)"; then \ +# for file in $(SWIG_WRAPPERS) ; do \ +# echo "Swig process of $$file (Java) ..."; \ +# $(SWIG_BIN) $(SWIG_JAVA) -package $$SWIG_PACKAGENAME -outdir $$SWIG_OUTDIR $$file; \ +# done; \ +# fi + +#swig-scilab: $(SWIG_SCILAB_WRAPPERS) +# @SWIG_OUTDIR=src/swig/; \ +# if test -n "$(SWIG_SCILAB_WRAPPERS)"; then \ +# for file in $(SWIG_SCILAB_WRAPPERS) ; do \ +# echo "Swig process of $$file (Scilab) ..."; \ +# $(SWIG_BIN) $(SWIG_SCILAB) -outdir $$SWIG_OUTDIR $$file; \ +# done; \ +# fi + +# If the user request for the SWIG generation of the wrappers Java => C/C++ +# We call the target swig-build on the variable SWIG_WRAPPERS + +#giws: $(GIWS_WRAPPERS) +# @GIWS_OUTPUTDIR=src/jni/; \ +# MANDATORY_OPTIONS="--throws-exception-on-error --description-file"; \ +# if test -n "$(GIWS_WRAPPERS)"; then \ +# for file in $(GIWS_WRAPPERS) ; do \ +# echo "GIWS process of $$file ..."; \ +# if test -z "$(GIWS_OPTIONS)"; then \ +# $(GIWS_BIN) --disable-return-size-array --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \ +# else \ +# echo "Custom GIWS call with '$$GIWS_OPTIONS'"; \ +# $(GIWS_BIN) $$GIWS_OPTIONS --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \ +# fi \ +# done; \ +# fi + +#giws-exception: +# @GIWS_OUTPUTDIR=src/jni/;\ +# echo "GIWS: Generation of exception class ..."; \ +# $(GIWS_BIN) --generate-exception-class --output-dir $$GIWS_OUTPUTDIR + +macros: + -@( if test ! -x $(top_builddir)/scilab-bin; then \ + echo "Error : Cannot build $< : Scilab has not been built"; \ + else \ + $(top_builddir)/bin/scilab -ns -nwni -e "exec('macros/buildmacros.sce');quit;";\ + fi) + +# Removes the macros +clean-macros: +# Removes macros (*.bin generated from .sci) + @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \ + echo "rm -f $(builddir)/$$dir/$(MACROBINMASK)"; \ + rm -f $(builddir)/$$dir/$(MACROBINMASK); \ + done + +test: +# More tests could be added here + @if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ + if test -f build.xml -a $$USEANT -eq 1; then \ + $(ANT) test; \ + fi + +all-local: $(TARGETS_ALL) + +.sci.bin: + -@( if test ! -x $(top_builddir)/scilab-bin; then \ + echo "Error : Cannot build $< : Scilab has not been build"; \ + else \ + echo "Creating $@"; \ + $(top_builddir)/bin/scilab -ns -nwni -e "exec('$(abs_srcdir)/$<');save('$(abs_srcdir)/$@');exit;"; \ + fi ) + +install-html-local: + +install-data-local-local: +# Mainly for javasci + @if test -d $(srcdir)/javadoc; then \ + cp -R $(srcdir)/javadoc $(DESTDIR)/$(mydatadir)/; \ + fi +# If the user wants the help sources to be installed + @echo "-------- Install of XML sources of help files --------"; \ + for lang in $(ALL_LINGUAS); do \ + if test -d $(srcdir)/help/$$lang; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/$$lang && \ + if ls -lLd $(srcdir)/help/$$lang/$(DOCMASKXML) >/dev/null 2>&1; then \ + for file in $(srcdir)/help/$$lang/$(DOCMASKXML) ; do \ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/$$lang" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/$$lang ; \ + done ; \ + fi; \ + fi; \ + done; \ + @echo "-------- Install of MathML sources --------"; \ + if test -d $(srcdir)/help/mml/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/mml/ && \ + if ls -lLd $(srcdir)/help/mml/$(DOCMASKMML) >/dev/null 2>&1; then \ + for file in $(srcdir)/help/mml/$(DOCMASKMML) ; do \ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/mml" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/mml ; \ + done ; \ + fi; \ + fi +install-data-local: +# Install the tests + @echo "-------- Install tests (if any) --------"; \ + for dir in $(TESTS_DIR) $(TESTS_DIREXT) ; do \ + if test -d $(srcdir)/$$dir/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \ + for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \ + if test -d "$(srcdir)/$$dir/$$file"; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir/$$file; \ + $(mkinstalldirs) "$(DESTDIR)$(pkgmacrosdir)/$$dir/$$file"; \ + else \ + echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \ + $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \ + fi \ + done; \ + fi; \ + done +# Install the help chapter + @echo "-------- Install the help chapter (if any) --------"; \ + for lang in $(HELP_CHAPTERLANG); do \ + HELPFILE=$(srcdir)/$(HELP_CHAPTERDIR)$$lang/$(HELP_CHAPTERFILE); \ + if test -f $$HELPFILE; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \ + echo $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \ + $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \ + fi; \ + done +# Install the demos & examples + @echo "-------- Install demos & examples (if any) --------"; \ + for dir in $(DEMOS_DIR) $(DEMOS_DIREXT) $(EXAMPLES_DIR) $(EXAMPLES_DIREXT) ; do \ + if test -d $(srcdir)/$$dir/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \ + for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \ + if test -d "$(srcdir)/$$dir/$$file"; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir/$$file; \ + $(mkinstalldirs) "$(DESTDIR)$(pkgdocdir)/$$dir/$$file"; \ + else \ + echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \ + $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \ + fi \ + done; \ + fi; \ + done +# Install the macros + @echo "-------- Install macros (if any) --------"; \ + for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \ + $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \ + if test -d $(srcdir)/$$dir/; then \ + FILELIST="$(srcdir)/$$dir/$(MACROMASK) $(srcdir)/$$dir/$(MACROBINMASK) $(srcdir)/$$dir/$(MACROBUILDMASK) $(srcdir)/$$dir/names $(srcdir)/$$dir/lib";\ + if test -n "$(MACROSSPECIALEXT)"; then \ + specialExtDir=""; \ + for specialExt in $(MACROSSPECIALEXT); do \ + specialExtDir="$$specialExtDir $(srcdir)/$$dir/$$specialExt"; \ + done; \ + FILELIST="$$FILELIST $$specialExtDir"; \ + fi; \ + for file in `ls -1 $$FILELIST 2>/dev/null`; do \ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgmacrosdir)/$$dir" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgmacrosdir)/$$dir ; \ + done; \ + fi; \ + done +# Install java files (.jar) + @if ls -lLd $(srcdir)/$(JARDIR)$(JARMASK) >/dev/null 2>&1; then \ + echo "-------- Install jar files --------"; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(JARDIR); \ + for file in $(srcdir)/$(JARDIR)$(JARMASK); do\ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$(JARDIR)" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$(JARDIR) ; \ + done ; \ + fi + +########### CLEAN ################### +# Clean help (generated automatically by Scilab) +# It used to clean the macro (clean-macros) but this was causing +# make clean && make to fail Scilab startup +clean-local: clean-java +#clean-local: + +distclean-local: + rm -f $(builddir)/help/*/.last_successful_build_javaHelp $(builddir)/help/*/.list_* + +.PHONY: macros java swig giws + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/modules/call_scilab/Makefile.am b/modules/call_scilab/Makefile.am new file mode 100755 index 000000000..9d7b09e7b --- /dev/null +++ b/modules/call_scilab/Makefile.am @@ -0,0 +1,67 @@ +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2009 - DIGITEO - Sylvestre Ledru +# +# This file is distributed under the same license as the Scilab package. + + +### SOURCES ### +CALLSCILAB_C_SOURCES = src/c/call_scilab.c \ + src/c/fromc.c \ + src/c/fromjava.c \ + src/c/SendScilabJobs.c + +GATEWAY_C_SOURCES = sci_gateway/c/sci_fromjava.c \ + sci_gateway/c/sci_fromc.c \ + sci_gateway/c/gw_call_scilab.c + +libscicall_scilab_la_CPPFLAGS= -I$(srcdir)/includes/ \ + -I$(srcdir)/src/c/ \ + -I$(top_srcdir)/modules/localization/includes/ \ + -I$(top_srcdir)/modules/output_stream/includes/ \ + -I$(top_srcdir)/modules/action_binding/includes/ \ + -I$(top_srcdir)/modules/api_scilab/includes/ \ + -I$(top_srcdir)/modules/fileio/includes/ \ + -I$(top_srcdir)/modules/graphics/includes/ \ + -I$(top_srcdir)/modules/graphic_objects/includes/ \ + -I$(top_srcdir)/modules/core/src/c/ \ + $(AM_CPPFLAGS) + +pkglib_LTLIBRARIES = libscicall_scilab.la +noinst_LTLIBRARIES = libscicall_scilab-algo.la + + +libscicall_scilab_algo_la_SOURCES = $(CALLSCILAB_C_SOURCES) +libscicall_scilab_la_SOURCES = $(GATEWAY_C_SOURCES) +libscicall_scilab_algo_la_CPPFLAGS = $(libscicall_scilab_la_CPPFLAGS) + +# For the code check (splint) +CHECK_SRC= $(libscicall_scilab_la_SOURCES) +INCLUDE_FLAGS = $(libscicall_scilab_la_CPPFLAGS) + +libscicall_scilab_la_LIBADD = libscicall_scilab-algo.la + + + + +#### Target ###### +modulename=call_scilab + + +#### call_scilab : Conf files #### +libscicall_scilab_la_rootdir = $(mydatadir) +libscicall_scilab_la_root_DATA = license.txt + + +#### call_scilab : init scripts #### +libscicall_scilab_la_etcdir = $(mydatadir)/etc +libscicall_scilab_la_etc_DATA = etc/call_scilab.quit etc/call_scilab.start + +#### call_scilab : gateway declaration #### +libscicall_scilab_la_sci_gatewaydir = $(mydatadir)/sci_gateway +libscicall_scilab_la_sci_gateway_DATA = sci_gateway/call_scilab_gateway.xml + +#### call_scilab : include files #### +libscicall_scilab_la_includedir=$(pkgincludedir) +libscicall_scilab_la_include_HEADERS = includes/call_scilab.h + +include $(top_srcdir)/Makefile.incl.am diff --git a/modules/call_scilab/Makefile.in b/modules/call_scilab/Makefile.in new file mode 100755 index 000000000..e6dfd9c19 --- /dev/null +++ b/modules/call_scilab/Makefile.in @@ -0,0 +1,1407 @@ +# Makefile.in generated by automake 1.14.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2009 - DIGITEO - Sylvestre Ledru +# +# This file is distributed under the same license as the Scilab package. + +# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +# Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr> +# Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr> +# +# This file must be used under the terms of the CeCILL. +# This source file is licensed as described in the file COPYING, which +# you should have received as part of this distribution. The terms +# are also available at +# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +# + +########## +### Makefile included stuff +### Target, variable, suffixes which are supposed to be useful in every makefile.am +########## + + + +VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +DIST_COMMON = $(top_srcdir)/Makefile.incl.am $(srcdir)/Makefile.in \ + $(srcdir)/Makefile.am $(top_srcdir)/config/mkinstalldirs \ + $(top_srcdir)/config/depcomp \ + $(libscicall_scilab_la_include_HEADERS) +@NEED_JAVA_TRUE@am__append_1 = java +subdir = modules/call_scilab +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/backtrace.m4 \ + $(top_srcdir)/m4/compiler.m4 $(top_srcdir)/m4/curl.m4 \ + $(top_srcdir)/m4/docbook.m4 $(top_srcdir)/m4/doxygen.m4 \ + $(top_srcdir)/m4/fftw.m4 $(top_srcdir)/m4/fortran.m4 \ + $(top_srcdir)/m4/giws.m4 $(top_srcdir)/m4/hdf5.m4 \ + $(top_srcdir)/m4/intel_compiler.m4 \ + $(top_srcdir)/m4/java-thirdparty.m4 $(top_srcdir)/m4/java.m4 \ + $(top_srcdir)/m4/largefile.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/libsmath.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/ltoptions.m4 \ + $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ + $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/macosx.m4 \ + $(top_srcdir)/m4/mpi.m4 $(top_srcdir)/m4/ocaml.m4 \ + $(top_srcdir)/m4/pcre.m4 $(top_srcdir)/m4/pkg.m4 \ + $(top_srcdir)/m4/relocatable.m4 $(top_srcdir)/m4/swig.m4 \ + $(top_srcdir)/m4/symlinks.m4 $(top_srcdir)/m4/tcltk.m4 \ + $(top_srcdir)/m4/umfpack.m4 $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/modules/core/includes/machine.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__installdirs = "$(DESTDIR)$(pkglibdir)" \ + "$(DESTDIR)$(libscicall_scilab_la_etcdir)" \ + "$(DESTDIR)$(libscicall_scilab_la_rootdir)" \ + "$(DESTDIR)$(libscicall_scilab_la_sci_gatewaydir)" \ + "$(DESTDIR)$(libscicall_scilab_la_includedir)" +LTLIBRARIES = $(noinst_LTLIBRARIES) $(pkglib_LTLIBRARIES) +libscicall_scilab_algo_la_LIBADD = +am__dirstamp = $(am__leading_dot)dirstamp +am__objects_1 = src/c/libscicall_scilab_algo_la-call_scilab.lo \ + src/c/libscicall_scilab_algo_la-fromc.lo \ + src/c/libscicall_scilab_algo_la-fromjava.lo \ + src/c/libscicall_scilab_algo_la-SendScilabJobs.lo +am_libscicall_scilab_algo_la_OBJECTS = $(am__objects_1) +libscicall_scilab_algo_la_OBJECTS = \ + $(am_libscicall_scilab_algo_la_OBJECTS) +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +libscicall_scilab_la_DEPENDENCIES = libscicall_scilab-algo.la +am__objects_2 = sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo \ + sci_gateway/c/libscicall_scilab_la-sci_fromc.lo \ + sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo +am_libscicall_scilab_la_OBJECTS = $(am__objects_2) +libscicall_scilab_la_OBJECTS = $(am_libscicall_scilab_la_OBJECTS) +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/modules/core/includes +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +am__mv = mv -f +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = +CCLD = $(CC) +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = +SOURCES = $(libscicall_scilab_algo_la_SOURCES) \ + $(libscicall_scilab_la_SOURCES) +DIST_SOURCES = $(libscicall_scilab_algo_la_SOURCES) \ + $(libscicall_scilab_la_SOURCES) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +DATA = $(libscicall_scilab_la_etc_DATA) \ + $(libscicall_scilab_la_root_DATA) \ + $(libscicall_scilab_la_sci_gateway_DATA) +HEADERS = $(libscicall_scilab_la_include_HEADERS) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ALL_LINGUAS = @ALL_LINGUAS@ +ALL_LINGUAS_DOC = @ALL_LINGUAS_DOC@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +ANT = @ANT@ +ANTLR = @ANTLR@ +AR = @AR@ +ARPACK_LIBS = @ARPACK_LIBS@ +ASM3 = @ASM3@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AVALON_FRAMEWORK = @AVALON_FRAMEWORK@ +AWK = @AWK@ +BATIK = @BATIK@ +BLAS_LIBS = @BLAS_LIBS@ +CC = @CC@ +CCACHE = @CCACHE@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CHECKSTYLE = @CHECKSTYLE@ +COBERTURA = @COBERTURA@ +COMMONS_BEANUTILS = @COMMONS_BEANUTILS@ +COMMONS_IO = @COMMONS_IO@ +COMMONS_LOGGING = @COMMONS_LOGGING@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CURL_CFLAGS = @CURL_CFLAGS@ +CURL_CONFIG = @CURL_CONFIG@ +CURL_LIBS = @CURL_LIBS@ +CURL_VERSION = @CURL_VERSION@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEMOTOOLS_ENABLE = @DEMOTOOLS_ENABLE@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DOCBOOK_ROOT = @DOCBOOK_ROOT@ +DOXYGEN_BIN = @DOXYGEN_BIN@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +ECJ = @ECJ@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +FFTW3_LIB = @FFTW3_LIB@ +FFTW_ENABLE = @FFTW_ENABLE@ +FGREP = @FGREP@ +FLEXDOCK = @FLEXDOCK@ +FLIBS = @FLIBS@ +FOP = @FOP@ +FREEHEP_GRAPHICS2D = @FREEHEP_GRAPHICS2D@ +FREEHEP_GRAPHICSIO = @FREEHEP_GRAPHICSIO@ +FREEHEP_GRAPHICSIO_EMF = @FREEHEP_GRAPHICSIO_EMF@ +FREEHEP_IO = @FREEHEP_IO@ +FREEHEP_UTIL = @FREEHEP_UTIL@ +GENHTML = @GENHTML@ +GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ +GIWS_BIN = @GIWS_BIN@ +GLUEGEN2_RT = @GLUEGEN2_RT@ +GMSGFMT = @GMSGFMT@ +GMSGFMT_015 = @GMSGFMT_015@ +GRAPHICS_ENABLE = @GRAPHICS_ENABLE@ +GREP = @GREP@ +GUI_ENABLE = @GUI_ENABLE@ +HDF5_CFLAGS = @HDF5_CFLAGS@ +HDF5_LIBS = @HDF5_LIBS@ +HELP_ENABLE = @HELP_ENABLE@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +INTLLIBS = @INTLLIBS@ +INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ +JAR = @JAR@ +JAVA = @JAVA@ +JAVAC = @JAVAC@ +JAVAC_DEBUG = @JAVAC_DEBUG@ +JAVADOC = @JAVADOC@ +JAVAH = @JAVAH@ +JAVASCI_ENABLE = @JAVASCI_ENABLE@ +JAVA_ENABLE = @JAVA_ENABLE@ +JAVA_G = @JAVA_G@ +JAVA_HOME = @JAVA_HOME@ +JAVA_JNI_INCLUDE = @JAVA_JNI_INCLUDE@ +JAVA_JNI_LIBS = @JAVA_JNI_LIBS@ +JDB = @JDB@ +JEUCLID_CORE = @JEUCLID_CORE@ +JGRAPHX = @JGRAPHX@ +JHALL = @JHALL@ +JLATEXMATH = @JLATEXMATH@ +JLATEXMATH_FOP = @JLATEXMATH_FOP@ +JOGL2 = @JOGL2@ +JROSETTA_API = @JROSETTA_API@ +JROSETTA_ENGINE = @JROSETTA_ENGINE@ +JUNIT4 = @JUNIT4@ +LAPACK_LIBS = @LAPACK_LIBS@ +LCOV = @LCOV@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBICONV = @LIBICONV@ +LIBINTL = @LIBINTL@ +LIBM = @LIBM@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LOGGING_LEVEL = @LOGGING_LEVEL@ +LOOKS = @LOOKS@ +LTLIBICONV = @LTLIBICONV@ +LTLIBINTL = @LTLIBINTL@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MATIO_CFLAGS = @MATIO_CFLAGS@ +MATIO_ENABLE = @MATIO_ENABLE@ +MATIO_LIBS = @MATIO_LIBS@ +MKDIR_P = @MKDIR_P@ +MPI_ENABLE = @MPI_ENABLE@ +MSGCAT = @MSGCAT@ +MSGFMT = @MSGFMT@ +MSGFMT_015 = @MSGFMT_015@ +MSGMERGE = @MSGMERGE@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OCAMLC = @OCAMLC@ +OCAMLDEP = @OCAMLDEP@ +OCAMLLEX = @OCAMLLEX@ +OCAMLOPT = @OCAMLOPT@ +OCAMLYACC = @OCAMLYACC@ +OPENMPI_CC = @OPENMPI_CC@ +OPENMPI_CFLAGS = @OPENMPI_CFLAGS@ +OPENMPI_CXX = @OPENMPI_CXX@ +OPENMPI_CXXFLAGS = @OPENMPI_CXXFLAGS@ +OPENMPI_LIBS = @OPENMPI_LIBS@ +OPENMP_CFLAGS = @OPENMP_CFLAGS@ +OPENMP_CXXFLAGS = @OPENMP_CXXFLAGS@ +OPENMP_ENABLE = @OPENMP_ENABLE@ +OPENMP_LIBS = @OPENMP_LIBS@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PCRE_CFLAGS = @PCRE_CFLAGS@ +PCRE_CONFIG = @PCRE_CONFIG@ +PCRE_LIBS = @PCRE_LIBS@ +PCRE_VERSION = @PCRE_VERSION@ +PKG_CONFIG = @PKG_CONFIG@ +POSUB = @POSUB@ +POW_LIB = @POW_LIB@ +PYTHON = @PYTHON@ +RANLIB = @RANLIB@ +RELOCATABLE = @RELOCATABLE@ +RT_LIB = @RT_LIB@ +SAXON = @SAXON@ +SCILAB_BINARY_VERSION = @SCILAB_BINARY_VERSION@ +SCILAB_LIBRARY_VERSION = @SCILAB_LIBRARY_VERSION@ +SCILAB_VERSION_MAINTENANCE = @SCILAB_VERSION_MAINTENANCE@ +SCILAB_VERSION_MAJOR = @SCILAB_VERSION_MAJOR@ +SCILAB_VERSION_MINOR = @SCILAB_VERSION_MINOR@ +SCIRENDERER = @SCIRENDERER@ +SCIRENDERER_CP = @SCIRENDERER_CP@ +SCI_CFLAGS = @SCI_CFLAGS@ +SCI_CXXFLAGS = @SCI_CXXFLAGS@ +SCI_FFLAGS = @SCI_FFLAGS@ +SCI_LDFLAGS = @SCI_LDFLAGS@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SET_RELOCATABLE = @SET_RELOCATABLE@ +SHELL = @SHELL@ +SKINLF = @SKINLF@ +SPLINT = @SPLINT@ +STRIP = @STRIP@ +SWIG_BIN = @SWIG_BIN@ +SWIG_JAVA = @SWIG_JAVA@ +SWIG_RUNTIME_LIBS_DIR = @SWIG_RUNTIME_LIBS_DIR@ +SWIG_SCILAB = @SWIG_SCILAB@ +TCLTK_LIBS = @TCLTK_LIBS@ +TCL_INC_PATH = @TCL_INC_PATH@ +TK_INC_PATH = @TK_INC_PATH@ +UMFPACK_CFLAGS = @UMFPACK_CFLAGS@ +UMFPACK_ENABLE = @UMFPACK_ENABLE@ +UMFPACK_LIB = @UMFPACK_LIB@ +USE_NLS = @USE_NLS@ +VERSION = @VERSION@ +WITH_OCAML = @WITH_OCAML@ +WITH_TKSCI = @WITH_TKSCI@ +XCOS_ENABLE = @XCOS_ENABLE@ +XGETTEXT = @XGETTEXT@ +XGETTEXT_015 = @XGETTEXT_015@ +XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ +XMKMF = @XMKMF@ +XMLGRAPHICS_COMMONS = @XMLGRAPHICS_COMMONS@ +XML_APIS_EXT = @XML_APIS_EXT@ +XML_CONFIG = @XML_CONFIG@ +XML_FLAGS = @XML_FLAGS@ +XML_LIBS = @XML_LIBS@ +XML_VERSION = @XML_VERSION@ +X_CFLAGS = @X_CFLAGS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_LIBS = @X_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +cxx_present = @cxx_present@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ + +### SOURCES ### +CALLSCILAB_C_SOURCES = src/c/call_scilab.c \ + src/c/fromc.c \ + src/c/fromjava.c \ + src/c/SendScilabJobs.c + +GATEWAY_C_SOURCES = sci_gateway/c/sci_fromjava.c \ + sci_gateway/c/sci_fromc.c \ + sci_gateway/c/gw_call_scilab.c + +libscicall_scilab_la_CPPFLAGS = -I$(srcdir)/includes/ \ + -I$(srcdir)/src/c/ \ + -I$(top_srcdir)/modules/localization/includes/ \ + -I$(top_srcdir)/modules/output_stream/includes/ \ + -I$(top_srcdir)/modules/action_binding/includes/ \ + -I$(top_srcdir)/modules/api_scilab/includes/ \ + -I$(top_srcdir)/modules/fileio/includes/ \ + -I$(top_srcdir)/modules/graphics/includes/ \ + -I$(top_srcdir)/modules/graphic_objects/includes/ \ + -I$(top_srcdir)/modules/core/src/c/ \ + $(AM_CPPFLAGS) + +pkglib_LTLIBRARIES = libscicall_scilab.la +noinst_LTLIBRARIES = libscicall_scilab-algo.la +libscicall_scilab_algo_la_SOURCES = $(CALLSCILAB_C_SOURCES) +libscicall_scilab_la_SOURCES = $(GATEWAY_C_SOURCES) +libscicall_scilab_algo_la_CPPFLAGS = $(libscicall_scilab_la_CPPFLAGS) + +# For the code check (splint) +CHECK_SRC = $(libscicall_scilab_la_SOURCES) +INCLUDE_FLAGS = $(libscicall_scilab_la_CPPFLAGS) +libscicall_scilab_la_LIBADD = libscicall_scilab-algo.la + +#### Target ###### +modulename = call_scilab + +#### call_scilab : Conf files #### +libscicall_scilab_la_rootdir = $(mydatadir) +libscicall_scilab_la_root_DATA = license.txt + +#### call_scilab : init scripts #### +libscicall_scilab_la_etcdir = $(mydatadir)/etc +libscicall_scilab_la_etc_DATA = etc/call_scilab.quit etc/call_scilab.start + +#### call_scilab : gateway declaration #### +libscicall_scilab_la_sci_gatewaydir = $(mydatadir)/sci_gateway +libscicall_scilab_la_sci_gateway_DATA = sci_gateway/call_scilab_gateway.xml + +#### call_scilab : include files #### +libscicall_scilab_la_includedir = $(pkgincludedir) +libscicall_scilab_la_include_HEADERS = includes/call_scilab.h + +# Where all the Scilab stuff is installed (macros, help, ...) +mydatadir = $(pkgdatadir)/modules/$(modulename) + +# Set AM_* SCI detected settings +AM_CPPFLAGS = $(SCI_CPPFLAGS) +AM_CFLAGS = $(SCI_CFLAGS) +AM_CXXFLAGS = $(SCI_CXXFLAGS) +# append includes to AM_FFLAGS to manage fortran includes +AM_FFLAGS = $(SCI_FFLAGS) -I$(top_srcdir)/modules/core/includes/ + +# Tag shared libraries with the Scilab version +AM_LDFLAGS = $(SCI_LDFLAGS) -version-number $(SCILAB_LIBRARY_VERSION) + +# splint options +SPLINT_OPTIONS = -weak -booltype BOOL + +########################### JAVA ###################################### +#### We are delegating java compilation to ant... Thanks to that +#### the procedure will be the same with Microsoft Windows (C) +#### and Linux/Unix +####################################################################### +TARGETS_ALL = $(am__append_1) + +################ MACROS ###################### +# Rule to build a macro +# NOT USED AT THE MOMENT +SUFFIXES = .sci + +########### INSTALL DOCUMENTATION ################### + +# Install documentation files into the right target +# We do not use the automake mechanism (libxxxx_la_help_fr_DATA) because +# automake needs the html files to be present which is not the case when +# we are building Scilab + +# Where it should be installed +pkgdocdir = $(mydatadir) + +# What is the mask of the help source +DOCMASKXML = *.xml + +# What is the mask of the MathML sources +DOCMASKMML = *.mml + +########### INSTALL DATA ################### +# Install macros, help & demos +# Where it should be installed +pkgmacrosdir = $(mydatadir) +# Which directory we process +MACRODIRS = macros/ +# Mask of the Scilab sources macros +MACROMASK = *.sci +# Mask of the Scilab executable sources macros +MACROBUILDMASK = *.sce +# Mask of the Scilab compiled macros +MACROBINMASK = *.bin +# List of the standard directory for tests +TESTS_DIR = tests/benchmarks tests/nonreg_tests tests/unit_tests tests/java +# Where the demos should be installed +pkgdemosdir = $(mydatadir) +# List of the standard directory for demos +DEMOS_DIR = demos +# List of the standard directory for examples +EXAMPLES_DIR = examples +# Where to export JAVA archives (.jar) +JARDIR = jar/ +# JAR files mask +JARMASK = *.jar +# Chapter file +HELP_CHAPTERDIR = help/ +HELP_CHAPTERFILE = addchapter.sce +HELP_CHAPTERLANG = en_US fr_FR pt_BR +all: all-am + +.SUFFIXES: +.SUFFIXES: .sci .bin .c .lo .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.incl.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign modules/call_scilab/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --foreign modules/call_scilab/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; +$(top_srcdir)/Makefile.incl.am: + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +clean-noinstLTLIBRARIES: + -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) + @list='$(noinst_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } + +install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) + @$(NORMAL_INSTALL) + @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ + list2=; for p in $$list; do \ + if test -f $$p; then \ + list2="$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkglibdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" || exit 1; \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \ + } + +uninstall-pkglibLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \ + done + +clean-pkglibLTLIBRARIES: + -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) + @list='$(pkglib_LTLIBRARIES)'; \ + locs=`for p in $$list; do echo $$p; done | \ + sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ + sort -u`; \ + test -z "$$locs" || { \ + echo rm -f $${locs}; \ + rm -f $${locs}; \ + } +src/c/$(am__dirstamp): + @$(MKDIR_P) src/c + @: > src/c/$(am__dirstamp) +src/c/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) src/c/$(DEPDIR) + @: > src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscicall_scilab_algo_la-call_scilab.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscicall_scilab_algo_la-fromc.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscicall_scilab_algo_la-fromjava.lo: src/c/$(am__dirstamp) \ + src/c/$(DEPDIR)/$(am__dirstamp) +src/c/libscicall_scilab_algo_la-SendScilabJobs.lo: \ + src/c/$(am__dirstamp) src/c/$(DEPDIR)/$(am__dirstamp) + +libscicall_scilab-algo.la: $(libscicall_scilab_algo_la_OBJECTS) $(libscicall_scilab_algo_la_DEPENDENCIES) $(EXTRA_libscicall_scilab_algo_la_DEPENDENCIES) + $(AM_V_CCLD)$(LINK) $(libscicall_scilab_algo_la_OBJECTS) $(libscicall_scilab_algo_la_LIBADD) $(LIBS) +sci_gateway/c/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/c + @: > sci_gateway/c/$(am__dirstamp) +sci_gateway/c/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) sci_gateway/c/$(DEPDIR) + @: > sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscicall_scilab_la-sci_fromc.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) +sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo: \ + sci_gateway/c/$(am__dirstamp) \ + sci_gateway/c/$(DEPDIR)/$(am__dirstamp) + +libscicall_scilab.la: $(libscicall_scilab_la_OBJECTS) $(libscicall_scilab_la_DEPENDENCIES) $(EXTRA_libscicall_scilab_la_DEPENDENCIES) + $(AM_V_CCLD)$(LINK) -rpath $(pkglibdir) $(libscicall_scilab_la_OBJECTS) $(libscicall_scilab_la_LIBADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + -rm -f sci_gateway/c/*.$(OBJEXT) + -rm -f sci_gateway/c/*.lo + -rm -f src/c/*.$(OBJEXT) + -rm -f src/c/*.lo + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-gw_call_scilab.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-sci_fromc.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-sci_fromjava.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscicall_scilab_algo_la-SendScilabJobs.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscicall_scilab_algo_la-call_scilab.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscicall_scilab_algo_la-fromc.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/c/$(DEPDIR)/libscicall_scilab_algo_la-fromjava.Plo@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< + +src/c/libscicall_scilab_algo_la-call_scilab.lo: src/c/call_scilab.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscicall_scilab_algo_la-call_scilab.lo -MD -MP -MF src/c/$(DEPDIR)/libscicall_scilab_algo_la-call_scilab.Tpo -c -o src/c/libscicall_scilab_algo_la-call_scilab.lo `test -f 'src/c/call_scilab.c' || echo '$(srcdir)/'`src/c/call_scilab.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscicall_scilab_algo_la-call_scilab.Tpo src/c/$(DEPDIR)/libscicall_scilab_algo_la-call_scilab.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/call_scilab.c' object='src/c/libscicall_scilab_algo_la-call_scilab.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscicall_scilab_algo_la-call_scilab.lo `test -f 'src/c/call_scilab.c' || echo '$(srcdir)/'`src/c/call_scilab.c + +src/c/libscicall_scilab_algo_la-fromc.lo: src/c/fromc.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscicall_scilab_algo_la-fromc.lo -MD -MP -MF src/c/$(DEPDIR)/libscicall_scilab_algo_la-fromc.Tpo -c -o src/c/libscicall_scilab_algo_la-fromc.lo `test -f 'src/c/fromc.c' || echo '$(srcdir)/'`src/c/fromc.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscicall_scilab_algo_la-fromc.Tpo src/c/$(DEPDIR)/libscicall_scilab_algo_la-fromc.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/fromc.c' object='src/c/libscicall_scilab_algo_la-fromc.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscicall_scilab_algo_la-fromc.lo `test -f 'src/c/fromc.c' || echo '$(srcdir)/'`src/c/fromc.c + +src/c/libscicall_scilab_algo_la-fromjava.lo: src/c/fromjava.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscicall_scilab_algo_la-fromjava.lo -MD -MP -MF src/c/$(DEPDIR)/libscicall_scilab_algo_la-fromjava.Tpo -c -o src/c/libscicall_scilab_algo_la-fromjava.lo `test -f 'src/c/fromjava.c' || echo '$(srcdir)/'`src/c/fromjava.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscicall_scilab_algo_la-fromjava.Tpo src/c/$(DEPDIR)/libscicall_scilab_algo_la-fromjava.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/fromjava.c' object='src/c/libscicall_scilab_algo_la-fromjava.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscicall_scilab_algo_la-fromjava.lo `test -f 'src/c/fromjava.c' || echo '$(srcdir)/'`src/c/fromjava.c + +src/c/libscicall_scilab_algo_la-SendScilabJobs.lo: src/c/SendScilabJobs.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT src/c/libscicall_scilab_algo_la-SendScilabJobs.lo -MD -MP -MF src/c/$(DEPDIR)/libscicall_scilab_algo_la-SendScilabJobs.Tpo -c -o src/c/libscicall_scilab_algo_la-SendScilabJobs.lo `test -f 'src/c/SendScilabJobs.c' || echo '$(srcdir)/'`src/c/SendScilabJobs.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) src/c/$(DEPDIR)/libscicall_scilab_algo_la-SendScilabJobs.Tpo src/c/$(DEPDIR)/libscicall_scilab_algo_la-SendScilabJobs.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='src/c/SendScilabJobs.c' object='src/c/libscicall_scilab_algo_la-SendScilabJobs.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_algo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o src/c/libscicall_scilab_algo_la-SendScilabJobs.lo `test -f 'src/c/SendScilabJobs.c' || echo '$(srcdir)/'`src/c/SendScilabJobs.c + +sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo: sci_gateway/c/sci_fromjava.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-sci_fromjava.Tpo -c -o sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo `test -f 'sci_gateway/c/sci_fromjava.c' || echo '$(srcdir)/'`sci_gateway/c/sci_fromjava.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-sci_fromjava.Tpo sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-sci_fromjava.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_fromjava.c' object='sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo `test -f 'sci_gateway/c/sci_fromjava.c' || echo '$(srcdir)/'`sci_gateway/c/sci_fromjava.c + +sci_gateway/c/libscicall_scilab_la-sci_fromc.lo: sci_gateway/c/sci_fromc.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscicall_scilab_la-sci_fromc.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-sci_fromc.Tpo -c -o sci_gateway/c/libscicall_scilab_la-sci_fromc.lo `test -f 'sci_gateway/c/sci_fromc.c' || echo '$(srcdir)/'`sci_gateway/c/sci_fromc.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-sci_fromc.Tpo sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-sci_fromc.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/sci_fromc.c' object='sci_gateway/c/libscicall_scilab_la-sci_fromc.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscicall_scilab_la-sci_fromc.lo `test -f 'sci_gateway/c/sci_fromc.c' || echo '$(srcdir)/'`sci_gateway/c/sci_fromc.c + +sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo: sci_gateway/c/gw_call_scilab.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo -MD -MP -MF sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-gw_call_scilab.Tpo -c -o sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo `test -f 'sci_gateway/c/gw_call_scilab.c' || echo '$(srcdir)/'`sci_gateway/c/gw_call_scilab.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-gw_call_scilab.Tpo sci_gateway/c/$(DEPDIR)/libscicall_scilab_la-gw_call_scilab.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='sci_gateway/c/gw_call_scilab.c' object='sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo' libtool=yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscicall_scilab_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo `test -f 'sci_gateway/c/gw_call_scilab.c' || echo '$(srcdir)/'`sci_gateway/c/gw_call_scilab.c + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + -rm -rf sci_gateway/c/.libs sci_gateway/c/_libs + -rm -rf src/c/.libs src/c/_libs +install-libscicall_scilab_la_etcDATA: $(libscicall_scilab_la_etc_DATA) + @$(NORMAL_INSTALL) + @list='$(libscicall_scilab_la_etc_DATA)'; test -n "$(libscicall_scilab_la_etcdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscicall_scilab_la_etcdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscicall_scilab_la_etcdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscicall_scilab_la_etcdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscicall_scilab_la_etcdir)" || exit $$?; \ + done + +uninstall-libscicall_scilab_la_etcDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscicall_scilab_la_etc_DATA)'; test -n "$(libscicall_scilab_la_etcdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscicall_scilab_la_etcdir)'; $(am__uninstall_files_from_dir) +install-libscicall_scilab_la_rootDATA: $(libscicall_scilab_la_root_DATA) + @$(NORMAL_INSTALL) + @list='$(libscicall_scilab_la_root_DATA)'; test -n "$(libscicall_scilab_la_rootdir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscicall_scilab_la_rootdir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscicall_scilab_la_rootdir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscicall_scilab_la_rootdir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscicall_scilab_la_rootdir)" || exit $$?; \ + done + +uninstall-libscicall_scilab_la_rootDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscicall_scilab_la_root_DATA)'; test -n "$(libscicall_scilab_la_rootdir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscicall_scilab_la_rootdir)'; $(am__uninstall_files_from_dir) +install-libscicall_scilab_la_sci_gatewayDATA: $(libscicall_scilab_la_sci_gateway_DATA) + @$(NORMAL_INSTALL) + @list='$(libscicall_scilab_la_sci_gateway_DATA)'; test -n "$(libscicall_scilab_la_sci_gatewaydir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscicall_scilab_la_sci_gatewaydir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscicall_scilab_la_sci_gatewaydir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libscicall_scilab_la_sci_gatewaydir)'"; \ + $(INSTALL_DATA) $$files "$(DESTDIR)$(libscicall_scilab_la_sci_gatewaydir)" || exit $$?; \ + done + +uninstall-libscicall_scilab_la_sci_gatewayDATA: + @$(NORMAL_UNINSTALL) + @list='$(libscicall_scilab_la_sci_gateway_DATA)'; test -n "$(libscicall_scilab_la_sci_gatewaydir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscicall_scilab_la_sci_gatewaydir)'; $(am__uninstall_files_from_dir) +install-libscicall_scilab_la_includeHEADERS: $(libscicall_scilab_la_include_HEADERS) + @$(NORMAL_INSTALL) + @list='$(libscicall_scilab_la_include_HEADERS)'; test -n "$(libscicall_scilab_la_includedir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(libscicall_scilab_la_includedir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(libscicall_scilab_la_includedir)" || exit 1; \ + fi; \ + for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libscicall_scilab_la_includedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(libscicall_scilab_la_includedir)" || exit $$?; \ + done + +uninstall-libscicall_scilab_la_includeHEADERS: + @$(NORMAL_UNINSTALL) + @list='$(libscicall_scilab_la_include_HEADERS)'; test -n "$(libscicall_scilab_la_includedir)" || list=; \ + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + dir='$(DESTDIR)$(libscicall_scilab_la_includedir)'; $(am__uninstall_files_from_dir) + +ID: $(am__tagged_files) + $(am__define_uniq_tagged_files); mkid -fID $$unique +tags: tags-am +TAGS: tags + +tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + set x; \ + here=`pwd`; \ + $(am__define_uniq_tagged_files); \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: ctags-am + +CTAGS: ctags +ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) + $(am__define_uniq_tagged_files); \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" +cscopelist: cscopelist-am + +cscopelist-am: $(am__tagged_files) + list='$(am__tagged_files)'; \ + case "$(srcdir)" in \ + [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ + *) sdir=$(subdir)/$(srcdir) ;; \ + esac; \ + for i in $$list; do \ + if test -f "$$i"; then \ + echo "$(subdir)/$$i"; \ + else \ + echo "$$sdir/$$i"; \ + fi; \ + done >> $(top_builddir)/cscope.files + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) check-local +check: check-am +all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS) all-local +installdirs: + for dir in "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(libscicall_scilab_la_etcdir)" "$(DESTDIR)$(libscicall_scilab_la_rootdir)" "$(DESTDIR)$(libscicall_scilab_la_sci_gatewaydir)" "$(DESTDIR)$(libscicall_scilab_la_includedir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + -rm -f sci_gateway/c/$(DEPDIR)/$(am__dirstamp) + -rm -f sci_gateway/c/$(am__dirstamp) + -rm -f src/c/$(DEPDIR)/$(am__dirstamp) + -rm -f src/c/$(am__dirstamp) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool clean-local \ + clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES mostlyclean-am + +distclean: distclean-am + -rm -rf sci_gateway/c/$(DEPDIR) src/c/$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-local distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-data-local \ + install-libscicall_scilab_la_etcDATA \ + install-libscicall_scilab_la_includeHEADERS \ + install-libscicall_scilab_la_rootDATA \ + install-libscicall_scilab_la_sci_gatewayDATA + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-pkglibLTLIBRARIES + +install-html: install-html-am + +install-html-am: install-html-local + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf sci_gateway/c/$(DEPDIR) src/c/$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-libscicall_scilab_la_etcDATA \ + uninstall-libscicall_scilab_la_includeHEADERS \ + uninstall-libscicall_scilab_la_rootDATA \ + uninstall-libscicall_scilab_la_sci_gatewayDATA \ + uninstall-pkglibLTLIBRARIES + +.MAKE: check-am install-am install-strip + +.PHONY: CTAGS GTAGS TAGS all all-am all-local check check-am \ + check-local clean clean-generic clean-libtool clean-local \ + clean-noinstLTLIBRARIES clean-pkglibLTLIBRARIES cscopelist-am \ + ctags ctags-am distclean distclean-compile distclean-generic \ + distclean-libtool distclean-local distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-data-local install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-html-local install-info \ + install-info-am install-libscicall_scilab_la_etcDATA \ + install-libscicall_scilab_la_includeHEADERS \ + install-libscicall_scilab_la_rootDATA \ + install-libscicall_scilab_la_sci_gatewayDATA install-man \ + install-pdf install-pdf-am install-pkglibLTLIBRARIES \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags tags-am uninstall uninstall-am \ + uninstall-libscicall_scilab_la_etcDATA \ + uninstall-libscicall_scilab_la_includeHEADERS \ + uninstall-libscicall_scilab_la_rootDATA \ + uninstall-libscicall_scilab_la_sci_gatewayDATA \ + uninstall-pkglibLTLIBRARIES + + +# This target enables tests for Scilab +check-local: $(top_builddir)/scilab-bin test + if test -d $(mydatadir)/tests; then \ + @COMMAND="try test_run('$(modulename)');catch exit(-1);end;exit(0)"; export LANG=C; $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"; \ + fi +check-code: + if test -f build.xml; then \ + $(ANT) checkstyle; \ + fi + if test -x "$(SPLINT)"; then \ + $(SPLINT) $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC); \ + fi +@NEED_JAVA_TRUE@java: +# Some configurations needs to export JAVA_HOME in the current env +@NEED_JAVA_TRUE@ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \ +@NEED_JAVA_TRUE@ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ +@NEED_JAVA_TRUE@ if test -f build.xml -a $$USEANT -eq 1; then \ +@NEED_JAVA_TRUE@ $(ANT); \ +@NEED_JAVA_TRUE@ fi + +@NEED_JAVA_TRUE@clean-java: +# Some configurations needs to export JAVA_HOME in the current env +@NEED_JAVA_TRUE@ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \ +@NEED_JAVA_TRUE@ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ +@NEED_JAVA_TRUE@ if test -f build.xml -a $$USEANT -eq 1; then \ +@NEED_JAVA_TRUE@ $(ANT) clean; \ +@NEED_JAVA_TRUE@ fi; + +# If the user request for the SWIG generation of the wrappers Java => C/C++ +# We call the target swig-build on the variable SWIG_WRAPPERS + +@SWIG_TRUE@swig: $(SWIG_WRAPPERS) +@SWIG_TRUE@ @SWIG_PACKAGENAME=org.scilab.modules.$(modulename); \ +@SWIG_TRUE@ SWIG_OUTDIR=src/java/org/scilab/modules/$(modulename)/; \ +@SWIG_TRUE@ if test -n "$(SWIG_WRAPPERS)"; then \ +@SWIG_TRUE@ for file in $(SWIG_WRAPPERS) ; do \ +@SWIG_TRUE@ echo "Swig process of $$file (Java) ..."; \ +@SWIG_TRUE@ $(SWIG_BIN) $(SWIG_JAVA) -package $$SWIG_PACKAGENAME -outdir $$SWIG_OUTDIR $$file; \ +@SWIG_TRUE@ done; \ +@SWIG_TRUE@ fi + +@SWIG_TRUE@swig-scilab: $(SWIG_SCILAB_WRAPPERS) +@SWIG_TRUE@ @SWIG_OUTDIR=src/swig/; \ +@SWIG_TRUE@ if test -n "$(SWIG_SCILAB_WRAPPERS)"; then \ +@SWIG_TRUE@ for file in $(SWIG_SCILAB_WRAPPERS) ; do \ +@SWIG_TRUE@ echo "Swig process of $$file (Scilab) ..."; \ +@SWIG_TRUE@ $(SWIG_BIN) $(SWIG_SCILAB) -outdir $$SWIG_OUTDIR $$file; \ +@SWIG_TRUE@ done; \ +@SWIG_TRUE@ fi + +# If the user request for the SWIG generation of the wrappers Java => C/C++ +# We call the target swig-build on the variable SWIG_WRAPPERS + +@GIWS_TRUE@giws: $(GIWS_WRAPPERS) +@GIWS_TRUE@ @GIWS_OUTPUTDIR=src/jni/; \ +@GIWS_TRUE@ MANDATORY_OPTIONS="--throws-exception-on-error --description-file"; \ +@GIWS_TRUE@ if test -n "$(GIWS_WRAPPERS)"; then \ +@GIWS_TRUE@ for file in $(GIWS_WRAPPERS) ; do \ +@GIWS_TRUE@ echo "GIWS process of $$file ..."; \ +@GIWS_TRUE@ if test -z "$(GIWS_OPTIONS)"; then \ +@GIWS_TRUE@ $(GIWS_BIN) --disable-return-size-array --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \ +@GIWS_TRUE@ else \ +@GIWS_TRUE@ echo "Custom GIWS call with '$$GIWS_OPTIONS'"; \ +@GIWS_TRUE@ $(GIWS_BIN) $$GIWS_OPTIONS --output-dir $$GIWS_OUTPUTDIR $$MANDATORY_OPTIONS $$file; \ +@GIWS_TRUE@ fi \ +@GIWS_TRUE@ done; \ +@GIWS_TRUE@ fi + +@GIWS_TRUE@giws-exception: +@GIWS_TRUE@ @GIWS_OUTPUTDIR=src/jni/;\ +@GIWS_TRUE@ echo "GIWS: Generation of exception class ..."; \ +@GIWS_TRUE@ $(GIWS_BIN) --generate-exception-class --output-dir $$GIWS_OUTPUTDIR + +macros: + -@( if test ! -x $(top_builddir)/scilab-bin; then \ + echo "Error : Cannot build $< : Scilab has not been built"; \ + else \ + $(top_builddir)/bin/scilab -ns -nwni -e "exec('macros/buildmacros.sce');quit;";\ + fi) + +# Removes the macros +clean-macros: +# Removes macros (*.bin generated from .sci) + @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \ + echo "rm -f $(builddir)/$$dir/$(MACROBINMASK)"; \ + rm -f $(builddir)/$$dir/$(MACROBINMASK); \ + done + +test: +# More tests could be added here + @if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \ + if test -f build.xml -a $$USEANT -eq 1; then \ + $(ANT) test; \ + fi + +all-local: $(TARGETS_ALL) + +.sci.bin: + -@( if test ! -x $(top_builddir)/scilab-bin; then \ + echo "Error : Cannot build $< : Scilab has not been build"; \ + else \ + echo "Creating $@"; \ + $(top_builddir)/bin/scilab -ns -nwni -e "exec('$(abs_srcdir)/$<');save('$(abs_srcdir)/$@');exit;"; \ + fi ) + +install-html-local: + +install-data-local-local: +# Mainly for javasci + @if test -d $(srcdir)/javadoc; then \ + cp -R $(srcdir)/javadoc $(DESTDIR)/$(mydatadir)/; \ + fi +# If the user wants the help sources to be installed +@INSTALL_HELP_XML_TRUE@ @echo "-------- Install of XML sources of help files --------"; \ +@INSTALL_HELP_XML_TRUE@ for lang in $(ALL_LINGUAS); do \ +@INSTALL_HELP_XML_TRUE@ if test -d $(srcdir)/help/$$lang; then \ +@INSTALL_HELP_XML_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/$$lang && \ +@INSTALL_HELP_XML_TRUE@ if ls -lLd $(srcdir)/help/$$lang/$(DOCMASKXML) >/dev/null 2>&1; then \ +@INSTALL_HELP_XML_TRUE@ for file in $(srcdir)/help/$$lang/$(DOCMASKXML) ; do \ +@INSTALL_HELP_XML_TRUE@ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/$$lang" ; \ +@INSTALL_HELP_XML_TRUE@ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/$$lang ; \ +@INSTALL_HELP_XML_TRUE@ done ; \ +@INSTALL_HELP_XML_TRUE@ fi; \ +@INSTALL_HELP_XML_TRUE@ fi; \ +@INSTALL_HELP_XML_TRUE@ done; \ +@INSTALL_HELP_XML_TRUE@ @echo "-------- Install of MathML sources --------"; \ +@INSTALL_HELP_XML_TRUE@ if test -d $(srcdir)/help/mml/; then \ +@INSTALL_HELP_XML_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/mml/ && \ +@INSTALL_HELP_XML_TRUE@ if ls -lLd $(srcdir)/help/mml/$(DOCMASKMML) >/dev/null 2>&1; then \ +@INSTALL_HELP_XML_TRUE@ for file in $(srcdir)/help/mml/$(DOCMASKMML) ; do \ +@INSTALL_HELP_XML_TRUE@ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/mml" ; \ +@INSTALL_HELP_XML_TRUE@ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/mml ; \ +@INSTALL_HELP_XML_TRUE@ done ; \ +@INSTALL_HELP_XML_TRUE@ fi; \ +@INSTALL_HELP_XML_TRUE@ fi +install-data-local: +# Install the tests + @echo "-------- Install tests (if any) --------"; \ + for dir in $(TESTS_DIR) $(TESTS_DIREXT) ; do \ + if test -d $(srcdir)/$$dir/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \ + for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \ + if test -d "$(srcdir)/$$dir/$$file"; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir/$$file; \ + $(mkinstalldirs) "$(DESTDIR)$(pkgmacrosdir)/$$dir/$$file"; \ + else \ + echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \ + $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \ + fi \ + done; \ + fi; \ + done +# Install the help chapter + @echo "-------- Install the help chapter (if any) --------"; \ + for lang in $(HELP_CHAPTERLANG); do \ + HELPFILE=$(srcdir)/$(HELP_CHAPTERDIR)$$lang/$(HELP_CHAPTERFILE); \ + if test -f $$HELPFILE; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \ + echo $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \ + $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \ + fi; \ + done +# Install the demos & examples + @echo "-------- Install demos & examples (if any) --------"; \ + for dir in $(DEMOS_DIR) $(DEMOS_DIREXT) $(EXAMPLES_DIR) $(EXAMPLES_DIREXT) ; do \ + if test -d $(srcdir)/$$dir/; then \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \ + for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \ + if test -d "$(srcdir)/$$dir/$$file"; then \ + echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir/$$file; \ + $(mkinstalldirs) "$(DESTDIR)$(pkgdocdir)/$$dir/$$file"; \ + else \ + echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \ + $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \ + fi \ + done; \ + fi; \ + done +# Install the macros + @echo "-------- Install macros (if any) --------"; \ + for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \ + $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \ + if test -d $(srcdir)/$$dir/; then \ + FILELIST="$(srcdir)/$$dir/$(MACROMASK) $(srcdir)/$$dir/$(MACROBINMASK) $(srcdir)/$$dir/$(MACROBUILDMASK) $(srcdir)/$$dir/names $(srcdir)/$$dir/lib";\ + if test -n "$(MACROSSPECIALEXT)"; then \ + specialExtDir=""; \ + for specialExt in $(MACROSSPECIALEXT); do \ + specialExtDir="$$specialExtDir $(srcdir)/$$dir/$$specialExt"; \ + done; \ + FILELIST="$$FILELIST $$specialExtDir"; \ + fi; \ + for file in `ls -1 $$FILELIST 2>/dev/null`; do \ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgmacrosdir)/$$dir" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgmacrosdir)/$$dir ; \ + done; \ + fi; \ + done +# Install java files (.jar) + @if ls -lLd $(srcdir)/$(JARDIR)$(JARMASK) >/dev/null 2>&1; then \ + echo "-------- Install jar files --------"; \ + $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(JARDIR); \ + for file in $(srcdir)/$(JARDIR)$(JARMASK); do\ + echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$(JARDIR)" ; \ + $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$(JARDIR) ; \ + done ; \ + fi + +########### CLEAN ################### +# Clean help (generated automatically by Scilab) +# It used to clean the macro (clean-macros) but this was causing +# make clean && make to fail Scilab startup +@NEED_JAVA_TRUE@clean-local: clean-java +@NEED_JAVA_FALSE@clean-local: + +distclean-local: + rm -f $(builddir)/help/*/.last_successful_build_javaHelp $(builddir)/help/*/.list_* + +.PHONY: macros java swig giws + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/modules/call_scilab/call_scilab.iss b/modules/call_scilab/call_scilab.iss new file mode 100755 index 000000000..f011c4590 --- /dev/null +++ b/modules/call_scilab/call_scilab.iss @@ -0,0 +1,47 @@ +; +; Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +; Copyright (C) DIGITEO - 2009-2010 - Allan CORNET +; +; This file must be used under the terms of the CeCILL. +; This source file is licensed as described in the file COPYING, which +; you should have received as part of this distribution. The terms +; are also available at +; http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +; +;-------------------------------------------------------------------------------------------------------------- +; Inno Setup Script (5.3 and more) for Scilab (UNICODE version required) +; +;-------------------------------------------------------------------------------------------------------------- +; MODULE_CALL_SCILAB module +;-------------------------------------------------------------------------------------------------------------- +;{#CALL_WORD} ... is a reserved macro in inno setup +; we rename to {#MODULE_CALL_SCILAB} +#define MODULE_CALL_SCILAB "call_scilab" +; +Source: bin\{#MODULE_CALL_SCILAB}.dll; DestDir: {app}\bin; Components: {#COMPN_SCILAB} +Source: bin\{#MODULE_CALL_SCILAB}.lib; DestDir: {app}\bin; Components: {#COMPN_SCILAB} +; +Source: modules\{#MODULE_CALL_SCILAB}\license.txt; DestDir: {app}\modules\{#MODULE_CALL_SCILAB}; Components: {#COMPN_SCILAB} +; +;Source: modules\{#MODULE_CALL_SCILAB}\includes\*.h; DestDir: {app}\modules\{#MODULE_CALL_SCILAB}\includes; Components: {#COMPN_SCILAB} +Source: modules\{#MODULE_CALL_SCILAB}\includes\{#MODULE_CALL_SCILAB}.h; DestDir: {app}\modules\{#MODULE_CALL_SCILAB}\includes; Components: {#COMPN_SCILAB} +Source: modules\{#MODULE_CALL_SCILAB}\includes\dynlib_{#MODULE_CALL_SCILAB}.h; DestDir: {app}\modules\{#MODULE_CALL_SCILAB}\includes; Components: {#COMPN_SCILAB} +; +Source: modules\{#MODULE_CALL_SCILAB}\sci_gateway\{#MODULE_CALL_SCILAB}_gateway.xml; DestDir: {app}\modules\{#MODULE_CALL_SCILAB}\sci_gateway; Components: {#COMPN_SCILAB} +; +Source: modules\{#MODULE_CALL_SCILAB}\etc\{#MODULE_CALL_SCILAB}.quit; DestDir: {app}\modules\{#MODULE_CALL_SCILAB}\etc; Components: {#COMPN_SCILAB} +Source: modules\{#MODULE_CALL_SCILAB}\etc\{#MODULE_CALL_SCILAB}.start; DestDir: {app}\modules\{#MODULE_CALL_SCILAB}\etc; Components: {#COMPN_SCILAB} +; +Source: modules\{#MODULE_CALL_SCILAB}\examples\*.*; DestDir: {app}\modules\{#MODULE_CALL_SCILAB}\examples; Flags: recursesubdirs; Components: {#COMPN_SCILAB} +; +Source: modules\{#MODULE_CALL_SCILAB}\macros\buildmacros.sce; DestDir: {app}\modules\{#MODULE_CALL_SCILAB}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#MODULE_CALL_SCILAB}\macros\buildmacros.bat; DestDir: {app}\modules\{#MODULE_CALL_SCILAB}\macros; Components: {#COMPN_SCILAB} +Source: modules\{#MODULE_CALL_SCILAB}\macros\cleanmacros.bat; DestDir: {app}\modules\{#MODULE_CALL_SCILAB}\macros; Components: {#COMPN_SCILAB} +;Source: modules\{#MODULE_CALL_SCILAB}\macros\*.bin; DestDir: {app}\modules\{#MODULE_CALL_SCILAB}\macros; Components: {#COMPN_SCILAB} +;Source: modules\{#MODULE_CALL_SCILAB}\macros\*.sci; DestDir: {app}\modules\{#MODULE_CALL_SCILAB}\macros; Components: {#COMPN_SCILAB} +;Source: modules\{#MODULE_CALL_SCILAB}\macros\lib; DestDir: {app}\modules\{#MODULE_CALL_SCILAB}\macros; Components: {#COMPN_SCILAB} +;Source: modules\{#MODULE_CALL_SCILAB}\macros\names; DestDir: {app}\modules\{#MODULE_CALL_SCILAB}\macros; Components: {#COMPN_SCILAB} +; +Source: modules\{#MODULE_CALL_SCILAB}\tests\*.*; DestDir: {app}\modules\{#MODULE_CALL_SCILAB}\tests; Flags: recursesubdirs; Components: {#COMPN_SCILAB} and {#COMPN_TESTS} +; +;-------------------------------------------------------------------------------------------------------------- diff --git a/modules/call_scilab/call_scilab.vcxproj b/modules/call_scilab/call_scilab.vcxproj new file mode 100755 index 000000000..2a7a6a8c6 --- /dev/null +++ b/modules/call_scilab/call_scilab.vcxproj @@ -0,0 +1,278 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Debug|x64"> + <Configuration>Debug</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|x64"> + <Configuration>Release</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <PropertyGroup Label="Globals"> + <ProjectGuid>{6A6A6F76-CCC0-40C4-8AEE-8A010F49A604}</ProjectGuid> + <RootNamespace>call_scilab</RootNamespace> + <Keyword>Win32Proj</Keyword> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <WholeProgramOptimization>false</WholeProgramOptimization> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <WholeProgramOptimization>false</WholeProgramOptimization> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> + <ConfigurationType>DynamicLibrary</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + <PlatformToolset>v110</PlatformToolset> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> + <ImportGroup Label="ExtensionSettings"> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <PropertyGroup Label="UserMacros" /> + <PropertyGroup> + <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)bin\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(ProjectDir)$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental> + </PropertyGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>includes;src/c;../core/includes;../api_scilab/includes;../fileio/includes;../windows_tools/includes;../windows_tools/src/c/scilab_windows;../localization/includes;../action_binding/includes;../output_stream/includes;../graphics/includes;../../libs/intl;../graphic_objects/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>FORDLL;_DEBUG;_WINDOWS;_USRDLL;CALL_SCILAB_EXPORTS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <PreLinkEvent> + <Message> + </Message> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;core_f.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile>call_scilab_export.def</ModuleDefinitionFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + <PreBuildEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core_f.lib" 1>NUL 2>NUL</Command> + </PreBuildEvent> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>includes;src/c;../core/includes;../api_scilab/includes;../fileio/includes;../windows_tools/includes;../windows_tools/src/c/scilab_windows;../localization/includes;../action_binding/includes;../output_stream/includes;../graphics/includes;../../libs/intl;../graphic_objects/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>FORDLL;_DEBUG;_WINDOWS;_USRDLL;CALL_SCILAB_EXPORTS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <PreLinkEvent> + <Message> + </Message> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;core_f.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile>call_scilab_export.def</ModuleDefinitionFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + <PreBuildEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core_f.lib" 1>NUL 2>NUL</Command> + </PreBuildEvent> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>includes;src/c;../core/includes;../api_scilab/includes;../fileio/includes;../windows_tools/includes;../windows_tools/src/c/scilab_windows;../localization/includes;../action_binding/includes;../output_stream/includes;../graphics/includes;../../libs/intl;../graphic_objects/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>FORDLL;NDEBUG;_WINDOWS;_USRDLL;CALL_SCILAB_EXPORTS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <StringPooling>true</StringPooling> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <FunctionLevelLinking>true</FunctionLevelLinking> + <WarningLevel>Level3</WarningLevel> + <MultiProcessorCompilation>true</MultiProcessorCompilation> + </ClCompile> + <PreLinkEvent> + <Message> + </Message> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;core_f.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile>call_scilab_export.def</ModuleDefinitionFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + <PreBuildEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core_f.lib" 1>NUL 2>NUL</Command> + </PreBuildEvent> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>includes;src/c;../core/includes;../api_scilab/includes;../fileio/includes;../windows_tools/includes;../windows_tools/src/c/scilab_windows;../localization/includes;../action_binding/includes;../output_stream/includes;../graphics/includes;../../libs/intl;../graphic_objects/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>FORDLL;NDEBUG;_WINDOWS;_USRDLL;CALL_SCILAB_EXPORTS;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <StringPooling>true</StringPooling> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <FunctionLevelLinking>true</FunctionLevelLinking> + <WarningLevel>Level3</WarningLevel> + <MultiProcessorCompilation>true</MultiProcessorCompilation> + </ClCompile> + <PreLinkEvent> + <Message> + </Message> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;core_f.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile>call_scilab_export.def</ModuleDefinitionFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + </Link> + <PreBuildEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +lib /DEF:"$(ProjectDir)core_f_Import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core_f.lib" 1>NUL 2>NUL</Command> + </PreBuildEvent> + </ItemDefinitionGroup> + <ItemGroup> + <ClCompile Include="src\c\call_scilab.c" /> + <ClCompile Include="src\c\DllmainCall_scilab.c" /> + <ClCompile Include="src\c\fromc.c" /> + <ClCompile Include="src\c\fromjava.c" /> + <ClCompile Include="sci_gateway\c\gw_call_scilab.c" /> + <ClCompile Include="sci_gateway\c\sci_fromc.c" /> + <ClCompile Include="sci_gateway\c\sci_fromjava.c" /> + <ClCompile Include="src\c\SendScilabJobs.c" /> + </ItemGroup> + <ItemGroup> + <ClInclude Include="includes\call_scilab.h" /> + <ClInclude Include="includes\dynlib_call_scilab.h" /> + <ClInclude Include="src\c\fromc.h" /> + <ClInclude Include="includes\fromjava.h" /> + <ClInclude Include="includes\gw_call_scilab.h" /> + </ItemGroup> + <ItemGroup> + <ResourceCompile Include="src\c\call_scilab.rc" /> + </ItemGroup> + <ItemGroup> + <None Include="core_f_Import.def" /> + <None Include="core_import.def" /> + <None Include="call_scilab_export.def" /> + <None Include="call_scilab.iss" /> + <None Include="sci_gateway\call_scilab_gateway.xml" /> + <None Include="Makefile.am" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\..\tools\Dumpexts\Dumpexts.vcxproj"> + <Project>{3170e4c2-1173-4264-a222-7ee8ccb3ddf7}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\action_binding\src\c\action_binding.vcxproj"> + <Project>{8a654cc5-22c1-4972-a8cf-1b89f78b5383}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\api_scilab\api_scilab.vcxproj"> + <Project>{43c5bab1-1dca-4743-a183-77e0d42fe7d0}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\fileio\fileio.vcxproj"> + <Project>{4fc72d4a-80ee-4b1a-8724-0201c1a35621}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\graphics\graphics.vcxproj"> + <Project>{8ccdd3c2-b025-4a12-a986-1aa28d7c0c33}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\graphic_objects\src\c\graphic_objects.vcxproj"> + <Project>{30f9ee41-587b-4618-8de7-698d3fba4985}</Project> + </ProjectReference> + <ProjectReference Include="..\output_stream\src\c\output_stream.vcxproj"> + <Project>{a5911cd7-f8e8-440c-a23e-4843a0636f3a}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\windows_tools\src\c\scilab_windows\scilab_windows.vcxproj"> + <Project>{8028f371-6a94-4a26-8804-6e7f05f1d1aa}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/modules/call_scilab/call_scilab.vcxproj.filters b/modules/call_scilab/call_scilab.vcxproj.filters new file mode 100755 index 000000000..402e37abf --- /dev/null +++ b/modules/call_scilab/call_scilab.vcxproj.filters @@ -0,0 +1,91 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup> + <Filter Include="Source Files"> + <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> + <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> + </Filter> + <Filter Include="Header Files"> + <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> + <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions> + </Filter> + <Filter Include="Resource Files"> + <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> + <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions> + </Filter> + <Filter Include="localization"> + <UniqueIdentifier>{cb6c3980-becd-474d-a9be-ad13d240961f}</UniqueIdentifier> + </Filter> + <Filter Include="Libraries Dependencies"> + <UniqueIdentifier>{237fd786-8fb2-448f-94be-9fb11b7942e8}</UniqueIdentifier> + </Filter> + <Filter Include="Libraries Dependencies\Imports"> + <UniqueIdentifier>{8cde192d-5d2d-4366-b670-4b93651589cc}</UniqueIdentifier> + </Filter> + <Filter Include="Libraries Dependencies\Export"> + <UniqueIdentifier>{858cd422-bc61-47ce-b018-d9823fc8ed0e}</UniqueIdentifier> + </Filter> + </ItemGroup> + <ItemGroup> + <ClCompile Include="src\c\call_scilab.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="src\c\DllmainCall_scilab.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="src\c\fromc.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="src\c\fromjava.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="sci_gateway\c\gw_call_scilab.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="sci_gateway\c\sci_fromc.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="sci_gateway\c\sci_fromjava.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="src\c\SendScilabJobs.c"> + <Filter>Source Files</Filter> + </ClCompile> + </ItemGroup> + <ItemGroup> + <ClInclude Include="includes\call_scilab.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="includes\dynlib_call_scilab.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="src\c\fromc.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="includes\fromjava.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="includes\gw_call_scilab.h"> + <Filter>Header Files</Filter> + </ClInclude> + </ItemGroup> + <ItemGroup> + <ResourceCompile Include="src\c\call_scilab.rc"> + <Filter>Resource Files</Filter> + </ResourceCompile> + </ItemGroup> + <ItemGroup> + <None Include="core_import.def"> + <Filter>Libraries Dependencies\Imports</Filter> + </None> + <None Include="call_scilab_export.def"> + <Filter>Libraries Dependencies\Export</Filter> + </None> + <None Include="call_scilab.iss" /> + <None Include="sci_gateway\call_scilab_gateway.xml" /> + <None Include="Makefile.am" /> + <None Include="core_f_Import.def"> + <Filter>Libraries Dependencies\Imports</Filter> + </None> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/modules/call_scilab/call_scilab_export.def b/modules/call_scilab/call_scilab_export.def new file mode 100755 index 000000000..2857a3c7e --- /dev/null +++ b/modules/call_scilab/call_scilab_export.def @@ -0,0 +1,22 @@ +LIBRARY call_scilab.dll + + +EXPORTS +; --------------------------------------- +; call_scilab explicit export (SEP 35) +; --------------------------------------- + setCallScilabEngineState + DisableInteractiveMode + StartScilab + TerminateScilab + ScilabDoOneEvent + ScilabHaveAGraph + SendScilabJob + GetLastJob + SendScilabJobs + Call_ScilabOpen + getVariableType + setCallScilabEngineState + getLastErrorMessageSingle + getLastErrorValue +; --------------------------------------- diff --git a/modules/call_scilab/core_Import.def b/modules/call_scilab/core_Import.def new file mode 100755 index 000000000..dc38a4bd6 --- /dev/null +++ b/modules/call_scilab/core_Import.def @@ -0,0 +1,23 @@ +LIBRARY core.dll + + +EXPORTS +setScilabMode +scirun_ +settmpdir_ +setSCIpath +InitializeLaunchScilabSignal +ReleaseLaunchScilabSignal +TerminateCorePart2 +ExitScilab +getScilabMode +callFunctionFromGateway +putlhsvar_ +intersci_ +createvarfromptr_ +checklhs_ +checkrhs_ +com_ +freeArrayOfString +MyHeapAlloc +MyHeapFree diff --git a/modules/call_scilab/core_f_Import.def b/modules/call_scilab/core_f_Import.def new file mode 100755 index 000000000..be8fbd440 --- /dev/null +++ b/modules/call_scilab/core_f_Import.def @@ -0,0 +1,5 @@ +LIBRARY core_f.dll + + +EXPORTS +inisci_
\ No newline at end of file diff --git a/modules/call_scilab/etc/call_scilab.quit b/modules/call_scilab/etc/call_scilab.quit new file mode 100755 index 000000000..ab83f0c89 --- /dev/null +++ b/modules/call_scilab/etc/call_scilab.quit @@ -0,0 +1,10 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2007-2008 - INRIA +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + diff --git a/modules/call_scilab/etc/call_scilab.start b/modules/call_scilab/etc/call_scilab.start new file mode 100755 index 000000000..c41364496 --- /dev/null +++ b/modules/call_scilab/etc/call_scilab.start @@ -0,0 +1,10 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA - +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + + diff --git a/modules/call_scilab/examples/basicExamples/.deps/call_scilab_c_DisableInteractiveMode-DisableInteractiveMode.Po b/modules/call_scilab/examples/basicExamples/.deps/call_scilab_c_DisableInteractiveMode-DisableInteractiveMode.Po new file mode 100755 index 000000000..9ce06a81e --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/.deps/call_scilab_c_DisableInteractiveMode-DisableInteractiveMode.Po @@ -0,0 +1 @@ +# dummy diff --git a/modules/call_scilab/examples/basicExamples/.deps/call_scilab_c_getlastjob-GetLastJob.Po b/modules/call_scilab/examples/basicExamples/.deps/call_scilab_c_getlastjob-GetLastJob.Po new file mode 100755 index 000000000..9ce06a81e --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/.deps/call_scilab_c_getlastjob-GetLastJob.Po @@ -0,0 +1 @@ +# dummy diff --git a/modules/call_scilab/examples/basicExamples/.deps/call_scilab_readwriteboolean-readwriteboolean.Po b/modules/call_scilab/examples/basicExamples/.deps/call_scilab_readwriteboolean-readwriteboolean.Po new file mode 100755 index 000000000..9ce06a81e --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/.deps/call_scilab_readwriteboolean-readwriteboolean.Po @@ -0,0 +1 @@ +# dummy diff --git a/modules/call_scilab/examples/basicExamples/.deps/call_scilab_readwritecomplexmatrix-readwritecomplexmatrix.Po b/modules/call_scilab/examples/basicExamples/.deps/call_scilab_readwritecomplexmatrix-readwritecomplexmatrix.Po new file mode 100755 index 000000000..9ce06a81e --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/.deps/call_scilab_readwritecomplexmatrix-readwritecomplexmatrix.Po @@ -0,0 +1 @@ +# dummy diff --git a/modules/call_scilab/examples/basicExamples/.deps/call_scilab_readwritematrix-readwritematrix.Po b/modules/call_scilab/examples/basicExamples/.deps/call_scilab_readwritematrix-readwritematrix.Po new file mode 100755 index 000000000..9ce06a81e --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/.deps/call_scilab_readwritematrix-readwritematrix.Po @@ -0,0 +1 @@ +# dummy diff --git a/modules/call_scilab/examples/basicExamples/.deps/call_scilab_readwritestring-readwritestring.Po b/modules/call_scilab/examples/basicExamples/.deps/call_scilab_readwritestring-readwritestring.Po new file mode 100755 index 000000000..9ce06a81e --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/.deps/call_scilab_readwritestring-readwritestring.Po @@ -0,0 +1 @@ +# dummy diff --git a/modules/call_scilab/examples/basicExamples/DisableInteractiveMode.c b/modules/call_scilab/examples/basicExamples/DisableInteractiveMode.c new file mode 100755 index 000000000..81d4f422f --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/DisableInteractiveMode.c @@ -0,0 +1,45 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO - 2009 - Sylvestre LEDRU + * + * This file is released under the 3-clause BSD license. See COPYING-BSD. + * + */ +#include <stdio.h> +#include <string.h> + +#include "call_scilab.h" /* Provide functions to call Scilab engine */ + +/*------------------------------------------------------------*/ +int main(void) +{ +#ifdef _MSC_VER + if ( StartScilab(NULL, NULL, NULL) == FALSE ) +#else + if ( StartScilab(getenv("SCI"), NULL, NULL) == FALSE ) +#endif + { + fprintf(stderr, "Error while calling StartScilab\n"); + return -1; + } + + DisableInteractiveMode(); + int code = SendScilabJob("plot3d()"); /* This will failed since plot3d is + among the disable features*/ + if (code != 0) + { + char lastjob[4096]; + if (GetLastJob(lastjob, 4096)) + { + printf("Failed command: %s\n", lastjob); + } + } + + if ( TerminateScilab(NULL) == FALSE ) + { + fprintf(stderr, "Error while calling TerminateScilab\n"); + return -2; + } + return 0; +} +/*------------------------------------------------------------*/ diff --git a/modules/call_scilab/examples/basicExamples/GetLastJob.c b/modules/call_scilab/examples/basicExamples/GetLastJob.c new file mode 100755 index 000000000..4db3c746d --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/GetLastJob.c @@ -0,0 +1,44 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO - 2009 - Sylvestre LEDRU + * + * This file is released under the 3-clause BSD license. See COPYING-BSD. + * + */ +#include <stdio.h> +#include <string.h> + +#include "call_scilab.h" /* Provide functions to call Scilab engine */ + +/*------------------------------------------------------------*/ +int main(void) +{ +#ifdef _MSC_VER + if ( StartScilab(NULL, NULL, NULL) == FALSE ) +#else + if ( StartScilab(getenv("SCI"), NULL, NULL) == FALSE ) +#endif + { + fprintf(stderr, "Error while calling StartScilab\n"); + return -1; + } + + + int code = SendScilabJob("failedMyCurrentJob=%pi*3/0"); + if (code != 0) + { + char lastjob[4096]; + if (GetLastJob(lastjob, 4096)) + { + printf("Failed command: %s\n", lastjob); + } + } + + if ( TerminateScilab(NULL) == FALSE ) + { + fprintf(stderr, "Error while calling TerminateScilab\n"); + return -2; + } + return 0; +} +/*------------------------------------------------------------*/ diff --git a/modules/call_scilab/examples/basicExamples/readwriteboolean.c b/modules/call_scilab/examples/basicExamples/readwriteboolean.c new file mode 100755 index 000000000..0f095711d --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/readwriteboolean.c @@ -0,0 +1,182 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO - 2009 - Sylvestre LEDRU + * + * This file is released under the 3-clause BSD license. See COPYING-BSD. + * + * This example shows how to read / write a matrix of boolean from Scilab + * engine + * + * This example works from Scilab 5.2 + * but the previous way of doing is also described as comment + */ +#include <math.h> +#include <stdio.h> +#include <stdlib.h> /* malloc */ +#include "api_scilab.h" +#include "call_scilab.h" /* Provide functions to call Scilab engine */ + +/*------------------------------------------------------------*/ +int main(void) +{ +#ifdef _MSC_VER + if ( StartScilab(NULL, NULL, 0) == FALSE ) +#else + if ( StartScilab(getenv("SCI"), NULL, 0) == FALSE ) +#endif + { + fprintf(stderr, "Error while calling StartScilab\n"); + return -1; + } + + /******************************** WRITE ****************************/ + + /* + * Write a line matrix of boolean into Scilab + * A=[ T F F T ]; + */ + { + int A[] = {1, 0, 0, 1}; /* Declare the matrix */ + /* NOTE that it is an array of int and not an array of double */ + int rowA = 1, colA = 4; /* Size of the matrix */ + char variableName[] = "A"; + SciErr sciErr; + + /* + Write it into Scilab's memory + */ + sciErr = createNamedMatrixOfBoolean(pvApiCtx, variableName, rowA, colA, A); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + printf("Display from Scilab of A:\n"); + SendScilabJob("disp(A);"); /* Display A */ + } + + /* + * Write a matrix into Scilab + * B=[F F T F; + * F F F T ] + * Note that it is done column by column + */ + { + int B[] = {0, 0, 0, 0, 1, 0, 0, 1}; /* Declare the matrix */ + int rowB = 2, colB = 4; /* Size of the matrix */ + char variableNameB[] = "B"; + SciErr sciErr; + + /* Write it into Scilab's memory */ + sciErr = createNamedMatrixOfBoolean(pvApiCtx, variableNameB, rowB, colB, B); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + + printf("\n"); + printf("Display from Scilab of B:\n"); + SendScilabJob("disp(B);"); /* Display B */ + } + + /******************************** READ ****************************/ + + /* Load the previously set variable A */ + { + int rowA_ = 0, colA_ = 0, lp = 0; + int i = 0; + int *matrixOfBoolean = NULL; /* Int instead of double */ + + char variableToBeRetrieved[] = "A"; + SciErr sciErr; + + /* First, retrieve the size of the matrix */ + sciErr = readNamedMatrixOfBoolean(pvApiCtx, variableToBeRetrieved, &rowA_, &colA_, NULL); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + /* Alloc the memory */ + matrixOfBoolean = (int*)malloc((rowA_ * colA_) * sizeof(int)); + + /* Load the matrix */ + sciErr = readNamedMatrixOfBoolean(pvApiCtx, variableToBeRetrieved, &rowA_, &colA_, matrixOfBoolean); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + printf("\n"); + printf("Display from A (size: %d, %d):\n", rowA_, colA_); + for (i = 0; i < rowA_ * colA_; i++) + { + fprintf(stdout, "A[%d] = %d\n", i, matrixOfBoolean[i]); + } + + if (matrixOfBoolean) + { + free(matrixOfBoolean); + matrixOfBoolean = NULL; + } + } + + /* Load the previously set variable B */ + { + int rowB_ = 0, colB_ = 0, lp_ = 0; + int i = 0, j = 0; + int *matrixOfBooleanB = NULL; /* Int instead of double */ + + char variableToBeRetrievedB[] = "B"; + SciErr sciErr; + + /* First, retrieve the size of the matrix */ + sciErr = readNamedMatrixOfBoolean(pvApiCtx, variableToBeRetrievedB, &rowB_, &colB_, NULL); + + /* Alloc the memory */ + matrixOfBooleanB = (int*)malloc((rowB_ * colB_) * sizeof(int)); + + /* Load the matrix */ + sciErr = readNamedMatrixOfBoolean(pvApiCtx, variableToBeRetrievedB, &rowB_, &colB_, matrixOfBooleanB); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + printf("\n"); + printf("Display from B raw (size: %d, %d):\n", rowB_, colB_); + for (i = 0; i < rowB_ * colB_; i++) + { + /* Display the raw matrix */ + fprintf(stdout, "B[%d] = %d\n", i, matrixOfBooleanB[i]); + } + + printf("\n"); + printf("Display from B formated (size: %d, %d):\n", rowB_, colB_); + for (j = 0 ; j < rowB_ ; j++) + { + for (i = 0 ; i < colB_ ; i++) + { + /* Display the formated matrix ... the way the user + * expect */ + printf("%d ", matrixOfBooleanB[i * rowB_ + j]); + } + printf("\n"); /* New row of the matrix */ + } + + if (matrixOfBooleanB) + { + free(matrixOfBooleanB); + matrixOfBooleanB = NULL; + } + } + + + if ( TerminateScilab(NULL) == FALSE ) + { + fprintf(stderr, "Error while calling TerminateScilab\n"); + return -2; + } + return 0; +} diff --git a/modules/call_scilab/examples/basicExamples/readwriteboolean_vc/readwriteboolean.sln b/modules/call_scilab/examples/basicExamples/readwriteboolean_vc/readwriteboolean.sln new file mode 100755 index 000000000..0cd4d2562 --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/readwriteboolean_vc/readwriteboolean.sln @@ -0,0 +1,26 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "readwriteboolean", "readwriteboolean.vcxproj", "{B6DB2C8F-6D2C-4F78-BC21-3692D9A0C7F7}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B6DB2C8F-6D2C-4F78-BC21-3692D9A0C7F7}.Debug|Win32.ActiveCfg = Debug|Win32 + {B6DB2C8F-6D2C-4F78-BC21-3692D9A0C7F7}.Debug|Win32.Build.0 = Debug|Win32 + {B6DB2C8F-6D2C-4F78-BC21-3692D9A0C7F7}.Debug|x64.ActiveCfg = Debug|x64 + {B6DB2C8F-6D2C-4F78-BC21-3692D9A0C7F7}.Debug|x64.Build.0 = Debug|x64 + {B6DB2C8F-6D2C-4F78-BC21-3692D9A0C7F7}.Release|Win32.ActiveCfg = Release|Win32 + {B6DB2C8F-6D2C-4F78-BC21-3692D9A0C7F7}.Release|Win32.Build.0 = Release|Win32 + {B6DB2C8F-6D2C-4F78-BC21-3692D9A0C7F7}.Release|x64.ActiveCfg = Release|x64 + {B6DB2C8F-6D2C-4F78-BC21-3692D9A0C7F7}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/modules/call_scilab/examples/basicExamples/readwriteboolean_vc/readwriteboolean.vcxproj b/modules/call_scilab/examples/basicExamples/readwriteboolean_vc/readwriteboolean.vcxproj new file mode 100755 index 000000000..df1b13651 --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/readwriteboolean_vc/readwriteboolean.vcxproj @@ -0,0 +1,172 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Debug|x64"> + <Configuration>Debug</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|x64"> + <Configuration>Release</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <PropertyGroup Label="Globals"> + <ProjectGuid>{B6DB2C8F-6D2C-4F78-BC21-3692D9A0C7F7}</ProjectGuid> + <RootNamespace>readwriteboolean</RootNamespace> + <Keyword>Win32Proj</Keyword> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> + <ImportGroup Label="ExtensionSettings"> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <PropertyGroup Label="UserMacros" /> + <PropertyGroup> + <_ProjectFileVersion>10.0.31118.1</_ProjectFileVersion> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental> + </PropertyGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../../../core/includes;../../../includes;../../../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <ObjectFileName>$(Configuration)/</ObjectFileName> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../../bin/core.lib;../../../../../bin/call_scilab.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>../../../../../bin/readwriteboolean.exe</OutputFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <ProgramDatabaseFile>$(IntDir)readwriteboolean.pdb</ProgramDatabaseFile> + <SubSystem>Console</SubSystem> +<TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../../../core/includes;../../../includes;../../../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreaded</RuntimeLibrary> + <ObjectFileName>$(Configuration)/</ObjectFileName> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../../bin/core.lib;../../../../../bin/call_scilab.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>../../../../../bin/readwriteboolean.exe</OutputFile> + <IgnoreSpecificDefaultLibraries>libcmt.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries> + <GenerateDebugInformation>true</GenerateDebugInformation> + <ProgramDatabaseFile>$(OutDir)readwriteboolean.pdb</ProgramDatabaseFile> + <SubSystem>Console</SubSystem> +<TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <AdditionalIncludeDirectories>../../../../core/includes;../../../includes;../../../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <ObjectFileName>$(Configuration)/</ObjectFileName> + <WarningLevel>Level3</WarningLevel> + <DebugInformationFormat> + </DebugInformationFormat> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../../bin/core.lib;../../../../../bin/call_scilab.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>../../../../../bin/readwriteboolean.exe</OutputFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Console</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> +<TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <AdditionalIncludeDirectories>../../../../core/includes;../../../includes;../../../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <ObjectFileName>$(Configuration)/</ObjectFileName> + <WarningLevel>Level3</WarningLevel> + <DebugInformationFormat> + </DebugInformationFormat> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../../bin/core.lib;../../../../../bin/call_scilab.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>../../../../../bin/readwriteboolean.exe</OutputFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Console</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> +<TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemGroup> + <ClCompile Include="..\readwriteboolean.c" /> + </ItemGroup> + <ItemGroup> + <Library Include="..\..\..\..\..\bin\api_scilab.lib" /> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/modules/call_scilab/examples/basicExamples/readwriteboolean_vc/readwriteboolean.vcxproj.filters b/modules/call_scilab/examples/basicExamples/readwriteboolean_vc/readwriteboolean.vcxproj.filters new file mode 100755 index 000000000..6e3654a13 --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/readwriteboolean_vc/readwriteboolean.vcxproj.filters @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup> + <Filter Include="Source Files"> + <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> + <Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> + </Filter> + <Filter Include="Header Files"> + <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> + <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions> + </Filter> + <Filter Include="Resource Files"> + <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> + <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx</Extensions> + </Filter> + </ItemGroup> + <ItemGroup> + <ClCompile Include="..\readwriteboolean.c"> + <Filter>Source Files</Filter> + </ClCompile> + </ItemGroup> + <ItemGroup> + <Library Include="..\..\..\..\..\bin\api_scilab.lib" /> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/modules/call_scilab/examples/basicExamples/readwritecomplexmatrix.c b/modules/call_scilab/examples/basicExamples/readwritecomplexmatrix.c new file mode 100755 index 000000000..569b6c52a --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/readwritecomplexmatrix.c @@ -0,0 +1,217 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO - 2009 - Sylvestre LEDRU + * + * This file is released under the 3-clause BSD license. See COPYING-BSD. + * + * This example shows how to read / write a matrix of complex from Scilab + * engine + */ +#include <math.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include "api_scilab.h" +#include "call_scilab.h" /* Provide functions to call Scilab engine */ +/*------------------------------------------------------------*/ +int main(void) +{ +#ifdef _MSC_VER + if ( StartScilab(NULL, NULL, 0) == FALSE ) +#else + if ( StartScilab(getenv("SCI"), NULL, 0) == FALSE ) +#endif + { + fprintf(stderr, "Error while calling StartScilab\n"); + return -1; + } + + /******************************** WRITE ****************************/ + /* + * Write a line complex matrix into Scilab + * A=[ 1+%i 3 3+7*%i 2-2*%i ]; + */ + { + /* Declare the complex matrix */ + double A[] = {1, 3, 3, 2}; + double A_img[] = {1, 0, 7, -2}; + + int rowA = 1, colA = 4; /* Size of the complex matrix + * (note that colA = sizeof(A)/2 + */ + char variableName[] = "A"; + SciErr sciErr; + + /* Write it into Scilab's memory */ + sciErr = createNamedComplexMatrixOfDouble(pvApiCtx, variableName, rowA, colA, A, A_img); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + printf("Display from Scilab of A:\n"); + SendScilabJob("disp(A);"); /* Display A */ + } + + /* + * Write a matrix into Scilab + * B=[1+%i 4-%i 2+1/2*%i 3; + * 3 9 8+42*%i 2 ] + * Note that it is done column by column + */ + { + + double B[] = {1, 3, 4, 9, 2, 8, 3, 2}; + double B_img[] = {1, 0.233, -1, -0.2, 0.5, 42, -23, 123}; /* Declare the matrix */ + + int rowB = 2, colB = 4; /* Size of the matrix */ + char variableNameB[] = "B"; + SciErr sciErr; + + /* Write it into Scilab's memory */ + sciErr = createNamedComplexMatrixOfDouble(pvApiCtx, variableNameB, rowB, colB, B, B_img); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + printf("\n"); + printf("Display from Scilab of B:\n"); + SendScilabJob("disp(B);"); /* Display B */ + } + + + /******************************** READ ****************************/ + + /* Load the previously set variable A */ + { + int rowA_ = 0, colA_ = 0, lp = 0; + int i = 0, j = 0; + double *matrixOfComplex = NULL; + double *matrixOfComplex_img = NULL; + + char variableToBeRetrieved[] = "A"; + SciErr sciErr; + + /* First, retrieve the size of the matrix */ + sciErr = readNamedComplexMatrixOfDouble(pvApiCtx, variableToBeRetrieved, &rowA_, &colA_, NULL, NULL); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + /* Alloc the memory */ + matrixOfComplex = (double*)malloc((rowA_ * colA_ * 2) * sizeof(double)); + matrixOfComplex_img = (double*)malloc((rowA_ * colA_ * 2) * sizeof(double)); + + /* Load the matrix */ + sciErr = readNamedComplexMatrixOfDouble(pvApiCtx, variableToBeRetrieved, &rowA_, &colA_, matrixOfComplex, matrixOfComplex_img); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + + printf("\n"); + printf("Display raw A (size: %d, %d):\n", rowA_, colA_); + for (i = 0; i < rowA_ * colA_ * 2; i++) /* *2 is because complex part is store + * at the end + */ + { + fprintf(stdout, "A[%d] = %5.2f\n", i, matrixOfComplex[i]); + } + + printf("\n"); + printf("Display formated A (size: %d, %d):\n", rowA_, colA_); + for (i = 0; i < rowA_ * colA_; i++) + { + fprintf(stdout, "%5.2f + %5.2f.i ", matrixOfComplex[i], matrixOfComplex[i + colA_]); + } + printf("\n"); + + if (matrixOfComplex) + { + free(matrixOfComplex); + matrixOfComplex = NULL; + } + } + + /* Load the previously set variable B */ + { + int rowB_ = 0, colB_ = 0, lp_ = 0; + int i = 0, j = 0; + + double *matrixOfComplexB = NULL; + double *matrixOfComplexB_img = NULL; + char variableToBeRetrievedB[] = "B"; + SciErr sciErr; + /* First, retrieve the size of the matrix */ + + sciErr = readNamedComplexMatrixOfDouble(pvApiCtx, variableToBeRetrievedB, &rowB_, &colB_, NULL, NULL); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + + /* Alloc the memory */ + matrixOfComplexB = (double*)malloc((rowB_ * colB_) * sizeof(double)); + matrixOfComplexB_img = (double*)malloc((rowB_ * colB_) * sizeof(double)); + + /* Load the matrix */ + sciErr = readNamedComplexMatrixOfDouble(pvApiCtx, variableToBeRetrievedB, &rowB_, &colB_, matrixOfComplexB, matrixOfComplexB_img); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + + printf("\n"); + printf("Display from B raw - real part (size: %d, %d):\n", rowB_, colB_); + for (i = 0; i < rowB_ * colB_; i++) /* *2 is because complex part is store + * at the end + */ + { + /* Display the raw matrix */ + fprintf(stdout, "B[%d] = %5.2f\n", i, matrixOfComplexB[i]); + } + printf("Display from B raw - imaginary part (size: %d, %d):\n", rowB_, colB_); + for (i = 0; i < rowB_ * colB_; i++) /* *2 is because complex part is store + * at the end + */ + { + /* Display the raw matrix */ + fprintf(stdout, "B[%d] = %5.2f\n", i, matrixOfComplexB_img[i]); + } + + printf("\n"); + printf("Display from B formated (size: %d, %d):\n", rowB_, colB_); + for (j = 0 ; j < rowB_ ; j++) + { + for (i = 0 ; i < colB_ ; i++) + { + /* Display the formated matrix ... the way the user + * expect */ + printf("%5.2f + %5.2f.i ", matrixOfComplexB[i * rowB_ + j], matrixOfComplexB_img[i * rowB_ + j]); + } + printf("\n"); /* New row of the matrix */ + } + + if (matrixOfComplexB) + { + free(matrixOfComplexB); + matrixOfComplexB = NULL; + } + if (matrixOfComplexB_img) + { + free(matrixOfComplexB_img); + matrixOfComplexB_img = NULL; + } + } + + if ( TerminateScilab(NULL) == FALSE ) + { + fprintf(stderr, "Error while calling TerminateScilab\n"); + return -2; + } + return 0; +} diff --git a/modules/call_scilab/examples/basicExamples/readwritecomplexmatrix_vc/readwritecomplexmatrix.sln b/modules/call_scilab/examples/basicExamples/readwritecomplexmatrix_vc/readwritecomplexmatrix.sln new file mode 100755 index 000000000..22af0684e --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/readwritecomplexmatrix_vc/readwritecomplexmatrix.sln @@ -0,0 +1,26 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "readwritecomplexmatrix", "readwritecomplexmatrix.vcxproj", "{A82BBD7C-42F0-449E-BD28-58F3784543F9}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A82BBD7C-42F0-449E-BD28-58F3784543F9}.Debug|Win32.ActiveCfg = Debug|Win32 + {A82BBD7C-42F0-449E-BD28-58F3784543F9}.Debug|Win32.Build.0 = Debug|Win32 + {A82BBD7C-42F0-449E-BD28-58F3784543F9}.Debug|x64.ActiveCfg = Debug|x64 + {A82BBD7C-42F0-449E-BD28-58F3784543F9}.Debug|x64.Build.0 = Debug|x64 + {A82BBD7C-42F0-449E-BD28-58F3784543F9}.Release|Win32.ActiveCfg = Release|Win32 + {A82BBD7C-42F0-449E-BD28-58F3784543F9}.Release|Win32.Build.0 = Release|Win32 + {A82BBD7C-42F0-449E-BD28-58F3784543F9}.Release|x64.ActiveCfg = Release|x64 + {A82BBD7C-42F0-449E-BD28-58F3784543F9}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/modules/call_scilab/examples/basicExamples/readwritecomplexmatrix_vc/readwritecomplexmatrix.vcxproj b/modules/call_scilab/examples/basicExamples/readwritecomplexmatrix_vc/readwritecomplexmatrix.vcxproj new file mode 100755 index 000000000..0080d168b --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/readwritecomplexmatrix_vc/readwritecomplexmatrix.vcxproj @@ -0,0 +1,172 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Debug|x64"> + <Configuration>Debug</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|x64"> + <Configuration>Release</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <PropertyGroup Label="Globals"> + <ProjectGuid>{A82BBD7C-42F0-449E-BD28-58F3784543F9}</ProjectGuid> + <RootNamespace>readwritecomplexmatrix</RootNamespace> + <Keyword>Win32Proj</Keyword> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> + <ImportGroup Label="ExtensionSettings"> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <PropertyGroup Label="UserMacros" /> + <PropertyGroup> + <_ProjectFileVersion>10.0.31118.1</_ProjectFileVersion> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental> + </PropertyGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../../../core/includes;../../../includes;../../../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <ObjectFileName>$(Configuration)/</ObjectFileName> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../../bin/core.lib;../../../../../bin/call_scilab.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>../../../../../bin/readwritecomplexmatrix.exe</OutputFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <ProgramDatabaseFile>$(IntDir)readwritecomplexmatrix.pdb</ProgramDatabaseFile> + <SubSystem>Console</SubSystem> +<TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../../../core/includes;../../../includes;../../../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreaded</RuntimeLibrary> + <ObjectFileName>$(Configuration)/</ObjectFileName> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../../bin/core.lib;../../../../../bin/call_scilab.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>../../../../../bin/readwritecomplexmatrix.exe</OutputFile> + <IgnoreSpecificDefaultLibraries>libcmt.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries> + <GenerateDebugInformation>true</GenerateDebugInformation> + <ProgramDatabaseFile>$(OutDir)readwritecomplexmatrix.pdb</ProgramDatabaseFile> + <SubSystem>Console</SubSystem> +<TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <AdditionalIncludeDirectories>../../../../core/includes;../../../includes;../../../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <ObjectFileName>$(Configuration)/</ObjectFileName> + <WarningLevel>Level3</WarningLevel> + <DebugInformationFormat> + </DebugInformationFormat> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../../bin/core.lib;../../../../../bin/call_scilab.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>../../../../../bin/readwritecomplexmatrix.exe</OutputFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Console</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> +<TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <AdditionalIncludeDirectories>../../../../core/includes;../../../includes;../../../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <ObjectFileName>$(Configuration)/</ObjectFileName> + <WarningLevel>Level3</WarningLevel> + <DebugInformationFormat> + </DebugInformationFormat> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../../bin/core.lib;../../../../../bin/call_scilab.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>../../../../../bin/readwritecomplexmatrix.exe</OutputFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Console</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> +<TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemGroup> + <ClCompile Include="..\readwritecomplexmatrix.c" /> + </ItemGroup> + <ItemGroup> + <Library Include="..\..\..\..\..\bin\api_scilab.lib" /> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/modules/call_scilab/examples/basicExamples/readwritecomplexmatrix_vc/readwritecomplexmatrix.vcxproj.filters b/modules/call_scilab/examples/basicExamples/readwritecomplexmatrix_vc/readwritecomplexmatrix.vcxproj.filters new file mode 100755 index 000000000..c8f5cc926 --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/readwritecomplexmatrix_vc/readwritecomplexmatrix.vcxproj.filters @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup> + <Filter Include="Source Files"> + <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> + <Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> + </Filter> + <Filter Include="Header Files"> + <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> + <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions> + </Filter> + <Filter Include="Resource Files"> + <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> + <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx</Extensions> + </Filter> + </ItemGroup> + <ItemGroup> + <ClCompile Include="..\readwritecomplexmatrix.c"> + <Filter>Source Files</Filter> + </ClCompile> + </ItemGroup> + <ItemGroup> + <Library Include="..\..\..\..\..\bin\api_scilab.lib" /> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/modules/call_scilab/examples/basicExamples/readwritematrix.c b/modules/call_scilab/examples/basicExamples/readwritematrix.c new file mode 100755 index 000000000..7d965eea8 --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/readwritematrix.c @@ -0,0 +1,186 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO - 2009 - Sylvestre LEDRU + * + * This file is released under the 3-clause BSD license. See COPYING-BSD. + * + * This example shows how to read / write a matrix from Scilab engine + * + * This example works from Scilab 5.2 + * but the previous way of doing is also described as comment + */ +#include <math.h> +#include <stdio.h> +#include <stdlib.h> +#include "api_scilab.h" +#include "call_scilab.h" /* Provide functions to call Scilab engine */ + +/*------------------------------------------------------------*/ +int main(void) +{ +#ifdef _MSC_VER + if ( StartScilab(NULL, NULL, 0) == FALSE ) +#else + if ( StartScilab(getenv("SCI"), NULL, 0) == FALSE ) +#endif + { + fprintf(stderr, "Error while calling StartScilab\n"); + return -1; + } + + /******************************** WRITE ****************************/ + + /* + * Write a line matrix into Scilab + * A=[ 1 3 3 2 ]; + */ + { + double A[] = {1, 3, 3, 2}; /* Declare the matrix */ + int rowA = 1, colA = 4; /* Size of the matrix */ + char variableName[] = "A"; + SciErr sciErr; + + /* + * Write it into Scilab's memory + */ + sciErr = createNamedMatrixOfDouble(pvApiCtx, variableName, rowA, colA, A); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + printf("Display from Scilab of A:\n"); + SendScilabJob("disp(A);"); /* Display A */ + } + + /* + * Write a matrix into Scilab + * B=[1 4 2 3; + * 3 9 8 2 ] + * Note that it is done column by column + */ + { + double B[] = {1, 3, 4, 9, 2, 8, 3, 2}; /* Declare the matrix */ + int rowB = 2, colB = 4; /* Size of the matrix */ + char variableNameB[] = "B"; + SciErr sciErr; + + /* + * Write it into Scilab's memory + */ + sciErr = createNamedMatrixOfDouble(pvApiCtx, variableNameB, rowB, colB, B); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + printf("\n"); + printf("Display from Scilab of B:\n"); + SendScilabJob("disp(B);"); /* Display B */ + } + + /******************************** READ ****************************/ + + /* Load the previously set variable A */ + { + int rowA_ = 0, colA_ = 0, lp = 0; + int i = 0, j = 0; + double *matrixOfDouble = NULL; + + char variableToBeRetrieved[] = "A"; + SciErr sciErr; + + /* First, retrieve the size of the matrix */ + sciErr = readNamedMatrixOfDouble(pvApiCtx, variableToBeRetrieved, &rowA_, &colA_, NULL); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + /* Alloc the memory */ + matrixOfDouble = (double*)malloc((rowA_ * colA_) * sizeof(double)); + + /* Load the matrix */ + sciErr = readNamedMatrixOfDouble(pvApiCtx, variableToBeRetrieved, &rowA_, &colA_, matrixOfDouble); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + printf("\n"); + printf("Display from A (size: %d, %d):\n", rowA_, colA_); + for (i = 0; i < rowA_ * colA_; i++) + { + fprintf(stdout, "A[%d] = %5.2f\n", i, matrixOfDouble[i]); + } + + if (matrixOfDouble) + { + free(matrixOfDouble); + matrixOfDouble = NULL; + } + } + + + /* Load the previously set variable B */ + { + int rowB_ = 0, colB_ = 0, lp_ = 0; + double *matrixOfDoubleB = NULL; + int i = 0, j = 0; + + char variableToBeRetrievedB[] = "B"; + SciErr sciErr; + + /* First, retrieve the size of the matrix */ + sciErr = readNamedMatrixOfDouble(pvApiCtx, variableToBeRetrievedB, &rowB_, &colB_, NULL); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + /* Alloc the memory */ + matrixOfDoubleB = (double*)malloc((rowB_ * colB_) * sizeof(double)); + + /* Load the matrix */ + sciErr = readNamedMatrixOfDouble(pvApiCtx, variableToBeRetrievedB, &rowB_, &colB_, matrixOfDoubleB); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + printf("\n"); + printf("Display from B raw (size: %d, %d):\n", rowB_, colB_); + for (i = 0; i < rowB_ * colB_; i++) + { + /* Display the raw matrix */ + fprintf(stdout, "B[%d] = %5.2f\n", i, matrixOfDoubleB[i]); + } + + printf("\n"); + printf("Display from B formated (size: %d, %d):\n", rowB_, colB_); + for (j = 0 ; j < rowB_ ; j++) + { + for (i = 0 ; i < colB_ ; i++) + { + /* Display the formated matrix ... the way the user + * expect */ + printf("%5.2f ", matrixOfDoubleB[i * rowB_ + j]); + } + printf("\n"); /* New row of the matrix */ + } + + if (matrixOfDoubleB) + { + free(matrixOfDoubleB); + matrixOfDoubleB = NULL; + } + } + + + if ( TerminateScilab(NULL) == FALSE ) + { + fprintf(stderr, "Error while calling TerminateScilab\n"); + return -2; + } + return 0; +} diff --git a/modules/call_scilab/examples/basicExamples/readwritestring.c b/modules/call_scilab/examples/basicExamples/readwritestring.c new file mode 100755 index 000000000..8b2933851 --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/readwritestring.c @@ -0,0 +1,218 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO - 2009 - Sylvestre Ledru + * + * This file is released under the 3-clause BSD license. See COPYING-BSD. + * + * This example shows how to read / write a matrix of string from Scilab engine + */ +#include <math.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include "api_scilab.h" +#include "call_scilab.h" /* Provide functions to call Scilab engine */ + +/*------------------------------------------------------------*/ +int main(void) +{ +#ifdef _MSC_VER + if ( StartScilab(NULL, NULL, 0) == FALSE ) +#else + if ( StartScilab(getenv("SCI"), NULL, 0) == FALSE ) +#endif + { + fprintf(stderr, "Error while calling StartScilab\n"); + return -1; + } + + /******************************** WRITE ****************************/ + + /* + * Write a single string into Scilab + * A="my Message"; + */ + { + SciErr sciErr; + + int row = 2, col = 1; /* Size of the matrix */ + /* Declare the string */ + char **myMatrixOfString = (char**)malloc(sizeof(char*) * row * col); + char variableName[] = "A"; + myMatrixOfString[0] = "my Message"; + myMatrixOfString[1] = "on two lines"; + + /* Write it into Scilab's memory */ + sciErr = createNamedMatrixOfString(pvApiCtx, variableName, row, col, myMatrixOfString); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + printf("Display from Scilab of A:\n"); + SendScilabJob("disp(A);"); /* Display A */ + } + + { + /* + * Write a matrix into Scilab + * B=['My' 'Great' ; + * 'String' ';)' ] + * Note that it is done column by column + */ + int row = 2, col = 2; /* Size of the matrix */ + /* Declare the string */ + char **myMatrixOfStringB = (char**)malloc(sizeof(char*) * row * col); + char variableNameB[] = "B"; + SciErr sciErr; + + printf("\n"); + + myMatrixOfStringB[0] = "My"; + myMatrixOfStringB[1] = "String"; + myMatrixOfStringB[2] = "Great"; + myMatrixOfStringB[3] = ";)"; + + sciErr = createNamedMatrixOfString(pvApiCtx, variableNameB, row, col, myMatrixOfStringB); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + + printf("\n"); + printf("Display from Scilab of B:\n"); + SendScilabJob("disp(B);"); /* Display B */ + } + /******************************** READ ****************************/ + + /* Load the previously set variable A */ + { + + char variableToBeRetrieved[] = "A"; + int iRows = 0; + int iCols = 0; + int i, j; + int* piAddr = NULL; + int* piLen = NULL; + char** pstData = NULL; + SciErr sciErr; + + //first call to retrieve dimensions + sciErr = readNamedMatrixOfString(pvApiCtx, variableToBeRetrieved, &iRows, &iCols, NULL, NULL); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + piLen = (int*)malloc(sizeof(int) * iRows * iCols); + //second call to retrieve length of each string + sciErr = readNamedMatrixOfString(pvApiCtx, variableToBeRetrieved, &iRows, &iCols, piLen, NULL); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + pstData = (char**)malloc(sizeof(char*) * iRows * iCols); + for (i = 0 ; i < iRows * iCols ; i++) + { + pstData[i] = (char*)malloc(sizeof(char) * (piLen[i] + 1));//+ 1 for null termination + } + //third call to retrieve data + sciErr = readNamedMatrixOfString(pvApiCtx, variableToBeRetrieved, &iRows, &iCols, piLen, pstData); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + + printf("\n"); + printf("Load and display of A:\n"); + for (j = 0 ; j < iCols ; j++) + { + for (i = 0 ; i < iRows ; i++) + { + /* Display the formated matrix with same scilab indice */ + printf("[%d,%d] = %s\n", j + 1, i + 1, pstData[j * iRows + i]); + } + } + + printf("\n"); + free(piLen); + for (i = 0 ; i < iRows * iCols ; i++) + { + free(pstData[i]); + } + free(pstData); + + } + + + /* Load an element of the previously set variable B */ + { + + char variableToBeRetrieved[] = "B"; + int iRows = 0; + int iCols = 0; + int i, j; + int* piAddr = NULL; + int* piLen = NULL; + char** pstData = NULL; + SciErr sciErr; + + //first call to retrieve dimensions + sciErr = readNamedMatrixOfString(pvApiCtx, variableToBeRetrieved, &iRows, &iCols, NULL, NULL); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + piLen = (int*)malloc(sizeof(int) * iRows * iCols); + //second call to retrieve length of each string + sciErr = readNamedMatrixOfString(pvApiCtx, variableToBeRetrieved, &iRows, &iCols, piLen, NULL); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + pstData = (char**)malloc(sizeof(char*) * iRows * iCols); + for (i = 0 ; i < iRows * iCols ; i++) + { + pstData[i] = (char*)malloc(sizeof(char) * (piLen[i] + 1));//+ 1 for null termination + } + //third call to retrieve data + sciErr = readNamedMatrixOfString(pvApiCtx, variableToBeRetrieved, &iRows, &iCols, piLen, pstData); + if (sciErr.iErr) + { + printError(&sciErr, 0); + } + + + printf("\n"); + printf("Load and display of B:\n"); + for (j = 0 ; j < iCols ; j++) + { + for (i = 0 ; i < iRows ; i++) + { + /* Display the formated matrix with same scilab indice */ + printf("[%d,%d] = %s\n", j + 1, i + 1, pstData[j * iRows + i]); + } + } + + printf("\n"); + free(piLen); + for (i = 0 ; i < iRows * iCols ; i++) + { + free(pstData[i]); + } + free(pstData); + + } + + if ( TerminateScilab(NULL) == FALSE ) + { + fprintf(stderr, "Error while calling TerminateScilab\n"); + return -2; + } + return 0; +} diff --git a/modules/call_scilab/examples/basicExamples/readwritewmatrix_vc/readwritematrix.sln b/modules/call_scilab/examples/basicExamples/readwritewmatrix_vc/readwritematrix.sln new file mode 100755 index 000000000..1222f1ffb --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/readwritewmatrix_vc/readwritematrix.sln @@ -0,0 +1,26 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "readwritematrix", "readwritematrix.vcxproj", "{1BCA5407-8617-4797-8412-8B76C4359144}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {1BCA5407-8617-4797-8412-8B76C4359144}.Debug|Win32.ActiveCfg = Debug|Win32 + {1BCA5407-8617-4797-8412-8B76C4359144}.Debug|Win32.Build.0 = Debug|Win32 + {1BCA5407-8617-4797-8412-8B76C4359144}.Debug|x64.ActiveCfg = Debug|x64 + {1BCA5407-8617-4797-8412-8B76C4359144}.Debug|x64.Build.0 = Debug|x64 + {1BCA5407-8617-4797-8412-8B76C4359144}.Release|Win32.ActiveCfg = Release|Win32 + {1BCA5407-8617-4797-8412-8B76C4359144}.Release|Win32.Build.0 = Release|Win32 + {1BCA5407-8617-4797-8412-8B76C4359144}.Release|x64.ActiveCfg = Release|x64 + {1BCA5407-8617-4797-8412-8B76C4359144}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/modules/call_scilab/examples/basicExamples/readwritewmatrix_vc/readwritematrix.vcxproj b/modules/call_scilab/examples/basicExamples/readwritewmatrix_vc/readwritematrix.vcxproj new file mode 100755 index 000000000..eaaf6bde9 --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/readwritewmatrix_vc/readwritematrix.vcxproj @@ -0,0 +1,172 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Debug|x64"> + <Configuration>Debug</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|x64"> + <Configuration>Release</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <PropertyGroup Label="Globals"> + <ProjectGuid>{1BCA5407-8617-4797-8412-8B76C4359144}</ProjectGuid> + <RootNamespace>readwritematrix</RootNamespace> + <Keyword>Win32Proj</Keyword> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> + <ImportGroup Label="ExtensionSettings"> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <PropertyGroup Label="UserMacros" /> + <PropertyGroup> + <_ProjectFileVersion>10.0.31118.1</_ProjectFileVersion> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental> + </PropertyGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../../../core/includes;../../../includes;../../../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <ObjectFileName>$(Configuration)/</ObjectFileName> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../../bin/core.lib;../../../../../bin/call_scilab.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>../../../../../bin/readwritematrix.exe</OutputFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <ProgramDatabaseFile>$(IntDir)readwritematrix.pdb</ProgramDatabaseFile> + <SubSystem>Console</SubSystem> +<TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../../../core/includes;../../../includes;../../../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreaded</RuntimeLibrary> + <ObjectFileName>$(Configuration)/</ObjectFileName> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../../bin/core.lib;../../../../../bin/call_scilab.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>../../../../../bin/readwritematrix.exe</OutputFile> + <IgnoreSpecificDefaultLibraries>libcmt.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries> + <GenerateDebugInformation>true</GenerateDebugInformation> + <ProgramDatabaseFile>$(OutDir)readwritematrix.pdb</ProgramDatabaseFile> + <SubSystem>Console</SubSystem> +<TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <AdditionalIncludeDirectories>../../../../core/includes;../../../includes;../../../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <ObjectFileName>$(Configuration)/</ObjectFileName> + <WarningLevel>Level3</WarningLevel> + <DebugInformationFormat> + </DebugInformationFormat> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../../bin/core.lib;../../../../../bin/call_scilab.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>../../../../../bin/readwritematrix.exe</OutputFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Console</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> +<TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <AdditionalIncludeDirectories>../../../../core/includes;../../../includes;../../../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <ObjectFileName>$(Configuration)/</ObjectFileName> + <WarningLevel>Level3</WarningLevel> + <DebugInformationFormat> + </DebugInformationFormat> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../../bin/core.lib;../../../../../bin/call_scilab.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>../../../../../bin/readwritematrix.exe</OutputFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Console</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> +<TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemGroup> + <ClCompile Include="..\readwritematrix.c" /> + </ItemGroup> + <ItemGroup> + <Library Include="..\..\..\..\..\bin\api_scilab.lib" /> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/modules/call_scilab/examples/basicExamples/readwritewmatrix_vc/readwritematrix.vcxproj.filters b/modules/call_scilab/examples/basicExamples/readwritewmatrix_vc/readwritematrix.vcxproj.filters new file mode 100755 index 000000000..f7b8e640b --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/readwritewmatrix_vc/readwritematrix.vcxproj.filters @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup> + <Filter Include="Source Files"> + <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> + <Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> + </Filter> + <Filter Include="Header Files"> + <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> + <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions> + </Filter> + <Filter Include="Resource Files"> + <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> + <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx</Extensions> + </Filter> + </ItemGroup> + <ItemGroup> + <ClCompile Include="..\readwritematrix.c"> + <Filter>Source Files</Filter> + </ClCompile> + </ItemGroup> + <ItemGroup> + <Library Include="..\..\..\..\..\bin\api_scilab.lib" /> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/modules/call_scilab/examples/basicExamples/readwritewtring_vc/readwritestring.sln b/modules/call_scilab/examples/basicExamples/readwritewtring_vc/readwritestring.sln new file mode 100755 index 000000000..beb639297 --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/readwritewtring_vc/readwritestring.sln @@ -0,0 +1,26 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "readwritestring", "readwritestring.vcxproj", "{39D444F3-1750-4E98-B345-7EBDC1D2E080}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {39D444F3-1750-4E98-B345-7EBDC1D2E080}.Debug|Win32.ActiveCfg = Debug|Win32 + {39D444F3-1750-4E98-B345-7EBDC1D2E080}.Debug|Win32.Build.0 = Debug|Win32 + {39D444F3-1750-4E98-B345-7EBDC1D2E080}.Debug|x64.ActiveCfg = Debug|x64 + {39D444F3-1750-4E98-B345-7EBDC1D2E080}.Debug|x64.Build.0 = Debug|x64 + {39D444F3-1750-4E98-B345-7EBDC1D2E080}.Release|Win32.ActiveCfg = Release|Win32 + {39D444F3-1750-4E98-B345-7EBDC1D2E080}.Release|Win32.Build.0 = Release|Win32 + {39D444F3-1750-4E98-B345-7EBDC1D2E080}.Release|x64.ActiveCfg = Release|x64 + {39D444F3-1750-4E98-B345-7EBDC1D2E080}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/modules/call_scilab/examples/basicExamples/readwritewtring_vc/readwritestring.vcxproj b/modules/call_scilab/examples/basicExamples/readwritewtring_vc/readwritestring.vcxproj new file mode 100755 index 000000000..dcfa87560 --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/readwritewtring_vc/readwritestring.vcxproj @@ -0,0 +1,172 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Debug|x64"> + <Configuration>Debug</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|x64"> + <Configuration>Release</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <PropertyGroup Label="Globals"> + <ProjectGuid>{39D444F3-1750-4E98-B345-7EBDC1D2E080}</ProjectGuid> + <RootNamespace>readwritestring</RootNamespace> + <Keyword>Win32Proj</Keyword> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> + <ImportGroup Label="ExtensionSettings"> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <PropertyGroup Label="UserMacros" /> + <PropertyGroup> + <_ProjectFileVersion>10.0.31118.1</_ProjectFileVersion> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental> + </PropertyGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../../../core/includes;../../../includes;../../../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <ObjectFileName>$(Configuration)/</ObjectFileName> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../../bin/core.lib;../../../../../bin/call_scilab.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>../../../../../bin/readwritestring.exe</OutputFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <ProgramDatabaseFile>$(IntDir)readwritestring.pdb</ProgramDatabaseFile> + <SubSystem>Console</SubSystem> +<TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../../../core/includes;../../../includes;../../../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreaded</RuntimeLibrary> + <ObjectFileName>$(Configuration)/</ObjectFileName> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../../bin/core.lib;../../../../../bin/call_scilab.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>../../../../../bin/readwritestring.exe</OutputFile> + <IgnoreSpecificDefaultLibraries>libcmt.lib;%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries> + <GenerateDebugInformation>true</GenerateDebugInformation> + <ProgramDatabaseFile>$(OutDir)readwritestring.pdb</ProgramDatabaseFile> + <SubSystem>Console</SubSystem> +<TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <AdditionalIncludeDirectories>../../../../core/includes;../../../includes;../../../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <ObjectFileName>$(Configuration)/</ObjectFileName> + <WarningLevel>Level3</WarningLevel> + <DebugInformationFormat> + </DebugInformationFormat> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../../bin/core.lib;../../../../../bin/call_scilab.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>../../../../../bin/readwritestring.exe</OutputFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Console</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> +<TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <AdditionalIncludeDirectories>../../../../core/includes;../../../includes;../../../../api_scilab/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <ObjectFileName>$(Configuration)/</ObjectFileName> + <WarningLevel>Level3</WarningLevel> + <DebugInformationFormat> + </DebugInformationFormat> + </ClCompile> + <Link> + <AdditionalDependencies>../../../../../bin/core.lib;../../../../../bin/call_scilab.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>../../../../../bin/readwritestring.exe</OutputFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Console</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> +<TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemGroup> + <ClCompile Include="..\readwritestring.c" /> + </ItemGroup> + <ItemGroup> + <Library Include="..\..\..\..\..\bin\api_scilab.lib" /> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/modules/call_scilab/examples/basicExamples/readwritewtring_vc/readwritestring.vcxproj.filters b/modules/call_scilab/examples/basicExamples/readwritewtring_vc/readwritestring.vcxproj.filters new file mode 100755 index 000000000..10172dc45 --- /dev/null +++ b/modules/call_scilab/examples/basicExamples/readwritewtring_vc/readwritestring.vcxproj.filters @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup> + <Filter Include="Source Files"> + <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> + <Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> + </Filter> + <Filter Include="Header Files"> + <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> + <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions> + </Filter> + <Filter Include="Resource Files"> + <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> + <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx</Extensions> + </Filter> + </ItemGroup> + <ItemGroup> + <ClCompile Include="..\readwritestring.c"> + <Filter>Source Files</Filter> + </ClCompile> + </ItemGroup> + <ItemGroup> + <Library Include="..\..\..\..\..\bin\api_scilab.lib" /> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/modules/call_scilab/examples/call_scilab/NET/C#/DotNetScilab.sln b/modules/call_scilab/examples/call_scilab/NET/C#/DotNetScilab.sln new file mode 100755 index 000000000..e1b1cb83b --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/C#/DotNetScilab.sln @@ -0,0 +1,46 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetScilab", "dotnetsci\DotNetScilab.csproj", "{C3F0C7DC-82AD-405B-990A-BF2C5B7F46FF}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cs_example", "cs_example\cs_example.csproj", "{10B5A5BF-3204-4B47-91C0-7FA614EFA94A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C3F0C7DC-82AD-405B-990A-BF2C5B7F46FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C3F0C7DC-82AD-405B-990A-BF2C5B7F46FF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C3F0C7DC-82AD-405B-990A-BF2C5B7F46FF}.Debug|x64.ActiveCfg = Debug|x64 + {C3F0C7DC-82AD-405B-990A-BF2C5B7F46FF}.Debug|x64.Build.0 = Debug|x64 + {C3F0C7DC-82AD-405B-990A-BF2C5B7F46FF}.Debug|x86.ActiveCfg = Debug|x86 + {C3F0C7DC-82AD-405B-990A-BF2C5B7F46FF}.Debug|x86.Build.0 = Debug|x86 + {C3F0C7DC-82AD-405B-990A-BF2C5B7F46FF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C3F0C7DC-82AD-405B-990A-BF2C5B7F46FF}.Release|Any CPU.Build.0 = Release|Any CPU + {C3F0C7DC-82AD-405B-990A-BF2C5B7F46FF}.Release|x64.ActiveCfg = Release|x64 + {C3F0C7DC-82AD-405B-990A-BF2C5B7F46FF}.Release|x64.Build.0 = Release|x64 + {C3F0C7DC-82AD-405B-990A-BF2C5B7F46FF}.Release|x86.ActiveCfg = Release|x86 + {C3F0C7DC-82AD-405B-990A-BF2C5B7F46FF}.Release|x86.Build.0 = Release|x86 + {10B5A5BF-3204-4B47-91C0-7FA614EFA94A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {10B5A5BF-3204-4B47-91C0-7FA614EFA94A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {10B5A5BF-3204-4B47-91C0-7FA614EFA94A}.Debug|x64.ActiveCfg = Debug|x64 + {10B5A5BF-3204-4B47-91C0-7FA614EFA94A}.Debug|x64.Build.0 = Debug|x64 + {10B5A5BF-3204-4B47-91C0-7FA614EFA94A}.Debug|x86.ActiveCfg = Debug|x86 + {10B5A5BF-3204-4B47-91C0-7FA614EFA94A}.Debug|x86.Build.0 = Debug|x86 + {10B5A5BF-3204-4B47-91C0-7FA614EFA94A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {10B5A5BF-3204-4B47-91C0-7FA614EFA94A}.Release|Any CPU.Build.0 = Release|Any CPU + {10B5A5BF-3204-4B47-91C0-7FA614EFA94A}.Release|x64.ActiveCfg = Release|x64 + {10B5A5BF-3204-4B47-91C0-7FA614EFA94A}.Release|x64.Build.0 = Release|x64 + {10B5A5BF-3204-4B47-91C0-7FA614EFA94A}.Release|x86.ActiveCfg = Release|x86 + {10B5A5BF-3204-4B47-91C0-7FA614EFA94A}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/modules/call_scilab/examples/call_scilab/NET/C#/cs_example/Properties/AssemblyInfo.cs b/modules/call_scilab/examples/call_scilab/NET/C#/cs_example/Properties/AssemblyInfo.cs new file mode 100755 index 000000000..61c6d3312 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/C#/cs_example/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("example")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Scilab - DIGITEO")] +[assembly: AssemblyProduct("example")] +[assembly: AssemblyCopyright("Copyright © Scilab 2009")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("17e29de2-0c66-420c-931c-662ab2883fb8")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/modules/call_scilab/examples/call_scilab/NET/C#/cs_example/cs_example.cs b/modules/call_scilab/examples/call_scilab/NET/C#/cs_example/cs_example.cs new file mode 100755 index 000000000..ce4500736 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/C#/cs_example/cs_example.cs @@ -0,0 +1,294 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ +//============================================================================= +using System; +using System.Collections.Generic; +using System.Text; +using DotNetScilab; +//============================================================================= +namespace example +{ + class cs_example + { + //============================================================================= + /* + * A small example to call scilab from C# + * read & write matrix of double, string, boolean, int(32) + */ + static void example_readwriteMatrixOfDouble(Scilab _objScilab) + { + //============================================================================= + // Send a command to scilab + // Here , we want to display SCI variable + _objScilab.SendScilabJob("disp(\'SCI = \');"); + _objScilab.SendScilabJob("disp(SCI);"); + //============================================================================= + double[] A = new double[] { 1, 2, 3, 4, 5, 6 }; + int mA = 2, nA = 3; + + // Write a matrix of double named in scilab + _objScilab.createNamedMatrixOfDouble("A", mA, nA, A); + + // display matrix of double by scilab + _objScilab.SendScilabJob("disp(\'A =\');"); + _objScilab.SendScilabJob("disp(A);"); + //============================================================================= + if (_objScilab.getNamedVarType("A") == (int)DotNetScilab.ScilabType.sci_matrix) + { + Console.WriteLine("A is a matrix of double"); + } + //============================================================================= + _objScilab.SendScilabJob("B = A + 1;"); + + // get dimensions of a named matrix of double + int[] DimB = _objScilab.getNamedVarDimension("B"); + + // get named matrix of double + double[] B = _objScilab.readNamedMatrixOfDouble("B"); + + // display matrix of double from C# + Console.WriteLine(""); + Console.WriteLine("(C#) B ="); + for (int i = 0; i < DimB[0]; i++) + { + for (int j = 0; j < DimB[1]; j++) + { + Console.Write(B[j * DimB[0] + i] + " "); + } + + Console.WriteLine(""); + } + + // display matrix of double by scilab + _objScilab.SendScilabJob("disp(\'B =\');"); + _objScilab.SendScilabJob("disp(B);"); + //============================================================================= + } + //============================================================================= + static void example_readwriteMatrixOfString(Scilab _objScilab) + { + //============================================================================= + string[] strA = new string[] { "Scilab", "The", "open", + "source", "for", "numerical", + "computation" , ":", ")"}; + int mstrA = 3, nstrA = 3; + + // Write a matrix of string named in scilab + _objScilab.createNamedMatrixOfString("string_A", mstrA, nstrA, strA); + + // display matrix of string by scilab + _objScilab.SendScilabJob("disp(\'string_A =\');"); + _objScilab.SendScilabJob("disp(string_A);"); + //============================================================================= + if (_objScilab.getNamedVarType("string_A") == (int)DotNetScilab.ScilabType.sci_strings) + { + Console.WriteLine("string_A is a matrix of strings"); + } + //============================================================================= + _objScilab.SendScilabJob("string_B = convstr(string_A,\'u\');"); + + // get dimensions of a named matrix of string + int[] DimstrB = _objScilab.getNamedVarDimension("string_B"); + + // get named matrix of string + string[] strB = _objScilab.readNamedMatrixOfString("string_B"); + + Console.WriteLine(""); + Console.WriteLine("(C#) strB ="); + for (int i = 0; i < DimstrB[0]; i++) + { + for (int j = 0; j < DimstrB[1]; j++) + { + Console.Write(strB[j * DimstrB[0] + i] + " "); + } + + Console.WriteLine(""); + } + + // display matrix of string by scilab + _objScilab.SendScilabJob("disp(\'string_B =\');"); + _objScilab.SendScilabJob("disp(string_B);"); + //============================================================================= + } + //============================================================================= + static void example_readwriteMatrixOfBoolean(Scilab _objScilab) + { + //============================================================================= + Boolean[] bA = new Boolean[] { false, true, false, + true, false, true}; + int mbA = 2, nbA = 3; + + // Write a matrix of string named in scilab + _objScilab.createNamedMatrixOfBoolean("boolean_A", mbA, nbA, bA); + + // display matrix of string by scilab + _objScilab.SendScilabJob("disp(\'boolean_A =\');"); + _objScilab.SendScilabJob("disp(boolean_A);"); + //============================================================================= + // check if av + if (_objScilab.existNamedVariable("boolean_A") == true) + { + Console.WriteLine("boolean_A exists in scilab"); + } + + if (_objScilab.existNamedVariable("boolean_B") == false) + { + Console.WriteLine("boolean_B does not exist in scilab"); + } + //============================================================================= + if (_objScilab.getNamedVarType("boolean_A") == (int)DotNetScilab.ScilabType.sci_boolean) + { + Console.WriteLine("boolean_A is a matrix of boolean"); + } + //============================================================================= + _objScilab.SendScilabJob("boolean_B = ~boolean_A;"); + // get dimensions of a named matrix of boolean + int[] DimbB = _objScilab.getNamedVarDimension("boolean_B"); + + // get named matrix of boolean + Boolean[] bB = _objScilab.getNamedMatrixOfBoolean("boolean_B"); + + Console.WriteLine(""); + Console.WriteLine("(C#) bB ="); + for (int i = 0; i < DimbB[0]; i++) + { + for (int j = 0; j < DimbB[1]; j++) + { + Console.Write(bB[j * DimbB[0] + i] + " "); + } + + Console.WriteLine(""); + } + + // display matrix of string by scilab + _objScilab.SendScilabJob("disp(\'boolean_B =\');"); + _objScilab.SendScilabJob("disp(boolean_B);"); + //============================================================================= + } + //============================================================================= + static void example_doplot3d(Scilab _objScilab) + { + _objScilab.SendScilabJob("plot3d()"); + while (_objScilab.HaveAGraph()) + { + _objScilab.doEvent(); + } + } + //============================================================================= + static void example_readwriteMatrixOfInt(Scilab _objScilab) + { + //============================================================================= + int[] A = new int[] { 1, 2, 3, 4, 5, 6 }; + int mA = 2, nA = 3; + + // Write a matrix of double named in scilab + _objScilab.createNamedMatrixOfInt32("int32_A", mA, nA, A); + + // display matrix of double by scilab + _objScilab.SendScilabJob("disp(\'int32_A =\');"); + _objScilab.SendScilabJob("disp(int32_A);"); + //============================================================================= + if (_objScilab.getNamedVarType("int32_A") == (int)DotNetScilab.ScilabType.sci_ints) + { + Console.WriteLine("int32_A is a matrix of int(32)"); + } + //============================================================================= + _objScilab.SendScilabJob("int32_B = int32_A + 1;"); + + // get dimensions of a named matrix of double + int[] DimB = _objScilab.getNamedVarDimension("int32_B"); + + // get named matrix of double + int[] B = _objScilab.readNamedMatrixOfInt32("int32_B"); + + // display matrix of double from C# + Console.WriteLine(""); + Console.WriteLine("(C#) int32_B ="); + for (int i = 0; i < DimB[0]; i++) + { + for (int j = 0; j < DimB[1]; j++) + { + Console.Write(B[j * DimB[0] + i] + " "); + } + + Console.WriteLine(""); + } + + // display matrix of double by scilab + _objScilab.SendScilabJob("disp(\'int32_B =\');"); + _objScilab.SendScilabJob("disp(int32_B);"); + //============================================================================= + } + //============================================================================= + static void example_readwriteComplexMatrixOfDouble(Scilab _objScilab) + { + //============================================================================= + double[] realPartA = new double[] { 1, 2, 3, 4, 5, 6 }; + double[] imagPartA = new double[] { 6, 5, 4, 3, 2, 1 }; + int mA = 2, nA = 3; + + // Write a matrix of double named in scilab + _objScilab.createNamedComplexMatrixOfDouble("cplx_A", mA, nA, realPartA, imagPartA); + + // display matrix of double by scilab + _objScilab.SendScilabJob("disp(\'cplx_A =\');"); + _objScilab.SendScilabJob("disp(cplx_A);"); + //============================================================================= + _objScilab.SendScilabJob("cplx_B = cplx_A * 2;"); + + // get dimensions of a named matrix of double + int[] DimB = _objScilab.getNamedVarDimension("cplx_B"); + + // get named matrix of double + double[] realPartB = _objScilab.readNamedComplexMatrixOfDoubleRealPart("cplx_B"); + double[] imagPartB = _objScilab.readNamedComplexMatrixOfDoubleImgPart("cplx_B"); + + // display matrix of double from C# + Console.WriteLine(""); + Console.WriteLine("(C#) cplx_B ="); + for (int i = 0; i < DimB[0]; i++) + { + for (int j = 0; j < DimB[1]; j++) + { + Console.Write(realPartB[j * DimB[0] + i] + " + i *" + imagPartB[j * DimB[0] + i] + " "); + } + + Console.WriteLine(""); + } + + // display matrix of double by scilab + _objScilab.SendScilabJob("disp(\'cplx_B =\');"); + _objScilab.SendScilabJob("disp(cplx_B);"); + //============================================================================= + } + //============================================================================= + static void Main(string[] args) + { + // start scilab engine with graphics + Scilab m_oSCilab = new Scilab(true); + + example_readwriteMatrixOfDouble(m_oSCilab); + + example_readwriteMatrixOfString(m_oSCilab); + + example_readwriteMatrixOfBoolean(m_oSCilab); + + example_readwriteMatrixOfInt(m_oSCilab); + + example_readwriteComplexMatrixOfDouble(m_oSCilab); + + example_doplot3d(m_oSCilab); + } + //============================================================================= + } +} +//============================================================================= diff --git a/modules/call_scilab/examples/call_scilab/NET/C#/cs_example/cs_example.csproj b/modules/call_scilab/examples/call_scilab/NET/C#/cs_example/cs_example.csproj new file mode 100755 index 000000000..da98bff20 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/C#/cs_example/cs_example.csproj @@ -0,0 +1,108 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>9.0.30729</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{10B5A5BF-3204-4B47-91C0-7FA614EFA94A}</ProjectGuid> + <OutputType>Exe</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>cs_example</RootNamespace> + <AssemblyName>cs_example</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + <FileUpgradeFlags> + </FileUpgradeFlags> + <UpgradeBackupLocation> + </UpgradeBackupLocation> + <OldToolsVersion>3.5</OldToolsVersion> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>..\..\..\..\..\..\..\bin\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>..\..\..\..\..\..\..\bin\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> + <DebugSymbols>true</DebugSymbols> + <OutputPath>..\..\..\..\..\..\..\bin\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> + <DebugType>full</DebugType> + <PlatformTarget>x64</PlatformTarget> + <ErrorReport>prompt</ErrorReport> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> + <OutputPath>..\..\..\..\..\..\..\bin\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> + <Optimize>true</Optimize> + <DebugType>pdbonly</DebugType> + <PlatformTarget>x64</PlatformTarget> + <ErrorReport>prompt</ErrorReport> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> + <DebugSymbols>true</DebugSymbols> + <OutputPath>..\..\..\..\..\..\..\bin\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> + <DebugType>full</DebugType> + <PlatformTarget>x86</PlatformTarget> + <ErrorReport>prompt</ErrorReport> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> + <OutputPath>..\..\..\..\..\..\..\bin\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> + <Optimize>true</Optimize> + <DebugType>pdbonly</DebugType> + <PlatformTarget>x86</PlatformTarget> + <ErrorReport>prompt</ErrorReport> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Core"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Xml.Linq"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data.DataSetExtensions"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="cs_example.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\dotnetsci\DotNetScilab.csproj"> + <Project>{C3F0C7DC-82AD-405B-990A-BF2C5B7F46FF}</Project> + <Name>DotNetScilab</Name> + </ProjectReference> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project>
\ No newline at end of file diff --git a/modules/call_scilab/examples/call_scilab/NET/C#/dotnetsci/DotNetScilab.csproj b/modules/call_scilab/examples/call_scilab/NET/C#/dotnetsci/DotNetScilab.csproj new file mode 100755 index 000000000..a19ba51ea --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/C#/dotnetsci/DotNetScilab.csproj @@ -0,0 +1,109 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>9.0.30729</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{C3F0C7DC-82AD-405B-990A-BF2C5B7F46FF}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>DotNetScilab</RootNamespace> + <AssemblyName>DotNet-Component-Scilab</AssemblyName> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + <FileUpgradeFlags> + </FileUpgradeFlags> + <UpgradeBackupLocation> + </UpgradeBackupLocation> + <OldToolsVersion>3.5</OldToolsVersion> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>..\..\..\..\..\..\..\bin\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> + <RegisterForComInterop>false</RegisterForComInterop> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>..\..\..\..\..\..\..\bin\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> + <RegisterForComInterop>false</RegisterForComInterop> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> + <DebugSymbols>true</DebugSymbols> + <OutputPath>..\..\..\..\..\..\..\bin\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> + <RegisterForComInterop>false</RegisterForComInterop> + <DebugType>full</DebugType> + <PlatformTarget>x64</PlatformTarget> + <ErrorReport>prompt</ErrorReport> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> + <OutputPath>..\..\..\..\..\..\..\bin\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> + <Optimize>true</Optimize> + <RegisterForComInterop>false</RegisterForComInterop> + <DebugType>pdbonly</DebugType> + <PlatformTarget>x64</PlatformTarget> + <ErrorReport>prompt</ErrorReport> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> + <DebugSymbols>true</DebugSymbols> + <OutputPath>..\..\..\..\..\..\..\bin\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> + <RegisterForComInterop>false</RegisterForComInterop> + <DebugType>full</DebugType> + <PlatformTarget>x86</PlatformTarget> + <ErrorReport>prompt</ErrorReport> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> + <OutputPath>..\..\..\..\..\..\..\bin\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> + <Optimize>true</Optimize> + <RegisterForComInterop>false</RegisterForComInterop> + <DebugType>pdbonly</DebugType> + <PlatformTarget>x86</PlatformTarget> + <ErrorReport>prompt</ErrorReport> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Core"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Xml.Linq"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data.DataSetExtensions"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Scilab.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + <Compile Include="Scilab_cs_wrapper.cs" /> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project>
\ No newline at end of file diff --git a/modules/call_scilab/examples/call_scilab/NET/C#/dotnetsci/Properties/AssemblyInfo.cs b/modules/call_scilab/examples/call_scilab/NET/C#/dotnetsci/Properties/AssemblyInfo.cs new file mode 100755 index 000000000..bcbbd59a6 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/C#/dotnetsci/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("dotnetsci")] +[assembly: AssemblyDescription(".NET Component for Scilab 5.x")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Scilab - DIGITEO")] +[assembly: AssemblyProduct("dotnetsci")] +[assembly: AssemblyCopyright("Copyright © Scilab 2009")] +[assembly: AssemblyTrademark("Allan CORNET")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("ef7effe8-4440-47b7-b579-433dc94cc859")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/modules/call_scilab/examples/call_scilab/NET/C#/dotnetsci/Scilab.cs b/modules/call_scilab/examples/call_scilab/NET/C#/dotnetsci/Scilab.cs new file mode 100755 index 000000000..6b76897a8 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/C#/dotnetsci/Scilab.cs @@ -0,0 +1,515 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ +//============================================================================= +/* Please notice that it is only a example and not a full C# wrapper */ +//============================================================================= +using System; +using System.Collections.Generic; +using System.Text; +using System.Runtime.InteropServices; +using System.Threading; +//============================================================================= +namespace DotNetScilab +{ + /* Scilab Types */ + public enum ScilabType + { + sci_matrix = 1, + sci_poly = 2, + sci_boolean = 4, + sci_sparse = 5, + sci_boolean_sparse = 6, + sci_matlab_sparse = 7, + sci_ints = 8, + sci_handles = 9, + sci_strings = 10, + sci_u_function = 11, + sci_c_function = 13, + sci_lib = 14, + sci_list = 15, + sci_tlist = 16, + sci_mlist = 17, + sci_pointer = 128, + sci_implicit_poly = 129, + sci_intrinsic_function = 130 + }; + + public sealed class Scilab + { + //============================================================================= + static Scilab instance = null; + static readonly object padlock = new object(); + private Boolean withGraphics = false; + //============================================================================= + /// <summary> + /// Constructor, initialize scilab engine. + /// </summary> + public Scilab() + { + // Disable TCL/TK and Java graphic interfaces + Scilab_cs_wrapper.DisableInteractiveMode(); + withGraphics = false; + + // start Scilab engine configurated without java + Scilab_cs_wrapper.StartScilab(null, null, null); + } + //============================================================================= + public Scilab(Boolean _bWithGraphics) + { + // Disable TCL/TK and Java graphic interfaces + if (_bWithGraphics == false) + { + Scilab_cs_wrapper.DisableInteractiveMode(); + withGraphics = false; + } + else + { + withGraphics = true; + } + + // start Scilab engine + Scilab_cs_wrapper.StartScilab(null, null, null); + } + //============================================================================= + /// <summary> + /// Singleton + /// Only one instance of Scilab can be launch + /// thread safe + /// </summary> + public static Scilab Instance + { + get + { + lock (padlock) + { + if (instance == null) + { + instance = new Scilab(); + } + return instance; + } + } + } + //============================================================================= + /// <summary> + /// Destructor + /// </summary> + ~Scilab() + { + // freed by O.S + //Scilab_cs_wrapper.TerminateScilab(null); + } + //============================================================================= + /// <summary> + /// Send a job to scilab + /// </summary> + /// <param name="command">command to send to scilab</param> + /// <returns>error code operation, 0 : OK</returns> + public int SendScilabJob(string command) + { + return Scilab_cs_wrapper.SendScilabJob(command); + } + //============================================================================= + /// <summary> + /// get last error code + /// </summary> + /// <returns>last error code</returns> + public int GetLastErrorCode() + { + return Scilab_cs_wrapper.GetLastErrorCode(); + } + //============================================================================= + /// <summary> + /// Write a named matrix of double in Scilab + /// </summary> + /// <param name="matrixName"> variable name</param> + /// <param name="iRows"> Number of row</param> + /// <param name="iCols"> Number of column</param> + /// <param name="matrixDouble"> pointer on data</param> + /// <returns> if the operation successes (0) or not ( !0 )</returns> + public int createNamedMatrixOfDouble(string matrixName, int iRows, int iCols, double[] matrixDouble) + { + System.IntPtr ptrEmpty = new System.IntPtr(); + Scilab_cs_wrapper.api_Err SciErr = Scilab_cs_wrapper.createNamedMatrixOfDouble(ptrEmpty, matrixName, iRows, iCols, matrixDouble); + return SciErr.iErr; + } + //============================================================================= + /// <summary> + /// Write a named matrix of string in scilab + /// </summary> + /// <param name="matrixName"> variable name</param> + /// <param name="iRows"> Number of row</param> + /// <param name="iCols"> Number of column</param> + /// <param name="matrixDouble"> pointer on data</param> + /// <returns> if the operation successes (0) or not ( !0 )</returns> + public int createNamedMatrixOfString(string matrixName, int iRows, int iCols, string[] matrixString) + { + System.IntPtr ptrEmpty = new System.IntPtr(); + Scilab_cs_wrapper.api_Err SciErr = Scilab_cs_wrapper.createNamedMatrixOfString(ptrEmpty, matrixName, iRows, iCols, matrixString); + return SciErr.iErr; + } + //============================================================================= + /// <summary> + /// Write a named matrix of boolean in Scilab + /// </summary> + /// <param name="matrixName"> variable name</param> + /// <param name="iRows"> Number of row</param> + /// <param name="iCols"> Number of column</param> + /// <param name="matrixBoolean"> pointer on data</param> + /// <returns> if the operation successes (0) or not ( !0 )</returns> + public int createNamedMatrixOfBoolean(string matrixName, int iRows, int iCols, Boolean[] matrixBoolean) + { + int[] matrixInt = new int[matrixBoolean.Length]; + for (int i = 0; i < matrixBoolean.Length; i++) + { + if (matrixBoolean[i] == true) + { + matrixInt[i] = 1; + } + else + { + matrixInt[i] = 0; + } + } + System.IntPtr ptrEmpty = new System.IntPtr(); + Scilab_cs_wrapper.api_Err SciErr = Scilab_cs_wrapper.createNamedMatrixOfBoolean(ptrEmpty, matrixName, iRows, iCols, matrixInt); + return SciErr.iErr; + } + //============================================================================= + /// <summary> + /// Write a named matrix of int(32) in Scilab + /// </summary> + /// <param name="matrixName"> variable name</param> + /// <param name="iRows"> Number of row</param> + /// <param name="iCols"> Number of column</param> + /// <param name="matrixInt"> pointer on data</param> + public int createNamedMatrixOfInt32(string matrixName, int iRows, int iCols, int[] matrixInt) + { + System.IntPtr ptrEmpty = new System.IntPtr(); + Scilab_cs_wrapper.api_Err SciErr = Scilab_cs_wrapper.createNamedMatrixOfInteger32(ptrEmpty, matrixName, iRows, iCols, matrixInt); + return SciErr.iErr; + } + //============================================================================= + /// <summary> + /// Write a named matrix of complex double in Scilab + /// </summary> + /// <param name="matrixName"> variable name</param> + /// <param name="iRows">Number of row</param> + /// <param name="iCols">Number of column</param> + /// <param name="matrixRealPart">real part</param> + /// <param name="matrixImagPart">imag part</param> + /// <returns></returns> + public int createNamedComplexMatrixOfDouble(string matrixName, + int iRows, int iCols, + double[] matrixRealPart, + double[] matrixImagPart) + { + System.IntPtr ptrEmpty = new System.IntPtr(); + Scilab_cs_wrapper.api_Err SciErr = Scilab_cs_wrapper.createNamedComplexMatrixOfDouble(ptrEmpty, matrixName, + iRows, iCols, + matrixRealPart, + matrixImagPart); + return SciErr.iErr; + } + //============================================================================= + /// <summary> + /// Read a named matrix of double from Scilab + /// </summary> + /// <param name="matrixName"> variable name</param> + /// <returns>a matrix of double from scilab. If Variable name does not exist returns null</returns> + public unsafe double[] readNamedMatrixOfDouble(string matrixName) + { + int iRows = 0; + int iCols = 0; + + System.IntPtr ptrEmpty = new System.IntPtr(); + Scilab_cs_wrapper.api_Err SciErr = Scilab_cs_wrapper.readNamedMatrixOfDouble(ptrEmpty, matrixName, &iRows, &iCols, null); + + if (iRows * iCols > 0) + { + double[] matrixDouble = new double[iRows * iCols]; + + // get values in matrixDouble + SciErr = Scilab_cs_wrapper.readNamedMatrixOfDouble(ptrEmpty, matrixName, &iRows, &iCols, matrixDouble); + if (SciErr.iErr != 0) return null; + return matrixDouble; + } + return null; + } + //============================================================================= + /// <summary> + /// Get dimensions of a named matrix in scilab + /// </summary> + /// <returns>a int array. + /// if variable name does not exist dimensions are null </returns> + public unsafe int[] getNamedVarDimension(string matrixName) + { + int[] iDim = null; + int iRows = 0; + int iCols = 0; + + System.IntPtr ptrEmpty = new System.IntPtr(); + Scilab_cs_wrapper.api_Err SciErr = Scilab_cs_wrapper.getNamedVarDimension(ptrEmpty, matrixName, &iRows, &iCols); + if (SciErr.iErr == 0) + { + iDim = new int[2]; + iDim[0] = iRows; + iDim[1] = iCols; + } + return iDim; + } + //============================================================================= + /// <summary> + /// Read a named matrix of string from scilab + /// </summary> + /// <param name="matrixName"> variable name</param> + /// <returns>a matrix of string from scilab. If Variable name does not exist returns null</returns> + public unsafe string[] readNamedMatrixOfString(string matrixName) + { + string[] matrixString = null; + + int[] iDim = getNamedVarDimension(matrixName); + + if (iDim != null) + { + int iRows = iDim[0]; + int iCols = iDim[1]; + + // we allocate lengthmatrixString + int[] lengthmatrixString = new int[iRows * iCols]; + + System.IntPtr ptrEmpty = new System.IntPtr(); + + // we get length of strings + Scilab_cs_wrapper.api_Err SciErr = Scilab_cs_wrapper.readNamedMatrixOfString(ptrEmpty, matrixName, + &iRows, &iCols, + lengthmatrixString, null); + + // we allocate each string + matrixString = new string[iRows * iCols]; + for (int i = 0; i < iRows * iCols; i++) + { + matrixString[i] = new string(' ', lengthmatrixString[i]); + } + + // we get strings from scilab + SciErr = Scilab_cs_wrapper.readNamedMatrixOfString(ptrEmpty, matrixName, + &iRows, &iCols, + lengthmatrixString, + matrixString); + } + return matrixString; + } + //============================================================================= + /// <summary> + /// Read a named matrix of boolean from Scilab + /// </summary> + /// <param name="matrixName"> variable name</param> + /// <returns>a matrix of boolean from scilab. If Variable name does not exist returns null</returns> + public unsafe Boolean[] getNamedMatrixOfBoolean(string matrixName) + { + Boolean[] matrixBoolean = null; + int[] iDim = getNamedVarDimension(matrixName); + + if (iDim != null) + { + int iRows = iDim[0]; + int iCols = iDim[1]; + int[] matrixInt = new int[iRows * iCols]; + + System.IntPtr ptrEmpty = new System.IntPtr(); + + // get values in matrixDouble + Scilab_cs_wrapper.api_Err SciErr = Scilab_cs_wrapper.readNamedMatrixOfBoolean(ptrEmpty, matrixName, + &iRows, &iCols, + matrixInt); + + if (matrixInt != null) + { + matrixBoolean = new Boolean[iRows * iCols]; + for (int i = 0; i < iRows * iCols; i++) + { + if (matrixInt[i] == 1) + { + matrixBoolean[i] = true; + } + else + { + matrixBoolean[i] = false; + } + } + } + } + return matrixBoolean; + } + //============================================================================= + /// <summary> + /// Read a named matrix of complex double in Scilab (Real part) + /// </summary> + /// <param name="matrixName">variable name</param> + /// <returns> real part. If Variable name does not exist returns null</returns> + public unsafe double[] readNamedComplexMatrixOfDoubleRealPart(string matrixName) + { + double[] dRealPart = null; + int[] iDim = getNamedVarDimension(matrixName); + if (iDim != null) + { + int iRows = iDim[0]; + int iCols = iDim[1]; + + double[] dImagPart = new double[iRows * iCols]; + dRealPart = new double[iRows * iCols]; + + System.IntPtr ptrEmpty = new System.IntPtr(); + + Scilab_cs_wrapper.api_Err SciErr = Scilab_cs_wrapper.readNamedComplexMatrixOfDouble(ptrEmpty, matrixName, + &iRows, &iCols, + dRealPart, + dImagPart); + } + return dRealPart; + } + //============================================================================= + /// <summary> + /// Read a named matrix of complex double in Scilab (Imag part) + /// </summary> + /// <param name="matrixName">variable name</param> + /// <returns> img part. If Variable name does not exist returns null</returns> + public unsafe double[] readNamedComplexMatrixOfDoubleImgPart(string matrixName) + { + double[] dImagPart = null; + int[] iDim = getNamedVarDimension(matrixName); + if (iDim != null) + { + int iRows = iDim[0]; + int iCols = iDim[1]; + + double[] dRealPart = new double[iRows * iCols]; + dImagPart = new double[iRows * iCols]; + + System.IntPtr ptrEmpty = new System.IntPtr(); + + Scilab_cs_wrapper.api_Err SciErr = Scilab_cs_wrapper.readNamedComplexMatrixOfDouble(ptrEmpty, matrixName, + &iRows, &iCols, + dRealPart, + dImagPart); + } + return dImagPart; + } + //============================================================================= + /// <summary> + /// Read a named matrix of int(32) in Scilab + /// </summary> + /// <param name="matrixName"> variable name</param> + /// <returns>a matrix of int(32) from scilab. If Variable name does not exist returns null</returns> + public unsafe int[] readNamedMatrixOfInt32(string matrixName) + { + int[] matrixInt = null; + int[] iDim = getNamedVarDimension(matrixName); + if (iDim != null) + { + int iRows = iDim[0]; + int iCols = iDim[1]; + + // we allocate matrixInt array + matrixInt = new int[iRows * iCols]; + + System.IntPtr ptrEmpty = new System.IntPtr(); + + // get values in matrixInt + Scilab_cs_wrapper.api_Err SciErr = Scilab_cs_wrapper.readNamedMatrixOfInteger32(ptrEmpty, matrixName, &iRows, &iCols, matrixInt); + } + return matrixInt; + } + //============================================================================= + /// <summary> + /// get scilab type of named matrix + /// </summary> + /// <param name="matrixName"> variable name</param> + /// <returns>scilab type (see enum ScilabType)</returns> + public unsafe int getNamedVarType(string matrixName) + { + int iType = 0; + System.IntPtr ptrEmpty = new System.IntPtr(); + + Scilab_cs_wrapper.api_Err SciErr = Scilab_cs_wrapper.getNamedVarType(ptrEmpty, matrixName, &iType); + if (SciErr.iErr == 0) return iType; + return 0; + } + //============================================================================= + /// <summary> + /// Detect if a variable name exists in Scilab + /// </summary> + /// <param name="matrixName"> variable name</param> + /// <returns> true if exists</returns> + public unsafe Boolean existNamedVariable(string matrixName) + { + int* piAdress = null; + System.IntPtr ptrEmpty = new System.IntPtr(); + + Scilab_cs_wrapper.api_Err SciErr = Scilab_cs_wrapper.getVarAddressFromName(ptrEmpty, matrixName, &piAdress); + if (SciErr.iErr == 0) return true; + return false; + } + //============================================================================= + /// <summary> + /// Execute a scilab script .sce + /// </summary> + /// <param name="scriptFilename">the path to the .sce file</param> + /// <returns>error code operation, 0 : OK</returns> + public int execScilabScript(String scriptFilename) + { + return Scilab_cs_wrapper.SendScilabJob("exec('" + scriptFilename + "');"); + } + //============================================================================= + /// <summary> + /// Detect if a Scilab graphic window is opened + /// </summary> + /// <returns>true or false</returns> + public Boolean HaveAGraph() + { + if (withGraphics) + { + int ierr = Scilab_cs_wrapper.sciHasFigures(); + if (ierr == 1) return true; + } + return false; + } + //============================================================================= + /// <summary> + /// do a scilab event + /// parser need to run to do a event + /// </summary> + /// <returns>error code operation, 0 : OK</returns> + public int doEvent() + { + // do a pause (we do not want 100% CPU used) + // ugly but it works ... + Thread.Sleep(1); + // do a loop of parser + return SendScilabJob(""); + } + //============================================================================= + /// <summary> + /// get scilab type of named matrix + /// </summary> + /// <param name="matrixName"> variable name</param> + /// <returns>scilab type (see enum ScilabType)</returns> + public int isNamedVarComplex(string matrixName) + { + System.IntPtr ptrEmpty = new System.IntPtr(); + return Scilab_cs_wrapper.isNamedVarComplex(ptrEmpty, matrixName); + } + //============================================================================= + } +} +//============================================================================= diff --git a/modules/call_scilab/examples/call_scilab/NET/C#/dotnetsci/Scilab_cs_wrapper.cs b/modules/call_scilab/examples/call_scilab/NET/C#/dotnetsci/Scilab_cs_wrapper.cs new file mode 100755 index 000000000..f006195d3 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/C#/dotnetsci/Scilab_cs_wrapper.cs @@ -0,0 +1,233 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ +//============================================================================= +using System; +using System.Collections.Generic; +using System.Runtime.InteropServices; +//============================================================================= +namespace DotNetScilab +{ + class Scilab_cs_wrapper + { + [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] + public unsafe struct api_Ctx + { + public String pstName; /**< Function name */ + } + //============================================================================= + [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] + public unsafe struct api_Err + { + public int iErr; + public int iMsgCount; + public fixed int pstructMsg[5]; + } + //============================================================================= + private const string CALL_SCILAB_DLL = "call_scilab.dll"; + private const string API_SCILAB_DLL = "api_scilab.dll"; + private const string GRAPHICS_DLL = "graphics.dll"; + private const string OUTPUT_STREAM_DLL = "scioutput_stream.dll"; + //============================================================================= + /// <summary> + /// import SendScilabJob from C (see call_scilab.h) + /// </summary> + [DllImport(CALL_SCILAB_DLL, CharSet = CharSet.Ansi)] + public static extern int SendScilabJob([In]String job); + //============================================================================= + /// <summary> + /// import StartScilab from C (see call_scilab.h) + /// </summary> + [DllImport(CALL_SCILAB_DLL, CharSet = CharSet.Ansi)] + public static extern int StartScilab([In] String SCIpath, + [In] String ScilabStartup, + [In] Int32[] Stacksize); + //============================================================================= + /// <summary> + /// import TerminateScilab from C (see call_scilab.h) + /// </summary> + [DllImport(CALL_SCILAB_DLL, CharSet = CharSet.Ansi)] + public static extern int TerminateScilab([In] String ScilabQuit); + //============================================================================= + /// <summary> + /// import DisableInteractiveMode from C (see call_scilab.h) + /// </summary> + [DllImport(CALL_SCILAB_DLL, CharSet = CharSet.Ansi)] + public static extern void DisableInteractiveMode(); + //============================================================================= + /// <summary> + /// import createNamedMatrixOfString from C (see api_string.h) + /// </summary> + [DllImport(API_SCILAB_DLL, CharSet = CharSet.Ansi)] + public static extern api_Err createNamedMatrixOfString([In]IntPtr pvApiCtx, [In] String _pstName, + [In] int _iRows, [In] int _iCols, + [In] String[] _pstStrings); + //============================================================================= + /// <summary> + /// import createNamedMatrixOfWideString from C (see api_string.h) + /// </summary> + [DllImport(API_SCILAB_DLL, CharSet = CharSet.Unicode)] + public static extern api_Err createNamedMatrixOfWideString([In]IntPtr pvApiCtx, + [In] String _pstName, + [In] int _iRows, [In] int _iCols, + [In] String[] _pstStrings); + //============================================================================= + /// <summary> + /// import createNamedMatrixOfDouble from C (see api_double.h) + /// </summary> + [DllImport(API_SCILAB_DLL, CharSet = CharSet.Ansi)] + [return: MarshalAs(UnmanagedType.Struct)] + public static extern api_Err createNamedMatrixOfDouble([In]IntPtr pvApiCtx, [In] String _pstName, + [In] int _iRows, [In] int _iCols, + [In] double[] _pdblReal); + + + //============================================================================= + /// <summary> + /// import createNamedMatrixOfBoolean from C (see api_boolean.h) + /// </summary> + [DllImport(API_SCILAB_DLL, CharSet = CharSet.Ansi)] + public static extern api_Err createNamedMatrixOfBoolean([In]IntPtr pvApiCtx, [In] String _pstName, + [In] int _iRows, [In] int _iCols, + [In] int[] _piBool); + //============================================================================= + /// <summary> + /// import createNamedMatrixOfInteger32 from C (see api_int.h) + /// </summary> + [DllImport(API_SCILAB_DLL, CharSet = CharSet.Ansi)] + public unsafe static extern api_Err createNamedMatrixOfInteger32([In]IntPtr pvApiCtx, [In] String _pstName, + [In] int _iRows, [In] int _iCols, + [In] int[] _piData); + //============================================================================= + /// <summary> + /// import createNamedComplexMatrixOfDouble from C (see api_double.h) + /// </summary> + [DllImport(API_SCILAB_DLL, CharSet = CharSet.Ansi)] + public unsafe static extern api_Err createNamedComplexMatrixOfDouble([In]IntPtr pvApiCtx, [In] String _pstName, + [In] int _iRows, [In] int _iCols, + [In] double[] _pdblReal, + [In] double[] _pdblImg); + //============================================================================= + /// <summary> + /// import readNamedMatrixOfString from C (see api_string.h) + /// </summary> + [DllImport(API_SCILAB_DLL, CharSet = CharSet.Ansi)] + public unsafe static extern api_Err readNamedMatrixOfString([In]IntPtr pvApiCtx, [In] String _pstName, + [Out] Int32* _piRows, [Out] Int32* _piCols, + [In, Out] int[] _piLength, + [In, Out] String[] _pstStrings); + //============================================================================= + /// <summary> + /// import readNamedMatrixOfWideString from C (see api_string.h) + /// </summary> + [DllImport(API_SCILAB_DLL, CharSet = CharSet.Unicode)] + public unsafe static extern api_Err readNamedMatrixOfWideString([In]IntPtr pvApiCtx, [In] String _pstName, + [Out] Int32* _piRows, [Out] Int32* _piCols, + [In, Out] int[] _piLength, + [In, Out] String[] _pstStrings); + //============================================================================= + /// <summary> + /// import readNamedMatrixOfDouble from C (see api_double.h) + /// </summary> + [DllImport(API_SCILAB_DLL, CharSet = CharSet.Ansi)] + public unsafe static extern api_Err readNamedMatrixOfDouble([In]IntPtr pvApiCtx, [In] String _pstName, + [Out] Int32* _piRows, [Out] Int32* _piCols, + [In, Out] Double[] _pdblReal); + //============================================================================= + /// <summary> + /// import readNamedMatrixOfBoolean from C (see api_boolean.h) + /// </summary> + [DllImport(API_SCILAB_DLL, CharSet = CharSet.Ansi)] + public unsafe static extern api_Err readNamedMatrixOfBoolean([In]IntPtr pvApiCtx, [In] String _pstName, + [Out] Int32* _piRows, [Out] Int32* _piCols, + [In, Out] int[] _piBool); + //============================================================================= + /// <summary> + /// import readNamedMatrixOfInteger32 from C (see api_int.h) + /// </summary> + [DllImport(API_SCILAB_DLL, CharSet = CharSet.Ansi)] + public unsafe static extern api_Err readNamedMatrixOfInteger32([In]IntPtr pvApiCtx, [In] String _pstName, + [Out] Int32* _piRows, [Out] Int32* _piCols, + [In, Out] int[] _piData); + + //============================================================================= + /// <summary> + /// import readNamedComplexMatrixOfDouble from C (see api_double.h) + /// </summary> + [DllImport(API_SCILAB_DLL, CharSet = CharSet.Ansi)] + public unsafe static extern api_Err readNamedComplexMatrixOfDouble([In]IntPtr pvApiCtx, [In] String _pstName, + [Out] Int32* _piRows, [Out] Int32* _piCols, + [In, Out] double[] _pdblReal, + [In, Out] double[] _pdblImg); + //============================================================================= + /// <summary> + /// get Variable Adress in scilab stack from name + /// used for getNamedMatrixType (internal) + /// </summary> + /// <param name="_pstName">variable name</param> + /// <param name="_piAddress"> stack address</param> + /// <returns>1 if ok</returns> + [DllImport(API_SCILAB_DLL, CharSet = CharSet.Ansi)] + public unsafe static extern api_Err getVarAddressFromName([In]IntPtr pvApiCtx, [In] String _pstName, + [Out] Int32** _piAddress); + //============================================================================= + /// <summary> + /// get Variable type in scilab stack from name + /// </summary> + /// <param name="_pstName">variable name</param> + /// <returns>type or -1</returns> + [DllImport(API_SCILAB_DLL, CharSet = CharSet.Ansi)] + public unsafe static extern api_Err getNamedVarType([In]IntPtr pvApiCtx, [In] String _pstName, [Out]Int32* _piType); + //============================================================================= + /// <summary> + /// get variable type with adress in scilab stack + /// used for getNamedMatrixType (internal) + /// </summary> + /// <param name="_piAddress"> stack address</param> + /// <returns>scilab type, 0 fails</returns> + [DllImport(API_SCILAB_DLL, CharSet = CharSet.Ansi)] + public unsafe static extern api_Err getVarType([In]IntPtr pvApiCtx, [In] Int32* _piAddress, [Out]Int32* _piType); + //============================================================================= + /// <summary> + /// Detect if a Scilab graphic window is opened + /// </summary> + /// <returns>0 (FALSE) or 1 (TRUE)</returns> + [DllImport(GRAPHICS_DLL, CharSet = CharSet.Ansi)] + public unsafe static extern int sciHasFigures(); + //============================================================================= + /// <summary> + /// get last error code + /// </summary> + /// <returns>last error code</returns> + [DllImport(OUTPUT_STREAM_DLL, CharSet = CharSet.Ansi)] + public unsafe static extern int GetLastErrorCode(); + //============================================================================= + /// <summary> + /// Get variable dimension + /// </summary> + /// import getNamedVarDimension from C (see api_common.h) + /// <returns>int last error code</returns> + [DllImport(API_SCILAB_DLL, CharSet = CharSet.Ansi)] + public unsafe static extern api_Err getNamedVarDimension([In]IntPtr pvApiCtx, [In] String _pstName, + [Out] Int32* _piRows, [Out] Int32* _piCols); + //============================================================================= + /// <summary> + /// Get named complex information + /// </summary> + /// import isNamedVarComplex from C (see api_common.h) + /// <returns>int if complex 1 otherwise 0</returns> + [DllImport(API_SCILAB_DLL, CharSet = CharSet.Ansi)] + public unsafe static extern int isNamedVarComplex([In]IntPtr pvApiCtx, [In] String _pstName); + //============================================================================= + + } +} +//============================================================================= diff --git a/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Application.Designer.vb b/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Application.Designer.vb new file mode 100755 index 000000000..8ef00a8db --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Application.Designer.vb @@ -0,0 +1,13 @@ +'------------------------------------------------------------------------------ +' <auto-generated> +' This code was generated by a tool. +' Runtime Version:4.0.30319.208 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' </auto-generated> +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + diff --git a/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Application.myapp b/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Application.myapp new file mode 100755 index 000000000..e62f1a533 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Application.myapp @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <MySubMain>false</MySubMain> + <SingleInstance>false</SingleInstance> + <ShutdownMode>0</ShutdownMode> + <EnableVisualStyles>true</EnableVisualStyles> + <AuthenticationMode>0</AuthenticationMode> + <ApplicationType>2</ApplicationType> + <SaveMySettingsOnExit>true</SaveMySettingsOnExit> +</MyApplicationData> diff --git a/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/AssemblyInfo.vb b/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/AssemblyInfo.vb new file mode 100755 index 000000000..363694a55 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/AssemblyInfo.vb @@ -0,0 +1,35 @@ +Imports System +Imports System.Reflection +Imports System.Runtime.InteropServices + +' Les informations générales relatives à un assembly dépendent de +' l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations +' associées à un assembly. + +' Vérifiez les valeurs des attributs de l'assembly + +<Assembly: AssemblyTitle("VB_example")> +<Assembly: AssemblyDescription("")> +<Assembly: AssemblyCompany("Aucune")> +<Assembly: AssemblyProduct("VB_example")> +<Assembly: AssemblyCopyright("Copyright © Aucune 2009")> +<Assembly: AssemblyTrademark("")> + +<Assembly: ComVisible(False)> + +'Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM +<Assembly: Guid("c5cbb040-95cd-4b10-aa88-811a05739d54")> + +' Les informations de version pour un assembly se composent des quatre valeurs suivantes : +' +' Version principale +' Version secondaire +' Numéro de build +' Révision +' +' Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut +' en utilisant '*', comme indiqué ci-dessous : +' <Assembly: AssemblyVersion("1.0.*")> + +<Assembly: AssemblyVersion("1.0.0.0")> +<Assembly: AssemblyFileVersion("1.0.0.0")> diff --git a/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Resources.Designer.vb b/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Resources.Designer.vb new file mode 100755 index 000000000..85ae5c940 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Resources.Designer.vb @@ -0,0 +1,63 @@ +'------------------------------------------------------------------------------ +' <auto-generated> +' This code was generated by a tool. +' Runtime Version:4.0.30319.208 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' </auto-generated> +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + +Imports System + +Namespace My.Resources + + 'This class was auto-generated by the StronglyTypedResourceBuilder + 'class via a tool like ResGen or Visual Studio. + 'To add or remove a member, edit your .ResX file then rerun ResGen + 'with the /str option, or rebuild your VS project. + '''<summary> + ''' A strongly-typed resource class, for looking up localized strings, etc. + '''</summary> + <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0"), _ + Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _ + Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _ + Global.Microsoft.VisualBasic.HideModuleNameAttribute()> _ + Friend Module Resources + + Private resourceMan As Global.System.Resources.ResourceManager + + Private resourceCulture As Global.System.Globalization.CultureInfo + + '''<summary> + ''' Returns the cached ResourceManager instance used by this class. + '''</summary> + <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _ + Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager + Get + If Object.ReferenceEquals(resourceMan, Nothing) Then + Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("VB_example.Resources", GetType(Resources).Assembly) + resourceMan = temp + End If + Return resourceMan + End Get + End Property + + '''<summary> + ''' Overrides the current thread's CurrentUICulture property for all + ''' resource lookups using this strongly typed resource class. + '''</summary> + <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _ + Friend Property Culture() As Global.System.Globalization.CultureInfo + Get + Return resourceCulture + End Get + Set + resourceCulture = value + End Set + End Property + End Module +End Namespace diff --git a/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Resources.resx b/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Resources.resx new file mode 100755 index 000000000..af7dbebba --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Resources.resx @@ -0,0 +1,117 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root>
\ No newline at end of file diff --git a/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Settings.Designer.vb b/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Settings.Designer.vb new file mode 100755 index 000000000..c0a5ffc1a --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Settings.Designer.vb @@ -0,0 +1,73 @@ +'------------------------------------------------------------------------------ +' <auto-generated> +' This code was generated by a tool. +' Runtime Version:4.0.30319.208 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' </auto-generated> +'------------------------------------------------------------------------------ + +Option Strict On +Option Explicit On + + +Namespace My + + <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(), _ + Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0"), _ + Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _ + Partial Friend NotInheritable Class MySettings + Inherits Global.System.Configuration.ApplicationSettingsBase + + Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings()),MySettings) + +#Region "My.Settings Auto-Save Functionality" +#If _MyType = "WindowsForms" Then + Private Shared addedHandler As Boolean + + Private Shared addedHandlerLockObject As New Object + + <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _ + Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs) + If My.Application.SaveMySettingsOnExit Then + My.Settings.Save() + End If + End Sub +#End If +#End Region + + Public Shared ReadOnly Property [Default]() As MySettings + Get + +#If _MyType = "WindowsForms" Then + If Not addedHandler Then + SyncLock addedHandlerLockObject + If Not addedHandler Then + AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings + addedHandler = True + End If + End SyncLock + End If +#End If + Return defaultInstance + End Get + End Property + End Class +End Namespace + +Namespace My + + <Global.Microsoft.VisualBasic.HideModuleNameAttribute(), _ + Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _ + Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _ + Friend Module MySettingsProperty + + <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")> _ + Friend ReadOnly Property Settings() As Global.VB_example.My.MySettings + Get + Return Global.VB_example.My.MySettings.Default + End Get + End Property + End Module +End Namespace diff --git a/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Settings.settings b/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Settings.settings new file mode 100755 index 000000000..85b890b3c --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project/Settings.settings @@ -0,0 +1,7 @@ +<?xml version='1.0' encoding='utf-8'?> +<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true"> + <Profiles> + <Profile Name="(Default)" /> + </Profiles> + <Settings /> +</SettingsFile> diff --git a/modules/call_scilab/examples/call_scilab/NET/VB.NET/VB.NET.sln b/modules/call_scilab/examples/call_scilab/NET/VB.NET/VB.NET.sln new file mode 100755 index 000000000..c174ee266 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/VB.NET/VB.NET.sln @@ -0,0 +1,32 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "VB.NET", "VB.NET.vbproj", "{D5A143CB-C54C-42C2-B1DD-9B614054D81A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D5A143CB-C54C-42C2-B1DD-9B614054D81A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D5A143CB-C54C-42C2-B1DD-9B614054D81A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D5A143CB-C54C-42C2-B1DD-9B614054D81A}.Debug|x64.ActiveCfg = Debug|x64 + {D5A143CB-C54C-42C2-B1DD-9B614054D81A}.Debug|x64.Build.0 = Debug|x64 + {D5A143CB-C54C-42C2-B1DD-9B614054D81A}.Debug|x86.ActiveCfg = Debug|x86 + {D5A143CB-C54C-42C2-B1DD-9B614054D81A}.Debug|x86.Build.0 = Debug|x86 + {D5A143CB-C54C-42C2-B1DD-9B614054D81A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D5A143CB-C54C-42C2-B1DD-9B614054D81A}.Release|Any CPU.Build.0 = Release|Any CPU + {D5A143CB-C54C-42C2-B1DD-9B614054D81A}.Release|x64.ActiveCfg = Release|x64 + {D5A143CB-C54C-42C2-B1DD-9B614054D81A}.Release|x64.Build.0 = Release|x64 + {D5A143CB-C54C-42C2-B1DD-9B614054D81A}.Release|x86.ActiveCfg = Release|x86 + {D5A143CB-C54C-42C2-B1DD-9B614054D81A}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/modules/call_scilab/examples/call_scilab/NET/VB.NET/VB.NET.vbproj b/modules/call_scilab/examples/call_scilab/NET/VB.NET/VB.NET.vbproj new file mode 100755 index 000000000..18bf22a6e --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/VB.NET/VB.NET.vbproj @@ -0,0 +1,210 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>9.0.30729</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{D5A143CB-C54C-42C2-B1DD-9B614054D81A}</ProjectGuid> + <OutputType>Exe</OutputType> + <StartupObject>VB_example.vb_example</StartupObject> + <RootNamespace>VB_example</RootNamespace> + <AssemblyName>VB.NET</AssemblyName> + <FileAlignment>512</FileAlignment> + <MyType>Console</MyType> + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> + <OptionExplicit>On</OptionExplicit> + <OptionCompare>Binary</OptionCompare> + <OptionStrict>Off</OptionStrict> + <OptionInfer>On</OptionInfer> + <IsWebBootstrapper>false</IsWebBootstrapper> + <PublishUrl>C:\bin\</PublishUrl> + <Install>true</Install> + <InstallFrom>Disk</InstallFrom> + <UpdateEnabled>false</UpdateEnabled> + <UpdateMode>Foreground</UpdateMode> + <UpdateInterval>7</UpdateInterval> + <UpdateIntervalUnits>Days</UpdateIntervalUnits> + <UpdatePeriodically>false</UpdatePeriodically> + <UpdateRequired>false</UpdateRequired> + <MapFileExtensions>true</MapFileExtensions> + <ApplicationRevision>1</ApplicationRevision> + <ApplicationVersion>1.0.0.1</ApplicationVersion> + <UseApplicationTrust>false</UseApplicationTrust> + <PublishWizardCompleted>true</PublishWizardCompleted> + <BootstrapperEnabled>true</BootstrapperEnabled> + <FileUpgradeFlags> + </FileUpgradeFlags> + <UpgradeBackupLocation> + </UpgradeBackupLocation> + <OldToolsVersion>3.5</OldToolsVersion> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <DefineDebug>true</DefineDebug> + <DefineTrace>true</DefineTrace> + <OutputPath>..\..\..\..\..\..\bin\</OutputPath> + <DocumentationFile>VB.NET.xml</DocumentationFile> + <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,42353,42354,42355</NoWarn> + <UseVSHostingProcess>false</UseVSHostingProcess> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>pdbonly</DebugType> + <DefineDebug>false</DefineDebug> + <DefineTrace>true</DefineTrace> + <Optimize>true</Optimize> + <OutputPath>..\..\..\..\..\..\bin\</OutputPath> + <DocumentationFile>VB.NET.xml</DocumentationFile> + <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,42353,42354,42355</NoWarn> + <UseVSHostingProcess>false</UseVSHostingProcess> + <PlatformTarget>x86</PlatformTarget> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> + <DebugSymbols>true</DebugSymbols> + <DefineDebug>true</DefineDebug> + <DefineTrace>true</DefineTrace> + <OutputPath>..\..\..\..\..\..\bin\</OutputPath> + <DocumentationFile>VB.NET.xml</DocumentationFile> + <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,42353,42354,42355</NoWarn> + <DebugType>full</DebugType> + <PlatformTarget>x64</PlatformTarget> + <UseVSHostingProcess>false</UseVSHostingProcess> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> + <DefineTrace>true</DefineTrace> + <OutputPath>..\..\..\..\..\..\bin\</OutputPath> + <DocumentationFile>VB.NET.xml</DocumentationFile> + <Optimize>true</Optimize> + <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,42353,42354,42355</NoWarn> + <DebugType>pdbonly</DebugType> + <PlatformTarget>x64</PlatformTarget> + <UseVSHostingProcess>false</UseVSHostingProcess> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> + <DebugSymbols>true</DebugSymbols> + <DefineDebug>true</DefineDebug> + <DefineTrace>true</DefineTrace> + <OutputPath>..\..\..\..\..\..\bin\</OutputPath> + <DocumentationFile>VB.NET.xml</DocumentationFile> + <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,42353,42354,42355</NoWarn> + <DebugType>full</DebugType> + <PlatformTarget>x86</PlatformTarget> + <UseVSHostingProcess>false</UseVSHostingProcess> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> + <DefineTrace>true</DefineTrace> + <OutputPath>..\..\..\..\..\..\bin\</OutputPath> + <DocumentationFile>VB.NET.xml</DocumentationFile> + <Optimize>true</Optimize> + <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,42353,42354,42355</NoWarn> + <DebugType>pdbonly</DebugType> + <PlatformTarget>x86</PlatformTarget> + <UseVSHostingProcess>false</UseVSHostingProcess> + </PropertyGroup> + <ItemGroup> + <Reference Include="DotNet-Component-Scilab, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86"> + <HintPath>..\..\..\..\..\..\bin\DotNet-Component-Scilab.dll</HintPath> + </Reference> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Deployment" /> + <Reference Include="System.Xml" /> + <Reference Include="System.Core"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Xml.Linq"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + <Reference Include="System.Data.DataSetExtensions"> + <RequiredTargetFramework>3.5</RequiredTargetFramework> + </Reference> + </ItemGroup> + <ItemGroup> + <Import Include="Microsoft.VisualBasic" /> + <Import Include="System" /> + <Import Include="System.Collections" /> + <Import Include="System.Collections.Generic" /> + <Import Include="System.Data" /> + <Import Include="System.Diagnostics" /> + <Import Include="System.Linq" /> + <Import Include="System.Xml.Linq" /> + </ItemGroup> + <ItemGroup> + <Compile Include="vb_example.vb" /> + <Compile Include="My_Project\AssemblyInfo.vb" /> + <Compile Include="My_Project\Application.Designer.vb"> + <AutoGen>True</AutoGen> + <DependentUpon>Application.myapp</DependentUpon> + </Compile> + <Compile Include="My_Project\Resources.Designer.vb"> + <AutoGen>True</AutoGen> + <DesignTime>True</DesignTime> + <DependentUpon>Resources.resx</DependentUpon> + </Compile> + <Compile Include="My_Project\Settings.Designer.vb"> + <AutoGen>True</AutoGen> + <DependentUpon>Settings.settings</DependentUpon> + <DesignTimeSharedInput>True</DesignTimeSharedInput> + </Compile> + </ItemGroup> + <ItemGroup> + <EmbeddedResource Include="My_Project\Resources.resx"> + <Generator>VbMyResourcesResXFileCodeGenerator</Generator> + <LastGenOutput>Resources.Designer.vb</LastGenOutput> + <CustomToolNamespace>My.Resources</CustomToolNamespace> + <SubType>Designer</SubType> + </EmbeddedResource> + </ItemGroup> + <ItemGroup> + <None Include="My_Project\Application.myapp"> + <Generator>MyApplicationCodeGenerator</Generator> + <LastGenOutput>Application.Designer.vb</LastGenOutput> + </None> + <None Include="My_Project\Settings.settings"> + <Generator>SettingsSingleFileGenerator</Generator> + <CustomToolNamespace>My</CustomToolNamespace> + <LastGenOutput>Settings.Designer.vb</LastGenOutput> + </None> + </ItemGroup> + <ItemGroup> + <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> + <Visible>False</Visible> + <ProductName>.NET Framework Client Profile</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.2.0"> + <Visible>False</Visible> + <ProductName>.NET Framework 2.0 %28x86%29</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.0"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.0 %28x86%29</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.5"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.5</ProductName> + <Install>false</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> + <Visible>False</Visible> + <ProductName>.NET Framework 3.5 SP1</ProductName> + <Install>true</Install> + </BootstrapperPackage> + <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> + <Visible>False</Visible> + <ProductName>Windows Installer 3.1</ProductName> + <Install>true</Install> + </BootstrapperPackage> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> +</Project>
\ No newline at end of file diff --git a/modules/call_scilab/examples/call_scilab/NET/VB.NET/vb_example.vb b/modules/call_scilab/examples/call_scilab/NET/VB.NET/vb_example.vb new file mode 100755 index 000000000..fcdb1989a --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/VB.NET/vb_example.vb @@ -0,0 +1,71 @@ +' +' * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +' * Copyright (C) 2009 - DIGITEO - Allan CORNET +' * +' * This file must be used under the terms of the CeCILL. +' * This source file is licensed as described in the file COPYING, which +' * you should have received as part of this distribution. The terms +' * are also available at +' * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +' * +'//============================================================================= + +' See SCI/modules/call_scilab/examples/NET/C# about scilab .NET Component +' You need to add Scilab (C#) .NET Component as reference +' easier way to test is to launch SCI/bin/VB.NET.exe +' or VB.NET.exe must known libscilab.dll library path + +Module vb_example + '//============================================================================= + Sub example() + Dim ObjScilab As New DotNetScilab.Scilab + + ' Send a command to scilab + ' Here , we want to display SCI variable + ObjScilab.SendScilabJob("disp('SCI = ');") + ObjScilab.SendScilabJob("disp(SCI)") + + Dim A() As Double = {1, 2, 3, 4, 5, 6} + Dim mA As Long = 2 + Dim nA As Long = 3 + + + ObjScilab.createNamedMatrixOfDouble("A", mA, nA, A) + ObjScilab.SendScilabJob("disp('A = ');") + ObjScilab.SendScilabJob("disp(A)") + + ObjScilab.SendScilabJob("A = A + 1;") + ObjScilab.SendScilabJob("disp('A modified = ');") + ObjScilab.SendScilabJob("disp(A)") + + Dim A_modified() As Double + A_modified = ObjScilab.readNamedMatrixOfDouble("A") + + Dim dimension_A_modified(2) As Integer + dimension_A_modified = ObjScilab.getNamedVarDimension("A") + + Console.WriteLine("") + Console.WriteLine("(C#) A modified =") + + Dim i As Integer = 0 + Dim j As Integer = 0 + Dim elem As Double = 0 + + For i = 0 To dimension_A_modified(0) - 1 + For j = 0 To dimension_A_modified(1) - 1 + + elem = A_modified(j * dimension_A_modified(0) + i) + Console.Write(elem.ToString + " ") + Next j + Console.WriteLine("") + Next i + + End Sub + '//============================================================================= + Sub Main() + example() + End Sub + '//============================================================================= +End Module +'//============================================================================= + diff --git a/modules/call_scilab/examples/call_scilab/NET/powershell/examples.ps b/modules/call_scilab/examples/call_scilab/NET/powershell/examples.ps new file mode 100755 index 000000000..fa74e3a9b --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/powershell/examples.ps @@ -0,0 +1,46 @@ +#------------------------------------------------------------------------------ +# Allan CORNET - DIGITEO - 2009 +# This file is released under the 3-clause BSD license. See COPYING-BSD. +#------------------------------------------------------------------------------ +# set PATH and SCI/bin +$Scilab_bin_directory = "C:\Program Files\scilab-5.2\bin" +$Env:PATH = $Env:PATH + ";" + $Scilab_bin_directory +#------------------------------------------------------------------------------ +# load dll C# component +$Fullpath ="$Scilab_bin_directory\DotNet-Component-Scilab.dll" +[System.Reflection.Assembly]::LoadFile($Fullpath) +#------------------------------------------------------------------------------ +# create a scilab object +$objScilab = new-object dotnetscilab.Scilab +#------------------------------------------------------------------------------ +# send a command to scilab +$r = $objScilab.SendScilabJob("disp('Hello')") +#------------------------------------------------------------------------------ +# read a variable (double) from scilab +$r = $objScilab.SendScilabJob("A=ones(5,10)") +$objScilab.SendScilabJob("disp(A)") +$objScilab.readNamedMatrixOfDouble('A') +$dimA = $objScilab.getNamedVarDimension('A') +#------------------------------------------------------------------------------ +# read a variable (string) from scilab +$objScilab.SendScilabJob("strA = 'test'") +$objScilab.readNamedMatrixOfString('strA') +$objScilab.getNamedVarDimension('strA') +#------------------------------------------------------------------------------ +# read a variable (string) from scilab +$objScilab.SendScilabJob("strB =['test';'scilab']") +$dimstrB = $objScilab.getNamedVarDimension('strB') +$strB = $objScilab.readNamedMatrixOfString('strB') +#------------------------------------------------------------------------------ +$matDouble = (5.,10.,5.,10.,5.,10.) +$objScilab.createNamedMatrixOfDouble('matDouble',3,2,$matDouble) +$objScilab.SendScilabJob("matDouble = matDouble * 2") +$objScilab.SendScilabJob("disp(matDouble)") +$matDouble = $objScilab.readNamedMatrixOfDouble('matDouble') +#------------------------------------------------------------------------------ +$matString = ('test' , 'scilab' , 'from' , 'powershell') +$objScilab.createNamedMatrixOfString('matString',2,2,$matString) +$objScilab.SendScilabJob("matString = convstr(matString,'u')") +$objScilab.SendScilabJob("disp(matString)") +$matString = $objScilab.readNamedMatrixOfString('matString') +#------------------------------------------------------------------------------ diff --git a/modules/call_scilab/examples/call_scilab/NET/powershell/readme.txt b/modules/call_scilab/examples/call_scilab/NET/powershell/readme.txt new file mode 100755 index 000000000..d1d068696 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/NET/powershell/readme.txt @@ -0,0 +1,87 @@ +Call scilab from powershell +(http://wiki.scilab.org/Call_scilab_from_powershell) + +A easy example to call scilab from powershell. + +you need : + +-- powershell 1.0 or 2.0 CTP + +-- scilab 5.2 + +-- visual studio C# 2008 pro or express (to build donetscilab classlibrary) + +1] build donetscilab classlibrary + +launch SCI/modules/call_scilab/examples/call_scilab/NET/C#/dotnetsci.sln + +and build solution. + +2] configure your powershell environment + +launch powershell : + $Scilab_bin_directory = "C:\Program Files\scilab-5.2\bin" + $Env:PATH = $Env:PATH + ";" + $Scilab_bin_directory + +3] load .NET classlibrary + $Fullpath ="$Scilab_bin_directory\DotNet-Component-Scilab.dll" + [System.Reflection.Assembly]::LoadFile($Fullpath) + +4] create a .NET scilab object + $objScilab = new-object dotnetscilab.Scilab + +5] play with methods of scilab object + +send a job to scilab (here , display a string) : + $r = $objScilab.SendScilabJob("disp('Hello')") + $r + +creates a double matrix in scilab and get result in powershell : + $r = $objScilab.SendScilabJob("A=ones(5,10)") + $r + + $objScilab.SendScilabJob("disp(A)") + $objScilab.readNamedMatrixOfDouble('A') + + $dimA = $objScilab.getNamedVarDimension('A') + $dimA + +creates a string in scilab and get result in powershell : + $objScilab.SendScilabJob("strA = 'test'") + $objScilab.readNamedMatrixOfString('strA') + $objScilab.getNamedVarDimension('strA') + +creates a string matrix in scilab and get result in powershell : + $objScilab.SendScilabJob("strB =['test';'scilab']") + $dimstrB = $objScilab.getNamedVarDimension('strB') + $dimstrB + + $strB = $objScilab.readNamedMatrixOfString('strB') + $strB + +send an array of double from powershell, modify by scilab and get result : + $matDouble = (5.,10.,5.,10.,5.,10.) + $matDouble + + $objScilab.createNamedMatrixOfDouble('matDouble',3,2,$matDouble) + + $objScilab.SendScilabJob("matDouble = matDouble * 2") + $objScilab.SendScilabJob("disp(matDouble)") + + $matDouble = $objScilab.readNamedMatrixOfDouble('matDouble') + $matDouble + +send an array of string from powershell, modify by scilab and get result : + $matString = ('test' , 'scilab' , 'from' , 'powershell') + $matString + + $objScilab.createNamedMatrixOfString('matString',2,2,$matString) + $objScilab.SendScilabJob("matString = convstr(matString,'u')") + $objScilab.SendScilabJob("disp(matString)") + + $matString = $objScilab.readNamedMatrixOfString('matString') + $matString + + +Allan CORNET - DIGITEO - 2009 + diff --git a/modules/call_scilab/examples/call_scilab/c/LabWindow/CallsciC.c b/modules/call_scilab/examples/call_scilab/c/LabWindow/CallsciC.c new file mode 100755 index 000000000..267a0554f --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/c/LabWindow/CallsciC.c @@ -0,0 +1,166 @@ +/* Allan CORNET */ +/* Scilab, INRIA 2004 */ +/* Only For Windows */ +/*--------------------------------------------------------------------------*/ +#pragma comment(lib, "../../../../../../bin/libScilab.lib") +/*--------------------------------------------------------------------------*/ +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include "call_scilab.h" +#include "stack-c.h" +/*--------------------------------------------------------------------------*/ +/* See SCI/modules/core/includes/call_scilab.h */ +/*--------------------------------------------------------------------------*/ +static int example1(void) +{ + static double A[] = {1, 2, 3, 4}; + int mA = 2, nA = 2; + static double b[] = {4, 5}; + int mb = 2, nb = 1; + + + /* Create Scilab matrices A and b */ + WriteMatrix("A", &mA, &nA, A); + WriteMatrix("b", &mb, &nb, b); + + SendScilabJob("disp('A=');"); + SendScilabJob("disp(A);"); + SendScilabJob("disp('b=');"); + SendScilabJob("disp(b);"); + SendScilabJob("disp('x=A\\b');"); + + if ( SendScilabJob("A,b,x=A\\b;") != 0) + { + fprintf(stdout, "Error occurred during scilab execution (SendScilabJob)\n"); + } + else + { + double *cxtmp = NULL; + int m, n, lp, i; + + /* Get m and n */ + GetMatrixptr("x", &m, &n, &lp); + + cxtmp = (double*)malloc((m * n) * sizeof(double)); + + ReadMatrix("x", &m, &n, cxtmp); + + for (i = 0; i < m * n; i++) + { + fprintf(stdout, "x[%d] = %5.2f\n", i, cxtmp[i]); + } + + if (cxtmp) + { + free(cxtmp); + cxtmp = NULL; + } + } + return 0; +} +/*--------------------------------------------------------------------------*/ +static int example2(void) +{ + int code = 0; + + char **JOBS = NULL; + const int SizeJOBS = 5; + int i = 0; + int m = 0, n = 0; + double *cxtmp = NULL; + + JOBS = (char**)malloc(sizeof(char**) * SizeJOBS); + + for (i = 0; i < SizeJOBS; i++) + { + JOBS[i] = (char*)malloc(sizeof(char*) * 1024); + } + + strcpy(JOBS[0], "A=1 .."); + strcpy(JOBS[1], "+3;"); + strcpy(JOBS[2], "B = 8;"); + strcpy(JOBS[3], "+3;"); + strcpy(JOBS[4], "C=A+B;"); /* C = 12 */ + + + for (i = 0; i < SizeJOBS; i++) + { + printf("JOBS[%d] = %s\n", i, JOBS[i]); + } + + code = SendScilabJobs(JOBS, SizeJOBS); + + if (code) + { + char lastjob[4096]; // bsiz in scilab 4096 max + if (GetLastJob(lastjob, 4096)) + { + printf("Error %s\n", lastjob); + } + } + + m = 1; + n = 1; + cxtmp = (double*)malloc((m * n) * sizeof(double)); + + ReadMatrix("C", &m, &n, cxtmp); + + printf("Result :\n"); + for (i = 0; i < m * n; i++) + { + fprintf(stdout, "C[%d] = %5.2f\n", i, cxtmp[i]); + } + + for (i = 0; i < SizeJOBS; i++) + { + if (JOBS[i]) + { + free(JOBS[i]); + JOBS[i] = NULL; + } + } + return 1; +} +/*--------------------------------------------------------------------------*/ +static int example3(void) +{ + SendScilabJob("plot3d();quit;"); + printf("\nClose Graphical Windows to close this example.\n"); + while ( ScilabHaveAGraph() ) + { + ScilabDoOneEvent(); + } + return 1; +} +/*--------------------------------------------------------------------------*/ +int main(void) +/* int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR szCmdLine, int iCmdShow) */ +{ + if ( StartScilab(NULL, NULL, NULL) == FALSE ) + { + printf("Error : StartScilab\n"); + } + printf("\nexample 1\n"); + example1(); + printf("\npress return\n"); + getchar(); + + printf("\nexample 2\n"); + example2(); + printf("\npress return\n"); + getchar(); + + printf("\nexample 3\n"); + example3(); + printf("\npress return\n"); + getchar(); + + + if ( TerminateScilab(NULL) == FALSE ) + { + printf("Error : TerminateScilab\n"); + } + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/call_scilab/examples/call_scilab/c/LabWindow/example.prj b/modules/call_scilab/examples/call_scilab/c/LabWindow/example.prj new file mode 100755 index 000000000..296910ac1 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/c/LabWindow/example.prj @@ -0,0 +1,137 @@ +[Project Header] +Version = 850 +Pathname Line0001 = "/d/GIT-scilab-master/scilab/scilab/modules/core/examples/call_scilab/c/LabWindow" +Pathname Line0002 = "/example.prj" +CVI Dir = "/c/program files (x86)/national instruments/cvi85" +CVI Shared Dir = "/C/Program Files (x86)/National Instruments/Shared/CVI" +CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI85" +CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" +IVI Standard Root Dir = "/C/Program Files (x86)/IVI" +VXIplug&play Framework Dir = "/c/vxipnp/winnt" +Number of Files = 2 +Target Type = "Executable" +Flags = 16 + +[File 0001] +File Type = "CSource" +Res Id = 1 +Path Is Rel = True +Path Rel To = "Project" +Path Rel Path = "CallsciC.c" +Path Line0001 = "/d/GIT-scilab-master/scilab/scilab/modules/core/examples/call_scilab/c/LabWindow" +Path Line0002 = "/CallsciC.c" +Exclude = False +Compile Into Object File = False +Project Flags = 0 +Folder = "Source Files" + +[File 0002] +File Type = "Library" +Res Id = 2 +Path Is Rel = True +Path Rel To = "Project" +Path Rel Path = "../../../../../../bin/LibScilab.lib" +Path = "/d/GIT-scilab-master/scilab/scilab/bin/LibScilab.lib" +Exclude = False +Project Flags = 0 +Folder = "Not In A Folder" + +[Folders] +Include Files Folder Not Added Yet = True +User Interface Files Folder Not Added Yet = True +Instrument Files Folder Not Added Yet = True +Folder 0 = "Source Files" + +[Compiler Options] +Default Calling Convention = "cdecl" +Require Prototypes = True +Require Return Values = True +Enable Pointer Mismatch Warning = False +Enable Unreachable Code Warning = False +Enable Unreferenced Identifiers Warning = False +Enable Assignment In Conditional Warning = False +O Option Compatible With 5.0 = False +Uninitialized Locals Compile Warning = "Conservative" + +[Run Options] +Stack Size = 250000 +Image Base Address = 4194304 + +[Compiler Defines] +Compiler Defines = "/DWIN32_LEAN_AND_MEAN" + +[Include Paths] +Include Path 1 Is Rel = False +Include Path 1 = "/d/GIT-scilab-master/scilab/scilab/bin" +Include Path 2 Is Rel = False +Include Path 2 = "/d/GIT-scilab-master/scilab/scilab/modules/core/includes" +Include Path 3 Is Rel = False +Include Path 3 = "/d/GIT-scilab-master/scilab/scilab/modules/output_stream/includes" + +[Create Executable] +Executable File_Debug Is Rel = True +Executable File_Debug Rel To = "Project" +Executable File_Debug Rel Path = "example_dbg.exe" +Executable File_Debug Line0001 = "/d/GIT-scilab-master/scilab/scilab/modules/core/examples/call_scilab/c/LabWindow" +Executable File_Debug Line0002 = "/example_dbg.exe" +Executable File_Release Is Rel = True +Executable File_Release Rel To = "Project" +Executable File_Release Rel Path = "example.exe" +Executable File_Release Line0001 = "/d/GIT-scilab-master/scilab/scilab/modules/core/examples/call_scilab/c/LabWindow" +Executable File_Release Line0002 = "/example.exe" +Icon File Is Rel = False +Icon File = "" +Application Title = "" +DLL Exports = "Include File Symbols" +DLL Import Library Choice = "Gen Lib For Current Mode" +Use IVI Subdirectories for Import Libraries = False +Use VXIPNP Subdirectories for Import Libraries = False +Use Dflt Import Lib Base Name = True +Where to Copy DLL = "Do not copy" +Add Type Lib To DLL = False +Include Type Lib Help Links = False +Type Lib FP File Is Rel = False +Type Lib FP File = "" +Type Lib Guid = "" +Runtime Support = "Full Runtime Support" +Instrument Driver Support Only = False +Embed Project .UIRs = False +Generate Map File = False + +[External Compiler Support] +UIR Callbacks File Option = 0 +Using LoadExternalModule = False +Create Project Symbols File = True +UIR Callbacks Obj File Is Rel = False +UIR Callbacks Obj File = "" +Project Symbols H File Is Rel = False +Project Symbols H File = "" +Project Symbols Obj File Is Rel = False +Project Symbols Obj File = "" + +[ActiveX Server Options] +Specification File Is Rel = False +Specification File = "" +Source File Is Rel = False +Source File = "" +Include File Is Rel = False +Include File = "" +IDL File Is Rel = False +IDL File = "" +Register ActiveX Server = False + +[Signing Info] +Sign = False +Sign Debug Build = False +Store = "" +Certificate = "" +Timestamp URL = "" +URL = "" + +[Manifest Info] +Embed = False + +[tpcSection] +tpcEnabled = 0 +tpcOverrideEnvironment = 0 + diff --git a/modules/call_scilab/examples/call_scilab/c/LabWindow/readme.txt b/modules/call_scilab/examples/call_scilab/c/LabWindow/readme.txt new file mode 100755 index 000000000..a7fa0c148 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/c/LabWindow/readme.txt @@ -0,0 +1,9 @@ +launch example.prj with LabWindow CVI (checked with 8.5.0 (279)) +modify paths to find scilab libraries +defines PATH +set PATH=%PATH%;"c:\Program files\scilab-5.1\bin" +build example with LabWindow CVI +launch executable (example_debug.exe or example.exe) + +Allan CORNET +DIGITEO 2008
\ No newline at end of file diff --git a/modules/call_scilab/examples/call_scilab/c/common/.deps/call_scilab_c-myprog.Po b/modules/call_scilab/examples/call_scilab/c/common/.deps/call_scilab_c-myprog.Po new file mode 100755 index 000000000..9ce06a81e --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/c/common/.deps/call_scilab_c-myprog.Po @@ -0,0 +1 @@ +# dummy diff --git a/modules/call_scilab/examples/call_scilab/c/common/.deps/call_scilab_c_simple-simple_call_scilab.Po b/modules/call_scilab/examples/call_scilab/c/common/.deps/call_scilab_c_simple-simple_call_scilab.Po new file mode 100755 index 000000000..9ce06a81e --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/c/common/.deps/call_scilab_c_simple-simple_call_scilab.Po @@ -0,0 +1 @@ +# dummy diff --git a/modules/call_scilab/examples/call_scilab/c/common/makefile.mak b/modules/call_scilab/examples/call_scilab/c/common/makefile.mak new file mode 100755 index 000000000..35f0966d2 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/c/common/makefile.mak @@ -0,0 +1,34 @@ +SHELL = /bin/sh + +SCIDIR=../../../../../.. +SCIDIR1=..\..\..\..\..\.. + +DUMPEXTS="$(SCIDIR1)\bin\dumpexts" +SCIIMPLIB=$(SCIDIR)/bin/LibScilab.lib + +CFLAGS= $(CC_OPTIONS) -DFORDLL -I"$(SCIDIR)/routines" +CPPFLAGS= $(CC_OPTIONS) -DFORDLL -I"$(SCIDIR)/routines" + +!include $(SCIDIR)/modules/dynamic_link/src/scripts/Makefile.incl.mak + + +OBJSC= myprog.obj + +all:: $(OBJSC) $(SCIDIR)/bin/prog.exe + +distclean:: clean + +clean :: + @del *.obj + +distclean:: clean + @del $(SCIDIR1)\bin\prog.* + + +RESOURCES= $(SCIDIR)/routines/wsci/Rscilab.res + +$(SCIDIR)/bin/prog.exe : $(OBJSC) + @echo "Linking" + $(LINKER) $(LINKER_FLAGS) -OUT:"$*.exe" \ + $(OBJSC) $(SCIDIR)/bin/LibScilab.lib $(SCILAB_LIBS) + @echo "done " $(SCIDIR)/bin/prog.exe diff --git a/modules/call_scilab/examples/call_scilab/c/common/myprog.c b/modules/call_scilab/examples/call_scilab/c/common/myprog.c new file mode 100755 index 000000000..299092138 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/c/common/myprog.c @@ -0,0 +1,168 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA + * Copyright (C) INRIA - 2005 - Allan Cornet + * + * This file is released under the 3-clause BSD license. See COPYING-BSD. + * + */ +#include <math.h> +#include <stdio.h> +#ifdef _MSC_VER +#include <windows.h> +#endif +#include <unistd.h> +#include <string.h> +#include "api_scilab.h" +#include "call_scilab.h" /* Provide functions to call Scilab engine */ + +/** + * + * Initialisation of Scilab + */ +/*#ifndef SCI +#define SCI "../.." +#endif */ +/*------------------------------------------------------------*/ +#define TRUE 1 +#define FALSE 0 +/*------------------------------------------------------------*/ +/* See SCI/modules/core/includes/call_scilab.h */ +/*------------------------------------------------------------*/ +static int first_example(void) +{ + static double A[] = {1, 2, 3, 4}; + int mA = 2, nA = 2; + static double b[] = {4, 5}; + int mb = 2, nb = 1; + printf("\nExample 1:\n"); + printf("Some simple computations\n"); + + /* Create Scilab matrices A and b */ + createNamedMatrixOfDouble(pvApiCtx, "A", mA, mA, A); + createNamedMatrixOfDouble(pvApiCtx, "b", mb, nb, b); + + SendScilabJob("disp('A=');"); + SendScilabJob("disp(A);"); + SendScilabJob("disp('b=');"); + SendScilabJob("disp(b);"); + SendScilabJob("disp('x=A\\b');"); + + if ( SendScilabJob("A,b,x=A\\b;") != 0) + { + fprintf(stdout, "Error occurred during scilab execution (SendScilabJob)\n"); + } + else + { + double *cxtmp = NULL; + int m, n, lp, i; + + /* Get m and n */ + getNamedVarDimension(pvApiCtx, "x", &m, &n); + + cxtmp = (double*)malloc((m * n) * sizeof(double)); + + readNamedMatrixOfDouble(pvApiCtx, "x", &m, &n, cxtmp); + + for (i = 0; i < m * n; i++) + { + fprintf(stdout, "x[%d] = %5.2f\n", i, cxtmp[i]); + } + + if (cxtmp) + { + free(cxtmp); + cxtmp = NULL; + } + } + return 0; +} +/*------------------------------------------------------------*/ +static int second_example(void) +{ + printf("\nExample 2:\n"); + printf("Call graphics\n"); + + SendScilabJob("plot3d();"); + + printf("\nClose Graphical Windows to close this example.\n"); + while ( ScilabHaveAGraph() ) + { + ScilabDoOneEvent(); + sleep(1); + } + return 1; +} +/*------------------------------------------------------------*/ +static int third_example(void) +{ + int code = 0; + char **JOBS = NULL; + const int SizeJOBS = 6; + int i = 0; + printf("\nExample 3:\n"); + printf("Send many jobs.\n"); + JOBS = (char**)malloc(sizeof(char**) * SizeJOBS); + + for (i = 0; i < SizeJOBS; i++) + { + JOBS[i] = (char*)malloc(sizeof(char*) * 1024); + } + + strcpy(JOBS[0], "A=1 .."); + strcpy(JOBS[1], "+3;"); + strcpy(JOBS[2], "B = 8;"); + /* strcpy(JOBS[2],"b = V_NOT_EXIST;"); */ + strcpy(JOBS[3], "+3;"); + strcpy(JOBS[4], "disp('C=');"); + strcpy(JOBS[5], "C=A+B;disp(C);"); /* C = 12 */ + + code = SendScilabJobs(JOBS, SizeJOBS); + + if (code) + { + char lastjob[4096]; // bsiz in scilab 4096 max + if (GetLastJob(lastjob, 4096)) + { + printf("Error %s\n", lastjob); + } + } + + for (i = 0; i < SizeJOBS; i++) + { + if (JOBS[i]) + { + free(JOBS[i]); + JOBS[i] = NULL; + } + } + return 0; +} + +/*------------------------------------------------------------*/ +int main(void) +{ +#ifdef _MSC_VER + if ( StartScilab(NULL, NULL, NULL) == FALSE ) +#else + if ( StartScilab(getenv("SCI"), NULL, NULL) == FALSE ) +#endif + { + fprintf(stderr, "Error while calling StartScilab\n"); + return -1; + } + + first_example(); + + second_example() ; + + third_example() ; + + if ( TerminateScilab(NULL) == FALSE ) + { + fprintf(stderr, "Error while calling TerminateScilab\n"); + return -2; + } + return 0; +} +/*------------------------------------------------------------*/ diff --git a/modules/call_scilab/examples/call_scilab/c/common/simple_call_scilab.c b/modules/call_scilab/examples/call_scilab/c/common/simple_call_scilab.c new file mode 100755 index 000000000..717c6f66d --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/c/common/simple_call_scilab.c @@ -0,0 +1,42 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) DIGITEO - 2009 - Sylvestre Ledru + * Copyright (C) INRIA - 2005 - Allan Cornet + * + * This file is released under the 3-clause BSD license. See COPYING-BSD. + * + */ +#include <stdio.h> /* stderr */ + +#include "call_scilab.h" /* Provide functions to call Scilab engine */ + + +// Filename: simple_call_scilab.c + +int main(void) +{ + /****** INITIALIZATION **********/ +#ifdef _MSC_VER + if ( StartScilab(NULL, NULL, NULL) == FALSE ) +#else + if ( StartScilab(getenv("SCI"), NULL, NULL) == FALSE ) +#endif + { + fprintf(stderr, "Error while calling StartScilab\n"); + return -1; + } + + /****** ACTUAL Scilab TASKS *******/ + + SendScilabJob("myMatrix=['sample','for the help']"); + SendScilabJob("disp(myMatrix);"); // Will display !sample for the help ! + SendScilabJob("disp([2,3]+[-44,39]);"); // Will display - 42. 42. + + /****** TERMINATION **********/ + if ( TerminateScilab(NULL) == FALSE ) + { + fprintf(stderr, "Error while calling TerminateScilab\n"); + return -2; + } + return 0; +} diff --git a/modules/call_scilab/examples/call_scilab/c/visual_studio/CallSciVC.sln b/modules/call_scilab/examples/call_scilab/c/visual_studio/CallSciVC.sln new file mode 100755 index 000000000..4d7836d0a --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/c/visual_studio/CallSciVC.sln @@ -0,0 +1,26 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Callsci Example ", "CallSciVC.vcxproj", "{0A05EAA1-BB0E-4221-A475-8A4DAD003CCA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0A05EAA1-BB0E-4221-A475-8A4DAD003CCA}.Debug|Win32.ActiveCfg = Debug|Win32 + {0A05EAA1-BB0E-4221-A475-8A4DAD003CCA}.Debug|Win32.Build.0 = Debug|Win32 + {0A05EAA1-BB0E-4221-A475-8A4DAD003CCA}.Debug|x64.ActiveCfg = Debug|x64 + {0A05EAA1-BB0E-4221-A475-8A4DAD003CCA}.Debug|x64.Build.0 = Debug|x64 + {0A05EAA1-BB0E-4221-A475-8A4DAD003CCA}.Release|Win32.ActiveCfg = Release|Win32 + {0A05EAA1-BB0E-4221-A475-8A4DAD003CCA}.Release|Win32.Build.0 = Release|Win32 + {0A05EAA1-BB0E-4221-A475-8A4DAD003CCA}.Release|x64.ActiveCfg = Release|x64 + {0A05EAA1-BB0E-4221-A475-8A4DAD003CCA}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/modules/call_scilab/examples/call_scilab/c/visual_studio/CallSciVC.vcxproj b/modules/call_scilab/examples/call_scilab/c/visual_studio/CallSciVC.vcxproj new file mode 100755 index 000000000..103e3e9dc --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/c/visual_studio/CallSciVC.vcxproj @@ -0,0 +1,156 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Debug|x64"> + <Configuration>Debug</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|x64"> + <Configuration>Release</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <PropertyGroup Label="Globals"> + <ProjectName>Callsci Example </ProjectName> + <ProjectGuid>{0A05EAA1-BB0E-4221-A475-8A4DAD003CCA}</ProjectGuid> + <RootNamespace>Callsci Example </RootNamespace> + <Keyword>Win32Proj</Keyword> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <CharacterSet>MultiByte</CharacterSet> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> + <ImportGroup Label="ExtensionSettings"> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" /> + </ImportGroup> + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" /> + </ImportGroup> + <PropertyGroup Label="UserMacros" /> + <PropertyGroup> + <_ProjectFileVersion>10.0.31118.1</_ProjectFileVersion> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Debug\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Debug\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Release\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Release\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental> + <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</OutDir> + <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir> + <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental> + </PropertyGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../../../../core/includes;../../../../../api_scilab/includes;../../../../includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + <DebugInformationFormat>EditAndContinue</DebugInformationFormat> + </ClCompile> + <Link> + <OutputFile>../../../../../../bin/CallSciVC.exe</OutputFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <ProgramDatabaseFile>$(OutDir)CallSciVC.pdb</ProgramDatabaseFile> + <SubSystem>Console</SubSystem> + <TargetMachine>MachineX86</TargetMachine> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../../../../core/includes;../../../../../api_scilab/includes;../../../../includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <Link> + <OutputFile>../../../../../../bin/CallSciVC.exe</OutputFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <ProgramDatabaseFile>$(OutDir)CallSciVC.pdb</ProgramDatabaseFile> + <SubSystem>Console</SubSystem> + <TargetMachine>MachineX64</TargetMachine> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <ClCompile> + <AdditionalIncludeDirectories>../../../../../core/includes;../../../../../api_scilab/includes;../../../../includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <Link> + <OutputFile>../../../../../../bin/CallSciVC.exe</OutputFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Console</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <TargetMachine>MachineX86</TargetMachine> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <AdditionalIncludeDirectories>../../../../../core/includes;../../../../../api_scilab/includes;../../../../includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <WarningLevel>Level3</WarningLevel> + </ClCompile> + <Link> + <OutputFile>../../../../../../bin/CallSciVC.exe</OutputFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Console</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <TargetMachine>MachineX64</TargetMachine> + </Link> + </ItemDefinitionGroup> + <ItemGroup> + <ClCompile Include="CallsciC.c" /> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/modules/call_scilab/examples/call_scilab/c/visual_studio/CallSciVC.vcxproj.filters b/modules/call_scilab/examples/call_scilab/c/visual_studio/CallSciVC.vcxproj.filters new file mode 100755 index 000000000..027ab191a --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/c/visual_studio/CallSciVC.vcxproj.filters @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup> + <Filter Include="Source Files"> + <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> + <Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> + </Filter> + <Filter Include="Header Files"> + <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> + <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions> + </Filter> + <Filter Include="Resource Files"> + <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> + <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx</Extensions> + </Filter> + </ItemGroup> + <ItemGroup> + <ClCompile Include="CallsciC.c"> + <Filter>Source Files</Filter> + </ClCompile> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/modules/call_scilab/examples/call_scilab/c/visual_studio/CallsciC.c b/modules/call_scilab/examples/call_scilab/c/visual_studio/CallsciC.c new file mode 100755 index 000000000..dd365b7fe --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/c/visual_studio/CallsciC.c @@ -0,0 +1,168 @@ +/*--------------------------------------------------------------------------*/ +/* Example only for Windows */ +/*--------------------------------------------------------------------------*/ +#pragma comment(lib, "../../../../../../bin/call_scilab.lib") +#pragma comment(lib, "../../../../../../bin/api_scilab.lib") +/*--------------------------------------------------------------------------*/ +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include "call_scilab.h" +#include "api_scilab.h" +#include "stack-c.h" +/*--------------------------------------------------------------------------*/ +/* See SCI/modules/core/includes/call_scilab.h */ +/* See SCI/modules/core/includes/api_scilab.h */ +/*--------------------------------------------------------------------------*/ +static int example1(void) +{ + SciErr sciErr; + + static double A[] = {1, 2, 3, 4}; + int mA = 2, nA = 2; + + static double b[] = {4, 5}; + int mb = 2, nb = 1; + + /* Create Scilab matrices A and b */ + sciErr = createNamedMatrixOfDouble(pvApiCtx, "A", mA, nA, A); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return -1; + } + + sciErr = createNamedMatrixOfDouble(pvApiCtx, "b", mb, nb, b); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return -1; + } + + SendScilabJob("disp('A=');"); + SendScilabJob("disp(A);"); + SendScilabJob("disp('b=');"); + SendScilabJob("disp(b);"); + SendScilabJob("disp('x=A\\b');"); + + if ( SendScilabJob("A,b,x=A\\b;") != 0) + { + fprintf(stdout, "Error occurred during scilab execution (SendScilabJob)\n"); + } + else + { + double *cxtmp = NULL; + int m = 0, n = 0; + int i = 0; + + /* Get m and n dimensions of x */ + sciErr = readNamedMatrixOfDouble(pvApiCtx, "x", &m, &n , NULL); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return -1; + } + + cxtmp = (double*)malloc((m * n) * sizeof(double)); + sciErr = readNamedMatrixOfDouble(pvApiCtx, "x", &m, &n , cxtmp); + if (sciErr.iErr) + { + printError(&sciErr, 0); + return -1; + } + + for (i = 0; i < m * n; i++) + { + fprintf(stdout, "x[%d] = %5.2f\n", i, cxtmp[i]); + } + + if (cxtmp) + { + free(cxtmp); + cxtmp = NULL; + } + } + return 0; +} +/*--------------------------------------------------------------------------*/ +static int example2(void) +{ + SendScilabJob("plot3d();"); + printf("\nClose Graphical Windows to close this example.\n"); + while ( ScilabHaveAGraph() ) + { + ScilabDoOneEvent(); + } + return 1; +} +/*--------------------------------------------------------------------------*/ +static int example3(void) +{ + int code = 0; + + char **JOBS = NULL; + const int SizeJOBS = 6; + int i = 0; + + JOBS = (char**)malloc(sizeof(char**) * SizeJOBS); + + for (i = 0; i < SizeJOBS; i++) + { + JOBS[i] = (char*)malloc(sizeof(char*) * 1024); + } + + strcpy(JOBS[0], "A=1 .."); + strcpy(JOBS[1], "+3;"); + strcpy(JOBS[2], "B = 8;"); + strcpy(JOBS[3], "+3;"); + strcpy(JOBS[4], "disp('C=');"); + strcpy(JOBS[5], "C=A+B;disp(C);"); /* C = 12 */ + + code = SendScilabJobs(JOBS, SizeJOBS); + + if (code) + { + char lastjob[4096]; // bsiz in scilab 4096 max + if (GetLastJob(lastjob, 4096)) + { + printf("Error %s\n", lastjob); + } + } + + for (i = 0; i < SizeJOBS; i++) + { + if (JOBS[i]) + { + free(JOBS[i]); + JOBS[i] = NULL; + } + } + return 1; +} +/*--------------------------------------------------------------------------*/ +int main(void) +/* int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR szCmdLine, int iCmdShow) */ +{ + if ( StartScilab(NULL, NULL, 0) == FALSE ) + { + printf("Error : StartScilab\n"); + return 0; + } + + printf("\nexample 1\n"); + example1(); + system("pause"); + printf("\nexample 2\n"); + example2(); + system("pause"); + printf("\nexample 3\n"); + example3(); + system("pause"); + + if ( TerminateScilab(NULL) == FALSE ) + { + printf("Error : TerminateScilab\n"); + } + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/call_scilab/examples/call_scilab/cpp/borlandcpp/readme.txt b/modules/call_scilab/examples/call_scilab/cpp/borlandcpp/readme.txt new file mode 100755 index 000000000..59ee3251e --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/cpp/borlandcpp/readme.txt @@ -0,0 +1,19 @@ +How to make calls to Scilab interpreter from Borland C++ 6 + +Import Scilab library (LibScilab.dll) to Borland + +on a Command line + +impdef Libscilab.def Libscilab.dll +implib Libscilab.lib Libscilab.def + +Add Libscilab.lib in your Borland C++ project in "import library" + + +(On Google see 'Borland import library') + +That's all + +Allan CORNET +September 2006 +Scilab Team diff --git a/modules/call_scilab/examples/call_scilab/cpp/common/Makefile.mak b/modules/call_scilab/examples/call_scilab/cpp/common/Makefile.mak new file mode 100755 index 000000000..23394e245 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/cpp/common/Makefile.mak @@ -0,0 +1,39 @@ +SHELL = /bin/sh + +SCIDIR=../../../../../.. +SCIDIR1=..\..\..\..\..\.. + +DUMPEXTS="$(SCIDIR1)\bin\dumpexts" +SCIIMPLIB=$(SCIDIR)/bin/LibScilab.lib + +CFLAGS= $(CC_OPTIONS) -DFORDLL -I"$(SCIDIR)/modules/core/includes" /EHsc +CPPFLAGS= $(CC_OPTIONS) -DFORDLL -I"$(SCIDIR)/modules/core/includes" /EHsc + +!include $(SCIDIR)/modules/dynamic_link/src/scripts/Makefile.incl.mak + +OBJSC = myprog.obj ccmatrix1.obj + +all:: $(OBJSC) $(SCIDIR)/bin/prog.exe + +distclean:: clean + +clean :: + @del *.obj + @del *.lib + @del *.dll + @del *.exp + @del *.def + @del Makelib.mak + @del loader.sce + + +distclean:: clean + @del $(SCIDIR1)\bin\prog.exe + + + +$(SCIDIR)/bin/prog.exe : $(OBJSC) + @echo "Linking" + $(LINKER) $(LINKER_FLAGS) -OUT:"$*.exe" \ + $(OBJSC) $(SCIDIR)/bin/LibScilab.lib $(TKLIBS) $(GUI) -NODEFAULTLIB:msvcrt.lib + @echo "done " $(SCIDIR)/bin/prog.exe diff --git a/modules/call_scilab/examples/call_scilab/cpp/common/ccmatrix.h b/modules/call_scilab/examples/call_scilab/cpp/common/ccmatrix.h new file mode 100755 index 000000000..917dd1735 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/cpp/common/ccmatrix.h @@ -0,0 +1,26 @@ +/* + * This file is distributed under the same license as the Scilab package. + */ +#ifndef _cc_matrix_H_ +#define _cc_matrix_H_ + + +class CMatrix +{ +private: + int m, n; + char *name; + double *v; + +public: + CMatrix(char *name1, char *job); + void scijob(char *jobname); + CMatrix& plus(CMatrix &B); + void print(); + void inv(); + +}; + +#endif + + diff --git a/modules/call_scilab/examples/call_scilab/cpp/common/ccmatrix1.cc b/modules/call_scilab/examples/call_scilab/cpp/common/ccmatrix1.cc new file mode 100755 index 000000000..60f678935 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/cpp/common/ccmatrix1.cc @@ -0,0 +1,86 @@ +#include <iostream> +#include "ccmatrix.h" + + +class SciError {}; + +// CMatrix A(name,job); + +extern "C" { +#include <stdio.h> +#include <string.h> +#undef _PARAMS +#include "stack-c.h" +int SendScilabJob(char *); +void cc_test(); + +} + +static char buf[256]; + +CMatrix::CMatrix(char *name1,char *job) +{ + sprintf(buf,"%s=%s;",name1,job); + if ( SendScilabJob(buf) != 0) + throw SciError(); + else + { + int lp; + C2F(cmatptr)(name1, &m, &n, &lp,strlen(name1)); + v = stk(lp); + } + name = new char[strlen(name1)+1]; + strcpy(name,name1); +} + + +void CMatrix::scijob(char *jobname) +{ + sprintf(buf,jobname,name); + if ( SendScilabJob(buf) != 0) + throw SciError(); +} + +CMatrix& CMatrix::plus(CMatrix &B) +{ + sprintf(buf,"%s=%s+%s",this->name,this->name,B.name); + if ( SendScilabJob(buf) != 0) + throw SciError(); + int lp; + C2F(cmatptr)(name, &m, &n, &lp,strlen(name)); + v = stk(lp); + return *this; +} + +void CMatrix::print() +{ + fprintf(stdout,"Matrix %s=\n",name); + scijob("disp(%s)"); +} + +void CMatrix::inv() +{ + sprintf(buf,"%s=inv(%s)",name,name); + if ( SendScilabJob(buf) != 0) + throw SciError(); + int lp; + C2F(cmatptr)(name, &m, &n, &lp,strlen(name)); + v = stk(lp); +} + + +void cc_test() +{ + CMatrix A("a","ones(2,2)"); + CMatrix B("b","8"); + A.plus(B); + A.scijob("disp(%s);"); + A.scijob("%s=rand(2,2)"); + A.print(); + A.inv(); + A.print(); +} + + + + diff --git a/modules/call_scilab/examples/call_scilab/cpp/common/ccmatrix1.cpp b/modules/call_scilab/examples/call_scilab/cpp/common/ccmatrix1.cpp new file mode 100755 index 000000000..6286fc193 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/cpp/common/ccmatrix1.cpp @@ -0,0 +1,89 @@ +#include <iostream> +#include "ccmatrix.h" + + +class SciError {}; + +// CMatrix A(name,job); + +extern "C" { +#include <stdio.h> +#undef _PARAMS +#include "stack-c.h" + int send_scilab_job(char *, long int); + void cc_test(); + +} + +static char buf[256]; + +CMatrix::CMatrix(char *name1, char *job) +{ + sprintf(buf, "%s=%s;", name1, job); + if ( send_scilab_job(buf, strlen(buf)) != 0) + { + throw SciError(); + } + else + { + int lp; + C2F(cmatptr)(name1, &m, &n, &lp, strlen(name1)); + v = stk(lp); + } + name = new char[strlen(name1) + 1]; + strcpy(name, name1); +} + + +void CMatrix::scijob(char *jobname) +{ + sprintf(buf, jobname, name); + if ( send_scilab_job(buf, strlen(buf)) != 0) + { + throw SciError(); + } +} + +CMatrix& CMatrix::plus(CMatrix &B) +{ + sprintf(buf, "%s=%s+%s", this->name, this->name, B.name); + if ( send_scilab_job(buf, strlen(buf)) != 0) + { + throw SciError(); + } + int lp; + C2F(cmatptr)(name, &m, &n, &lp, strlen(name)); + v = stk(lp); + return *this; +} + +void CMatrix::print() +{ + fprintf(stdout, "Matrix %s=\n", name); + scijob("disp(%s)"); +} + +void CMatrix::inv() +{ + sprintf(buf, "%s=inv(%s)", name, name); + if ( send_scilab_job(buf, strlen(buf)) != 0) + { + throw SciError(); + } + int lp; + C2F(cmatptr)(name, &m, &n, &lp, strlen(name)); + v = stk(lp); +} + + +void cc_test() +{ + CMatrix A("a", "ones(2,2)"); + CMatrix B("b", "8"); + A.plus(B); + A.scijob("disp(%s);"); + A.scijob("%s=rand(2,2)"); + A.print(); + A.inv(); + A.print(); +} diff --git a/modules/call_scilab/examples/call_scilab/cpp/common/my_ode.c b/modules/call_scilab/examples/call_scilab/cpp/common/my_ode.c new file mode 100755 index 000000000..731493092 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/cpp/common/my_ode.c @@ -0,0 +1,6 @@ + +int odeex(int *neq, double * t, double *y, double * ydot) +{ + ydot[0] = -y[0] + 2.0; + return 0; +} diff --git a/modules/call_scilab/examples/call_scilab/cpp/common/myprog.c b/modules/call_scilab/examples/call_scilab/cpp/common/myprog.c new file mode 100755 index 000000000..2d3794fa6 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/cpp/common/myprog.c @@ -0,0 +1,119 @@ +#include <stdio.h> +#include "stack-c.h" +/*--------------------------------------------------------------------------*/ +#ifndef SCI +#define SCI "SCI=../../.." +#endif +#define TRUE 1 +#define FALSE 0 + +/*--------------------------------------------------------------------------*/ +/* See routines/system/call_scilab.h */ +extern int StartScilab(char *SCIpath, char *ScilabStartup, int *Stacksize); +extern int TerminateScilab(char *ScilabQuit); +extern int SendScilabJob(char *job); +/*--------------------------------------------------------------------------*/ +double f(double x) +{ + return x * x + 1; +} +/*--------------------------------------------------------------------------*/ +static int my_plot() +{ + int m, n, lx, ly, i; + /* Scilab is called to build the abscissae vector and + to allocate the ordinates */ + + SendScilabJob("x=1:0.1:10;y=x;"); + GetMatrixptr("x", &m, &n, &lx); + GetMatrixptr("y", &m, &n, &ly); + /* + * y(i)=f(x(i)) + */ + for ( i = 0; i < m * n ; i++) + { + *stk(ly + i) = f(*stk(lx + i)); + } + /* + * plot(x,y); + */ + SendScilabJob("plot(y,x);"); +} +/*--------------------------------------------------------------------------*/ +static int my_job() +{ + static char job[256]; + /* storing a matrix inside scilab */ + static double A[] = {1, 2, 3, 4}; + int mA = 2, nA = 2; + static double b[] = {4, 5}; + int mb = 2, nb = 1; + int m, n, lp, i; + WriteMatrix("A", &mA, &nA, A); /* if failed make my_job return O; */ + WriteMatrix("b", &mb, &nb, b); + + if ( SendScilabJob("A,b,x=0\\b;") == 27) + { + fprintf(stdout, "division by zero...\n"); + } + else + { + GetMatrixptr("x", &m, &n, &lp); + for ( i = 0 ; i < m * n ; i++) + { + fprintf(stdout, "x[%d] = %5.2f\n", i, *stk(i + lp)); + } + } + + if ( SendScilabJob("A,b,x=A\\b;") != 0) + { + fprintf(stdout, "Error occurred during scilab execution\n"); + } + else + { + GetMatrixptr("x", &m, &n, &lp); + for ( i = 0 ; i < m * n ; i++) + { + fprintf(stdout, "x[%d] = %5.2f\n", i, *stk(i + lp)); + } + } +} +/*--------------------------------------------------------------------------*/ +/* I want to integrate the previous equation */ +int my_ode_job() +{ + double x[] = {1, 0, 0} ; + int mx = 3, nx = 1; + double time[] = {0.4, 4}; + int mt = 1, nt = 2; + fprintf(stdout, "linking \n"); + SendScilabJob("ilib_for_link('odeex','my_ode.c',[],'c');"); + fprintf(stdout, "link done \n"); + SendScilabJob("exec('loader.sce');link('show')"); + WriteMatrix("x", &mx, &nx, x); + WriteMatrix("time", &mt, &nt, time); + /* scilab is called to solve the ODE */ + SendScilabJob("y=ode(x,0,time,''mon_ode''),"); +} +/*--------------------------------------------------------------------------*/ +#if _MSC_VER +int main(void) +#else +int MAIN__(void) +#endif +{ + if ( StartScilab(NULL, NULL, NULL) == FALSE ) + { + printf("Error : StartScilab \n"); + } + my_ode_job(); + my_job(); + my_plot() ; + cc_test(); + if ( TerminateScilab(NULL) == FALSE ) + { + printf("Error : TerminateScilab \n"); + } + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/call_scilab/examples/call_scilab/cpp/common/readme.txt b/modules/call_scilab/examples/call_scilab/cpp/common/readme.txt new file mode 100755 index 000000000..1d19258a2 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/cpp/common/readme.txt @@ -0,0 +1,22 @@ + + How to make calls to Scilab interpreter + from a C++ program + +In this directory we provide small examples of C++ calls to the Scilab +interpreter. + +[1] Unix ( soure are myprog.c and ccmatrix1.cc ) +To make it run you have to edit the Makefile +and change the SCIDIR variable to fit your local Scilab installation + +Then type + + make all + ./myprog + +[2] Windows (sources are myprog.c and ccmatrix1.cpp ) + nmake /f Makefile.mak all /a + + ..\..\..\..\..\..\bin\prog.exe + +Update INRIA 2007 diff --git a/modules/call_scilab/examples/call_scilab/fortran/callsci.f b/modules/call_scilab/examples/call_scilab/fortran/callsci.f new file mode 100755 index 000000000..7901f75b4 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/fortran/callsci.f @@ -0,0 +1,85 @@ + program callsci +c!Purpose +c Example of calling scilab from an other C or Fortran program +c!Description +c This program demonstrate on a simple example to use scilab as a +c procedure for an other program +c The computations performed are: +c -1- computation of x such that a*x=b (a and b real matrices) +c -2- computation of y=a*x-b +c All scilab functions and instructions may be used in this context +c for complex instruction, it may be usefull to defined it in a file +c and use exec +c! +c Copyright INRIA +c + dimension a(2,2),b(2),x(2),y(2) + double precision a,b,x,y +c +c a and b definition +c + a(1,1)=1.d0 + a(2,1)=2.d0 + a(1,2)=3.d0 + a(2,2)=4.d0 + b(1)=1.d0 + b(2)=0.d0 + +c create temp directory + call settmpdir + +c +c call to inisci for Scilab initializations +c 10000 is the initial stack size +c + call inisci(-1,10000, ierr) + if(ierr.gt.0) stop +c +c scilab start-up execution. quit added to leave parser after +c start-up execution +c + call scirun('exec(''SCI/etc/scilab.start'',-1);quit') +c +c Program's variables a and b sent to Scilab. +c . 2nd argument of matz not referenced here. +c . 3rd argument is the first dimension of the transmitted +c . variable (here dimension a(2,.) ) +c . arguments #3 and 4 represent the number of rows and columns +c . respectively +c . argument #5 is a character string name of the scilab variable +c . argument #6 (here job=1) means direction fortran--->scilab +c + call matz(a,a,2,2,2,'a',1) + call matz(b,b,2,2,1,'b',1) +c +c call scirun to solve the problem +c . \\ needed to enter a \ in fortran string +c + call scirun('x=a\\b;quit') +c +c Scilab variable x get in program and displayed +c . the numbers m and n (dimensions of x) are here given +c . by scilab .Don't give numerical values to arguments +c . 4 and 5 of matz here. +c . last argument (job=0) means: scilab --->program + + call matz(x,x,2,m,n,'x',0) + write(6,100) x(1),x(2) + 100 format('x = [',2x,f10.5,2x,f10.5,']') +c +c call scilab to check the result +c . note -1- a,x,b are still in the scilab stack +c . -2- this computation might be done in the first call to scirun + call scirun('y=a*x-b;quit') +c +c Scilab variable y get in program and displayed +c + call matz(y,y,2,m,n,'y',0) + write(6,110) y(1),y(2) +110 format('a*x-b = [',2x,f10.5,2x,f10.5,']') +c +c stop properly +c +c call sciquit + stop + end diff --git a/modules/call_scilab/examples/call_scilab/fortran/example.sln b/modules/call_scilab/examples/call_scilab/fortran/example.sln new file mode 100755 index 000000000..d59459e56 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/fortran/example.sln @@ -0,0 +1,26 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{6989167D-11E4-40FE-8C1A-2192A86A7E90}") = "example", "example.vfproj", "{B6C96508-D326-4691-A49D-FD9D8A369A44}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B6C96508-D326-4691-A49D-FD9D8A369A44}.Debug|Win32.ActiveCfg = Debug|Win32 + {B6C96508-D326-4691-A49D-FD9D8A369A44}.Debug|Win32.Build.0 = Debug|Win32 + {B6C96508-D326-4691-A49D-FD9D8A369A44}.Debug|x64.ActiveCfg = Debug|x64 + {B6C96508-D326-4691-A49D-FD9D8A369A44}.Debug|x64.Build.0 = Debug|x64 + {B6C96508-D326-4691-A49D-FD9D8A369A44}.Release|Win32.ActiveCfg = Release|Win32 + {B6C96508-D326-4691-A49D-FD9D8A369A44}.Release|Win32.Build.0 = Release|Win32 + {B6C96508-D326-4691-A49D-FD9D8A369A44}.Release|x64.ActiveCfg = Release|x64 + {B6C96508-D326-4691-A49D-FD9D8A369A44}.Release|x64.Build.0 = Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/modules/call_scilab/examples/call_scilab/fortran/example.vfproj b/modules/call_scilab/examples/call_scilab/fortran/example.vfproj new file mode 100755 index 000000000..9deaf8a9c --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/fortran/example.vfproj @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<VisualStudioProject ProjectCreator="Intel Fortran" Keyword="Console Application" Version="11.0" ProjectIdGuid="{B6C96508-D326-4691-A49D-FD9D8A369A44}"> + <Platforms> + <Platform Name="Win32"/> + <Platform Name="x64"/></Platforms> + <Configurations> + <Configuration Name="Debug|Win32" DeleteExtensionsOnClean="*.obj;*.mod;*.pdb;*.asm;*.map;*.dyn;*.dpi;*.tmp;*.log;*.ilk;*.exe;$(TargetPath)"> + <Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" DebugInformationFormat="debugEnabled" Optimization="optimizeDisabled" AdditionalIncludeDirectories="../../../../core/includes" ExternalNameInterpretation="extNameLowerCase" CallingConvention="callConventionCRef" ExternalNameUnderscore="true" ModulePath="$(INTDIR)/" ObjectFile="$(INTDIR)/" Traceback="true" BoundsCheck="true" RuntimeLibrary="rtMultiThreadedDebug"/> + <Tool Name="VFLinkerTool" OutputFile="../../../../../bin/example.exe" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../../../../bin" GenerateDebugInformation="true" ProgramDatabaseFile="$(OUTDIR)/example.pdb" SubSystem="subSystemConsole" AdditionalDependencies="core_f.lib elementary_functions_f.lib output_stream.lib"/> + <Tool Name="VFResourceCompilerTool"/> + <Tool Name="VFMidlTool" SuppressStartupBanner="true" HeaderFileName="$(InputName).h" TypeLibraryName="$(IntDir)/$(InputName).tlb"/> + <Tool Name="VFCustomBuildTool"/> + <Tool Name="VFPreLinkEventTool"/> + <Tool Name="VFPreBuildEventTool"/> + <Tool Name="VFPostBuildEventTool"/> + <Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration> + <Configuration Name="Release|Win32" DeleteExtensionsOnClean="*.obj;*.mod;*.pdb;*.asm;*.map;*.dyn;*.dpi;*.tmp;*.log;*.ilk;*.exe;$(TargetPath)"> + <Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" ExternalNameInterpretation="extNameLowerCase" CallingConvention="callConventionCRef" ExternalNameUnderscore="true" ModulePath="$(INTDIR)/" ObjectFile="$(INTDIR)/"/> + <Tool Name="VFLinkerTool" OutputFile="../../../../../bin/example.exe" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" SubSystem="subSystemConsole" AdditionalDependencies="../../../../../bin/core.lib"/> + <Tool Name="VFResourceCompilerTool"/> + <Tool Name="VFMidlTool" SuppressStartupBanner="true" HeaderFileName="$(InputName).h" TypeLibraryName="$(IntDir)/$(InputName).tlb"/> + <Tool Name="VFCustomBuildTool"/> + <Tool Name="VFPreLinkEventTool"/> + <Tool Name="VFPreBuildEventTool"/> + <Tool Name="VFPostBuildEventTool"/></Configuration> + <Configuration Name="Debug|x64" DeleteExtensionsOnClean="*.obj;*.mod;*.pdb;*.asm;*.map;*.dyn;*.dpi;*.tmp;*.log;*.ilk;*.exe;$(TargetPath)"> + <Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" DebugInformationFormat="debugEnabled" Optimization="optimizeDisabled" AdditionalIncludeDirectories="../../../../core/includes" ExternalNameInterpretation="extNameLowerCase" CallingConvention="callConventionCRef" ExternalNameUnderscore="true" ModulePath="$(INTDIR)/" ObjectFile="$(INTDIR)/" Traceback="true" BoundsCheck="true" RuntimeLibrary="rtMultiThreadedDebug"/> + <Tool Name="VFLinkerTool" OutputFile="../../../../../bin/example.exe" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" AdditionalLibraryDirectories="../../../../../bin" GenerateDebugInformation="true" ProgramDatabaseFile="$(OUTDIR)/example.pdb" SubSystem="subSystemConsole" AdditionalDependencies="core_f.lib elementary_functions_f.lib output_stream.lib"/> + <Tool Name="VFResourceCompilerTool"/> + <Tool Name="VFMidlTool" SuppressStartupBanner="true" TargetEnvironment="midlTargetAMD64" HeaderFileName="$(InputName).h" TypeLibraryName="$(IntDir)/$(InputName).tlb"/> + <Tool Name="VFCustomBuildTool"/> + <Tool Name="VFPreLinkEventTool"/> + <Tool Name="VFPreBuildEventTool"/> + <Tool Name="VFPostBuildEventTool"/> + <Tool Name="VFManifestTool" SuppressStartupBanner="true"/></Configuration> + <Configuration Name="Release|x64" DeleteExtensionsOnClean="*.obj;*.mod;*.pdb;*.asm;*.map;*.dyn;*.dpi;*.tmp;*.log;*.ilk;*.exe;$(TargetPath)"> + <Tool Name="VFFortranCompilerTool" SuppressStartupBanner="true" ExternalNameInterpretation="extNameLowerCase" CallingConvention="callConventionCRef" ExternalNameUnderscore="true" ModulePath="$(INTDIR)/" ObjectFile="$(INTDIR)/"/> + <Tool Name="VFLinkerTool" OutputFile="../../../../../bin/example.exe" LinkIncremental="linkIncrementalNo" SuppressStartupBanner="true" SubSystem="subSystemConsole" AdditionalDependencies="../../../../../bin/core.lib"/> + <Tool Name="VFResourceCompilerTool"/> + <Tool Name="VFMidlTool" SuppressStartupBanner="true" TargetEnvironment="midlTargetAMD64" HeaderFileName="$(InputName).h" TypeLibraryName="$(IntDir)/$(InputName).tlb"/> + <Tool Name="VFCustomBuildTool"/> + <Tool Name="VFPreLinkEventTool"/> + <Tool Name="VFPreBuildEventTool"/> + <Tool Name="VFPostBuildEventTool"/></Configuration></Configurations> + <Files> + <Filter Name="Header Files" Filter="fi;fd"/> + <Filter Name="Resource Files" Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"/> + <Filter Name="Source Files" Filter="f90;for;f;fpp;ftn;def;odl;idl"> + <File RelativePath="callsci.f"/> + <File RelativePath=".\matz.f"/></Filter> + <File RelativePath="..\..\..\..\..\bin\core.lib"/> + <File RelativePath=".\readme.txt"/></Files> + <Globals/></VisualStudioProject> diff --git a/modules/call_scilab/examples/call_scilab/fortran/matz.f b/modules/call_scilab/examples/call_scilab/fortran/matz.f new file mode 100755 index 000000000..728a20cd2 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/fortran/matz.f @@ -0,0 +1,124 @@ +c Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +c Copyright (C) INRIA +c +c This file must be used under the terms of the CeCILL. +c This source file is licensed as described in the file COPYING, which +c you should have received as part of this distribution. The terms +c are also available at +c http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + + subroutine matz(ar,ai,lda,m,n,name,job) +c!purpose +c matz reads or writes in scilab's internal stack +c +c!calling sequence +c +c integer lda,m,n,job +c character*(*) name +c double precision ar(lda,*),ai(lda,*) +c +c ar,ai : working array of size n*lda. Contains the a matrix +c If a is real ai is null +c lda : number of rows in the calling program +c name : character string; name of the scilab variable. +c job : job= 0 scilab -> fortran , real matrix +c job= 1 fortran -> scilab , real matrix +c job=10 scilab -> fortran , complex matrix +c job=11 fortran -> scilab , complex matrix +c +c CAUTION: For scilab->fortran m and n +c are defined by matz. Calling sequence must be: +c call matz(x,y,lda,m,n,name,0) and NOT +c call matz(x,y,lda,10,10,name,0) in the case where a +c is a 10 by 10 matrix. (Here y is not referenced: real case). +c +c! + integer lda,m,n,job + character*(*) name + double precision ar(lda,*),ai(lda,*) +c + include 'stack.h' + integer iadr,sadr + integer il,it,l,l4,lec,srhs,id(nsiz) +c + iadr(l)=l+l-1 + sadr(l)=(l/2)+1 +c + it=0 + if(job.ge.10) it=1 + lec=job-10*it +c + lon=0 + lon1=len(name) + do 100 i=1,lon1 + if(name(i:i).eq.char(0)) goto 200 + lon=lon+1 + 100 continue + 200 continue + if((lon1.gt.0).and.(lon1.lt.lon)) then + ln=lon1 + else + ln=lon + endif + ln=min(nlgh,ln) + call cvname(id,name(1:ln),0) + srhs=rhs + rhs=0 +c + if(lec.ge.1) goto 10 +c +c read : from scilab stack -> fortran variable ar +c ------- +c + fin=-1 + call stackg(id) + if (err .gt. 0) return + if (fin .eq. 0) then + call putid(ids(1,pt+1),id) + call error(4) + return + endif + il=iadr(lstk(fin)) + if(istk(il).ne.1.or.istk(il+3).ne.it) call error(44) + if(err.gt.0) return + m=istk(il+1) + n=istk(il+2) + l=sadr(il+4) + call dmcopy(stk(l),m,ar,lda,m,n) + if(it.eq.1) call dmcopy(stk(l+m*n),m,ai,lda,m,n) + goto 99 +c +c write : fortran -> scilab +c -------- +c + 10 if(top+2.ge.bot) then + call error(18) + return + endif + top=top+1 + il=iadr(lstk(top)) + l=sadr(il+4) + err=l+m*n*(it+1)-lstk(bot) + if(err.gt.0) then + call error(17) + return + endif + istk(il)=1 + istk(il+1)=m + istk(il+2)=n + istk(il+3)=it +c + call dmcopy(ar,lda,stk(l),m,m,n) + if(it.eq.1) call dmcopy(ai,lda,stk(l+m*n),m,m,n) + lstk(top+1)=l+m*n*(it+1) + l4=lct(4) + lct(4)=-1 + call stackp(id,0) + lct(4)=l4 + if(err.gt.0) return + goto 99 +c + 99 rhs=srhs + return +c + end diff --git a/modules/call_scilab/examples/call_scilab/fortran/readme.txt b/modules/call_scilab/examples/call_scilab/fortran/readme.txt new file mode 100755 index 000000000..95a285987 --- /dev/null +++ b/modules/call_scilab/examples/call_scilab/fortran/readme.txt @@ -0,0 +1,26 @@ + An example of calling scilab as a subroutine of a user's main program + + Requirements Intel Fortran 2011 and Visual Studio 2010 IDE + + +Useful files +============ + + * callsci.f: Fortran Example of a usermain program. This main program send matrices + (call matz) and commands (call scirun) to scilab and + gets the results back (call matz). + +Usage +===== + from this directory : + + set SCI=<your current scilab path ex: d:/scilab> + set TMPDIR=%TEMP% + set HOME=%SCI% + set TCL_LIBRARY=%SCI%\modules\tclsci\tcl\tcl8.5 + set TK_LIBRARY=%SCI%\modules\tclsci\tcl\tk8.5 + + ../../../../bin/example.exe + +INRIA 2006 A.C +DIGITEO 2012 - Allan CORNET diff --git a/modules/call_scilab/examples/readme.txt b/modules/call_scilab/examples/readme.txt new file mode 100755 index 000000000..e2dee6f14 --- /dev/null +++ b/modules/call_scilab/examples/readme.txt @@ -0,0 +1,19 @@ +Examples about the Scilab <=> C/C++/C#/VB/Fortran languages + +call_scilab/c : +How to call scilab from C + +call_scilab/cpp : +How to call scilab from C++ + +call_scilab/fortran : +How to call scilab from fortran + +call_scilab/NET/C# : +How to call scilab from C# + +call_scilab/NET/VB.NET : +How to call scilab from VB.NET + +DIGITEO - 2009 +Allan CORNET diff --git a/modules/call_scilab/help/en_US/BooleanManagement.xml b/modules/call_scilab/help/en_US/BooleanManagement.xml new file mode 100755 index 000000000..8c6dff95f --- /dev/null +++ b/modules/call_scilab/help/en_US/BooleanManagement.xml @@ -0,0 +1,156 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="BooleanManagement_callscilab" xml:lang="en"> + <refnamediv> + <refname>Boolean management</refname> + <refpurpose>How to manage Scilab's boolean read and write process using + call_scilab and api_scilab + </refpurpose> + </refnamediv> + <refsection> + <title>Description</title> + <para>This help describes how boolean and matrix of booleans can be handle + through the <link linkend="call_scilab">Call Scilab API</link> and <link linkend="api_scilab">api Scilab</link>. + </para> + <para>There are several functions which can be used to read / write from + the memory of Scilab. These functions are described in dedicated + pages. + </para> + <para> + <note> + Note: Access to variables is done through <link linkend="api_scilab">api Scilab</link> (named variable). + </note> + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +/* + * Write a matrix of boolean into Scilab + * B=[F F T F; + * F F F T ] + * Note that it is done column by column + */ +int B[]={0,0,0,0,1,0,0,1}; /* Declare the matrix */ +int rowB=2, colB=4; /* Size of the matrix */ +char variableNameB[] = "B"; +SciErr sciErr; + +/* Write it into Scilab's memory */ +sciErr = createNamedMatrixOfBoolean(pvApiCtx, variableNameB, rowB, colB, B); +if(sciErr.iErr) +{ + printError(&sciErr, 0); +} + +/* + * Prior to Scilab 5.2: + * C2F(cwritebmat)(variableNameB, &rowB, &colB, B, strlen(variableNameB)); + */ + +printf("Display from Scilab of B:\n"); +SendScilabJob("disp(B);"); /* Display B */ + ]]></programlisting> + <programlisting role="example"><![CDATA[ +/* Read the previously declared matrix of boolean B */ +int rowB_ = 0, colB_ = 0, lp_ = 0; +int i = 0, j = 0; +int *matrixOfBooleanB = NULL; /* Int instead of double */ + +char variableToBeRetrievedB[] = "B"; +SciErr sciErr; +/* First, retrieve the size of the matrix */ +sciErr = readNamedMatrixOfBoolean(pvApiCtx, variableToBeRetrievedB, &rowB_, &colB_, NULL); +if(sciErr.iErr) +{ + printError(&sciErr, 0); +} + +/* + * Prior to Scilab 5.2: + * C2F(cmatbptr)(variableToBeRetrievedB, &rowB_, &colB_, &lp_, strlen(variableToBeRetrievedB)); + */ + +/* Alloc the memory */ +matrixOfBooleanB=(int*)malloc((rowB_*colB_)*sizeof(int)); + +/* Load the matrix */ +sciErr = readNamedMatrixOfBoolean(pvApiCtx, variableToBeRetrievedB, &rowB_, &colB_, matrixOfBooleanB); +if(sciErr.iErr) +{ + printError(&sciErr, 0); +} + +/* + * Prior to Scilab 5.2: + * C2F(creadbmat)(variableToBeRetrievedB,&rowB_,&colB_,matrixOfBooleanB,strlen(variableToBeRetrievedB) ); + */ + +printf("\n"); +printf("Display from B formated (size: %d, %d):\n",rowB_, colB_); +for(j = 0 ; j < rowB_ ; j++) +{ + for(i = 0 ; i < colB_ ; i++) + { + /* Display the formated matrix ... the way the user expects */ + printf("%d ",matrixOfBooleanB[i * rowB_ + j]); + } + printf("\n"); /* New row of the matrix */ +} + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="api_scilab">api Scilab</link> + </member> + <member> + <link linkend="call_scilab">call_scilab</link> + </member> + <member> + <link linkend="boolean_reading_API">API_Scilab: Boolean reading</link> + </member> + <member> + <link linkend="boolean_writing_API">API_Scilab: Boolean writing</link> + </member> + <member> + <link linkend="SendScilabJob">SendScilabJob</link> + </member> + <member> + <link linkend="StartScilab">StartScilab</link> + </member> + <member> + <link linkend="DoubleManagement_callscilab">Call_Scilab: Double Management</link> + </member> + <member> + <link linkend="ComplexManagement_callscilab">Call_Scilab: Complex Management</link> + </member> + <member> + <link linkend="StringManagement_callscilab">Call_Scilab: String Management</link> + </member> + <member> + <link linkend="Double_management_reading_API">API_Scilab: Double Reading</link> + </member> + <member> + <link linkend="Double_management_writing_API">API_Scilab: Double Writing</link> + </member> + <member> + <link linkend="String_management_reading_API">API_Scilab: String Reading</link> + </member> + <member> + <link linkend="String_management_writing_API">API_Scilab: String Writing</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/call_scilab/help/en_US/ComplexManagement.xml b/modules/call_scilab/help/en_US/ComplexManagement.xml new file mode 100755 index 000000000..1f3aca28d --- /dev/null +++ b/modules/call_scilab/help/en_US/ComplexManagement.xml @@ -0,0 +1,164 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="ComplexManagement_callscilab" xml:lang="en"> + <refnamediv> + <refname>Complex management</refname> + <refpurpose>How to manage Scilab's complex variable read and write process + using call_scilab + </refpurpose> + </refnamediv> + <refsection> + <title>Description</title> + <para>This help describes how doubles and matrix of complex can be handle + through the Call Scilab API. + </para> + <para>There are several functions which can be used to read / write from + the memory of Scilab. These functions are described in dedicated + pages. + </para> + <para> + <note> + Note: Access to variables is done through <link linkend="api_scilab">api Scilab</link> (named variable). + </note> + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +/* + * Write a matrix into Scilab + * B=[1+%i 4-%i 2+1/2*%i 3; + * 3 9 8+42*%i 2 ] + * Note that it is done column by column + */ + + +double B[]={1,3,4,9,2,8,3,2}; +double B_img[]={1,0.233,-1,-0.2,0.5,42,-23,123}; /* Declare the matrix */ + +/* + * Prior to Scilab 5.2: + * double B[]={1,3,4,9,2,8,3,2,1,0.233,-1,-0.2,0.5,42,-23,123}; +*/ + +int rowB=2, colB=4; /* Size of the matrix */ +char variableNameB[] = "B"; +SciErr sciErr; + +/* Write it into Scilab's memory */ +sciErr = createNamedComplexMatrixOfDouble(pvApiCtx,variableNameB,rowB,colB, B, B_img); +if(sciErr.iErr) +{ + printError(&sciErr, 0); +} + +/* + * Prior to Scilab 5.2: + * 2F(cwritecmat)(variableNameB, &rowB, &colB, B, strlen(variableNameB)); + */ +printf("\n"); +printf("Display from Scilab of B:\n"); +SendScilabJob("disp(B);"); /* Display B */ + ]]></programlisting> + <programlisting role="example"><![CDATA[ +int rowB_ = 0, colB_ = 0, lp_ = 0; +int i = 0,j = 0; + +double *matrixOfComplexB = NULL; +double *matrixOfComplexB_img = NULL; +char variableToBeRetrievedB[] = "B"; +SciErr sciErr; + +/* First, retrieve the size of the matrix */ +readNamedComplexMatrixOfDouble(pvApiCtx, variableToBeRetrievedB, &rowB_, &colB_, NULL, NULL); +if(sciErr.iErr) +{ + printError(&sciErr, 0); +} + +/* + * Prior to Scilab 5.2: + * C2F(cmatcptr)(variableToBeRetrievedB, &rowB_, &colB_, &lp_, strlen(variableToBeRetrievedB)); + */ + +/* Alloc the memory */ +matrixOfComplexB = (double*)malloc((rowB_*colB_)*sizeof(double)); +matrixOfComplexB_img = (double*)malloc((rowB_*colB_)*sizeof(double)); + +/* Load the matrix */ +sciErr = readNamedComplexMatrixOfDouble(pvApiCtx, variableToBeRetrievedB, &rowB_, &colB_, matrixOfComplexB, matrixOfComplexB_img); +if(sciErr.iErr) +{ + printError(&sciErr, 0); +} + + +/* + * Prior to Scilab 5.2: + * C2F(creadcmat)(variableToBeRetrievedB,&rowB_,&colB_,matrixOfComplexB,strlen(variableToBeRetrievedB) ); + */ + +printf("\n"); +printf("Display from B formated (size: %d, %d):\n",rowB_, colB_); +for(j = 0 ; j < rowB_ ; j++) + { + for(i = 0 ; i < colB_ ; i++) + { + /* Display the formated matrix ... the way the user + * expect */ + printf("%5.2f + %5.2f.i ",matrixOfComplexB[i * rowB_ + j],matrixOfComplexB_img[i * rowB_ + j]); + + } + printf("\n"); /* New row of the matrix */ + } + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="call_scilab">Call_Scilab</link> + </member> + <member> + <link linkend="api_scilab">api Scilab</link> + </member> + <member> + <link linkend="SendScilabJob">SendScilabJob</link> + </member> + <member> + <link linkend="StartScilab">StartScilab</link> + </member> + <member> + <link linkend="ComplexManagement_callscilab">Call_Scilab: Complex Management</link> + </member> + <member> + <link linkend="BooleanManagement_callscilab">Call_Scilab: Boolean Management</link> + </member> + <member> + <link linkend="StringManagement_callscilab">Call_Scilab: String Management</link> + </member> + <member> + <link linkend="boolean_reading_API">API_Scilab: Boolean Reading</link> + </member> + <member> + <link linkend="boolean_writing_API">API_Scilab: Boolean Writing</link> + </member> + <member> + <link linkend="String_management_reading_API">API_Scilab: String Reading</link> + </member> + <member> + <link linkend="String_management_writing_API">API_Scilab: String Writing</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/call_scilab/help/en_US/DisableInteractiveMode.xml b/modules/call_scilab/help/en_US/DisableInteractiveMode.xml new file mode 100755 index 000000000..2200bab45 --- /dev/null +++ b/modules/call_scilab/help/en_US/DisableInteractiveMode.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="DisableInteractiveMode" xml:lang="en"> + <refnamediv> + <refname>DisableInteractiveMode</refname> + <refpurpose>Disables some features (plotting, gui creation, Tcl/Tk...) and + leaves only the computing engine + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <synopsis>void DisableInteractiveMode(void);</synopsis> + </refsynopsisdiv> + <refsection> + <title>Description</title> + <para>Calling this fonction will disable some features of Scilab.</para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +// A simple DisableInteractiveMode example + +DisableInteractiveMode(); +int code=SendScilabJob("plot3d()"); /* This will failed since plot3d is + among the disable features*/ +if (code!=0){ + char lastjob[4096]; + if (GetLastJob(lastjob,4096)) { + printf("Failed command: %s\n",lastjob); + } +} + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="call_scilab">Call_Scilab</link> + </member> + <member> + <link linkend="api_scilab">api Scilab</link> + </member> + <member> + <link linkend="compile_and_run_call_scilab">Compile and run with call_scilab</link> + </member> + <member> + <link linkend="SendScilabJob">SendScilabJob</link> + </member> + <member> + <link linkend="TerminateScilab">TerminateScilab</link> + </member> + <member> + <link linkend="DoubleManagement_callscilab">Double Management</link> + </member> + <member> + <link linkend="BooleanManagement_callscilab">Boolean Management</link> + </member> + <member> + <link linkend="ComplexManagement_callscilab">Complex Management</link> + </member> + <member> + <link linkend="StringManagement_callscilab">String Management</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/call_scilab/help/en_US/DoubleManagement.xml b/modules/call_scilab/help/en_US/DoubleManagement.xml new file mode 100755 index 000000000..fa1f4d504 --- /dev/null +++ b/modules/call_scilab/help/en_US/DoubleManagement.xml @@ -0,0 +1,167 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="DoubleManagement_callscilab" xml:lang="en"> + <refnamediv> + <refname>Double management</refname> + <refpurpose>How to manage Scilab's variable read and write process using + call_scilab and api_scilab + </refpurpose> + </refnamediv> + <refsection> + <title>Description</title> + <para>This help describes how doubles and matrix of doubles can be handle + through the <link linkend="call_scilab">Call Scilab API</link> and <link linkend="api_scilab">api Scilab</link>. + </para> + <para>There are several functions which can be used to read / write from + the memory of Scilab. These functions are described in dedicated + pages. + </para> + <para> + <note>Note that the default type of a numeric value in Scilab is double. + For example, in <emphasis>a=1</emphasis> or <emphasis>a=[1,2]</emphasis>, + <emphasis>a</emphasis> will be consider as a double. + </note> + </para> + <para> + <note> + Note: Access to variables is done through <link linkend="api_scilab">api Scilab</link> (named variable). + </note> + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +/* + * Write a matrix into Scilab + * B=[1 4 2 3; + * 3 9 8 2 ] + * Note that it is done column by column + */ +double B[] = {1,3,4,9,2,8,3,2}; /* Declare the matrix */ +int rowB = 2, colB = 4; /* Size of the matrix */ +char variableNameB[] = "B"; +SciErr sciErr; + +/* + * Write it into Scilab's memory + */ +sciErr = createNamedMatrixOfDouble(pvApiCtx,variableNameB,rowB,colB, B); /* pvApiCtx is a global variable */ +if(sciErr.iErr) +{ + printError(&sciErr, 0); +} + +/* + * Prior to Scilab 5.2: + * C2F(cwritemat)(variableNameB, &rowB, &colB, B, strlen(variableNameB)); +*/ + +printf("\n"); +printf("Display from Scilab of B:\n"); +SendScilabJob("disp(B);"); /* Display B */ + ]]></programlisting> + <programlisting role="example"><![CDATA[ +/* Read the previously declared matrix of double B */ +int rowB_ = 0, colB_ = 0, lp_ = 0; +double *matrixOfDoubleB = NULL; +int i = 0, j = 0; +char variableToBeRetrievedB[] = "B"; +SciErr sciErr; + +/* First, retrieve the size of the matrix */ +sciErr = readNamedMatrixOfDouble(pvApiCtx, variableToBeRetrievedB, &rowB_, &colB_, NULL); +if(sciErr.iErr) +{ + printError(&sciErr, 0); +} + +/* + * Prior to Scilab 5.2: + * C2F(cmatptr)(variableToBeRetrievedB, &rowB_, &colB_, &lp_, strlen(variableToBeRetrievedB)); + */ + + +/* Alloc the memory */ +matrixOfDoubleB = (double*)malloc((rowB_*colB_)*sizeof(double)); + +/* Load the matrix */ +sciErr = readNamedMatrixOfDouble(pvApiCtx, variableToBeRetrievedB, &rowB_, &colB_, matrixOfDoubleB); +if(sciErr.iErr) +{ + printError(&sciErr, 0); +} + +/* + * Prior to Scilab 5.2: + * C2F(creadmat)(variableToBeRetrievedB,&rowB_,&colB_,matrixOfDoubleB,strlen(variableToBeRetrievedB) ); + */ + +printf("\n"); +printf("Display from B formated (size: %d, %d):\n",rowB_, colB_); +for(j = 0 ; j < rowB_ ; j++) + { + for(i = 0 ; i < colB_ ; i++) + { + /* Display the formated matrix ... the way the user + * expect */ + printf("%5.2f ",matrixOfDoubleB[i * rowB_ + j]); + } + printf("\n"); /* New row of the matrix */ + } + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="call_scilab">Call_Scilab</link> + </member> + <member> + <link linkend="api_scilab">api Scilab</link> + </member> + <member> + <link linkend="Double_management_reading_API">API_Scilab: Double reading</link> + </member> + <member> + <link linkend="Double_management_writing_API">API_Scilab: Double writing</link> + </member> + <member> + <link linkend="SendScilabJob">SendScilabJob</link> + </member> + <member> + <link linkend="StartScilab">StartScilab</link> + </member> + <member> + <link linkend="BooleanManagement_callscilab">Call_Scilab: BooleanManagement</link> + </member> + <member> + <link linkend="ComplexManagement_callscilab">Call_Scilab: ComplexManagement</link> + </member> + <member> + <link linkend="StringManagement_callscilab">Call_Scilab: StringManagement</link> + </member> + <member> + <link linkend="boolean_reading_API">API_Scilab: Boolean Reading</link> + </member> + <member> + <link linkend="boolean_writing_API">API_Scilab: Boolean Writing</link> + </member> + <member> + <link linkend="String_management_reading_API">API_Scilab: String Reading</link> + </member> + <member> + <link linkend="String_management_writing_API">API_Scilab: String Writing</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/call_scilab/help/en_US/GetLastJob.xml b/modules/call_scilab/help/en_US/GetLastJob.xml new file mode 100755 index 000000000..1d8f2e620 --- /dev/null +++ b/modules/call_scilab/help/en_US/GetLastJob.xml @@ -0,0 +1,108 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="GetLastJob" xml:lang="en"> + <refnamediv> + <refname>GetLastJob</refname> + <refpurpose>Returns the latest job sent to Scilab engine</refpurpose> + </refnamediv> + <refsynopsisdiv> + <synopsis>BOOL GetLastJob(char *JOB,int nbcharsJOB);</synopsis> + </refsynopsisdiv> + <refsection> + <title>Description</title> + <para>This fonction returns the latest job sent to Scilab engine with the + command SendScilabJob or SendScilabJobs. This can be used to display a + command which failed. + </para> + <para> + BOOL is just a simple typedef on int (<literal>typedef int + BOOL + </literal> + ). TRUE is defined on 1 (<literal>#define TRUE 1</literal>) + and FALSE is defined on 0 (<literal>#define FALSE 0</literal>). + </para> + </refsection> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>JOB</term> + <listitem> + <para>a standard C char* which will be filled with the latest + job + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>nbcharsJOB</term> + <listitem> + <para>The number of char of JOB</para> + </listitem> + </varlistentry> + <varlistentry> + <term>returns</term> + <listitem> + <para>1 (TRUE) if the operation is successfull.</para> + <para>0 (FALSE) if an error during initialization occurred.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +// A simple GetLastJob example +// See SCI/modules/call_scilab/examples/basicExamples/GetLastJob.c for +// the full code +int code=SendScilabJob("failedMyCurrentJob=%pi*3/0"); +if (code!=0){ + char lastjob[4096]; + if (GetLastJob(lastjob,4096)) { + printf("Failed command: %s\n",lastjob); + } +} + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="call_scilab">Call_Scilab</link> + </member> + <member> + <link linkend="api_scilab">api Scilab</link> + </member> + <member> + <link linkend="compile_and_run_call_scilab">Compile and run with call_scilab</link> + </member> + <member> + <link linkend="SendScilabJob">SendScilabJob</link> + </member> + <member> + <link linkend="TerminateScilab">TerminateScilab</link> + </member> + <member> + <link linkend="DoubleManagement_callscilab">Double Management</link> + </member> + <member> + <link linkend="BooleanManagement_callscilab">Boolean Management</link> + </member> + <member> + <link linkend="ComplexManagement_callscilab">Complex Management</link> + </member> + <member> + <link linkend="StringManagement_callscilab">String Management</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/call_scilab/help/en_US/ScilabHaveAGraph.xml b/modules/call_scilab/help/en_US/ScilabHaveAGraph.xml new file mode 100755 index 000000000..ecd1efdbb --- /dev/null +++ b/modules/call_scilab/help/en_US/ScilabHaveAGraph.xml @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="ScilabHaveAGraph" xml:lang="en"> + <refnamediv> + <refname>ScilabHaveAGraph</refname> + <refpurpose>Check if any Scilab graphics have been opened.</refpurpose> + </refnamediv> + <refsynopsisdiv> + <synopsis>int ScilabHaveAGraph(void);</synopsis> + </refsynopsisdiv> + <refsection> + <title>Description</title> + <para>Returns if there is any Scilab graphics opened.</para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +// A simple ScilabHaveAGraph example +int code=SendScilabJob("plot3d()"); + +if (ScilabHaveAGraph()){ + printf("Graphics\n"); +}else{ + printf("NO Graphics\n"); +} + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="call_scilab">Call_Scilab</link> + </member> + <member> + <link linkend="api_scilab">api Scilab</link> + </member> + <member> + <link linkend="compile_and_run_call_scilab">Compile and run with call_scilab</link> + </member> + <member> + <link linkend="SendScilabJob">SendScilabJob</link> + </member> + <member> + <link linkend="TerminateScilab">TerminateScilab</link> + </member> + <member> + <link linkend="DoubleManagement_callscilab">Double Management</link> + </member> + <member> + <link linkend="BooleanManagement_callscilab">Boolean Management</link> + </member> + <member> + <link linkend="ComplexManagement_callscilab">Complex Management</link> + </member> + <member> + <link linkend="StringManagement_callscilab">String Management</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/call_scilab/help/en_US/SendScilabJob.xml b/modules/call_scilab/help/en_US/SendScilabJob.xml new file mode 100755 index 000000000..688ae5803 --- /dev/null +++ b/modules/call_scilab/help/en_US/SendScilabJob.xml @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="SendScilabJob" xml:lang="en"> + <refnamediv> + <refname>SendScilabJob</refname> + <refpurpose>Send a Scilab task from a C/C++ code + (call_scilab) + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <synopsis>int SendScilabJob(char *job);</synopsis> + </refsynopsisdiv> + <refsection> + <title>Description</title> + <para>This fonction is provided in call_scilab. This function send a task + which will be proccessed by the Scilab engine. + </para> + </refsection> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>job</term> + <listitem> + <para>a standard C char* containing the Scilab instructions</para> + </listitem> + </varlistentry> + <varlistentry> + <term>returns</term> + <listitem> + <para>0 is the operation is successfull.</para> + <para>-1 if Call Scilab has not been able to write the job into + Scilab. + </para> + <para>-2 or -3 if Call Scilab has not been able to read the error + code from Scilab. + </para> + <para>-4 if Call Scilab has not been able to allocate the + job. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +// A simple SendScilabJob example + +if (SendScilabJob("disp('unfinished quote)")!=0){ // This will fail + printf("An error occurred\n"); +} +SendScilabJob("myMatrix=['sample','for the help']"); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="call_scilab">Call_Scilab</link> + </member> + <member> + <link linkend="api_scilab">api Scilab</link> + </member> + <member> + <link linkend="compile_and_run_call_scilab">Compile and run with call_scilab</link> + </member> + <member> + <link linkend="SendScilabJob">SendScilabJob</link> + </member> + <member> + <link linkend="DoubleManagement_callscilab">Double Management</link> + </member> + <member> + <link linkend="BooleanManagement_callscilab">Boolean Management</link> + </member> + <member> + <link linkend="ComplexManagement_callscilab">Complex Management</link> + </member> + <member> + <link linkend="StringManagement_callscilab">String Management</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/call_scilab/help/en_US/SendScilabJobs.xml b/modules/call_scilab/help/en_US/SendScilabJobs.xml new file mode 100755 index 000000000..9f46801ac --- /dev/null +++ b/modules/call_scilab/help/en_US/SendScilabJobs.xml @@ -0,0 +1,104 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="SendScilabJobs" xml:lang="en"> + <refnamediv> + <refname>SendScilabJobs</refname> + <refpurpose>Send Scilab tasks from a C/C++ code (call_scilab)</refpurpose> + </refnamediv> + <refsynopsisdiv> + <synopsis>int SendScilabJobs(char **jobs, int numberjobs);</synopsis> + </refsynopsisdiv> + <refsection> + <title>Description</title> + <para>This fonction is provided in call_scilab. This function send many + tasks which will be proccessed by the Scilab engine. + </para> + <para> + <note> + Note that the ending ";" is not mandatory at the end of a + command. + </note> + </para> + </refsection> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>jobs</term> + <listitem> + <para>an array of standard C char* containing the Scilab + instructions + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>numberjobs</term> + <listitem> + <para>The number of the Scilab instructions</para> + </listitem> + </varlistentry> + <varlistentry> + <term>returns</term> + <listitem> + <para>0 is all the operations are successful.</para> + <para>-10 if .</para> + <para><0 and > -10 when an error occurred in the + execution. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +// A simple SendScilabJobs example + +char* jobs[3]; +jobs[0]="a = 1"; +jobs[1]="b = 3"; +jobs[2]="c = a + b;"; +SendScilabJobs(jobs,3); +SendScilabJob("disp(c);"); // Will display 4. + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="call_scilab">Call_Scilab</link> + </member> + <member> + <link linkend="api_scilab">api Scilab</link> + </member> + <member> + <link linkend="SendScilabJob">SendScilabJob</link> + </member> + <member> + <link linkend="compile_and_run_call_scilab">Compile and run with call_scilab</link> + </member> + <member> + <link linkend="DoubleManagement_callscilab">Double Management</link> + </member> + <member> + <link linkend="BooleanManagement_callscilab">Boolean Management</link> + </member> + <member> + <link linkend="ComplexManagement_callscilab">Complex Management</link> + </member> + <member> + <link linkend="StringManagement_callscilab">String Management</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/call_scilab/help/en_US/StartScilab.xml b/modules/call_scilab/help/en_US/StartScilab.xml new file mode 100755 index 000000000..5f137bd26 --- /dev/null +++ b/modules/call_scilab/help/en_US/StartScilab.xml @@ -0,0 +1,123 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="StartScilab" xml:lang="en"> + <refnamediv> + <refname>StartScilab</refname> + <refpurpose>Initializes and starts Scilab engine in Call + Scilab + </refpurpose> + </refnamediv> + <refsynopsisdiv> + <synopsis>BOOL StartScilab(char *SCIpath, char *ScilabStartup, int Stacksize);</synopsis> + </refsynopsisdiv> + <refsection> + <title>Description</title> + <para>This fonction starts the Scilab engine. This is mandatory to use + SendScilabJob functions and to manage Scilab's data. + </para> + <para> + BOOL is just a simple typedef on int (<literal>typedef int + BOOL + </literal> + ). TRUE is defined on 1 (<literal>#define TRUE 1</literal>) + and FALSE is defined on 0 (<literal>#define FALSE 0</literal>). + </para> + </refsection> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>SCIpath</term> + <listitem> + <para>a standard C char* containing the path to Scilab data</para> + <para>This argument is mandatory under Linux, Unix or Mac OS + X. + </para> + <para>Under Windows, if SCIpath is NULL, Scilab will find the + path. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>ScilabStartup</term> + <listitem> + <para>a standard C char* containing the path to Scilab startup + script (scilab.start) + </para> + <para>If ScilabStartup is NULL, Scilab will use the default path + (detected from SCIpath). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>Stacksize</term> + <listitem> + <para>a standard int defining the size of the Scilab stack</para> + <para>If Stacksize is zero, Scilab will use the default stacksize of + Scilab. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>returns</term> + <listitem> + <para>1 (TRUE) if the operation is successfull.</para> + <para>0 (FALSE) if an error during initialization occurred.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="c"> + // A simple StartScilab example + if ( StartScilab(getenv("SCI"), NULL, 0) == FALSE ) + { + fprintf(stderr,"Error while calling StartScilab\n"); + return -1; + } + </programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="call_scilab">Call_Scilab</link> + </member> + <member> + <link linkend="api_scilab">api Scilab</link> + </member> + <member> + <link linkend="compile_and_run_call_scilab">Compile and run with call_scilab</link> + </member> + <member> + <link linkend="SendScilabJob">SendScilabJob</link> + </member> + <member> + <link linkend="TerminateScilab">TerminateScilab</link> + </member> + <member> + <link linkend="DoubleManagement_callscilab">Double Management</link> + </member> + <member> + <link linkend="BooleanManagement_callscilab">Boolean Management</link> + </member> + <member> + <link linkend="ComplexManagement_callscilab">Complex Management</link> + </member> + <member> + <link linkend="StringManagement_callscilab">String Management</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/call_scilab/help/en_US/StringManagement.xml b/modules/call_scilab/help/en_US/StringManagement.xml new file mode 100755 index 000000000..2ed757100 --- /dev/null +++ b/modules/call_scilab/help/en_US/StringManagement.xml @@ -0,0 +1,165 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="StringManagement_callscilab" xml:lang="en"> + <refnamediv> + <refname>String management</refname> + <refpurpose>How to manage Scilab's String read and write process using + call_scilab and api_scilab + </refpurpose> + </refnamediv> + <refsection> + <title>Description</title> + <para>This help describes how strings and matrix of strings can be handle + through the <link linkend="call_scilab">Call Scilab API</link> and <link linkend="api_scilab">api Scilab</link>. + </para> + <para>There are several functions which can be used to read / write from + the memory of Scilab. These functions are described in dedicated + pages. + </para> + <para> + <note> + Note: Access to variables is done through <link linkend="api_scilab">api Scilab</link> (named variable). + </note> + </para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +// This example shows how to write a Scilab string in Scilab engine +// It is the equivalent to A="my Message"; in Scilab interpretor +// See: modules/call_scilab/examples/basicExamples/readwritestring.c + +// StartScilab +int row = 1, col = 1; /* Size of the matrix */ +/* Declare the string */ +char **myMatrixOfString = (char**)malloc(sizeof(char*) * row * col); +myMatrixOfString[0]="my Message"; +char variableName[] = "A"; +SciErr sciErr; + +/* Write it into Scilab's memory */ +sciErr = createNamedMatrixOfString(pvApiCtx, variableName, row, col, myMatrixOfString); +if(sciErr.iErr) +{ + printError(&sciErr, 0); +} + +/* + * Prior to Scilab 5.2 + * C2F(cwritechain)(variableName, &sizeOfMyString , myString, strlen(variableName), sizeOfMyString); +*/ + +printf("Display from Scilab of A:\n"); +SendScilabJob("disp(A);"); /* Display A */ + ]]></programlisting> + <programlisting role="example"><![CDATA[ +/* Load the previously set variable A */ +// See: modules/call_scilab/examples/basicExamples/readwritestring.c + + +char variableToBeRetrieved[]="A"; +int iRows = 0; +int iCols = 0; +int i,j; +int* piAddr = NULL; +int* piLen = NULL; +char** pstData = NULL; +SciErr sciErr; + +//first call to retrieve dimensions +sciErr = readNamedMatrixOfString(pvApiCtx,variableToBeRetrieved,&iRows, &iCols, NULL, NULL); +if(sciErr.iErr) +{ + printError(&sciErr, 0); +} + +piLen = (int*)malloc(sizeof(int) * iRows * iCols); +//second call to retrieve length of each string +sciErr = readNamedMatrixOfString(pvApiCtx,variableToBeRetrieved, &iRows, &iCols, piLen, NULL); +if(sciErr.iErr) +{ + printError(&sciErr, 0); +} + +pstData = (char**)malloc(sizeof(char*) * iRows * iCols); +for(i = 0 ; i < iRows * iCols ; i++) + { + pstData[i] = (char*)malloc(sizeof(char) * (piLen[i] + 1));//+ 1 for null termination + } +//third call to retrieve data +sciErr = readNamedMatrixOfString(pvApiCtx, variableToBeRetrieved, &iRows, &iCols, piLen, pstData); +if(sciErr.iErr) +{ + printError(&sciErr, 0); +} + +printf("\n"); +printf("Load and display of A:\n"); +for(j = 0 ; j < iCols ; j++) +{ + for(i = 0 ; i < iRows ; i++) + { + /* Display the formated matrix with same scilab indice */ + printf("[%d,%d] = %s\n",j+1,i+1,pstData[j* iRows + i]); + } +} + +printf("\n"); +free(piLen); +for(i = 0 ; i < iRows * iCols ; i++) + { + free(pstData[i]); + } +free(pstData); + + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="call_scilab">Call_Scilab</link> + </member> + <member> + <link linkend="api_scilab">api Scilab</link> + </member> + <member> + <link linkend="SendScilabJob">SendScilabJob</link> + </member> + <member> + <link linkend="StartScilab">StartScilab</link> + </member> + <member> + <link linkend="BooleanManagement_callscilab">Call_Scilab: Boolean Management</link> + </member> + <member> + <link linkend="DoubleManagement_callscilab">Call_Scilab: Double Management</link> + </member> + <member> + <link linkend="boolean_reading_API">API_Scilab: Boolean Reading</link> + </member> + <member> + <link linkend="boolean_writing_API">API_Scilab: Boolean Writing</link> + </member> + <member> + <link linkend="Double_management_reading_API">API_Scilab: Double Reading</link> + </member> + <member> + <link linkend="Double_management_writing_API">API_Scilab: Double Writing</link> + </member> + <member> + <link linkend="ComplexManagement_callscilab">Complex Management</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/call_scilab/help/en_US/TerminateScilab.xml b/modules/call_scilab/help/en_US/TerminateScilab.xml new file mode 100755 index 000000000..2e6430cbb --- /dev/null +++ b/modules/call_scilab/help/en_US/TerminateScilab.xml @@ -0,0 +1,99 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="TerminateScilab" xml:lang="en"> + <refnamediv> + <refname>TerminateScilab</refname> + <refpurpose>Stops and terminates Scilab engine in Call Scilab</refpurpose> + </refnamediv> + <refsynopsisdiv> + <synopsis>BOOL TerminateScilab(char *ScilabQuit);</synopsis> + </refsynopsisdiv> + <refsection> + <title>Description</title> + <para>This fonction stops the Scilab engine. It is strongly recommended to + call this function at the end when using Call Scilab . + </para> + <para> + BOOL is just a simple typedef on int (<literal>typedef int + BOOL + </literal> + ). TRUE is defined on 1 (<literal>#define TRUE 1</literal>) + and FALSE is defined on 0 (<literal>#define FALSE 0</literal>). + </para> + </refsection> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>ScilabQuit</term> + <listitem> + <para>a standard C char* containing the path to Scilab quit script + (scilab.quit) + </para> + <para>If ScilabStartup is NULL, Scilab will use the default path + (detected from SCIpath). + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>returns</term> + <listitem> + <para>1 (TRUE) if the operation is successfull.</para> + <para>0 (FALSE) if an error during initialization occurred.</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="c"><![CDATA[ +// A simple TerminateScilab example +if ( TerminateScilab(NULL) == FALSE ) { + fprintf(stderr,"Error while calling TerminateScilab\n"); + return -2; +} + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="call_scilab">Call_Scilab</link> + </member> + <member> + <link linkend="api_scilab">api Scilab</link> + </member> + <member> + <link linkend="compile_and_run_call_scilab">Compile and run with call_scilab</link> + </member> + <member> + <link linkend="StartScilab">StartScilab</link> + </member> + <member> + <link linkend="SendScilabJob">SendScilabJob</link> + </member> + <member> + <link linkend="DoubleManagement_callscilab">Double Management</link> + </member> + <member> + <link linkend="BooleanManagement_callscilab">Boolean Management</link> + </member> + <member> + <link linkend="ComplexManagement_callscilab">Complex Management</link> + </member> + <member> + <link linkend="StringManagement_callscilab">String Management</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/call_scilab/help/en_US/addchapter.sce b/modules/call_scilab/help/en_US/addchapter.sce new file mode 100755 index 000000000..b7c999e18 --- /dev/null +++ b/modules/call_scilab/help/en_US/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("call_scilab API (Scilab engine)",SCI+"/modules/call_scilab/help/en_US",%T); + diff --git a/modules/call_scilab/help/en_US/call_scilab.xml b/modules/call_scilab/help/en_US/call_scilab.xml new file mode 100755 index 000000000..4e043f8f7 --- /dev/null +++ b/modules/call_scilab/help/en_US/call_scilab.xml @@ -0,0 +1,127 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="call_scilab" xml:lang="en"> + <refnamediv> + <refname>call_scilab</refname> + <refpurpose>call_scilab is an interface which provides the ability to call + Scilab engine from C/C++ code + </refpurpose> + </refnamediv> + <refsection> + <title>Description</title> + <para>Scilab offers the possibility to be called from a native (C/C++) + application. + </para> + <para>Thanks to this module, it is possible to call Scilab from C/C++ in + order to interface Scilab's features from an other code/application or to + be able to interface Scilab's features from an other language. + </para> + <para>Since Scilab 5.2.0, all Scilab datatype can be handle by call_scilab. + This is done thanks to <link linkend="api_scilab">API_Scilab</link> + </para> + <para>This help describes the features of the call_scilab API.</para> + <para> + Note: The <link linkend="javasci">javasci</link> module is based + on call_scilab. + </para> + <para>Note: old APIs (stackX.h) will not be available after Scilab 6.0 (included).</para> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="c"><![CDATA[ +// A simple call_scilab example + +#include <stdio.h> /* stderr */ + +#include "stack-c.h" /* Provide functions to access to the memory of Scilab */ +#include "call_scilab.h" /* Provide functions to call Scilab engine */ + +// Filename: simple_call_scilab.c + +int main(void) +{ +/****** INITIALIZATION **********/ +#ifdef _MSC_VER + if ( StartScilab(NULL,NULL,NULL) == FALSE ) +#else + if ( StartScilab(getenv("SCI"),NULL,NULL) == FALSE ) +#endif + { + fprintf(stderr,"Error while calling StartScilab\n"); + return -1; + } + +/****** ACTUAL Scilab TASKS *******/ + + SendScilabJob("myMatrix=['sample','for the help']"); + SendScilabJob("disp(myMatrix);"); // Will display !sample for the help ! + SendScilabJob("disp([2,3]+[-44,39]);"); // Will display - 42. 42. + +/****** TERMINATION **********/ + if ( TerminateScilab(NULL) == FALSE ) { + fprintf(stderr,"Error while calling TerminateScilab\n"); + return -2; + } + return 0; +} + ]]></programlisting> + </refsection> + <refsection> + <title>History</title> + <revhistory> + <revision> + <revnumber>5.4.0</revnumber> + <revdescription>New methods added: + <itemizedlist> + <listitem> + <literal>CallScilab.h</literal> removed (was deprecated since Scilab 5.2.0). Replaced by <literal>call_scilab.h</literal> + </listitem> + <listitem> + Function <literal>int getLastErrorValue(void);</literal> added. Returns the last error code generated by Scilab + </listitem> + <listitem> + Function <literal>const char* getLastErrorMessageSingle();</literal> added. Returns the last error message generated by Scilab + </listitem> + <listitem> + Remove deprecated functions in call_scilab.h: <literal>C2F(readmat), C2F(creadmat), C2F(creadbmat), C2F(creadcmat), C2F(readchain), C2F(creadchain), C2F(creadchains), GetLengthStringMatrixByName, C2F(matptr), C2F(cmatptr), C2F(cmatcptr), C2F(cmatsptr), C2F(cmatbptr), getlengthchain</literal> + + </listitem> + </itemizedlist> + </revdescription> + </revision> + </revhistory> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="api_scilab">api Scilab</link> + </member> + <member> + <link linkend="compile_and_run_call_scilab">Compile and run with call_scilab</link> + </member> + <member> + <link linkend="DoubleManagement_callscilab">Matrix Management</link> + </member> + <member> + <link linkend="BooleanManagement_callscilab">Boolean Management</link> + </member> + <member> + <link linkend="ComplexManagement_callscilab">Complex Management</link> + </member> + <member> + <link linkend="StringManagement_callscilab">String Management</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/call_scilab/help/en_US/compile_and_run_call_scilab.xml b/modules/call_scilab/help/en_US/compile_and_run_call_scilab.xml new file mode 100755 index 000000000..01b4d78a5 --- /dev/null +++ b/modules/call_scilab/help/en_US/compile_and_run_call_scilab.xml @@ -0,0 +1,271 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="compile_and_run_call_scilab" xml:lang="en"> + <refnamediv> + <refname>Compile and run with Call Scilab</refname> + <refpurpose>How to compile a native application based on or using + Scilab + </refpurpose> + </refnamediv> + <refsection> + <title>Compilation</title> + <para>To compile a native code based on Call Scilab, it is necessary to + define some arguments, variables and paths. + </para> + <itemizedlist> + <listitem> + <para>CFLAGS. Call Scilab needs to have access to the headers of + Scilab core and call Scilab module. + </para> + <itemizedlist> + <listitem> + <para>Linux/Unix/MacOSX:</para> + <itemizedlist> + <listitem> + <para>In the binary version of Scilab, CFLAGS must be set to + /path/to/scilab/include/scilab/core/ and + /path/to/scilab/include/scilab/call_scilab/ + </para> + </listitem> + <listitem> + <para>In the source tree of Scilab, CFLAGS must be set to + /path/to/scilab/modules/core/includes/ and + /path/to/scilab/modules/call_scilab/includes/ + </para> + </listitem> + </itemizedlist> + </listitem> + <listitem> + <para>Windows</para> + </listitem> + </itemizedlist> + </listitem> + <listitem> + <para>LD_LIBRARY_PATH - Paths to libscilab.so and libjavasci.so (or + .dll, .jnilib...) + </para> + <itemizedlist> + <listitem> + <para>Linux/Unix/MacOSX:</para> + <itemizedlist> + <listitem> + <para>In the binary version of Scilab, SCI will point to + /path/to/scilab/lib/scilab/ + </para> + </listitem> + <listitem> + <para>In the source tree of Scilab, SCI will point to the root + of the source tree /path/to/scilab/modules/call_scilab/.libs/ + and /path/to/scilab/.libs/ + </para> + </listitem> + </itemizedlist> + </listitem> + </itemizedlist> + </listitem> + <listitem> + <para>LDFLAGS - The name of the library to link against</para> + <itemizedlist> + <listitem> + <para>Linux/Unix/MacOSX: It is only mandatory to link against + scilab. This should include the other libraries. + </para> + </listitem> + </itemizedlist> + </listitem> + </itemizedlist> + <para>The following example is a Makefile to build against Scilab binary</para> + <programlisting role="example"><![CDATA[ +# A sample Makefile building a C code using Call Scilab using Scilab binary +PATH_SCILAB = /path/to/scilab/ +# Note that PATH_SCILAB can be /usr/ is using a packaged version of Scilab. +SCILAB_CFLAGS = -I$(PATH_SCILAB)/include/scilab/ +SCILAB_LDFLAGS = -lscilab +PATH_TO_LIB_SCILAB = $(PATH_SCILAB)/lib/scilab/ +PATH_TO_LIB_CALL_SCILAB = $(PATH_SCILAB)/lib/scilab/ + +all: simple_call_scilab.c + export LD_LIBRARY_PATH=$(PATH_TO_LIB_SCILAB):$(PATH_TO_LIB_CALL_SCILAB) + gcc -o myExample $(SCILAB_LDFLAGS) -L$(PATH_TO_LIB_SCILAB) -L$(PATH_TO_LIB_CALL_SCILAB) $(SCILAB_CFLAGS) simple_call_scilab.c + ]]></programlisting> + <para>The following example is a Makefile to build against Scilab source tree</para> + <programlisting role="example"><![CDATA[ +# A sample Makefile building a C code using Call Scilab using Scilab built in it source tree. +PATH_SCILAB = /path/to/scilab/sources/ +SCILAB_CFLAGS = -I$(PATH_SCILAB)/modules/core/includes/ -I$(PATH_SCILAB)/modules/call_scilab/includes/ +SCILAB_LDFLAGS = -lscilab +PATH_TO_LIB_SCILAB = $(PATH_SCILAB)/modules/.libs/ +PATH_TO_LIB_CALL_SCILAB = $(PATH_SCILAB)/modules/call_scilab/.libs/ + +all: simple_call_scilab.c + export LD_LIBRARY_PATH=$(PATH_TO_LIB_SCILAB):$(PATH_TO_LIB_CALL_SCILAB) + gcc -o myExample $(SCILAB_LDFLAGS) -L$(PATH_TO_LIB_SCILAB) -L$(PATH_TO_LIB_CALL_SCILAB) $(SCILAB_CFLAGS) simple_call_scilab.c + ]]></programlisting> + </refsection> + <refsection> + <title>Running</title> + <para>To run an application based on Call Scilab, there are a few other + things to set up. + </para> + <para>Some global variables must me set:</para> + <itemizedlist> + <listitem> + <para>SCI - Path to Scilab files</para> + <itemizedlist> + <listitem> + <para>Linux/Unix/MacOSX:</para> + <itemizedlist> + <listitem> + <para>In the binary version of Scilab, SCI will point to + /path/to/scilab/share/scilab/ + </para> + </listitem> + <listitem> + <para>In the source tree of Scilab, SCI will point to the root + of the source tree /path/to/scilab/source/tree/ + </para> + </listitem> + </itemizedlist> + </listitem> + <listitem> + <para>Windows:</para> + </listitem> + </itemizedlist> + </listitem> + <listitem> + <para>LD_LIBRARY_PATH - Paths to libscilab.so and libjavasci.so (or + .dll, .jnilib...) + </para> + <itemizedlist> + <listitem> + <para>Linux/Unix/MacOSX:</para> + <itemizedlist> + <listitem> + <para>In the binary version of Scilab, SCI will point to + /path/to/scilab/lib/scilab/ + </para> + </listitem> + <listitem> + <para>In the source tree of Scilab, SCI will point to the root + of the source tree /path/to/scilab/modules/javasci/.libs/ and + /path/to/scilab/.libs/ + </para> + </listitem> + </itemizedlist> + </listitem> + </itemizedlist> + </listitem> + <listitem> + <para>LD_LIBRARY_PATH (Java) - Paths to Java native libraries + (libjava.so, libjvm.so, libhpi.so)... It is usually provided by the + operating system or by Scilab distribution. Please note that won't be + necessary in Scilab 5.2 + </para> + <itemizedlist> + <listitem> + <para>Linux/Unix:</para> + <itemizedlist> + <listitem> + <para>JAVA_HOME/jre/lib/<arch>/, + JAVA_HOME/jre/lib/<arch>/server, + JAVA_HOME/jre/lib/<arch>/native_threads/ (<arch> + can be i386, etc...) + </para> + </listitem> + </itemizedlist> + </listitem> + <listitem> + <para>Mac OS X:</para> + </listitem> + <listitem> + <para>Windows</para> + </listitem> + </itemizedlist> + </listitem> + </itemizedlist> + <para>Note that two environnement variables are taken in account for + specific needs: + </para> + <itemizedlist> + <listitem> + <para> + <literal>SCI_DISABLE_TK=1</literal> Disables Tk (Tcl's + GUI) + </para> + </listitem> + <listitem> + <para> + <literal>SCI_JAVA_ENABLE_HEADLESS=1</literal> Launch Java in + headless mode (no AWT/Swing) + </para> + </listitem> + </itemizedlist> + </refsection> + <refsection> + <title>Examples</title> + <programlisting role="example"><![CDATA[ +# Serie of declarations to execute my binary. + +# With a Scilab source tree: +$ SCI=<path to Scilab source tree> +$ export LD_LIBRARY_PATH=$SCI/modules/.libs/:$SCI/modules/call_scilab/.libs/:$SCI/modules/api_scilab/.libs + +# With a Scilab binary: +$ SCI_PATH=<path to Scilab binary> +$ export LD_LIBRARY_PATH=$SCI_PATH/lib/scilab/ + +# Set the path to Java Virtual Machine library; This is mandatory for graphics features +# Don't forget to update arch (i386) and paths to whatever is necessary +$ export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/ +$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JAVA_HOME/jre/lib/i386/:$JAVA_HOME/jre/lib/i386/server/ +$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JAVA_HOME/jre/lib/i386/native_threads/ +$ export SCI=/path/to/scilab/ +$ ./myExample +!sample for the help ! + + - 42. 42. + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="api_scilab">api Scilab</link> + </member> + <member> + <link linkend="call_scilab">call_scilab</link> + </member> + <member> + <link linkend="StartScilab">StartScilab</link> + </member> + <member> + <link linkend="SendScilabJob">SendScilabJob</link> + </member> + <member> + <link linkend="SendScilabJobs">SendScilabJobs</link> + </member> + <member> + <link linkend="DoubleManagement_callscilab">Double Management</link> + </member> + <member> + <link linkend="BooleanManagement_callscilab">Boolean Management</link> + </member> + <member> + <link linkend="ComplexManagement_callscilab">Complex Management</link> + </member> + <member> + <link linkend="StringManagement_callscilab">String Management</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/call_scilab/help/en_US/fromc.xml b/modules/call_scilab/help/en_US/fromc.xml new file mode 100755 index 000000000..b1feec80e --- /dev/null +++ b/modules/call_scilab/help/en_US/fromc.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="fromc"> + <refnamediv> + <refname>fromc</refname> + <refpurpose>Checks if current Scilab is called from an external C program (by StartScilab).</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>r=fromc()</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>r</term> + <listitem> + <para>a boolean</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Returns <literal>%t</literal>Checks if current Scilab is called from an external C program or <literal>%f</literal> if not. + </para> + </refsection> + + <refsection> + <title>Example</title> + <programlisting role="example"><![CDATA[ +fromc(); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="call_scilab">Call_Scilab</link> + </member> + <member> + <link linkend="api_scilab">api Scilab</link> + </member> + <member> + <link linkend="fromjava">fromjava</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/call_scilab/help/en_US/fromjava.xml b/modules/call_scilab/help/en_US/fromjava.xml new file mode 100755 index 000000000..bc31e109c --- /dev/null +++ b/modules/call_scilab/help/en_US/fromjava.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="en" xml:id="fromjava"> + <refnamediv> + <refname>fromjava</refname> + <refpurpose>Checks if current Scilab is called from javasci</refpurpose> + </refnamediv> + <refsynopsisdiv> + <title>Calling Sequence</title> + <synopsis>r = fromjava()</synopsis> + </refsynopsisdiv> + <refsection> + <title>Arguments</title> + <variablelist> + <varlistentry> + <term>r</term> + <listitem> + <para>a boolean</para> + </listitem> + </varlistentry> + </variablelist> + </refsection> + <refsection> + <title>Description</title> + <para> + Returns <literal>%t</literal> if Scilab is called from javasci or <literal>%f</literal> if not. + </para> + </refsection> + <refsection> + <title>Example</title> + <programlisting role="example"><![CDATA[ +fromjava(); + ]]></programlisting> + </refsection> + <refsection role="see also"> + <title>See Also</title> + <simplelist type="inline"> + <member> + <link linkend="call_scilab">Call_Scilab</link> + </member> + <member> + <link linkend="api_scilab">api Scilab</link> + </member> + <member> + <link linkend="fromc">fromc</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/call_scilab/help/fr_FR/addchapter.sce b/modules/call_scilab/help/fr_FR/addchapter.sce new file mode 100755 index 000000000..ce7a7580a --- /dev/null +++ b/modules/call_scilab/help/fr_FR/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("API call_scilab (moteur Scilab)",SCI+"/modules/call_scilab/help/fr_FR",%T); + diff --git a/modules/call_scilab/help/ja_JP/addchapter.sce b/modules/call_scilab/help/ja_JP/addchapter.sce new file mode 100755 index 000000000..5216cb95b --- /dev/null +++ b/modules/call_scilab/help/ja_JP/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("call_scilab API",SCI+"/modules/call_scilab/help/ja_JP",%T); + diff --git a/modules/call_scilab/help/ja_JP/call_scilab.xml b/modules/call_scilab/help/ja_JP/call_scilab.xml new file mode 100755 index 000000000..480d388b6 --- /dev/null +++ b/modules/call_scilab/help/ja_JP/call_scilab.xml @@ -0,0 +1,134 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="call_scilab" xml:lang="ja"> + <refnamediv> + <refname>call_scilab</refname> + <refpurpose> + call_scilabは, + C/C++コードからScilabエンジンをコールする機能を提供する + インターフェイスです. + </refpurpose> + </refnamediv> + <refsection> + <title>説明</title> + <para> + Scilabはネーティブな(C/C++)アプリケーションからコールできる + 可能性を提供します. + </para> + <para> + このモジュールにより, + 他のコード/アプリケーションからScilabの機能をインターフェイスする + ために, + または,他の言語からScilabの機能をインターフェイスできるようにする + ために, + C/C++からScilabをコールできるようになります. + </para> + <para> + Scilab 5.2.0以降, 全てのScilabデータ型をcall_scilabで + 処理できるようになりました. + これは,<link linkend="api_scilab">API_Scilab</link>により + 行われました. + </para> + <para> + このヘルプは,call_scilab APIの機能を説明します. + </para> + <para> + 注意: <link linkend="javasci">javasci</link> モジュールは + call_scilabに基づいています. + </para> + <para>注意: + 古いAPI (stackX.h) はScilab 6.0以降では利用できません. + </para> + </refsection> + <refsection> + <title>例</title> + <programlisting role="c"><![CDATA[ +// 簡単な call_scilab の例 +#include <stdio.h> /* stderr */ +#include "stack-c.h" /* Scilabメモリにアクセスする関数を提供 */ +#include "call_scilab.h" /* Scilabエンジンをコールする関数を提供 */ +// Filename: simple_call_scilab.c +int main(void) +{ +/****** 初期化 **********/ +#ifdef _MSC_VER + if ( StartScilab(NULL,NULL,NULL) == FALSE ) +#else + if ( StartScilab(getenv("SCI"),NULL,NULL) == FALSE ) +#endif + { + fprintf(stderr,"Error while calling StartScilab\n"); + return -1; + } +/****** 実際のScilabタスク *******/ + SendScilabJob("myMatrix=['sample','for the help']"); + SendScilabJob("disp(myMatrix);"); // !sample for the help !を表示します + SendScilabJob("disp([2,3]+[-44,39]);"); // - 42. 42. を表示します +/****** 終了 **********/ + if ( TerminateScilab(NULL) == FALSE ) { + fprintf(stderr,"Error while calling TerminateScilab\n"); + return -2; + } + return 0; +} + ]]></programlisting> + </refsection> + <refsection> + <title>履歴</title> + <revhistory> + <revision> + <revnumber>5.4.0</revnumber> + <revdescription>新規メソッドを追加: + <itemizedlist> + <listitem> + <literal>CallScilab.h</literal> が削除されました (Scilab 5.2.0以降で廃止). <literal>call_scilab.h</literal>で置換されました. + </listitem> + <listitem> + 関数 <literal>int getLastErrorValue(void);</literal> が追加されました. Scilabで生成された直近のエラーコードを返します. + </listitem> + <listitem> + 関数 <literal>const char* getLastErrorMessageSingle();</literal> が追加されました. Scilabで生成された直近のエラーメッセージを返します. + </listitem> + <listitem> + call_scilab.hの廃止された関数を削除: + <literal>C2F(readmat), C2F(creadmat), C2F(creadbmat), C2F(creadcmat), C2F(readchain), C2F(creadchain), C2F(creadchains), GetLengthStringMatrixByName, C2F(matptr), C2F(cmatptr), C2F(cmatcptr), C2F(cmatsptr), C2F(cmatbptr), getlengthchain</literal> + </listitem> + </itemizedlist> + </revdescription> + </revision> + </revhistory> + </refsection> + <refsection role="see also"> + <title>参照</title> + <simplelist type="inline"> + <member> + <link linkend="api_scilab">api Scilab</link> + </member> + <member> + <link linkend="compile_and_run_call_scilab">Compile and run with call_scilab</link> + </member> + <member> + <link linkend="DoubleManagement_callscilab">Matrix Management</link> + </member> + <member> + <link linkend="BooleanManagement_callscilab">Boolean Management</link> + </member> + <member> + <link linkend="ComplexManagement_callscilab">Complex Management</link> + </member> + <member> + <link linkend="StringManagement_callscilab">String Management</link> + </member> + </simplelist> + </refsection> +</refentry> diff --git a/modules/call_scilab/help/pt_BR/addchapter.sce b/modules/call_scilab/help/pt_BR/addchapter.sce new file mode 100755 index 000000000..c98234a93 --- /dev/null +++ b/modules/call_scilab/help/pt_BR/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("call_scilab API",SCI+"/modules/call_scilab/help/en_US",%T); + diff --git a/modules/call_scilab/help/ru_RU/addchapter.sce b/modules/call_scilab/help/ru_RU/addchapter.sce new file mode 100755 index 000000000..01f05c1d8 --- /dev/null +++ b/modules/call_scilab/help/ru_RU/addchapter.sce @@ -0,0 +1,11 @@ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2009 - DIGITEO +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +add_help_chapter("call_scilab API (Scilab engine)",SCI+"/modules/call_scilab/help/ru_RU",%T); + diff --git a/modules/call_scilab/includes/call_scilab.h b/modules/call_scilab/includes/call_scilab.h new file mode 100755 index 000000000..a988c7846 --- /dev/null +++ b/modules/call_scilab/includes/call_scilab.h @@ -0,0 +1,155 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2007 - INRIA - Allan CORNET + * Copyright (C) 2009 - DIGITEO - Allan CORNET + * Copyright (C) 2010 - DIGITEO - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +#ifndef __CALL_SCILAB_H__ +#define __CALL_SCILAB_H__ + + +#ifdef __cplusplus +extern "C" { +#endif + + /*--------------------------------------------------------------------------*/ +#include "stack-c.h" /* Provide functions to access to the memory of Scilab */ +#include "machine.h" +#include "BOOL.h" +#include "sci_types.h" + /*--------------------------------------------------------------------------*/ + + /** + * Disable Tcl/Tk and graphic interfaces + * Scilab no GUI no Tcl/Tk "kernel mode" + */ + void DisableInteractiveMode(void); + + /** + * Initialize Scilab + * @param SCIpath define SCI environment variable : Default --> NULL + * @param ScilabStartup path & filename of scilab.start : Default --> NULL + * @param Stacksize : Default --> NULL + * @return TRUE if it is OK else FALSE + */ + BOOL StartScilab(char *SCIpath, char *ScilabStartup, int Stacksize); + + /** + * Start Scilab engine + * Function created in the context of javasci v2. + * This function is just like StartScilab but provides more error messages + * in case or error. For now, it is only used in javasci v2 but it might + * be public sooner or later. + * @return + * 0: success + * -1: already running + * -2: Could not find SCI + * -3: No existing directory + * Any other positive integer: A Scilab internal error + */ + int Call_ScilabOpen(char* SCIpath, BOOL advancedMode, char *ScilabStartup, int Stacksize); + + /** + * Terminate Scilab + * @param ScilabQuit path & filename of scilab.quit : Default --> NULL + * @return TRUE if it is OK else FALSE + */ + BOOL TerminateScilab(char *ScilabQuit); + + /** + * Send a job to scilab + * @param job the Scilab Job + * @return error code operation 0 : OK + */ + int SendScilabJob(char *job); + + /** + * Send jobs to scilab + * @code + * jobs[0] : a = 1; + * jobs[1] : b = 3; + * jobs[2] : c = a + b; + * SendScilabJobs(jobs,3); + * @endcode + * @return last error code operation 0 : OK + **/ + int SendScilabJobs(char **jobs, int numberjobs); + + /** + * Returns last job send to scilab by SendScilabJobs or SendScilabJob + * @param[out] JOB the last job + * @param[out] nbcharsJOB the size of JOB + * @code + * Example : + * jobs[0] : a = 1; + * jobs[1] : b = V_NOT_EXIST; + * jobs[2] : c = a + b; + * if (SendScilabJobs(jobs,3)) + * { + * char lastjob[4096]; // bsiz in scilab + * if (GetLastJob(lastjob,4096)) + * { + * printf("%s\n",lastjob); + * } + * } + * @endcode + * @return + **/ + BOOL GetLastJob(char *JOB, int nbcharsJOB); + + /** + * This procedure is the entry point to Scilab's event loop + */ + void ScilabDoOneEvent(void); + + /** + * Get the information is a graphic windows is opened or not + * @return Returns TRUE if a graphic windows is opened + */ + int ScilabHaveAGraph(void); + + /** + * Return the type of a variable + * This function is supposed to be used only in the call_scilab context + * + * @param varName the variable name + * @return the type of the variable (the enum is defined in sci_types) + * Returns -1 when an error occurs -2 when varName cannot be found + */ + sci_types getVariableType(char *varName); + + /** + * This function returns the last error code generated by Scilab + * It should be used to check if a previous command executed by SendScilabJob + * fail or not + * @return 0 if no error. Not 0 for an error. + */ + int getLastErrorValue(void); + + /** + * This function returns the last error message generated by Scilab + * It should be used to display the error which occurred + * @return the error message + */ + char* getLastErrorMessageSingle(void); + + /********************* DATATYPES MANAGEMENT FUNCTIONS ************/ + + /* See the API_scilab documentation See: http://help.scilab.org/api_scilab */ + /* #include "api_scilab.h" */ + + +#ifdef __cplusplus +} +#endif +/*--------------------------------------------------------------------------*/ +#endif /* __CALL_SCILAB_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/call_scilab/includes/dynlib_call_scilab.h b/modules/call_scilab/includes/dynlib_call_scilab.h new file mode 100755 index 000000000..38cf17c83 --- /dev/null +++ b/modules/call_scilab/includes/dynlib_call_scilab.h @@ -0,0 +1,32 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) DIGITEO - 2009 - Allan CORNET +* +* This file must be used under the terms of the CeCILL. +* This source file is licensed as described in the file COPYING, which +* you should have received as part of this distribution. The terms +* are also available at +* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +* +*/ + +/*--------------------------------------------------------------------------*/ +#ifndef __DYNLIB_CALL_SCILAB_H__ +#define __DYNLIB_CALL_SCILAB_H__ + +#ifdef _MSC_VER +#ifdef CALL_SCILAB_EXPORTS +#define CALL_SCILAB_IMPEXP __declspec(dllexport) +#else +#ifdef _LIB +#define CALL_SCILAB_IMPEXP +#else +#define CALL_SCILAB_IMPEXP __declspec(dllimport) +#endif +#endif +#else +#define CALL_SCILAB_IMPEXP +#endif + +#endif /* __DYNLIB_CALL_SCILAB_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/call_scilab/includes/fromjava.h b/modules/call_scilab/includes/fromjava.h new file mode 100755 index 000000000..fc87717f9 --- /dev/null +++ b/modules/call_scilab/includes/fromjava.h @@ -0,0 +1,34 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2005 - INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ +#ifndef __FROMJAVA__ +#define __FROMJAVA__ + +#include "BOOL.h" +#include "dynlib_call_scilab.h" + +/** + * <long-description> + * + * @param void + */ +CALL_SCILAB_IMPEXP void SetFromJavaToON(void); + +/** + * <long-description> + * + * @param void + * @return <ReturnValue> + */ +CALL_SCILAB_IMPEXP BOOL IsFromJava(void); + +#endif /*FROMJAVA*/ +/*--------------------------------------------------------------------------*/ diff --git a/modules/call_scilab/includes/gw_call_scilab.h b/modules/call_scilab/includes/gw_call_scilab.h new file mode 100755 index 000000000..4e6548e5d --- /dev/null +++ b/modules/call_scilab/includes/gw_call_scilab.h @@ -0,0 +1,24 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ +#ifndef __GW_CALL_SCILAB__ +#define __GW_CALL_SCILAB__ +/*--------------------------------------------------------------------------*/ +#include "dynlib_call_scilab.h" +/*--------------------------------------------------------------------------*/ +CALL_SCILAB_IMPEXP int gw_call_scilab(void); +/*--------------------------------------------------------------------------*/ +CALL_SCILAB_IMPEXP int sci_fromjava(char *fname, unsigned long fname_len); +CALL_SCILAB_IMPEXP int sci_fromc(char *fname, unsigned long fname_len); +/*--------------------------------------------------------------------------*/ +#endif /* __GW_CALL_SCILAB__ */ +/*--------------------------------------------------------------------------*/ + diff --git a/modules/call_scilab/libscicall_scilab-algo.la b/modules/call_scilab/libscicall_scilab-algo.la new file mode 100755 index 000000000..17c503b55 --- /dev/null +++ b/modules/call_scilab/libscicall_scilab-algo.la @@ -0,0 +1,41 @@ +# libscicall_scilab-algo.la - a libtool library file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='' + +# Names of this library. +library_names='' + +# The name of the static archive. +old_library='libscicall_scilab-algo.a' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='' + +# Libraries that this one depends upon. +dependency_libs=' -lpthread -ldl -lcurses -lm' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for libscicall_scilab-algo. +current= +age= +revision= + +# Is this an already installed library? +installed=no + +# Should we warn about portability when linking against -modules? +shouldnotlink=no + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='' diff --git a/modules/call_scilab/libscicall_scilab.la b/modules/call_scilab/libscicall_scilab.la new file mode 100755 index 000000000..76f4927f6 --- /dev/null +++ b/modules/call_scilab/libscicall_scilab.la @@ -0,0 +1,41 @@ +# libscicall_scilab.la - a libtool library file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='libscicall_scilab.so.5' + +# Names of this library. +library_names='libscicall_scilab.so.5.5.2 libscicall_scilab.so.5 libscicall_scilab.so' + +# The name of the static archive. +old_library='' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='' + +# Libraries that this one depends upon. +dependency_libs=' -lpthread -ldl -lcurses -lm' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for libscicall_scilab. +current=10 +age=5 +revision=2 + +# Is this an already installed library? +installed=no + +# Should we warn about portability when linking against -modules? +shouldnotlink=no + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='/usr/local/lib/scilab' diff --git a/modules/call_scilab/license.txt b/modules/call_scilab/license.txt new file mode 100755 index 000000000..b17eaca59 --- /dev/null +++ b/modules/call_scilab/license.txt @@ -0,0 +1,23 @@ +Copyright: +Copyright (c) 2008-2009 - DIGITEO +Copyright (c) 1989-2008 - INRIA + +License: +This module must be used under the terms of the CeCILL. +This module file is licensed as described in the file COPYING, which +you should have received as part of this distribution. The terms +are also available at +http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + +Examples: +========= + +Files: examples/ + +Copyright: +Copyright (c) 2008-2009 - DIGITEO +Copyright (c) 1989-2008 - INRIA +Copyright (c) 1989-2007 - ENPC + +Licenses: +Public domain diff --git a/modules/call_scilab/macros/buildmacros.bat b/modules/call_scilab/macros/buildmacros.bat new file mode 100755 index 000000000..c4e35ec40 --- /dev/null +++ b/modules/call_scilab/macros/buildmacros.bat @@ -0,0 +1 @@ +@..\..\..\bin\scilex -nwni -ns -e exec('buildmacros.sce');quit;
\ No newline at end of file diff --git a/modules/call_scilab/macros/buildmacros.sce b/modules/call_scilab/macros/buildmacros.sce new file mode 100755 index 000000000..10ff84f8e --- /dev/null +++ b/modules/call_scilab/macros/buildmacros.sce @@ -0,0 +1,13 @@ +//------------------------------------ +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) INRIA - Allan CORNET +// +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +//------------------------------------ +//if (isdef('genlib') == %f) then +// exec(SCI+'/modules/functions/scripts/buildmacros/loadgenlib.sce'); +//end diff --git a/modules/call_scilab/macros/cleanmacros.bat b/modules/call_scilab/macros/cleanmacros.bat new file mode 100755 index 000000000..5079dfd71 --- /dev/null +++ b/modules/call_scilab/macros/cleanmacros.bat @@ -0,0 +1,3 @@ +@del *.bin 2>NUL +@del lib 2>NUL +@del names 2>NUL
\ No newline at end of file diff --git a/modules/call_scilab/sci_gateway/c/.deps/.dirstamp b/modules/call_scilab/sci_gateway/c/.deps/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/call_scilab/sci_gateway/c/.deps/.dirstamp diff --git a/modules/call_scilab/sci_gateway/c/.deps/libscicall_scilab_la-gw_call_scilab.Plo b/modules/call_scilab/sci_gateway/c/.deps/libscicall_scilab_la-gw_call_scilab.Plo new file mode 100755 index 000000000..0bfc626c1 --- /dev/null +++ b/modules/call_scilab/sci_gateway/c/.deps/libscicall_scilab_la-gw_call_scilab.Plo @@ -0,0 +1,275 @@ +sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo: \ + sci_gateway/c/gw_call_scilab.c /usr/include/stdc-predef.h \ + /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h includes/gw_call_scilab.h \ + includes/dynlib_call_scilab.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h /usr/include/wchar.h \ + /usr/include/stdio.h /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/core/includes/callFunctionFromGateway.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +includes/gw_call_scilab.h: + +includes/dynlib_call_scilab.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +/usr/include/wchar.h: + +/usr/include/stdio.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/core/includes/callFunctionFromGateway.h: diff --git a/modules/call_scilab/sci_gateway/c/.deps/libscicall_scilab_la-sci_fromc.Plo b/modules/call_scilab/sci_gateway/c/.deps/libscicall_scilab_la-sci_fromc.Plo new file mode 100755 index 000000000..5c49e1a8c --- /dev/null +++ b/modules/call_scilab/sci_gateway/c/.deps/libscicall_scilab_la-sci_fromc.Plo @@ -0,0 +1,232 @@ +sci_gateway/c/libscicall_scilab_la-sci_fromc.lo: \ + sci_gateway/c/sci_fromc.c /usr/include/stdc-predef.h \ + ../../modules/core/includes/gw_core.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stack-c.h /usr/include/string.h \ + /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h src/c/fromc.h \ + /usr/include/stdio.h /usr/include/libio.h /usr/include/_G_config.h \ + /usr/include/wchar.h /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h \ + includes/dynlib_call_scilab.h ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +../../modules/core/includes/gw_core.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stack-c.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +src/c/fromc.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +includes/dynlib_call_scilab.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/call_scilab/sci_gateway/c/.deps/libscicall_scilab_la-sci_fromjava.Plo b/modules/call_scilab/sci_gateway/c/.deps/libscicall_scilab_la-sci_fromjava.Plo new file mode 100755 index 000000000..29d54147d --- /dev/null +++ b/modules/call_scilab/sci_gateway/c/.deps/libscicall_scilab_la-sci_fromjava.Plo @@ -0,0 +1,208 @@ +sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo: \ + sci_gateway/c/sci_fromjava.c /usr/include/stdc-predef.h \ + ../../modules/core/includes/gw_core.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stack-c.h /usr/include/string.h \ + /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h /usr/include/values.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/float.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h includes/fromjava.h \ + ../../modules/core/includes/BOOL.h includes/dynlib_call_scilab.h + +/usr/include/stdc-predef.h: + +../../modules/core/includes/gw_core.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stack-c.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/values.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/float.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +includes/fromjava.h: + +../../modules/core/includes/BOOL.h: + +includes/dynlib_call_scilab.h: diff --git a/modules/call_scilab/sci_gateway/c/.dirstamp b/modules/call_scilab/sci_gateway/c/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/call_scilab/sci_gateway/c/.dirstamp diff --git a/modules/call_scilab/sci_gateway/c/.libs/libscicall_scilab_la-gw_call_scilab.o b/modules/call_scilab/sci_gateway/c/.libs/libscicall_scilab_la-gw_call_scilab.o Binary files differnew file mode 100755 index 000000000..81d020b3d --- /dev/null +++ b/modules/call_scilab/sci_gateway/c/.libs/libscicall_scilab_la-gw_call_scilab.o diff --git a/modules/call_scilab/sci_gateway/c/.libs/libscicall_scilab_la-sci_fromc.o b/modules/call_scilab/sci_gateway/c/.libs/libscicall_scilab_la-sci_fromc.o Binary files differnew file mode 100755 index 000000000..89b9cf6b4 --- /dev/null +++ b/modules/call_scilab/sci_gateway/c/.libs/libscicall_scilab_la-sci_fromc.o diff --git a/modules/call_scilab/sci_gateway/c/.libs/libscicall_scilab_la-sci_fromjava.o b/modules/call_scilab/sci_gateway/c/.libs/libscicall_scilab_la-sci_fromjava.o Binary files differnew file mode 100755 index 000000000..04a49fc84 --- /dev/null +++ b/modules/call_scilab/sci_gateway/c/.libs/libscicall_scilab_la-sci_fromjava.o diff --git a/modules/call_scilab/sci_gateway/c/gw_call_scilab.c b/modules/call_scilab/sci_gateway/c/gw_call_scilab.c new file mode 100755 index 000000000..59c33dacf --- /dev/null +++ b/modules/call_scilab/sci_gateway/c/gw_call_scilab.c @@ -0,0 +1,35 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ +#include <string.h> +#include "gw_call_scilab.h" +#include "api_scilab.h" +#include "MALLOC.h" +#include "callFunctionFromGateway.h" +/*--------------------------------------------------------------------------*/ +static gw_generic_table Tab[] = +{ + {sci_fromjava, "fromjava"}, + {sci_fromc, "fromc"} +}; +/*--------------------------------------------------------------------------*/ +int gw_call_scilab(void) +{ + if (pvApiCtx == NULL) + { + pvApiCtx = (StrCtx*)MALLOC(sizeof(StrCtx)); + } + + pvApiCtx->pstName = (char*)Tab[Fin - 1].name; + callFunctionFromGateway(Tab, SIZE_CURRENT_GENERIC_TABLE(Tab)); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/call_scilab/sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo b/modules/call_scilab/sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo new file mode 100755 index 000000000..1fe1e9c0b --- /dev/null +++ b/modules/call_scilab/sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscicall_scilab_la-gw_call_scilab.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscicall_scilab_la-gw_call_scilab.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/call_scilab/sci_gateway/c/libscicall_scilab_la-sci_fromc.lo b/modules/call_scilab/sci_gateway/c/libscicall_scilab_la-sci_fromc.lo new file mode 100755 index 000000000..1f12be994 --- /dev/null +++ b/modules/call_scilab/sci_gateway/c/libscicall_scilab_la-sci_fromc.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscicall_scilab_la-sci_fromc.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscicall_scilab_la-sci_fromc.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/call_scilab/sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo b/modules/call_scilab/sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo new file mode 100755 index 000000000..987bc38d2 --- /dev/null +++ b/modules/call_scilab/sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo @@ -0,0 +1,12 @@ +# sci_gateway/c/libscicall_scilab_la-sci_fromjava.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscicall_scilab_la-sci_fromjava.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/call_scilab/sci_gateway/c/sci_fromc.c b/modules/call_scilab/sci_gateway/c/sci_fromc.c new file mode 100755 index 000000000..0904db701 --- /dev/null +++ b/modules/call_scilab/sci_gateway/c/sci_fromc.c @@ -0,0 +1,46 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ +#include "gw_core.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "fromc.h" +/*--------------------------------------------------------------------------*/ +int sci_fromc(char *fname, unsigned long fname_len) +{ + static int n1; + int *paramoutINT = (int*)MALLOC(sizeof(int)); + + Rhs = Max(0, Rhs); + CheckRhs(0, 0); + CheckLhs(1, 1); + + if ( IsFromC() ) + { + *paramoutINT = (int)(TRUE); + } + else + { + *paramoutINT = (int)(FALSE); + } + + n1 = 1; + CreateVarFromPtr(Rhs + 1, MATRIX_OF_BOOLEAN_DATATYPE, &n1, &n1, ¶moutINT); + if (paramoutINT) + { + FREE(paramoutINT); + paramoutINT = NULL; + } + LhsVar(1) = Rhs + 1; + PutLhsVar(); + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/call_scilab/sci_gateway/c/sci_fromjava.c b/modules/call_scilab/sci_gateway/c/sci_fromjava.c new file mode 100755 index 000000000..b808a845d --- /dev/null +++ b/modules/call_scilab/sci_gateway/c/sci_fromjava.c @@ -0,0 +1,47 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2006 - INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ +#include "gw_core.h" +#include "stack-c.h" +#include "MALLOC.h" +#include "fromjava.h" +/*--------------------------------------------------------------------------*/ +int sci_fromjava(char *fname, unsigned long fname_len) +{ + static int n1; + int *paramoutINT = (int*)MALLOC(sizeof(int) + 1); + + Rhs = Max(0, Rhs); + CheckRhs(0, 0); + CheckLhs(1, 1); + + if ( IsFromJava() ) + { + *paramoutINT = (int)(TRUE); + } + else + { + *paramoutINT = (int)(FALSE); + } + + n1 = 1; + CreateVarFromPtr(Rhs + 1, MATRIX_OF_BOOLEAN_DATATYPE, &n1, &n1, ¶moutINT); + if (paramoutINT) + { + FREE(paramoutINT); + paramoutINT = NULL; + } + LhsVar(1) = Rhs + 1; + PutLhsVar(); + + return 0; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/call_scilab/sci_gateway/call_scilab_gateway.xml b/modules/call_scilab/sci_gateway/call_scilab_gateway.xml new file mode 100755 index 000000000..82940bd3a --- /dev/null +++ b/modules/call_scilab/sci_gateway/call_scilab_gateway.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2009 - DIGITEO - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + --> +<!DOCTYPE GATEWAY SYSTEM "../../functions/xml/gateway.dtd"> +<GATEWAY name="call_scilab"> + <!-- + Scilab + Interface description. In this file, we define the list of the function which + will be available into Scilab and the link to the "native" function. + + gatewayId is the position in the hashtable 'Interfaces' defined in the + file SCI/modules/core/src/c/callinterf.h + + primitiveId is the position in the hashtable '<module>Table Tab[]' defined + in the file modules/<module>/sci_gateway/c/gw_<module>.c + + primitiveName is the name of the Scilab function + + Don't touch if you do not know what you are doing +--> + + <PRIMITIVE gatewayId="61" primitiveId="1" primitiveName="fromjava" /> + <PRIMITIVE gatewayId="61" primitiveId="2" primitiveName="fromc" /> + +</GATEWAY> diff --git a/modules/call_scilab/src/c/.deps/.dirstamp b/modules/call_scilab/src/c/.deps/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/call_scilab/src/c/.deps/.dirstamp diff --git a/modules/call_scilab/src/c/.deps/libscicall_scilab_algo_la-SendScilabJobs.Plo b/modules/call_scilab/src/c/.deps/libscicall_scilab_algo_la-SendScilabJobs.Plo new file mode 100755 index 000000000..63072be22 --- /dev/null +++ b/modules/call_scilab/src/c/.deps/libscicall_scilab_algo_la-SendScilabJobs.Plo @@ -0,0 +1,309 @@ +src/c/libscicall_scilab_algo_la-SendScilabJobs.lo: src/c/SendScilabJobs.c \ + /usr/include/stdc-predef.h /usr/include/stdio.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/libio.h \ + /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/string.h \ + /usr/include/xlocale.h /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h includes/call_scilab.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/machine.h ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/core/includes/scirun.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/core/includes/freeArrayOfString.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h src/c/call_scilab_engine_state.h + +/usr/include/stdc-predef.h: + +/usr/include/stdio.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/string.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +includes/call_scilab.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/core/includes/scirun.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/core/includes/freeArrayOfString.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +src/c/call_scilab_engine_state.h: diff --git a/modules/call_scilab/src/c/.deps/libscicall_scilab_algo_la-call_scilab.Plo b/modules/call_scilab/src/c/.deps/libscicall_scilab_algo_la-call_scilab.Plo new file mode 100755 index 000000000..7fd9f4344 --- /dev/null +++ b/modules/call_scilab/src/c/.deps/libscicall_scilab_algo_la-call_scilab.Plo @@ -0,0 +1,357 @@ +src/c/libscicall_scilab_algo_la-call_scilab.lo: src/c/call_scilab.c \ + /usr/include/stdc-predef.h /usr/include/string.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h /usr/include/xlocale.h \ + /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h /usr/include/stdio.h \ + /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h \ + /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/sigset.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/sys/sysmacros.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + ../../modules/core/includes/BOOL.h includes/call_scilab.h \ + ../../modules/core/includes/stack-c.h \ + ../../modules/core/includes/core_math.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h \ + /usr/include/limits.h /usr/include/x86_64-linux-gnu/bits/posix1_lim.h \ + /usr/include/x86_64-linux-gnu/bits/local_lim.h \ + /usr/include/linux/limits.h \ + /usr/include/x86_64-linux-gnu/bits/posix2_lim.h /usr/include/math.h \ + /usr/include/x86_64-linux-gnu/bits/math-vector.h \ + /usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h \ + /usr/include/x86_64-linux-gnu/bits/huge_val.h \ + /usr/include/x86_64-linux-gnu/bits/huge_valf.h \ + /usr/include/x86_64-linux-gnu/bits/huge_vall.h \ + /usr/include/x86_64-linux-gnu/bits/inf.h \ + /usr/include/x86_64-linux-gnu/bits/nan.h \ + /usr/include/x86_64-linux-gnu/bits/mathdef.h \ + /usr/include/x86_64-linux-gnu/bits/mathcalls.h \ + /usr/include/x86_64-linux-gnu/bits/mathinline.h \ + ../../modules/core/includes/stack-def.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/stackTypeVariable.h \ + ../../modules/core/includes/BOOL.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/core/includes/stack1.h \ + ../../modules/core/includes/scisparse.h \ + ../../modules/core/includes/stack2.h \ + ../../modules/core/includes/stack3.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/sci_types.h \ + ../../modules/output_stream/includes/lasterror.h \ + ../../modules/output_stream/includes/dynlib_output_stream.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/core/includes/scilabmode.h src/c/fromc.h \ + includes/dynlib_call_scilab.h \ + ../../modules/core/includes/LaunchScilabSignal.h \ + ../../modules/localization/includes/localization.h \ + /usr/include/libintl.h /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h \ + ../../modules/fileio/includes/isdir.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h \ + ../../modules/fileio/includes/dynlib_fileio.h \ + ../../modules/core/includes/setgetSCIpath.h \ + ../../modules/core/includes/scilabDefaults.h \ + ../../modules/core/includes/tmpdir.h \ + ../../modules/core/includes/inisci-c.h \ + ../../modules/core/includes/scirun.h \ + ../../modules/core/includes/sciquit.h \ + ../../modules/core/includes/storeCommand.h \ + ../../modules/graphic_objects/includes/FigureList.h \ + ../../modules/graphic_objects/includes/dynlib_graphic_objects.h \ + ../../modules/core/includes/../../core/src/c/TerminateCore.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_common.h \ + ../../modules/api_scilab/includes/api_scilab.h \ + ../../modules/api_scilab/includes/api_double.h \ + ../../modules/core/includes/doublecomplex.h \ + ../../modules/api_scilab/includes/api_string.h \ + ../../modules/api_scilab/includes/api_int.h \ + ../../modules/api_scilab/includes/api_poly.h \ + ../../modules/api_scilab/includes/api_sparse.h \ + ../../modules/api_scilab/includes/api_boolean.h \ + ../../modules/api_scilab/includes/api_boolean_sparse.h \ + ../../modules/api_scilab/includes/api_pointer.h \ + ../../modules/api_scilab/includes/api_list.h \ + ../../modules/api_scilab/includes/api_error.h \ + ../../modules/api_scilab/includes/api_handle.h \ + ../../modules/api_scilab/includes/api_optional.h \ + ../../modules/core/includes/stack-optional.h \ + ../../modules/api_scilab/includes/api_hypermat.h \ + ../../modules/core/includes/core_math.h src/c/call_scilab_engine_state.h + +/usr/include/stdc-predef.h: + +/usr/include/string.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/sigset.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/sys/sysmacros.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +../../modules/core/includes/BOOL.h: + +includes/call_scilab.h: + +../../modules/core/includes/stack-c.h: + +../../modules/core/includes/core_math.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/limits.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/syslimits.h: + +/usr/include/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix1_lim.h: + +/usr/include/x86_64-linux-gnu/bits/local_lim.h: + +/usr/include/linux/limits.h: + +/usr/include/x86_64-linux-gnu/bits/posix2_lim.h: + +/usr/include/math.h: + +/usr/include/x86_64-linux-gnu/bits/math-vector.h: + +/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h: + +/usr/include/x86_64-linux-gnu/bits/huge_val.h: + +/usr/include/x86_64-linux-gnu/bits/huge_valf.h: + +/usr/include/x86_64-linux-gnu/bits/huge_vall.h: + +/usr/include/x86_64-linux-gnu/bits/inf.h: + +/usr/include/x86_64-linux-gnu/bits/nan.h: + +/usr/include/x86_64-linux-gnu/bits/mathdef.h: + +/usr/include/x86_64-linux-gnu/bits/mathcalls.h: + +/usr/include/x86_64-linux-gnu/bits/mathinline.h: + +../../modules/core/includes/stack-def.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/stackTypeVariable.h: + +../../modules/core/includes/BOOL.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/core/includes/stack1.h: + +../../modules/core/includes/scisparse.h: + +../../modules/core/includes/stack2.h: + +../../modules/core/includes/stack3.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/core/includes/sci_types.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/sci_types.h: + +../../modules/output_stream/includes/lasterror.h: + +../../modules/output_stream/includes/dynlib_output_stream.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/core/includes/scilabmode.h: + +src/c/fromc.h: + +includes/dynlib_call_scilab.h: + +../../modules/core/includes/LaunchScilabSignal.h: + +../../modules/localization/includes/localization.h: + +/usr/include/libintl.h: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +../../modules/fileio/includes/isdir.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +../../modules/fileio/includes/dynlib_fileio.h: + +../../modules/core/includes/setgetSCIpath.h: + +../../modules/core/includes/scilabDefaults.h: + +../../modules/core/includes/tmpdir.h: + +../../modules/core/includes/inisci-c.h: + +../../modules/core/includes/scirun.h: + +../../modules/core/includes/sciquit.h: + +../../modules/core/includes/storeCommand.h: + +../../modules/graphic_objects/includes/FigureList.h: + +../../modules/graphic_objects/includes/dynlib_graphic_objects.h: + +../../modules/core/includes/../../core/src/c/TerminateCore.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_common.h: + +../../modules/api_scilab/includes/api_scilab.h: + +../../modules/api_scilab/includes/api_double.h: + +../../modules/core/includes/doublecomplex.h: + +../../modules/api_scilab/includes/api_string.h: + +../../modules/api_scilab/includes/api_int.h: + +../../modules/api_scilab/includes/api_poly.h: + +../../modules/api_scilab/includes/api_sparse.h: + +../../modules/api_scilab/includes/api_boolean.h: + +../../modules/api_scilab/includes/api_boolean_sparse.h: + +../../modules/api_scilab/includes/api_pointer.h: + +../../modules/api_scilab/includes/api_list.h: + +../../modules/api_scilab/includes/api_error.h: + +../../modules/api_scilab/includes/api_handle.h: + +../../modules/api_scilab/includes/api_optional.h: + +../../modules/core/includes/stack-optional.h: + +../../modules/api_scilab/includes/api_hypermat.h: + +../../modules/core/includes/core_math.h: + +src/c/call_scilab_engine_state.h: diff --git a/modules/call_scilab/src/c/.deps/libscicall_scilab_algo_la-fromc.Plo b/modules/call_scilab/src/c/.deps/libscicall_scilab_algo_la-fromc.Plo new file mode 100755 index 000000000..0b7e8fd66 --- /dev/null +++ b/modules/call_scilab/src/c/.deps/libscicall_scilab_algo_la-fromc.Plo @@ -0,0 +1,84 @@ +src/c/libscicall_scilab_algo_la-fromc.lo: src/c/fromc.c \ + /usr/include/stdc-predef.h src/c/fromc.h /usr/include/stdio.h \ + /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/libio.h \ + /usr/include/_G_config.h /usr/include/wchar.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/string.h \ + /usr/include/xlocale.h /usr/include/x86_64-linux-gnu/bits/string.h \ + /usr/include/x86_64-linux-gnu/bits/string2.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap-16.h /usr/include/stdlib.h \ + /usr/include/x86_64-linux-gnu/bits/string3.h \ + includes/dynlib_call_scilab.h ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +src/c/fromc.h: + +/usr/include/stdio.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/string.h: + +/usr/include/xlocale.h: + +/usr/include/x86_64-linux-gnu/bits/string.h: + +/usr/include/x86_64-linux-gnu/bits/string2.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap-16.h: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/string3.h: + +includes/dynlib_call_scilab.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/call_scilab/src/c/.deps/libscicall_scilab_algo_la-fromjava.Plo b/modules/call_scilab/src/c/.deps/libscicall_scilab_algo_la-fromjava.Plo new file mode 100755 index 000000000..d4e2404d4 --- /dev/null +++ b/modules/call_scilab/src/c/.deps/libscicall_scilab_algo_la-fromjava.Plo @@ -0,0 +1,11 @@ +src/c/libscicall_scilab_algo_la-fromjava.lo: src/c/fromjava.c \ + /usr/include/stdc-predef.h includes/fromjava.h \ + ../../modules/core/includes/BOOL.h includes/dynlib_call_scilab.h + +/usr/include/stdc-predef.h: + +includes/fromjava.h: + +../../modules/core/includes/BOOL.h: + +includes/dynlib_call_scilab.h: diff --git a/modules/call_scilab/src/c/.dirstamp b/modules/call_scilab/src/c/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/call_scilab/src/c/.dirstamp diff --git a/modules/call_scilab/src/c/.libs/libscicall_scilab_algo_la-SendScilabJobs.o b/modules/call_scilab/src/c/.libs/libscicall_scilab_algo_la-SendScilabJobs.o Binary files differnew file mode 100755 index 000000000..897bcb38c --- /dev/null +++ b/modules/call_scilab/src/c/.libs/libscicall_scilab_algo_la-SendScilabJobs.o diff --git a/modules/call_scilab/src/c/.libs/libscicall_scilab_algo_la-call_scilab.o b/modules/call_scilab/src/c/.libs/libscicall_scilab_algo_la-call_scilab.o Binary files differnew file mode 100755 index 000000000..f3748cf67 --- /dev/null +++ b/modules/call_scilab/src/c/.libs/libscicall_scilab_algo_la-call_scilab.o diff --git a/modules/call_scilab/src/c/.libs/libscicall_scilab_algo_la-fromc.o b/modules/call_scilab/src/c/.libs/libscicall_scilab_algo_la-fromc.o Binary files differnew file mode 100755 index 000000000..38d0fb187 --- /dev/null +++ b/modules/call_scilab/src/c/.libs/libscicall_scilab_algo_la-fromc.o diff --git a/modules/call_scilab/src/c/.libs/libscicall_scilab_algo_la-fromjava.o b/modules/call_scilab/src/c/.libs/libscicall_scilab_algo_la-fromjava.o Binary files differnew file mode 100755 index 000000000..1d8857568 --- /dev/null +++ b/modules/call_scilab/src/c/.libs/libscicall_scilab_algo_la-fromjava.o diff --git a/modules/call_scilab/src/c/DllmainCall_scilab.c b/modules/call_scilab/src/c/DllmainCall_scilab.c new file mode 100755 index 000000000..b14cc2332 --- /dev/null +++ b/modules/call_scilab/src/c/DllmainCall_scilab.c @@ -0,0 +1,34 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) 2009 - DIGITEO - Allan CORNET +* +* This file must be used under the terms of the CeCILL. +* This source file is licensed as described in the file COPYING, which +* you should have received as part of this distribution. The terms +* are also available at +* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +* +*/ +/*--------------------------------------------------------------------------*/ +#include <stdio.h> +#include <windows.h> +/*--------------------------------------------------------------------------*/ +#pragma comment(lib,"../../bin/libintl.lib") +/*--------------------------------------------------------------------------*/ +int WINAPI DllMain (HINSTANCE hInstance , DWORD reason, PVOID pvReserved) +{ + switch (reason) + { + case DLL_PROCESS_ATTACH: + break; + case DLL_PROCESS_DETACH: + break; + case DLL_THREAD_ATTACH: + break; + case DLL_THREAD_DETACH: + break; + } + return 1; +} +/*--------------------------------------------------------------------------*/ + diff --git a/modules/call_scilab/src/c/SendScilabJobs.c b/modules/call_scilab/src/c/SendScilabJobs.c new file mode 100755 index 000000000..bce1cb88d --- /dev/null +++ b/modules/call_scilab/src/c/SendScilabJobs.c @@ -0,0 +1,376 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) 2007 - INRIA - Allan CORNET +* Copyright (C) 2009-2010 - DIGITEO - Allan CORNET +* +* This file must be used under the terms of the CeCILL. +* This source file is licensed as described in the file COPYING, which +* you should have received as part of this distribution. The terms +* are also available at +* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +* +*/ +#include <stdio.h> +#include <string.h> +#include "call_scilab.h" +#include "MALLOC.h" +#include "scirun.h" +#include "localization.h" +#include "freeArrayOfString.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +#include "api_scilab.h" +#include "call_scilab_engine_state.h" +/*--------------------------------------------------------------------------*/ +static BOOL RemoveCharsFromEOL(char *line, char CharToRemove); +static BOOL RemoveComments(char *line); +static BOOL CleanBuffers(char *bufCommands, char **LOCALJOBS, int numberjobs); +static BOOL SetLastJob(char *JOB); +static char *lastjob = NULL; + +/*--------------------------------------------------------------------------*/ +/* see call_scilab.h more information */ +/*--------------------------------------------------------------------------*/ +int SendScilabJob(char *job) +{ + SciErr sciErr; + int retCode = -1; + char *command = NULL; + +#define COMMAND_EXECSTR "Err_Job = execstr(TMP_EXEC_STRING,\"errcatch\",\"n\");quit;" +#define COMMAND_CLEAR "clear TMP_EXEC_STRING;clear Err_Job;quit;" + + if (getCallScilabEngineState() == CALL_SCILAB_ENGINE_STOP) + { + fprintf(stderr, "Error: SendScilabJob call_scilab engine not started.\n"); + return retCode; + } + + command = strdup(job); + + if (command) + { + double Err_Job = 0.; + int m = 0, n = 0; + + /* clear prev. Err , TMP_EXEC_STRING scilab variables */ + C2F(scirun) (COMMAND_CLEAR, (long int)strlen(COMMAND_CLEAR)); + + SetLastJob(command); + + /* Creation of a temp variable in Scilab which contains the command */ + sciErr = createNamedMatrixOfString(pvApiCtx, "TMP_EXEC_STRING", 1, 1, &command); + if (sciErr.iErr) + { + printError(&sciErr, 0); + /* Problem */ + fprintf(stderr, "Error: SendScilabJob (1) call_scilab failed to create the temporary variable 'TMP_EXEC_STRING'.\n"); + retCode = -1; + + if (command) + { + FREE(command); + command = NULL; + } + + return retCode; + } + + /* Run the command within an execstr */ + C2F(scirun) (COMMAND_EXECSTR, (long int)strlen(COMMAND_EXECSTR)); + sciErr = getNamedVarDimension(pvApiCtx, "Err_Job", &m, &n); + if (sciErr.iErr) + { + printError(&sciErr, 0); + fprintf(stderr, "Error: SendScilabJob (2) call_scilab failed to detect the temporary variable 'Err_Job' size.\n"); + retCode = -2; + + if (command) + { + FREE(command); + command = NULL; + } + + return retCode; + } + + if ((m != 1) && (n != 1)) + { + fprintf(stderr, "Error: SendScilabJob (3) call_scilab detected a badly formated 'Err_Job' variable. Size [1,1] expected.\n"); + retCode = -3; + + if (command) + { + FREE(command); + command = NULL; + } + + return retCode; + } + + sciErr = readNamedMatrixOfDouble(pvApiCtx, "Err_Job", &m, &n, &Err_Job); + if (sciErr.iErr) + { + printError(&sciErr, 0); + fprintf(stderr, "Error: SendScilabJob (4) call_scilab failed to read the temporary variable 'Err_Job'.\n"); + retCode = -4; + + if (command) + { + FREE(command); + command = NULL; + } + + return retCode; + } + + if (command) + { + FREE(command); + command = NULL; + } + + retCode = (int)Err_Job; + + /* clear prev. Err , TMP_EXEC_STRING scilab variables */ + C2F(scirun) (COMMAND_CLEAR, (long int)strlen(COMMAND_CLEAR)); + } + else + { + fprintf(stderr, "Error: SendScilabJob (5) call_scilab failed to create the 'command' variable (MALLOC).\n"); + retCode = -4; + } + + return retCode; +} + +/*--------------------------------------------------------------------------*/ +static BOOL SetLastJob(char *JOB) +{ + if (lastjob) + { + FREE(lastjob); + lastjob = NULL; + } + + if (JOB) + { + lastjob = strdup(JOB); + if (lastjob) + { + return TRUE; + } + } + return FALSE; +} + +/*--------------------------------------------------------------------------*/ +BOOL GetLastJob(char *JOB, int nbcharsJOB) +{ + if (JOB) + { + if ((int)strlen(lastjob) < nbcharsJOB) + { + strcpy(JOB, lastjob); + } + else + { + strncpy(JOB, lastjob, nbcharsJOB); + } + return TRUE; + } + return FALSE; +} + +/*--------------------------------------------------------------------------*/ +int SendScilabJobs(char **jobs, int numberjobs) +{ +#define BUFFERSECURITYSIZE 64 + + int retcode = -10; + + if (jobs) + { + int i = 0; + int nbcharsjobs = 0; + char *bufCommands = NULL; + char **LOCALJOBS = NULL; + + int jobsloop = 0; + + LOCALJOBS = (char **)MALLOC(sizeof(char *) * numberjobs); + + if (LOCALJOBS) + { + for (i = 0; i < numberjobs; i++) + { + if (jobs[i]) + { + nbcharsjobs = nbcharsjobs + (int)strlen(jobs[i]); + LOCALJOBS[i] = (char *)MALLOC(sizeof(char) * (strlen(jobs[i]) + BUFFERSECURITYSIZE)); + if (LOCALJOBS[i]) + { + strcpy(LOCALJOBS[i], jobs[i]); + } + else + { + CleanBuffers(bufCommands, LOCALJOBS, numberjobs); + fprintf(stderr, "Error: SendScilabJobs (1) 'LOCALJOBS[%d] MALLOC'.\n", i); + return retcode; + } + } + else + { + fprintf(stderr, "Error: SendScilabJobs (2) 'jobs[%d] == NULL'.\n", i); + FREE(LOCALJOBS); + return retcode; + } + } + + bufCommands = (char *)MALLOC(sizeof(char) * (nbcharsjobs + numberjobs + BUFFERSECURITYSIZE)); + + if (bufCommands) + { + strcpy(bufCommands, ""); + + for (jobsloop = 0; jobsloop < numberjobs; jobsloop++) + { + if (jobs[jobsloop]) + { + char *currentline = NULL; + BOOL AddSemiColon; + + if (jobsloop == 0) + { + AddSemiColon = FALSE; + } + else + { + AddSemiColon = TRUE; + } + +DOTDOTLOOP: + currentline = LOCALJOBS[jobsloop]; + + RemoveCharsFromEOL(currentline, '\n'); + RemoveComments(currentline); + RemoveCharsFromEOL(currentline, ' '); + + if (RemoveCharsFromEOL(currentline, '.')) + { + RemoveCharsFromEOL(currentline, ' '); + strcat(bufCommands, currentline); + jobsloop++; + AddSemiColon = FALSE; + goto DOTDOTLOOP; + } + else + { + if (!AddSemiColon) + { + strcat(currentline, ";"); + } + else + { + strcat(bufCommands, ";"); + } + + strcat(bufCommands, currentline); + } + } + } + + retcode = SendScilabJob(bufCommands); + CleanBuffers(bufCommands, LOCALJOBS, numberjobs); + } + else + { + CleanBuffers(bufCommands, LOCALJOBS, numberjobs); + fprintf(stderr, "Error: SendScilabJobs (3) 'bufCommands MALLOC'.\n"); + return retcode; + } + } + else + { + CleanBuffers(bufCommands, LOCALJOBS, numberjobs); + fprintf(stderr, "Error: SendScilabJobs (4) 'LOCALJOBS == NULL'.\n"); + return retcode; + } + } + else + { + fprintf(stderr, "Error: SendScilabJobs (5) 'jobs == NULL'.\n"); + retcode = -10; + } + + return retcode; +} + +/*--------------------------------------------------------------------------*/ +static BOOL RemoveCharsFromEOL(char *line, char CharToRemove) +{ + int l = 0; + BOOL bOK = FALSE; + int len = 0; + + len = (int)strlen(line); + for (l = (len - 1); l > 0; l--) + { + if (line[l] == CharToRemove) + { + line[l] = '\0'; + bOK = TRUE; + } + else + { + break; + } + } + return bOK; +} + +/*--------------------------------------------------------------------------*/ +static BOOL RemoveComments(char *line) +{ + int l = 0; + int len = 0; + int idx = -1; + + len = (int)strlen(line); + for (l = len - 1; l > 0; l--) + { + if (line[l] == '/') + { + if (l - 1 >= 0) + { + if (line[l - 1] == '/') + { + idx = l - 1; + l = l - 2; + } + } + } + } + + if (idx >= 0) + { + line[idx] = '\0'; + } + + return FALSE; +} + +/*--------------------------------------------------------------------------*/ +static BOOL CleanBuffers(char *bufCommands, char **LOCALJOBS, int numberjobs) +{ + if (bufCommands) + { + FREE(bufCommands); + bufCommands = NULL; + } + freeArrayOfString(LOCALJOBS, numberjobs); + return TRUE; +} + +/*--------------------------------------------------------------------------*/ diff --git a/modules/call_scilab/src/c/call_scilab.c b/modules/call_scilab/src/c/call_scilab.c new file mode 100755 index 000000000..21acc351f --- /dev/null +++ b/modules/call_scilab/src/c/call_scilab.c @@ -0,0 +1,336 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) 2005 - INRIA - Allan CORNET +* Copyright (C) 2010 - DIGITEO - Allan CORNET +* +* This file must be used under the terms of the CeCILL. +* This source file is licensed as described in the file COPYING, which +* you should have received as part of this distribution. The terms +* are also available at +* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +* +*/ +#include <string.h> +#include <stdio.h> +#include <stdlib.h> +#ifdef _MSC_VER +#include <windows.h> +#endif +#include "BOOL.h" +#include "call_scilab.h" +#include "lasterror.h" /* clearInternalLastError, getInternalLastErrorValue */ +#include "MALLOC.h" +#include "scilabmode.h" +#include "fromc.h" +#include "LaunchScilabSignal.h" +#include "localization.h" +#include "isdir.h" +#include "setgetSCIpath.h" +#include "scilabDefaults.h" +#include "tmpdir.h" +#include "inisci-c.h" +#include "scirun.h" +#include "scilabmode.h" +#include "sciquit.h" +#include "storeCommand.h" +#include "FigureList.h" +#include "../../core/src/c/TerminateCore.h" +#include "api_scilab.h" +#include "call_scilab_engine_state.h" + + +#ifdef _MSC_VER +#include "SetScilabEnvironmentVariables.h" +#include "getScilabDirectory.h" +#include "strdup_windows.h" +#endif +/*--------------------------------------------------------------------------*/ +static CALL_SCILAB_ENGINE_STATE csEngineState = CALL_SCILAB_ENGINE_STOP; + +/*--------------------------------------------------------------------------*/ +#ifdef _MSC_VER +static void SetSciEnv(void) +{ + char *ScilabDirectory = NULL; + + ScilabDirectory = getScilabDirectory(TRUE); + + if (ScilabDirectory == NULL) + { + // This message must never occur, but ... + MessageBox (NULL, "ERROR" , "Cannot determine the Scilab directory (SCI).", MB_ICONSTOP | MB_OK); + exit(1); + } + SetScilabEnvironmentVariables(ScilabDirectory); + + if (ScilabDirectory) + { + FREE(ScilabDirectory); + ScilabDirectory = NULL; + } + +} +#endif +/*--------------------------------------------------------------------------*/ +void DisableInteractiveMode(void) +{ + setScilabMode(SCILAB_NWNI); +} + +/*--------------------------------------------------------------------------*/ +BOOL StartScilab(char *SCIpath, char *ScilabStartup, int Stacksize) +{ + return Call_ScilabOpen(SCIpath, TRUE, ScilabStartup, Stacksize) == 0; +} + +/*--------------------------------------------------------------------------*/ +/** +* Start Scilab engine +* Function created in the context of javasci v2. +* This function is just like StartScilab but provides more error messages +* in case or error. For now, it is only used in javasci v2 but it might +* be public sooner or later. +* @return +* 0: success +* -1: already running +* -2: Could not find SCI +* -3: No existing directory +* 10001: Stacksize failed (not enought memory ?). +* Any other positive integer: A Scilab internal error +*/ +int Call_ScilabOpen(char *SCIpath, BOOL advancedMode, char *ScilabStartup, int Stacksize) +{ +#define FORMAT_SCRIPT_STARTUP "_errorCall_ScilabOpen = exec(\"%s\", \"errcatch\", -1); exit(_errorCall_ScilabOpen);" + char *ScilabStartupUsed = NULL; + char *InitStringToScilab = NULL; + int StacksizeUsed = 0; + int lengthStringToScilab = 0; + + static int iflag = -1, ierr = 0; + + setScilabMode(SCILAB_API); + if (advancedMode == FALSE) + { + DisableInteractiveMode(); + } + + if (getCallScilabEngineState() == CALL_SCILAB_ENGINE_STARTED) + { + return -1; + } + + SetFromCToON(); + + InitializeLaunchScilabSignal(); + + if (SCIpath == NULL) /* No SCIpath provided... */ + { +#ifdef _MSC_VER + SetSciEnv(); /* Windows has a way to detect it */ +#else + /* Other doesn't */ + fprintf(stderr, "StartScilab: Could not find SCI\n"); + return -2; +#endif + } + else + { + if (!isdir(SCIpath)) + { + /* Check if the directory actually exists */ + fprintf(stderr, "StartScilab: Could not find the directory %s\n", SCIpath); + return -3; + } + else + { +#ifdef _MSC_VER + char env[2048]; + + sprintf(env, "SCI=%s", SCIpath); + _putenv(env); +#else + setenv("SCI", SCIpath, 0); +#endif + setSCIpath(SCIpath); + } + } + + if (ScilabStartup == NULL) + { + ScilabStartupUsed = strdup(DEFAULTSCILABSTARTUP); + } + else + { + ScilabStartupUsed = strdup(ScilabStartup); + } + + if (Stacksize == 0 || Stacksize == -1) + { + StacksizeUsed = DEFAULTSTACKSIZE; + } + else + { + StacksizeUsed = Stacksize; + } + + /* creates TMPDIR */ + C2F(settmpdir) (); + + /* Scilab Initialization */ + C2F(inisci) (&iflag, &StacksizeUsed, &ierr); + + if (ierr > 0) + { + if (ScilabStartupUsed) + { + FREE(ScilabStartupUsed); + ScilabStartupUsed = NULL; + } + return ierr; + } + + lengthStringToScilab = (int)(strlen(FORMAT_SCRIPT_STARTUP) + strlen(ScilabStartupUsed + 1)); + InitStringToScilab = (char *)MALLOC(lengthStringToScilab * sizeof(char)); + sprintf(InitStringToScilab, FORMAT_SCRIPT_STARTUP, ScilabStartupUsed); + + ierr = C2F(scirun) (InitStringToScilab, (long int)strlen(InitStringToScilab)); + + if (ScilabStartupUsed) + { + FREE(ScilabStartupUsed); + ScilabStartupUsed = NULL; + } + if (InitStringToScilab) + { + FREE(InitStringToScilab); + InitStringToScilab = NULL; + } + + if (ierr) + { + return ierr; + } + + setCallScilabEngineState(CALL_SCILAB_ENGINE_STARTED); + + return 0; +} + +/*--------------------------------------------------------------------------*/ +BOOL TerminateScilab(char *ScilabQuit) +{ + if (getCallScilabEngineState() == CALL_SCILAB_ENGINE_STARTED) + { + if (getScilabMode() != SCILAB_NWNI) + { + ExitScilab(); + } + else + { + TerminateCorePart2(); + } + + /* Make sure that the error management is reset. See bug #8830 */ + clearInternalLastError(); + + ReleaseLaunchScilabSignal(); + setCallScilabEngineState(CALL_SCILAB_ENGINE_STOP); + + /* restore default mode */ + setScilabMode(SCILAB_API); + + return TRUE; + } + return FALSE; +} + +/*--------------------------------------------------------------------------*/ +/** +* function called javasci +*/ +void ScilabDoOneEvent(void) +{ + if (getCallScilabEngineState() == CALL_SCILAB_ENGINE_STARTED) + { + if (getScilabMode() != SCILAB_NWNI) + { + C2F(scirun) ("quit;", (int)strlen("quit;")); + } + } +} + +/*--------------------------------------------------------------------------*/ +int ScilabHaveAGraph(void) +{ + if (getCallScilabEngineState() == CALL_SCILAB_ENGINE_STARTED) + { + return sciHasFigures(); + } + return 0; +} + +/*--------------------------------------------------------------------------*/ +CALL_SCILAB_ENGINE_STATE setCallScilabEngineState(CALL_SCILAB_ENGINE_STATE state) +{ + csEngineState = state; + return csEngineState; +} + +/*--------------------------------------------------------------------------*/ +CALL_SCILAB_ENGINE_STATE getCallScilabEngineState(void) +{ + return csEngineState; +} + +/*--------------------------------------------------------------------------*/ +sci_types getVariableType(char *varName) +{ + int iSciType = -1; + SciErr sciErr = getNamedVarType(pvApiCtx, (char *)varName, &iSciType); + + if (sciErr.iErr == API_ERROR_NAMED_UNDEFINED_VAR) + { + return -2; + } + + if (sciErr.iErr) + { + printError(&sciErr, 0); + return -1; + } + return (sci_types) iSciType; +} + +/*--------------------------------------------------------------------------*/ + +/** + * Call the Scilab function getLastErrorMessage + * Take the result (a matrix of string) and concatenate into a single string + * This is way easier to manage in swig. +*/ +char *getLastErrorMessageSingle(void) +{ + int iNbLines, i, nbChar = 0; + const char **msgs = getInternalLastErrorMessage(&iNbLines); + char *concat; + + for (i = 0; i < iNbLines; i++) + { + nbChar += (int)strlen(msgs[i]); + } + concat = (char *)malloc((nbChar + 1) * sizeof(char)); + strcpy(concat, ""); + for (i = 0; i < iNbLines; i++) + { + strcat(concat, msgs[i]); + } + return concat; +} + +/*--------------------------------------------------------------------------*/ +int getLastErrorValue(void) +{ + /* defined in lasterror.h */ + return getInternalLastErrorValue(); +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/call_scilab/src/c/call_scilab.rc b/modules/call_scilab/src/c/call_scilab.rc new file mode 100755 index 000000000..59e442e95 --- /dev/null +++ b/modules/call_scilab/src/c/call_scilab.rc @@ -0,0 +1,96 @@ +// Microsoft Visual C++ generated resource script. +// + + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +//#include "afxres.h" +#define APSTUDIO_HIDDEN_SYMBOLS +#include "windows.h" +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// French (France) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA) +#ifdef _WIN32 +LANGUAGE LANG_FRENCH, SUBLANG_FRENCH +#pragma code_page(1252) +#endif //_WIN32 + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 5,5,2,0 + PRODUCTVERSION 5,5,2,0 + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040c04b0" + BEGIN + VALUE "FileDescription", "call_scilab module" + VALUE "FileVersion", "5, 5, 2, 0" + VALUE "InternalName", "call_scilab module" + VALUE "LegalCopyright", "Copyright (C) 2017" + VALUE "OriginalFilename", "call_scilab.dll" + VALUE "ProductName", " call_scilab module" + VALUE "ProductVersion", "5, 5, 2, 0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x40c, 1200 + END +END + +#endif // French (France) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/modules/call_scilab/src/c/call_scilab_engine_state.h b/modules/call_scilab/src/c/call_scilab_engine_state.h new file mode 100755 index 000000000..722b3f5d0 --- /dev/null +++ b/modules/call_scilab/src/c/call_scilab_engine_state.h @@ -0,0 +1,38 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) 2010 - DIGITEO - Allan CORNET +* +* This file must be used under the terms of the CeCILL. +* This source file is licensed as described in the file COPYING, which +* you should have received as part of this distribution. The terms +* are also available at +* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +* +*/ +/*--------------------------------------------------------------------------*/ +#ifndef __CALL_SCILAB_STATE_H__ +#define __CALL_SCILAB_STATE_H__ + +typedef enum +{ + CALL_SCILAB_ENGINE_STOP = 0, + CALL_SCILAB_ENGINE_STARTED = 1, +} CALL_SCILAB_ENGINE_STATE; + +/* internal functions to know call_scilab engine state */ + +/** +* set call_scilab engine state +* @param[in] state to set +* @return new state +*/ +CALL_SCILAB_ENGINE_STATE setCallScilabEngineState(CALL_SCILAB_ENGINE_STATE state); + +/** +* get call_scilab engine state +* @return current call_scilab engine state +*/ +CALL_SCILAB_ENGINE_STATE getCallScilabEngineState(void); + +#endif /* __CALL_SCILAB_STARTED_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/call_scilab/src/c/fromc.c b/modules/call_scilab/src/c/fromc.c new file mode 100755 index 000000000..069e18602 --- /dev/null +++ b/modules/call_scilab/src/c/fromc.c @@ -0,0 +1,26 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2005 - INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +#include "fromc.h" +/*--------------------------------------------------------------------------*/ +static int bFromC = FALSE; +/*--------------------------------------------------------------------------*/ +void SetFromCToON(void) +{ + bFromC = (int)(TRUE); +} +/*--------------------------------------------------------------------------*/ +int IsFromC(void) +{ + return bFromC; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/call_scilab/src/c/fromc.h b/modules/call_scilab/src/c/fromc.h new file mode 100755 index 000000000..5a04233ed --- /dev/null +++ b/modules/call_scilab/src/c/fromc.h @@ -0,0 +1,36 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2005 - INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ +#ifndef __FROMC__ +#define __FROMC__ + +#include <stdio.h> +#include <string.h> +#include "dynlib_call_scilab.h" +#include "BOOL.h" + +/** + * @TODO add comment + * + * @param void + */ +CALL_SCILAB_IMPEXP void SetFromCToON(void); + +/** + * @TODO add comment + * + * @param void + * @return <ReturnValue> + */ +CALL_SCILAB_IMPEXP int IsFromC(void); + +#endif /*FROMC*/ +/*--------------------------------------------------------------------------*/ diff --git a/modules/call_scilab/src/c/fromjava.c b/modules/call_scilab/src/c/fromjava.c new file mode 100755 index 000000000..ba9cbe438 --- /dev/null +++ b/modules/call_scilab/src/c/fromjava.c @@ -0,0 +1,25 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2005 - INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ +#include "fromjava.h" +/*--------------------------------------------------------------------------*/ +static int bFromJava = FALSE; +/*--------------------------------------------------------------------------*/ +void SetFromJavaToON(void) +{ + bFromJava = (int)(TRUE); +} +/*--------------------------------------------------------------------------*/ +BOOL IsFromJava(void) +{ + return bFromJava; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/call_scilab/src/c/libscicall_scilab_algo_la-SendScilabJobs.lo b/modules/call_scilab/src/c/libscicall_scilab_algo_la-SendScilabJobs.lo new file mode 100755 index 000000000..9669dd84c --- /dev/null +++ b/modules/call_scilab/src/c/libscicall_scilab_algo_la-SendScilabJobs.lo @@ -0,0 +1,12 @@ +# src/c/libscicall_scilab_algo_la-SendScilabJobs.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscicall_scilab_algo_la-SendScilabJobs.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/call_scilab/src/c/libscicall_scilab_algo_la-call_scilab.lo b/modules/call_scilab/src/c/libscicall_scilab_algo_la-call_scilab.lo new file mode 100755 index 000000000..fb8a7def7 --- /dev/null +++ b/modules/call_scilab/src/c/libscicall_scilab_algo_la-call_scilab.lo @@ -0,0 +1,12 @@ +# src/c/libscicall_scilab_algo_la-call_scilab.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscicall_scilab_algo_la-call_scilab.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/call_scilab/src/c/libscicall_scilab_algo_la-fromc.lo b/modules/call_scilab/src/c/libscicall_scilab_algo_la-fromc.lo new file mode 100755 index 000000000..358e28f54 --- /dev/null +++ b/modules/call_scilab/src/c/libscicall_scilab_algo_la-fromc.lo @@ -0,0 +1,12 @@ +# src/c/libscicall_scilab_algo_la-fromc.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscicall_scilab_algo_la-fromc.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/call_scilab/src/c/libscicall_scilab_algo_la-fromjava.lo b/modules/call_scilab/src/c/libscicall_scilab_algo_la-fromjava.lo new file mode 100755 index 000000000..261350781 --- /dev/null +++ b/modules/call_scilab/src/c/libscicall_scilab_algo_la-fromjava.lo @@ -0,0 +1,12 @@ +# src/c/libscicall_scilab_algo_la-fromjava.lo - a libtool object file +# Generated by libtool (GNU libtool) 2.4.2 +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# Name of the PIC object. +pic_object='.libs/libscicall_scilab_algo_la-fromjava.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/call_scilab/tests/nonreg_tests/bug_7601.tst b/modules/call_scilab/tests/nonreg_tests/bug_7601.tst new file mode 100755 index 000000000..78ec20fe1 --- /dev/null +++ b/modules/call_scilab/tests/nonreg_tests/bug_7601.tst @@ -0,0 +1,36 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- INTERACTIVE TEST --> +// +// <-- Non-regression test for bug 7601 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7601 +// +// <-- Short Description --> +// call_scilab C functions did not check if engine is started. + +// Create a C code to use call_scilab: + +int main(void) +{ +#ifdef _MSC_VER + StartScilab(NULL, NULL, NULL); +#else + StartScilab(getenv("SCI"), NULL, NULL); +#endif + + SendScilabJob("disp([2,3]+[-44,39]);"); // Will display - 42. 42. + TerminateScilab(NULL); + return SendScilabJob("disp([2,3]+[-44,39]);") + +} + +default value returned by main will be -1
\ No newline at end of file diff --git a/modules/call_scilab/tests/nonreg_tests/bug_7602.tst b/modules/call_scilab/tests/nonreg_tests/bug_7602.tst new file mode 100755 index 000000000..3959e5b5d --- /dev/null +++ b/modules/call_scilab/tests/nonreg_tests/bug_7602.tst @@ -0,0 +1,50 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- INTERACTIVE TEST --> +// +// <-- Non-regression test for bug 7602 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=7602 +// +// <-- Short Description --> +// it was not possible to start/close a Scilab engine at anytime. + +// Create a C code to use call_scilab: + +int main(void) +{ + #define NB_LOOPS 10 + int i = 0; + for (i = 0; i < NB_LOOPS; i++) + { + DisableInteractiveMode(); +#ifdef _MSC_VER + StartScilab(NULL, NULL, NULL); +#else + StartScilab(getenv("SCI"), NULL, NULL); +#endif + + TerminateScilab(NULL); + + DisableInteractiveMode(); +#ifdef _MSC_VER + StartScilab(NULL, NULL, NULL); +#else + StartScilab(getenv("SCI"), NULL, NULL); +#endif + SendScilabJob("disp([2,3]+[-44,39]);"); // Will display - 42. 42. + + TerminateScilab(NULL); + } + return 0; +} + +// you must have 10 display of - 42. 42.
\ No newline at end of file diff --git a/modules/call_scilab/tests/nonreg_tests/bug_8115.tst b/modules/call_scilab/tests/nonreg_tests/bug_8115.tst new file mode 100755 index 000000000..b2313dd4b --- /dev/null +++ b/modules/call_scilab/tests/nonreg_tests/bug_8115.tst @@ -0,0 +1,88 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2010 - DIGITEO - Allan CORNET +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- INTERACTIVE TEST --> +// +// <-- Non-regression test for bug 8115 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=8115 +// +// <-- Short Description --> +// DisableInteractiveMode did not work + +// Create a C code to use call_scilab: + +#ifdef _MSC_VER +#pragma comment(lib, "call_scilab.lib") +#pragma comment(lib, "libscilab.lib") +#endif +/*--------------------------------------------------------------------------*/ +#include <stdio.h> +#include <stdlib.h> +#include "call_scilab.h" +#include "scilabmode.h" +/*--------------------------------------------------------------------------*/ +int main(void) +{ + int iErr = 0; + if (getScilabMode() != SCILAB_API) + { + fprintf(stderr, "BUG 8115 NOT FIXED.\n"); + iErr = 1; + } + + DisableInteractiveMode(); +#ifdef _MSC_VER + StartScilab(NULL, NULL, 0); +#else + StartScilab(getenv("SCI"), NULL, 0); +#endif + + /* check that it is NWNI mode */ + if (getScilabMode() != SCILAB_NWNI) + { + fprintf(stderr, "BUG 8115 NOT FIXED.\n"); + iErr = 1; + } + + TerminateScilab(NULL); + + /* check that we returns to default mode */ + if (getScilabMode() != SCILAB_API) + { + fprintf(stderr, "BUG 8115 NOT FIXED.\n"); + iErr = 1; + } + +#ifdef _MSC_VER + StartScilab(NULL, NULL, 0); +#else + StartScilab(getenv("SCI"), NULL, 0); +#endif + + /* check that it is API mode */ + if (getScilabMode() != SCILAB_API) + { + fprintf(stderr, "BUG 8115 NOT FIXED.\n"); + iErr = 1; + } + + TerminateScilab(NULL); + + /* check that we returns to default mode */ + if (getScilabMode() != SCILAB_API) + { + fprintf(stderr, "BUG 8115 NOT FIXED.\n"); + iErr = 1; + } + + return iErr; +} +/*--------------------------------------------------------------------------*/ diff --git a/modules/call_scilab/tests/nonreg_tests/bug_8830.tst b/modules/call_scilab/tests/nonreg_tests/bug_8830.tst new file mode 100755 index 000000000..dc7e2971a --- /dev/null +++ b/modules/call_scilab/tests/nonreg_tests/bug_8830.tst @@ -0,0 +1,51 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2011 - DIGITEO - Sylvestre LEDRU +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- CLI SHELL MODE --> +// +// <-- INTERACTIVE TEST --> +// +// <-- Non-regression test for bug 8830 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=8830 +// +// <-- Short Description --> +// In call_scilab, TerminateScilab did not clear the last error. + +// Create a C code to use call_scilab: + +#include <stdio.h> +#include <string.h> + +#include "stack-c.h" /* Provide functions to access to the memory of Scilab */ +#include "call_scilab.h" /* Provide functions to call Scilab engine */ + +/*------------------------------------------------------------*/ +int main(void) +{ +#ifdef _MSC_VER + if ( StartScilab(NULL,NULL,NULL) == FALSE ) +#else + if ( StartScilab(getenv("SCI"),NULL,NULL) == FALSE ) +#endif + { + fprintf(stderr,"Error while calling StartScilab\n"); + return -1; + } + + + int code=SendScilabJob("failedMyCurrentJob=%pi*3/0"); + + if ( TerminateScilab(NULL) == FALSE ) { + fprintf(stderr,"Error while calling TerminateScilab\n"); + return -2; + } + printf("getLastErrorValue %d\n",getLastErrorValue()); + return 0; +} +/*------------------------------------------------------------*/ |