diff options
author | Shashank | 2017-05-29 12:40:26 +0530 |
---|---|---|
committer | Shashank | 2017-05-29 12:40:26 +0530 |
commit | 0345245e860375a32c9a437c4a9d9cae807134e9 (patch) | |
tree | ad51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /modules/preferences/src/c | |
download | scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2 scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip |
CMSCOPE changed
Diffstat (limited to 'modules/preferences/src/c')
-rwxr-xr-x | modules/preferences/src/c/.deps/.dirstamp | 0 | ||||
-rwxr-xr-x | modules/preferences/src/c/.deps/libscipreferences_algo_la-getScilabPreference.Plo | 262 | ||||
-rwxr-xr-x | modules/preferences/src/c/.dirstamp | 0 | ||||
-rwxr-xr-x | modules/preferences/src/c/.libs/libscipreferences_algo_la-getScilabPreference.o | bin | 0 -> 46536 bytes | |||
-rwxr-xr-x | modules/preferences/src/c/DllmainPreferences.c | 34 | ||||
-rwxr-xr-x | modules/preferences/src/c/core_Import.def | 11 | ||||
-rwxr-xr-x | modules/preferences/src/c/getScilabPreference.c | 426 | ||||
-rwxr-xr-x | modules/preferences/src/c/libscipreferences_algo_la-getScilabPreference.lo | 12 | ||||
-rwxr-xr-x | modules/preferences/src/c/preferences.rc | 96 | ||||
-rwxr-xr-x | modules/preferences/src/c/preferences.vcxproj | 292 | ||||
-rwxr-xr-x | modules/preferences/src/c/preferences.vcxproj.filters | 75 |
11 files changed, 1208 insertions, 0 deletions
diff --git a/modules/preferences/src/c/.deps/.dirstamp b/modules/preferences/src/c/.deps/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/preferences/src/c/.deps/.dirstamp diff --git a/modules/preferences/src/c/.deps/libscipreferences_algo_la-getScilabPreference.Plo b/modules/preferences/src/c/.deps/libscipreferences_algo_la-getScilabPreference.Plo new file mode 100755 index 000000000..ee32ccc9e --- /dev/null +++ b/modules/preferences/src/c/.deps/libscipreferences_algo_la-getScilabPreference.Plo @@ -0,0 +1,262 @@ +src/c/libscipreferences_algo_la-getScilabPreference.lo: \ + src/c/getScilabPreference.c /usr/include/stdc-predef.h \ + /usr/include/stdlib.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/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.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/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 \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xpath.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlversion.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlexports.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlerror.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/parser.h \ + /usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/tree.h \ + /usr/include/stdio.h /usr/include/libio.h /usr/include/_G_config.h \ + /usr/include/wchar.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/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 \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlstring.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlregexp.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/dict.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/hash.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/valid.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/list.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlautomata.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/entities.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/encoding.h \ + /usr/include/iconv.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlIO.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/globals.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/SAX.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xlink.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/SAX2.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlmemory.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/threads.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlreader.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/relaxng.h \ + /home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlschemas.h \ + includes/getScilabPreference.h includes/dynlib_preferences_scilab.h \ + ../../modules/core/includes/GetXmlFileEncoding.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/x86_64-linux-gnu/bits/string3.h \ + ../../modules/core/includes/MALLOC.h \ + ../../modules/core/includes/sci_mem_alloc.h \ + ../../modules/fileio/includes/FileExist.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/BOOL.h \ + ../../modules/string/includes/stricmp.h \ + ../../modules/fileio/includes/getshortpathname.h \ + ../../modules/core/includes/machine.h \ + ../../modules/core/includes/SCIHOME.h ../../modules/core/includes/BOOL.h + +/usr/include/stdc-predef.h: + +/usr/include/stdlib.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/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.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/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: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xpath.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlversion.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlexports.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlerror.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/parser.h: + +/usr/lib/gcc/x86_64-linux-gnu/5/include/stdarg.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/tree.h: + +/usr/include/stdio.h: + +/usr/include/libio.h: + +/usr/include/_G_config.h: + +/usr/include/wchar.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/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: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlstring.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlregexp.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/dict.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/hash.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/valid.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/list.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlautomata.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/entities.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/encoding.h: + +/usr/include/iconv.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlIO.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/globals.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/SAX.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xlink.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/SAX2.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlmemory.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/threads.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlreader.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/relaxng.h: + +/home/shashank/scilab-master_5.5.2/usr/include/libxml2/libxml/xmlschemas.h: + +includes/getScilabPreference.h: + +includes/dynlib_preferences_scilab.h: + +../../modules/core/includes/GetXmlFileEncoding.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/x86_64-linux-gnu/bits/string3.h: + +../../modules/core/includes/MALLOC.h: + +../../modules/core/includes/sci_mem_alloc.h: + +../../modules/fileio/includes/FileExist.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/BOOL.h: + +../../modules/string/includes/stricmp.h: + +../../modules/fileio/includes/getshortpathname.h: + +../../modules/core/includes/machine.h: + +../../modules/core/includes/SCIHOME.h: + +../../modules/core/includes/BOOL.h: diff --git a/modules/preferences/src/c/.dirstamp b/modules/preferences/src/c/.dirstamp new file mode 100755 index 000000000..e69de29bb --- /dev/null +++ b/modules/preferences/src/c/.dirstamp diff --git a/modules/preferences/src/c/.libs/libscipreferences_algo_la-getScilabPreference.o b/modules/preferences/src/c/.libs/libscipreferences_algo_la-getScilabPreference.o Binary files differnew file mode 100755 index 000000000..19092a6e9 --- /dev/null +++ b/modules/preferences/src/c/.libs/libscipreferences_algo_la-getScilabPreference.o diff --git a/modules/preferences/src/c/DllmainPreferences.c b/modules/preferences/src/c/DllmainPreferences.c new file mode 100755 index 000000000..5010db488 --- /dev/null +++ b/modules/preferences/src/c/DllmainPreferences.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 <windows.h> +/*--------------------------------------------------------------------------*/ +#pragma comment(lib,"../../../../bin/libintl.lib") +#pragma comment(lib, "../../../../bin/libxml2.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/preferences/src/c/core_Import.def b/modules/preferences/src/c/core_Import.def new file mode 100755 index 000000000..4d6229447 --- /dev/null +++ b/modules/preferences/src/c/core_Import.def @@ -0,0 +1,11 @@ +LIBRARY core.dll + + +EXPORTS +; +callFunctionFromGateway +getScilabMode +com_ +getSCIHOME +MyHeapAlloc +MyHeapFree diff --git a/modules/preferences/src/c/getScilabPreference.c b/modules/preferences/src/c/getScilabPreference.c new file mode 100755 index 000000000..13f6a0e8f --- /dev/null +++ b/modules/preferences/src/c/getScilabPreference.c @@ -0,0 +1,426 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET + * + * 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 <stdlib.h> +#include <libxml/xpath.h> +#include <libxml/xmlreader.h> +#include "getScilabPreference.h" +#include "GetXmlFileEncoding.h" +#include "MALLOC.h" +#include "FileExist.h" +#include "stricmp.h" +#ifdef _MSC_VER +#include "strdup_windows.h" +#endif +#include "getshortpathname.h" +#include "BOOL.h" +#include "SCIHOME.h" + +#define XCONF "%s/XConfiguration.xml" + +/*--------------------------------------------------------------------------*/ +static unsigned char isInit = 0; +static ScilabPreferences scilabPref; +static char * emptyAttribute = ""; +/*--------------------------------------------------------------------------*/ +static void getPrefs(); +static char * getAttribute(xmlDocPtr doc, xmlXPathContextPtr xpathCtxt, const char * xpath); +static void initPrefs(); +static void getDocAndCtxt(xmlDocPtr * doc, xmlXPathContextPtr * xpathCtxt); +/*--------------------------------------------------------------------------*/ +const ScilabPreferences * getScilabPreferences() +{ + getPrefs(); + return &scilabPref; +} +/*--------------------------------------------------------------------------*/ +void initPrefs() +{ + scilabPref.heapSize = NULL; + scilabPref.adaptToDisplay = NULL; + scilabPref.columnsToDisplay = NULL; + scilabPref.linesToDisplay = NULL; + scilabPref.historySaveAfter = NULL; + scilabPref.historyFile = NULL; + scilabPref.historyLines = NULL; + scilabPref.historyEnable = NULL; + scilabPref.ieee = NULL; + scilabPref.format = NULL; + scilabPref.formatWidth = NULL; + scilabPref.language = NULL; + scilabPref.startup_dir_use = NULL; + scilabPref.startup_dir_default = NULL; + scilabPref.startup_dir_previous = NULL; +} +/*--------------------------------------------------------------------------*/ +void reloadScilabPreferences() +{ + clearScilabPreferences(); + getPrefs(); +} +/*--------------------------------------------------------------------------*/ +void clearScilabPreferences() +{ + if (isInit == 1) + { + if (scilabPref.heapSize) + { + FREE((void*)scilabPref.heapSize); + } + if (scilabPref.adaptToDisplay) + { + FREE((void*)scilabPref.adaptToDisplay); + } + if (scilabPref.columnsToDisplay) + { + FREE((void*)scilabPref.columnsToDisplay); + } + if (scilabPref.linesToDisplay) + { + FREE((void*)scilabPref.linesToDisplay); + } + if (scilabPref.historySaveAfter) + { + FREE((void*)scilabPref.historySaveAfter); + } + if (scilabPref.historyFile) + { + FREE((void*)scilabPref.historyFile); + } + if (scilabPref.historyLines) + { + FREE((void*)scilabPref.historyLines); + } + if (scilabPref.historyEnable) + { + FREE((void*)scilabPref.historyEnable); + } + if (scilabPref.ieee) + { + FREE((void*)scilabPref.ieee); + } + if (scilabPref.format) + { + FREE((void*)scilabPref.format); + } + if (scilabPref.formatWidth) + { + FREE((void*)scilabPref.formatWidth); + } + if (scilabPref.language) + { + FREE((void*)scilabPref.language); + } + if (scilabPref.startup_dir_use) + { + FREE((void*)scilabPref.startup_dir_use); + } + if (scilabPref.startup_dir_default) + { + FREE((void*)scilabPref.startup_dir_default); + } + if (scilabPref.startup_dir_previous) + { + FREE((void*)scilabPref.startup_dir_previous); + } + initPrefs(); + } + isInit = 0; +} +/*--------------------------------------------------------------------------*/ +void getPrefs() +{ + if (!isInit) + { + xmlDocPtr doc = NULL; + xmlXPathContextPtr xpathCtxt = NULL; + + initPrefs(); + + getDocAndCtxt(&doc, &xpathCtxt); + if (doc == NULL) + { + return; + } + + scilabPref.heapSize = strdup(getAttribute(doc, xpathCtxt, HEAPSIZE_XPATH)); + scilabPref.adaptToDisplay = strdup(getAttribute(doc, xpathCtxt, ADAPTTODISPLAY_XPATH)); + scilabPref.columnsToDisplay = strdup(getAttribute(doc, xpathCtxt, COLUMNSTODISPLAY_XPATH)); + scilabPref.linesToDisplay = strdup(getAttribute(doc, xpathCtxt, LINESTODISPLAY_XPATH)); + scilabPref.historySaveAfter = strdup(getAttribute(doc, xpathCtxt, HISTORYSAVEAFTER_XPATH)); + scilabPref.historyFile = strdup(getAttribute(doc, xpathCtxt, HISTORYFILE_XPATH)); + scilabPref.historyLines = strdup(getAttribute(doc, xpathCtxt, HISTORYLINES_XPATH)); + scilabPref.historyEnable = strdup(getAttribute(doc, xpathCtxt, HISTORYENABLE_XPATH)); + scilabPref.ieee = strdup(getAttribute(doc, xpathCtxt, IEEE_XPATH)); + scilabPref.format = strdup(getAttribute(doc, xpathCtxt, FORMAT_XPATH)); + scilabPref.formatWidth = strdup(getAttribute(doc, xpathCtxt, FORMATWIDTH_XPATH)); + scilabPref.language = strdup(getAttribute(doc, xpathCtxt, LANGUAGE_XPATH)); + scilabPref.startup_dir_use = strdup(getAttribute(doc, xpathCtxt, STARTUP_DIR_USE_XPATH)); + scilabPref.startup_dir_default = strdup(getAttribute(doc, xpathCtxt, STARTUP_DIR_DEFAULT_XPATH)); + scilabPref.startup_dir_previous = strdup(getAttribute(doc, xpathCtxt, STARTUP_DIR_PREVIOUS_XPATH)); + + xmlXPathFreeContext(xpathCtxt); + xmlFreeDoc(doc); + + isInit = 1; + } +} +/*--------------------------------------------------------------------------*/ +char * getAttribute(xmlDocPtr doc, xmlXPathContextPtr xpathCtxt, const char * xpath) +{ + char * value = emptyAttribute; + xmlXPathObjectPtr xpathObj = xmlXPathEval((const xmlChar*)xpath, xpathCtxt); + if (xpathObj && xpathObj->nodesetval && xpathObj->nodesetval->nodeMax) + { + value = (char *)((xmlAttrPtr)xpathObj->nodesetval->nodeTab[0])->children->content; + } + + if (xpathObj) + { + xmlXPathFreeObject(xpathObj); + } + + return value; +} +/*--------------------------------------------------------------------------*/ +void getDocAndCtxt(xmlDocPtr * doc, xmlXPathContextPtr * xpathCtxt) +{ + char * SCIHOME = NULL; + char * path = NULL; + BOOL bConvert = FALSE; + char * shortfilename_xml_conf = NULL; + char * ret = NULL; + *doc = NULL; + *xpathCtxt = NULL; + + SCIHOME = getSCIHOME(); + path = (char *)MALLOC(strlen(SCIHOME) + strlen(XCONF)); + + sprintf(path, XCONF, SCIHOME); + FREE(SCIHOME); + + if (FileExist(path)) + { + shortfilename_xml_conf = getshortpathname(path, &bConvert); + if (shortfilename_xml_conf) + { + *doc = xmlParseFile(shortfilename_xml_conf); + FREE(shortfilename_xml_conf); + shortfilename_xml_conf = NULL; + } + } + + FREE(path); + path = NULL; + + if (*doc == NULL) + { + *xpathCtxt = NULL; + return; + } + + if (stricmp((*doc)->encoding, "utf-8")) + { + xmlFreeDoc(*doc); + *doc = NULL; + *xpathCtxt = NULL; + return; + } + + *xpathCtxt = xmlXPathNewContext(*doc); + if (*xpathCtxt == NULL) + { + xmlFreeDoc(*doc); + *doc = NULL; + } +} +/*--------------------------------------------------------------------------*/ +char * getPrefAttributeValue(const char * xpath, const char * attribute) +{ + xmlDocPtr doc = NULL; + xmlXPathContextPtr xpathCtxt = NULL; + char * ret = NULL; + unsigned int xlen = 0; + unsigned int alen = 0; + char * query = NULL; + + if (!xpath || !attribute) + { + return NULL; + } + + query = (char *)MALLOC((xlen + alen + 2 + 1) * sizeof(char)); + if (!query) + { + return NULL; + } + + xlen = (unsigned int) strlen(xpath); + alen = (unsigned int) strlen(attribute); + + getDocAndCtxt(&doc, &xpathCtxt); + if (doc == NULL) + { + FREE(query); + return NULL; + } + + sprintf(query, "%s/@%s", xpath, attribute); + query[xlen + alen + 2] = '\0'; + + ret = strdup(getAttribute(doc, xpathCtxt, (const xmlChar*)query)); + FREE(query); + + xmlXPathFreeContext(xpathCtxt); + xmlFreeDoc(doc); + + return ret; +} +/*--------------------------------------------------------------------------*/ +char ** getPrefAttributesValues(const char * xpath, const char ** attributes, const unsigned int attrLen) +{ + xmlDocPtr doc = NULL; + xmlXPathContextPtr xpathCtxt = NULL; + xmlXPathObjectPtr xpathObj = NULL; + char ** ret = NULL; + + if (!xpath || !attributes || !attrLen) + { + return NULL; + } + + getDocAndCtxt(&doc, &xpathCtxt); + if (doc == NULL || xpathCtxt == NULL) + { + return NULL; + } + + xpathObj = xmlXPathEval((const xmlChar*)xpath, xpathCtxt); + if (xpathObj && xpathObj->nodesetval && xpathObj->nodesetval->nodeMax) + { + unsigned int i; + xmlNode * node = (xmlNode*)xpathObj->nodesetval->nodeTab[0]; + ret = (char**)MALLOC(sizeof(char*) * attrLen); + if (!ret) + { + xmlXPathFreeObject(xpathObj); + xmlXPathFreeContext(xpathCtxt); + xmlFreeDoc(doc); + return NULL; + } + + for (i = 0; i < attrLen; i++) + { + xmlAttr * attrs = xmlHasProp(node, (const xmlChar *)attributes[i]); + if (attrs) + { + ret[i] = strdup((const char *)attrs->children->content); + } + + if (!attrs || !ret[i]) + { + unsigned int j; + for (j = 0; j < i; j++) + { + free(ret[j]); + } + FREE(ret); + ret = NULL; + break; + } + } + } + + if (xpathObj) + { + xmlXPathFreeObject(xpathObj); + } + + xmlXPathFreeContext(xpathCtxt); + xmlFreeDoc(doc); + + return ret; +} +/*--------------------------------------------------------------------------*/ +void setPrefAttributesValues(const char * xpath, const char ** kv, const unsigned int kvLen) +{ + xmlDocPtr doc = NULL; + xmlXPathContextPtr xpathCtxt = NULL; + xmlXPathObjectPtr xpathObj = NULL; + char * SCIHOME = NULL; + char * path = NULL; + BOOL bConvert = FALSE; + char * shortfilename_xml_conf = NULL; + + if (!xpath || !kv || !kvLen) + { + return; + } + + getDocAndCtxt(&doc, &xpathCtxt); + if (doc == NULL) + { + return; + } + + xpathObj = xmlXPathEval((const xmlChar*)xpath, xpathCtxt); + if (xpathObj && xpathObj->nodesetval && xpathObj->nodesetval->nodeMax) + { + int i; + xmlNode * node = (xmlNode*)xpathObj->nodesetval->nodeTab[0]; + for (i = 0; i < (int)kvLen / 2; i++) + { + xmlAttr * attrs = xmlHasProp(node, (const xmlChar *)kv[2 * i]); + if (attrs) + { + attrs->children->content = xmlStrdup((const xmlChar *)kv[2 * i + 1]); + } + else + { + break; + } + } + } + + if (xpathObj) + { + xmlXPathFreeObject(xpathObj); + } + + xmlXPathFreeContext(xpathCtxt); + + // Save + xmlThrDefIndentTreeOutput(1); + + SCIHOME = getSCIHOME(); + path = (char *)MALLOC(strlen(SCIHOME) + strlen(XCONF)); + + sprintf(path, XCONF, SCIHOME); + FREE(SCIHOME); + + if (FileExist(path)) + { + shortfilename_xml_conf = getshortpathname(path, &bConvert); + if (shortfilename_xml_conf) + { + xmlSaveFormatFile(shortfilename_xml_conf, doc, 2); + FREE(shortfilename_xml_conf); + shortfilename_xml_conf = NULL; + } + } + + FREE(path); + path = NULL; + + xmlFreeDoc(doc); +} diff --git a/modules/preferences/src/c/libscipreferences_algo_la-getScilabPreference.lo b/modules/preferences/src/c/libscipreferences_algo_la-getScilabPreference.lo new file mode 100755 index 000000000..8e33b0c04 --- /dev/null +++ b/modules/preferences/src/c/libscipreferences_algo_la-getScilabPreference.lo @@ -0,0 +1,12 @@ +# src/c/libscipreferences_algo_la-getScilabPreference.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/libscipreferences_algo_la-getScilabPreference.o' + +# Name of the non-PIC object +non_pic_object=none + diff --git a/modules/preferences/src/c/preferences.rc b/modules/preferences/src/c/preferences.rc new file mode 100755 index 000000000..c17ef1b65 --- /dev/null +++ b/modules/preferences/src/c/preferences.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", "preferences module" + VALUE "FileVersion", "5, 5, 2, 0" + VALUE "InternalName", "preferences module" + VALUE "LegalCopyright", "Copyright (C) 2011" + VALUE "OriginalFilename", "preferences.dll" + VALUE "ProductName", "preferences 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/preferences/src/c/preferences.vcxproj b/modules/preferences/src/c/preferences.vcxproj new file mode 100755 index 000000000..24351f30d --- /dev/null +++ b/modules/preferences/src/c/preferences.vcxproj @@ -0,0 +1,292 @@ +<?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>{7B893E9F-D032-44DE-9B71-197A29C4989B}</ProjectGuid> + <RootNamespace>preferences</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> + <AdditionalOptions>%(AdditionalOptions)</AdditionalOptions> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../includes;.;../jni;../cpp;../../../../java/jdk/include;../../../../java/jdk/include/win32;../../../../libs/intl;../../../api_scilab/includes;../../../core/includes;../../../localization/includes;../../../jvm/includes;../../../fileio/includes;../../../output_stream/includes;../../../commons/src/jni;../../../../libs/libxml2;../../../string/includes;../../../windows_tools/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;FORDLL;_DEBUG;_WINDOWS;_USRDLL;PREFERENCES_SCILAB_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <MinimalRebuild>true</MinimalRebuild> + <BasicRuntimeChecks>Default</BasicRuntimeChecks> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <PrecompiledHeader> + </PrecompiledHeader> + <WarningLevel>Level3</WarningLevel> + <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> + <DisableSpecificWarnings>4251</DisableSpecificWarnings> + </ClCompile> + <PreLinkEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile> + </ModuleDefinitionFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + <DataExecutionPrevention> + </DataExecutionPrevention> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <Optimization>Disabled</Optimization> + <AdditionalIncludeDirectories>../../includes;.;../jni;../cpp;../../../../java/jdk/include;../../../../java/jdk/include/win32;../../../../libs/intl;../../../api_scilab/includes;../../../core/includes;../../../localization/includes;../../../jvm/includes;../../../fileio/includes;../../../output_stream/includes;../../../commons/src/jni;../../../../libs/libxml2;../../../string/includes;../../../windows_tools/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;FORDLL;_DEBUG;_WINDOWS;_USRDLL;PREFERENCES_SCILAB_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <MinimalRebuild>true</MinimalRebuild> + <BasicRuntimeChecks>Default</BasicRuntimeChecks> + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> + <PrecompiledHeader> + </PrecompiledHeader> + <WarningLevel>Level3</WarningLevel> + <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> + <DisableSpecificWarnings>4251</DisableSpecificWarnings> + </ClCompile> + <PreLinkEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile> + </ModuleDefinitionFile> + <GenerateDebugInformation>true</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + <DataExecutionPrevention> + </DataExecutionPrevention> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <ClCompile> + <AdditionalOptions>%(AdditionalOptions)</AdditionalOptions> + <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>../../includes;.;../jni;../cpp;../../../../java/jdk/include;../../../../java/jdk/include/win32;../../../../libs/intl;../../../api_scilab/includes;../../../core/includes;../../../localization/includes;../../../jvm/includes;../../../fileio/includes;../../../output_stream/includes;../../../commons/src/jni;../../../../libs/libxml2;../../../string/includes;../../../windows_tools/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;FORDLL;NDEBUG;_WINDOWS;_USRDLL;PREFERENCES_SCILAB_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <StringPooling>true</StringPooling> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet> + <PrecompiledHeader> + </PrecompiledHeader> + <WarningLevel>Level3</WarningLevel> + <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> + <MultiProcessorCompilation>true</MultiProcessorCompilation> + <DisableSpecificWarnings>4251</DisableSpecificWarnings> + </ClCompile> + <PreLinkEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile> + </ModuleDefinitionFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <LinkTimeCodeGeneration> + </LinkTimeCodeGeneration> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + <DataExecutionPrevention> + </DataExecutionPrevention> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX86</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> + <Midl> + <TargetEnvironment>X64</TargetEnvironment> + </Midl> + <ClCompile> + <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> + <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <WholeProgramOptimization>false</WholeProgramOptimization> + <AdditionalIncludeDirectories>../../includes;.;../jni;../cpp;../../../../java/jdk/include;../../../../java/jdk/include/win32;../../../../libs/intl;../../../api_scilab/includes;../../../core/includes;../../../localization/includes;../../../jvm/includes;../../../fileio/includes;../../../output_stream/includes;../../../commons/src/jni;../../../../libs/libxml2;../../../string/includes;../../../windows_tools/includes;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> + <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;FORDLL;NDEBUG;_WINDOWS;_USRDLL;PREFERENCES_SCILAB_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <StringPooling>true</StringPooling> + <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> + <EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet> + <PrecompiledHeader> + </PrecompiledHeader> + <WarningLevel>Level3</WarningLevel> + <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> + <MultiProcessorCompilation>true</MultiProcessorCompilation> + <DisableSpecificWarnings>4251</DisableSpecificWarnings> + </ClCompile> + <PreLinkEvent> + <Message>Make dependencies</Message> + <Command>lib /DEF:"$(ProjectDir)core_import.def" /SUBSYSTEM:WINDOWS /MACHINE:$(Platform) /OUT:"$(ProjectDir)core.lib" 1>NUL 2>NUL +</Command> + </PreLinkEvent> + <Link> + <AdditionalDependencies>core.lib;%(AdditionalDependencies)</AdditionalDependencies> + <OutputFile>$(SolutionDir)bin\$(ProjectName).dll</OutputFile> + <ModuleDefinitionFile> + </ModuleDefinitionFile> + <GenerateDebugInformation>false</GenerateDebugInformation> + <SubSystem>Windows</SubSystem> + <OptimizeReferences>true</OptimizeReferences> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <LinkTimeCodeGeneration> + </LinkTimeCodeGeneration> + <RandomizedBaseAddress>false</RandomizedBaseAddress> + <DataExecutionPrevention> + </DataExecutionPrevention> + <ImportLibrary>$(SolutionDir)bin\$(ProjectName).lib</ImportLibrary> + <TargetMachine>MachineX64</TargetMachine> + <CLRUnmanagedCodeCheck>true</CLRUnmanagedCodeCheck> + </Link> + </ItemDefinitionGroup> + <ItemGroup> + <None Include="core_import.def" /> + <None Include="..\..\Makefile.am" /> + <None Include="..\..\preferences.iss" /> + <None Include="..\..\sci_gateway\preferences_gateway.xml" /> + </ItemGroup> + <ItemGroup> + <ResourceCompile Include="preferences.rc" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\..\..\api_scilab\api_scilab.vcxproj"> + <Project>{43c5bab1-1dca-4743-a183-77e0d42fe7d0}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\..\..\commons\src\c\commons.vcxproj"> + <Project>{eca09a1e-6d12-4a47-92e1-a671c181df77}</Project> + </ProjectReference> + <ProjectReference Include="..\..\..\fileio\fileio.vcxproj"> + <Project>{4fc72d4a-80ee-4b1a-8724-0201c1a35621}</Project> + </ProjectReference> + <ProjectReference Include="..\..\..\jvm\libjvm.vcxproj"> + <Project>{8ba2dda8-bd04-4d4d-8ee6-6caa955f7470}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </ProjectReference> + <ProjectReference Include="..\..\..\localization\src\localization.vcxproj"> + <Project>{ecffeb0c-1eda-45ee-9a10-b18143852e17}</Project> + <ReferenceOutputAssembly>false</ReferenceOutputAssembly> + </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> + </ProjectReference> + </ItemGroup> + <ItemGroup> + <ClCompile Include="..\..\sci_gateway\cpp\sci_addModulePreferences.cpp" /> + <ClCompile Include="..\..\sci_gateway\cpp\sci_preferences.cpp" /> + <ClCompile Include="..\..\sci_gateway\cpp\sci_removeModulePreferences.cpp" /> + <ClCompile Include="..\..\sci_gateway\c\gw_preferences.c" /> + <ClCompile Include="..\jni\ScilabPreferences.cpp" /> + <ClCompile Include="DllmainPreferences.c" /> + <ClCompile Include="getScilabPreference.c" /> + </ItemGroup> + <ItemGroup> + <ClInclude Include="..\..\includes\dynlib_preferences_scilab.h" /> + <ClInclude Include="..\..\includes\getScilabPreference.h" /> + <ClInclude Include="..\..\includes\gw_preferences.h" /> + <ClInclude Include="..\jni\ScilabPreferences.hxx" /> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/modules/preferences/src/c/preferences.vcxproj.filters b/modules/preferences/src/c/preferences.vcxproj.filters new file mode 100755 index 000000000..6968f7503 --- /dev/null +++ b/modules/preferences/src/c/preferences.vcxproj.filters @@ -0,0 +1,75 @@ +<?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>{03fbdde8-2541-40ee-b83f-7bda6ed23378}</UniqueIdentifier> + <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions> + </Filter> + <Filter Include="Header Files"> + <UniqueIdentifier>{55490fa8-9302-4001-9210-cbc2aa6747ec}</UniqueIdentifier> + <Extensions>h;hpp;hxx;hm;inl</Extensions> + </Filter> + <Filter Include="localization"> + <UniqueIdentifier>{7ed96ca6-802f-40a5-910e-a6881cf98c3d}</UniqueIdentifier> + </Filter> + <Filter Include="Libraries Dependencies"> + <UniqueIdentifier>{a56ef58c-a5d4-410e-b230-a14d884ad982}</UniqueIdentifier> + </Filter> + <Filter Include="Libraries Dependencies\Imports"> + <UniqueIdentifier>{e60d124f-f2a9-42ae-9bd7-2d37894651db}</UniqueIdentifier> + </Filter> + <Filter Include="Resource Files"> + <UniqueIdentifier>{abf739f5-063b-407b-a7a1-8b18fdebd6ca}</UniqueIdentifier> + </Filter> + </ItemGroup> + <ItemGroup> + <None Include="core_import.def"> + <Filter>Libraries Dependencies\Imports</Filter> + </None> + <None Include="..\..\Makefile.am" /> + <None Include="..\..\preferences.iss" /> + <None Include="..\..\sci_gateway\preferences_gateway.xml" /> + </ItemGroup> + <ItemGroup> + <ResourceCompile Include="preferences.rc"> + <Filter>Resource Files</Filter> + </ResourceCompile> + </ItemGroup> + <ItemGroup> + <ClCompile Include="DllmainPreferences.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\jni\ScilabPreferences.cpp"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\c\gw_preferences.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\cpp\sci_addModulePreferences.cpp"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\cpp\sci_removeModulePreferences.cpp"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="getScilabPreference.c"> + <Filter>Source Files</Filter> + </ClCompile> + <ClCompile Include="..\..\sci_gateway\cpp\sci_preferences.cpp"> + <Filter>Source Files</Filter> + </ClCompile> + </ItemGroup> + <ItemGroup> + <ClInclude Include="..\jni\ScilabPreferences.hxx"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\dynlib_preferences_scilab.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\gw_preferences.h"> + <Filter>Header Files</Filter> + </ClInclude> + <ClInclude Include="..\..\includes\getScilabPreference.h"> + <Filter>Header Files</Filter> + </ClInclude> + </ItemGroup> +</Project>
\ No newline at end of file |