mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 09:12:45 +08:00
Update MuParser source
Drop build system artefacts and move to versioned directory. Tarball from https://github.com/beltoforion/muparser/archive/v2.2.5.tar.gz with samples/example2 directory removed.
This commit is contained in:
parent
bd18736ee5
commit
86b1c5a5a4
|
@ -69,7 +69,7 @@ extra_confdir = @extra_confdir@
|
|||
#
|
||||
# muparser
|
||||
#
|
||||
MUPARSER_DIR = muparser
|
||||
MUPARSER_DIR = muparser-2.2.5
|
||||
MUPARSER_LIBDIR = $(MUPARSER_DIR)/lib
|
||||
MUPARSER_LIB = $(MUPARSER_LIBDIR)/libmuparser.a
|
||||
MUPARSER_H = $(MUPARSER_DIR)/include/muParser.h
|
||||
|
|
|
@ -686,7 +686,7 @@ EXTRA_MUPARSER=
|
|||
AC_MSG_NOTICE([using included MuParser library])
|
||||
# unfortunately these get added to the global configuration
|
||||
ac_configure_args="$ac_configure_args --enable-shared=no --enable-samples=no --enable-debug=no"
|
||||
AC_CONFIG_SUBDIRS([muparser])
|
||||
AC_CONFIG_SUBDIRS([muparser-2.2.5])
|
||||
|
||||
MUPARSER_CXXFLAGS='-I$(MUPARSER_DIR)/include'
|
||||
MUPARSER_LIBS='-L$(MUPARSER_LIBDIR) -lmuparser'
|
||||
|
|
122
muparser/bk-deps
122
muparser/bk-deps
|
@ -1,122 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# This script is part of Bakefile (http://www.bakefile.org) autoconf
|
||||
# script. It is used to track C/C++ files dependencies in portable way.
|
||||
#
|
||||
# Permission is given to use this file in any way.
|
||||
|
||||
DEPSMODE=gcc
|
||||
DEPSFLAG="-no-cpp-precomp -MMD"
|
||||
DEPSDIRBASE=.deps
|
||||
|
||||
if test $DEPSMODE = gcc ; then
|
||||
$* ${DEPSFLAG}
|
||||
status=$?
|
||||
|
||||
# determine location of created files:
|
||||
while test $# -gt 0; do
|
||||
case "$1" in
|
||||
-o )
|
||||
shift
|
||||
objfile=$1
|
||||
;;
|
||||
-* )
|
||||
;;
|
||||
* )
|
||||
srcfile=$1
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
objfilebase=`basename $objfile`
|
||||
builddir=`dirname $objfile`
|
||||
depfile=`basename $srcfile | sed -e 's/\..*$/.d/g'`
|
||||
depobjname=`echo $depfile |sed -e 's/\.d/.o/g'`
|
||||
depsdir=$builddir/$DEPSDIRBASE
|
||||
mkdir -p $depsdir
|
||||
|
||||
# if the compiler failed, we're done:
|
||||
if test ${status} != 0 ; then
|
||||
rm -f $depfile
|
||||
exit ${status}
|
||||
fi
|
||||
|
||||
# move created file to the location we want it in:
|
||||
if test -f $depfile ; then
|
||||
sed -e "s,$depobjname:,$objfile:,g" $depfile >${depsdir}/${objfilebase}.d
|
||||
rm -f $depfile
|
||||
else
|
||||
# "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
|
||||
depfile=`echo "$objfile" | sed -e 's/\..*$/.d/g'`
|
||||
if test ! -f $depfile ; then
|
||||
# "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
|
||||
depfile="$objfile.d"
|
||||
fi
|
||||
if test -f $depfile ; then
|
||||
sed -e "\,^$objfile,!s,$depobjname:,$objfile:,g" $depfile >${depsdir}/${objfilebase}.d
|
||||
rm -f $depfile
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
|
||||
elif test $DEPSMODE = mwcc ; then
|
||||
$* || exit $?
|
||||
# Run mwcc again with -MM and redirect into the dep file we want
|
||||
# NOTE: We can't use shift here because we need $* to be valid
|
||||
prevarg=
|
||||
for arg in $* ; do
|
||||
if test "$prevarg" = "-o"; then
|
||||
objfile=$arg
|
||||
else
|
||||
case "$arg" in
|
||||
-* )
|
||||
;;
|
||||
* )
|
||||
srcfile=$arg
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
prevarg="$arg"
|
||||
done
|
||||
|
||||
objfilebase=`basename $objfile`
|
||||
builddir=`dirname $objfile`
|
||||
depsdir=$builddir/$DEPSDIRBASE
|
||||
mkdir -p $depsdir
|
||||
|
||||
$* $DEPSFLAG >${depsdir}/${objfilebase}.d
|
||||
exit 0
|
||||
|
||||
elif test $DEPSMODE = unixcc; then
|
||||
$* || exit $?
|
||||
# Run compiler again with deps flag and redirect into the dep file.
|
||||
# It doesn't work if the '-o FILE' option is used, but without it the
|
||||
# dependency file will contain the wrong name for the object. So it is
|
||||
# removed from the command line, and the dep file is fixed with sed.
|
||||
cmd=""
|
||||
while test $# -gt 0; do
|
||||
case "$1" in
|
||||
-o )
|
||||
shift
|
||||
objfile=$1
|
||||
;;
|
||||
* )
|
||||
eval arg$#=\$1
|
||||
cmd="$cmd \$arg$#"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
objfilebase=`basename $objfile`
|
||||
builddir=`dirname $objfile`
|
||||
depsdir=$builddir/$DEPSDIRBASE
|
||||
mkdir -p $depsdir
|
||||
|
||||
eval "$cmd $DEPSFLAG" | sed "s|.*:|$objfile:|" >${depsdir}/${objfilebase}.d
|
||||
exit 0
|
||||
|
||||
else
|
||||
$*
|
||||
exit $?
|
||||
fi
|
1992
muparser/build/autoconf/aclocal.m4
vendored
1992
muparser/build/autoconf/aclocal.m4
vendored
File diff suppressed because it is too large
Load Diff
|
@ -1,50 +0,0 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Author: Francesco Montorsi
|
||||
# RCS-ID: $Id: acregen.sh 236 2009-11-24 23:12:00Z frm $
|
||||
# Creation date: 14/9/2005
|
||||
#
|
||||
# A simple script to generate the configure script
|
||||
# Some features of this version:
|
||||
# - automatic test for aclocal version
|
||||
# - able to be called from any folder
|
||||
# (i.e. you can call it typing 'build/autoconf/acregen.sh', not only './acregen.sh')
|
||||
|
||||
|
||||
# called when an old version of aclocal is found
|
||||
function aclocalold()
|
||||
{
|
||||
echo "Your aclocal version is $aclocal_maj.$aclocal_min.$aclocal_rel"
|
||||
echo "Your automake installation is too old; please install automake >= $aclocal_minimal_maj.$aclocal_minimal_min.$aclocal_minimal_rel"
|
||||
echo "You can download automake from ftp://sources.redhat.com/pub/automake/"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# first check if we have an ACLOCAL version recent enough
|
||||
aclocal_verfull=$(aclocal --version)
|
||||
aclocal_maj=`echo $aclocal_verfull | sed 's/aclocal (GNU automake) \([0-9]*\).\([0-9]*\).\([0-9]*\).*/\1/'`
|
||||
aclocal_min=`echo $aclocal_verfull | sed 's/aclocal (GNU automake) \([0-9]*\).\([0-9]*\).\([0-9]*\).*/\2/'`
|
||||
aclocal_rel=`echo $aclocal_verfull | sed 's/aclocal (GNU automake) \([0-9]*\).\([0-9]*\).\([0-9]*\).*/\3/'`
|
||||
if [[ "$aclocal_rel" = "" ]]; then aclocal_rel="0"; fi
|
||||
|
||||
#echo "Your aclocal version is $aclocal_maj.$aclocal_min.$aclocal_rel" # for debugging
|
||||
|
||||
aclocal_minimal_maj=1
|
||||
aclocal_minimal_min=9
|
||||
aclocal_minimal_rel=6
|
||||
|
||||
majok=$(($aclocal_maj > $aclocal_minimal_maj))
|
||||
minok=$(($aclocal_maj == $aclocal_minimal_maj && $aclocal_min > $aclocal_minimal_min))
|
||||
relok=$(($aclocal_maj == $aclocal_minimal_maj && $aclocal_min == $aclocal_minimal_min && \
|
||||
$aclocal_rel >= $aclocal_minimal_rel))
|
||||
|
||||
versionok=$(($majok == 1 || $minok == 1 || $relok == 1))
|
||||
if [[ "$versionok" = "0" ]]; then aclocalold; fi
|
||||
|
||||
# we can safely proceed
|
||||
me=$(basename $0)
|
||||
path=${0%%/$me} # path from which the script has been launched
|
||||
current=$(pwd)
|
||||
cd $path
|
||||
aclocal && autoconf && mv configure ../..
|
||||
cd $current
|
|
@ -1,134 +0,0 @@
|
|||
dnl ### begin block 00_header[muparser.bkl] ###
|
||||
dnl
|
||||
dnl This macro was generated by
|
||||
dnl Bakefile 0.2.9 (http://www.bakefile.org)
|
||||
dnl Do not modify, all changes will be overwritten!
|
||||
|
||||
BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.9"
|
||||
|
||||
dnl ### begin block 20_COND_DEBUG_0[muparser.bkl] ###
|
||||
COND_DEBUG_0="#"
|
||||
if test "x$DEBUG" = "x0" ; then
|
||||
COND_DEBUG_0=""
|
||||
fi
|
||||
AC_SUBST(COND_DEBUG_0)
|
||||
dnl ### begin block 20_COND_DEBUG_1[muparser.bkl] ###
|
||||
COND_DEBUG_1="#"
|
||||
if test "x$DEBUG" = "x1" ; then
|
||||
COND_DEBUG_1=""
|
||||
fi
|
||||
AC_SUBST(COND_DEBUG_1)
|
||||
dnl ### begin block 20_COND_DEPS_TRACKING_0[muparser.bkl] ###
|
||||
COND_DEPS_TRACKING_0="#"
|
||||
if test "x$DEPS_TRACKING" = "x0" ; then
|
||||
COND_DEPS_TRACKING_0=""
|
||||
fi
|
||||
AC_SUBST(COND_DEPS_TRACKING_0)
|
||||
dnl ### begin block 20_COND_DEPS_TRACKING_1[muparser.bkl] ###
|
||||
COND_DEPS_TRACKING_1="#"
|
||||
if test "x$DEPS_TRACKING" = "x1" ; then
|
||||
COND_DEPS_TRACKING_1=""
|
||||
fi
|
||||
AC_SUBST(COND_DEPS_TRACKING_1)
|
||||
dnl ### begin block 20_COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1[muparser.bkl] ###
|
||||
COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
|
||||
if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
|
||||
COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
|
||||
fi
|
||||
AC_SUBST(COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1)
|
||||
dnl ### begin block 20_COND_PLATFORM_MACOSX_0_USE_SOVERSION_1[muparser.bkl] ###
|
||||
COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
|
||||
if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
|
||||
COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
|
||||
fi
|
||||
AC_SUBST(COND_PLATFORM_MACOSX_0_USE_SOVERSION_1)
|
||||
dnl ### begin block 20_COND_PLATFORM_MACOSX_1[muparser.bkl] ###
|
||||
COND_PLATFORM_MACOSX_1="#"
|
||||
if test "x$PLATFORM_MACOSX" = "x1" ; then
|
||||
COND_PLATFORM_MACOSX_1=""
|
||||
fi
|
||||
AC_SUBST(COND_PLATFORM_MACOSX_1)
|
||||
dnl ### begin block 20_COND_PLATFORM_MACOSX_1_USE_SOVERSION_1[muparser.bkl] ###
|
||||
COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
|
||||
if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
|
||||
COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
|
||||
fi
|
||||
AC_SUBST(COND_PLATFORM_MACOSX_1_USE_SOVERSION_1)
|
||||
dnl ### begin block 20_COND_PLATFORM_MAC_0[muparser.bkl] ###
|
||||
COND_PLATFORM_MAC_0="#"
|
||||
if test "x$PLATFORM_MAC" = "x0" ; then
|
||||
COND_PLATFORM_MAC_0=""
|
||||
fi
|
||||
AC_SUBST(COND_PLATFORM_MAC_0)
|
||||
dnl ### begin block 20_COND_PLATFORM_MAC_1[muparser.bkl] ###
|
||||
COND_PLATFORM_MAC_1="#"
|
||||
if test "x$PLATFORM_MAC" = "x1" ; then
|
||||
COND_PLATFORM_MAC_1=""
|
||||
fi
|
||||
AC_SUBST(COND_PLATFORM_MAC_1)
|
||||
dnl ### begin block 20_COND_PLATFORM_OS2_1[muparser.bkl] ###
|
||||
COND_PLATFORM_OS2_1="#"
|
||||
if test "x$PLATFORM_OS2" = "x1" ; then
|
||||
COND_PLATFORM_OS2_1=""
|
||||
fi
|
||||
AC_SUBST(COND_PLATFORM_OS2_1)
|
||||
dnl ### begin block 20_COND_SAMPLES_1[muparser.bkl] ###
|
||||
COND_SAMPLES_1="#"
|
||||
if test "x$SAMPLES" = "x1" ; then
|
||||
COND_SAMPLES_1=""
|
||||
fi
|
||||
AC_SUBST(COND_SAMPLES_1)
|
||||
dnl ### begin block 20_COND_SHARED_0[muparser.bkl] ###
|
||||
COND_SHARED_0="#"
|
||||
if test "x$SHARED" = "x0" ; then
|
||||
COND_SHARED_0=""
|
||||
fi
|
||||
AC_SUBST(COND_SHARED_0)
|
||||
dnl ### begin block 20_COND_SHARED_1[muparser.bkl] ###
|
||||
COND_SHARED_1="#"
|
||||
if test "x$SHARED" = "x1" ; then
|
||||
COND_SHARED_1=""
|
||||
fi
|
||||
AC_SUBST(COND_SHARED_1)
|
||||
dnl ### begin block 20_COND_USE_SOTWOSYMLINKS_1[muparser.bkl] ###
|
||||
COND_USE_SOTWOSYMLINKS_1="#"
|
||||
if test "x$USE_SOTWOSYMLINKS" = "x1" ; then
|
||||
COND_USE_SOTWOSYMLINKS_1=""
|
||||
fi
|
||||
AC_SUBST(COND_USE_SOTWOSYMLINKS_1)
|
||||
dnl ### begin block 20_COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1[muparser.bkl] ###
|
||||
COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
|
||||
if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
|
||||
COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
|
||||
fi
|
||||
AC_SUBST(COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1)
|
||||
dnl ### begin block 20_COND_USE_SOVERLINUX_1[muparser.bkl] ###
|
||||
COND_USE_SOVERLINUX_1="#"
|
||||
if test "x$USE_SOVERLINUX" = "x1" ; then
|
||||
COND_USE_SOVERLINUX_1=""
|
||||
fi
|
||||
AC_SUBST(COND_USE_SOVERLINUX_1)
|
||||
dnl ### begin block 20_COND_USE_SOVERSION_0[muparser.bkl] ###
|
||||
COND_USE_SOVERSION_0="#"
|
||||
if test "x$USE_SOVERSION" = "x0" ; then
|
||||
COND_USE_SOVERSION_0=""
|
||||
fi
|
||||
AC_SUBST(COND_USE_SOVERSION_0)
|
||||
dnl ### begin block 20_COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1[muparser.bkl] ###
|
||||
COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#"
|
||||
if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then
|
||||
COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1=""
|
||||
fi
|
||||
AC_SUBST(COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1)
|
||||
dnl ### begin block 20_COND_USE_SOVERSOLARIS_1[muparser.bkl] ###
|
||||
COND_USE_SOVERSOLARIS_1="#"
|
||||
if test "x$USE_SOVERSOLARIS" = "x1" ; then
|
||||
COND_USE_SOVERSOLARIS_1=""
|
||||
fi
|
||||
AC_SUBST(COND_USE_SOVERSOLARIS_1)
|
||||
dnl ### begin block 20_COND_WINDOWS_IMPLIB_1[muparser.bkl] ###
|
||||
COND_WINDOWS_IMPLIB_1="#"
|
||||
if test "x$WINDOWS_IMPLIB" = "x1" ; then
|
||||
COND_WINDOWS_IMPLIB_1=""
|
||||
fi
|
||||
AC_SUBST(COND_WINDOWS_IMPLIB_1)
|
|
@ -1,156 +0,0 @@
|
|||
dnl ---------------------------------------------------------------------------
|
||||
dnl Support macros for makefiles generated with Bakefile presets
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl AM_YESNO_OPTCHECK([name of the boolean variable to set],
|
||||
dnl [name of the variable with yes/no values],
|
||||
dnl [name of the --enable/--with option])
|
||||
dnl
|
||||
dnl Converts the $3 variable, supposed to contain a yes/no value to a 1/0
|
||||
dnl boolean variable and saves the result into $1.
|
||||
dnl Outputs also the standard checking-option message.
|
||||
dnl Used by the m4 macros of the presets.
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AC_DEFUN([AC_BAKEFILE_YESNO_OPTCHECK],
|
||||
[
|
||||
AC_MSG_CHECKING([for the $3 option])
|
||||
if [[ "x$$2" = "xyes" ]]; then
|
||||
AC_MSG_RESULT([yes])
|
||||
$1=1
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
$1=0
|
||||
fi
|
||||
])
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl AC_BAKEFILE_UNICODEOPT([default value for the --enable-unicode option])
|
||||
dnl
|
||||
dnl Adds the --enable-unicode option to the configure script and sets the
|
||||
dnl UNICODE=0/1 variable accordingly to the value of the option.
|
||||
dnl To be used with unicodeopt.bkl preset.
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AC_DEFUN([AC_BAKEFILE_UNICODEOPT],
|
||||
[
|
||||
default="$1"
|
||||
if [[ -z "$default" ]]; then
|
||||
default="no"
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE([unicode],
|
||||
AC_HELP_STRING([--enable-unicode], [Builds in Unicode mode]),
|
||||
[], [enableval="$default"])
|
||||
|
||||
AC_BAKEFILE_YESNO_OPTCHECK([UNICODE], [enableval], [--enable-unicode])
|
||||
])
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl AC_BAKEFILE_DEBUGOPT([default value for the --enable-debug option])
|
||||
dnl
|
||||
dnl Adds the --enable-debug option to the configure script and sets the
|
||||
dnl DEBUG=0/1 variable accordingly to the value of the option.
|
||||
dnl To be used with debugopt.bkl preset.
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AC_DEFUN([AC_BAKEFILE_DEBUGOPT],
|
||||
[
|
||||
default="$1"
|
||||
if [[ -z "$default" ]]; then
|
||||
default="no"
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE([debug],
|
||||
AC_HELP_STRING([--enable-debug], [Builds in debug mode]),
|
||||
[], [enableval="$default"])
|
||||
|
||||
AC_BAKEFILE_YESNO_OPTCHECK([DEBUG], [enableval], [--enable-debug])
|
||||
|
||||
dnl add the optimize/debug flags
|
||||
if [[ "x$DEBUG" = "x1" ]]; then
|
||||
|
||||
dnl NOTE: the -Wundef and -Wno-ctor-dtor-privacy are not enabled automatically by -Wall
|
||||
dnl NOTE2: the '-Wno-ctor-dtor-privacy' has sense only when compiling C++ source files
|
||||
dnl and thus we must be careful to add it only to CXXFLAGS and not to CFLAGS
|
||||
dnl (remember that CPPFLAGS is reserved for both C and C++ compilers while
|
||||
dnl CFLAGS is intended as flags for C compiler only and CXXFLAGS for C++ only)
|
||||
my_CXXFLAGS="$my_CXXFLAGS -g -O0 -Wall -Wundef -Wno-ctor-dtor-privacy"
|
||||
my_CFLAGS="$my_CFLAGS -g -O0 -Wall -Wundef"
|
||||
else
|
||||
my_CXXFLAGS="$my_CXXFLAGS -O2"
|
||||
my_CFLAGS="$my_CFLAGS -O2"
|
||||
fi
|
||||
# User-supplied CXXFLAGS must always take precedence.
|
||||
# This still sucks because using `make CFLAGS=-foobar` kills
|
||||
# the project-supplied flags again.
|
||||
CXXFLAGS="$my_CXXFLAGS $CXXFLAGS"
|
||||
CFLAGS="$my_CFLAGS $CFLAGS"
|
||||
])
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl AC_BAKEFILE_SHAREDOPT([default value for the --enable-shared option])
|
||||
dnl
|
||||
dnl Adds the --enable-shared option to the configure script and sets the
|
||||
dnl SHARED=0/1 variable accordingly to the value of the option.
|
||||
dnl To be used with sharedopt.bkl preset.
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AC_DEFUN([AC_BAKEFILE_SHAREDOPT],
|
||||
[
|
||||
default="$1"
|
||||
if [[ -z "$default" ]]; then
|
||||
default="no"
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE([shared],
|
||||
AC_HELP_STRING([--enable-shared], [Builds in shared mode]),
|
||||
[], [enableval="$default"])
|
||||
|
||||
AC_BAKEFILE_YESNO_OPTCHECK([SHARED], [enableval], [--enable-shared])
|
||||
])
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl AC_BAKEFILE_SHOW_DEBUGOPT
|
||||
dnl
|
||||
dnl Prints a message on stdout about the value of the DEBUG variable.
|
||||
dnl This macro is useful to show summary messages at the end of the configure scripts.
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AC_DEFUN([AC_BAKEFILE_SHOW_DEBUGOPT],
|
||||
[
|
||||
if [[ "$DEBUG" = "1" ]]; then
|
||||
echo " - DEBUG build"
|
||||
else
|
||||
echo " - RELEASE build"
|
||||
fi
|
||||
])
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl AC_BAKEFILE_SHOW_SHAREDOPT
|
||||
dnl
|
||||
dnl Prints a message on stdout about the value of the SHARED variable.
|
||||
dnl This macro is useful to show summary messages at the end of the configure scripts.
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AC_DEFUN([AC_BAKEFILE_SHOW_SHAREDOPT],
|
||||
[
|
||||
if [[ "$SHARED" = "1" ]]; then
|
||||
echo " - SHARED mode"
|
||||
else
|
||||
echo " - STATIC mode"
|
||||
fi
|
||||
])
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl AC_BAKEFILE_SHOW_UNICODEOPT
|
||||
dnl
|
||||
dnl Prints a message on stdout about the value of the UNICODE variable.
|
||||
dnl This macro is useful to show summary messages at the end of the configure scripts.
|
||||
dnl ---------------------------------------------------------------------------
|
||||
AC_DEFUN([AC_BAKEFILE_SHOW_UNICODEOPT],
|
||||
[
|
||||
if [[ "$UNICODE" = "1" ]]; then
|
||||
echo " - UNICODE mode"
|
||||
else
|
||||
echo " - ANSI mode"
|
||||
fi
|
||||
])
|
||||
|
||||
|
1497
muparser/build/autoconf/config.guess
vendored
1497
muparser/build/autoconf/config.guess
vendored
File diff suppressed because it is too large
Load Diff
1608
muparser/build/autoconf/config.sub
vendored
1608
muparser/build/autoconf/config.sub
vendored
File diff suppressed because it is too large
Load Diff
|
@ -1,82 +0,0 @@
|
|||
# ======================================================================================
|
||||
# Author: Francesco Montorsi
|
||||
# RCS-ID: $Id: configure.ac 634 2012-12-22 10:34:32Z ibg $
|
||||
# ======================================================================================
|
||||
|
||||
|
||||
# NOTE:
|
||||
# the version of the project must be updated also in docs/Doxyfile !
|
||||
AC_INIT([muparser], [2.2.4], [muparser@beltoforion.de])
|
||||
|
||||
AC_PREREQ([2.57])
|
||||
AC_CONFIG_AUX_DIR([build/autoconf])
|
||||
AC_LANG(C++)
|
||||
|
||||
# some helpers
|
||||
m4_include(bakefile-presets.m4)
|
||||
|
||||
|
||||
|
||||
## CONFIGURE CHECKS
|
||||
#####################################################################
|
||||
|
||||
dnl This allows us to use Bakefile, recognizing the system type
|
||||
dnl (and sets the AC_CANONICAL_BUILD, AC_CANONICAL_HOST and
|
||||
dnl AC_CANONICAL_TARGET variables)
|
||||
AC_CANONICAL_SYSTEM
|
||||
|
||||
# We want to inhibit AC_PROG_C* macros adding the default "-g -O2" flags.
|
||||
# To do so, make sure that the variables are not unset - it is ok if they are
|
||||
# empty. However, their value MUST be retained, since one may have
|
||||
# called ./configure CFLAGS=-foobar.
|
||||
CFLAGS="$CFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS"
|
||||
CXXFLAGS="$CXXFLAGS"
|
||||
|
||||
dnl Checks for basic programs used to compile/install.
|
||||
AC_PROG_AWK
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_LN_S
|
||||
AC_PROG_RANLIB
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXX
|
||||
AC_PROG_CXXCPP
|
||||
|
||||
|
||||
AC_BAKEFILE_DEBUGOPT([no])
|
||||
AC_BAKEFILE_SHAREDOPT([yes])
|
||||
|
||||
AC_ARG_ENABLE([samples],
|
||||
AC_HELP_STRING([--enable-samples], [Builds the library samples, too]),
|
||||
[], [enableval="yes"])
|
||||
AC_BAKEFILE_YESNO_OPTCHECK([SAMPLES], [enableval], [--enable-samples])
|
||||
|
||||
dnl Create the output folders in the current build directory
|
||||
dnl (this handles cases like:
|
||||
dnl mkdir mybuild && cd mybuild && ../configure && make )
|
||||
AS_MKDIR_P(lib)
|
||||
AS_MKDIR_P(samples/example1)
|
||||
|
||||
AC_BAKEFILE([m4_include(autoconf_inc.m4)])
|
||||
AC_CONFIG_FILES([Makefile build/autoconf/muparser.pc])
|
||||
AC_OUTPUT
|
||||
|
||||
|
||||
|
||||
## CONFIGURE END MESSAGE
|
||||
#####################################################################
|
||||
|
||||
echo
|
||||
echo " ----------------------------------------------------------------"
|
||||
echo " Configuration for $PACKAGE_NAME $PACKAGE_VERSION successfully completed."
|
||||
echo " Summary of main configuration settings for $PACKAGE_NAME:"
|
||||
AC_BAKEFILE_SHOW_SHAREDOPT
|
||||
AC_BAKEFILE_SHOW_DEBUGOPT
|
||||
if [[ "$SAMPLES" = "1" ]]; then
|
||||
echo " - SAMPLES enabled"
|
||||
else
|
||||
echo " - SAMPLES disabled"
|
||||
fi
|
||||
echo " Now, just run make."
|
||||
echo " ----------------------------------------------------------------"
|
||||
echo
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
Name: @PACKAGE_NAME@
|
||||
Description: Mathematical expressions parser library
|
||||
Version: @PACKAGE_VERSION@
|
||||
Requires:
|
||||
Libs: -L${libdir} -lmuparser
|
||||
Cflags: -I${includedir}
|
|
@ -1,39 +0,0 @@
|
|||
<?xml version="1.0" ?>
|
||||
|
||||
<!-- RCS-ID: $Id: Bakefiles.bkgen 635 2012-12-22 10:58:11Z ibg $ -->
|
||||
|
||||
<bakefile-gen xmlns="http://www.bakefile.org/schema/bakefile-gen">
|
||||
|
||||
<!-- you probably need to edit only this tag -->
|
||||
<input>muparser.bkl</input>
|
||||
|
||||
<disable-formats>dmars,dmars_smake,cbx_unix,cbuilderx,msevc4prj</disable-formats>
|
||||
<!-- <add-formats>autoconf,borland,mingw,msvc,watcom,msvs2003prj,msvs2005prj,msvs2008prj</add-formats> -->
|
||||
<add-formats>autoconf,mingw,msvc</add-formats>
|
||||
|
||||
<add-flags formats="mingw">-o ../makefile.mingw</add-flags>
|
||||
<add-flags formats="msvc">-o ../makefile.vc</add-flags>
|
||||
|
||||
<!-- change 20121221: Project files for msvc 2008 and 2010 are managed manually.
|
||||
msvc 2005, borland and watcom are no longer supported.
|
||||
<add-flags formats="borland">-o ../makefile.bcc</add-flags>
|
||||
<add-flags formats="watcom">-o ../makefile.wat</add-flags>
|
||||
<add-flags formats="msvs2005prj">-o ../msvc2005/muparser.sln</add-flags>
|
||||
<add-flags formats="msvs2008prj">-o ../msvc2008/muparser.sln</add-flags>
|
||||
-->
|
||||
|
||||
<!-- since it's standard on Unix to have Makefile.in and the configure script in
|
||||
the root folder of the component to build, we put Makefile.in one directory up... -->
|
||||
<add-flags formats="autoconf">
|
||||
-o../../Makefile.in
|
||||
</add-flags>
|
||||
|
||||
<!-- ...anyway, we don't want to fill the component's root with files which are
|
||||
useless for the user and just make the component looks "messy"; thus all
|
||||
autoconf files are still kept in build\; only "configure" and "Makefile.in"
|
||||
will go in the component's root -->
|
||||
<add-flags formats="autoconf">
|
||||
-DAUTOCONF_MACROS_FILE=../autoconf/autoconf_inc.m4
|
||||
</add-flags>
|
||||
|
||||
</bakefile-gen>
|
|
@ -1,28 +0,0 @@
|
|||
These are basic instructions for recreating the project files:
|
||||
|
||||
Changing the version number:
|
||||
----------------------------
|
||||
build/autoconf/configure.ac
|
||||
Line 9:
|
||||
AC_INIT ....
|
||||
|
||||
Change SO version
|
||||
-----------------
|
||||
muparser.bkl / tag <so_version>
|
||||
|
||||
Updating the make- and projectfiles:
|
||||
------------------------------------
|
||||
Clearing old project and makefiles:
|
||||
bakefile_gen -c
|
||||
|
||||
Remaking Projects and Makefiles:
|
||||
bakefile_gen
|
||||
|
||||
In addition to that automake must be started to create the new configure script:
|
||||
rm -rf autoconf/autom4te.cache autoconf/aclocal.m4
|
||||
../autoconf/acregen.sh
|
||||
|
||||
!!! IMPORTANT !!!
|
||||
When building bakefile from the tar.gz archive make sure to
|
||||
use the option --prefix=/usr wit the config file since its
|
||||
path will default to /usr/local. This would cause strange errors!
|
|
@ -1,160 +0,0 @@
|
|||
<?xml version="1.0" ?>
|
||||
|
||||
<!-- RCS-ID: $Id: muparser.bkl 635 2012-12-22 10:58:11Z ibg $ -->
|
||||
|
||||
<makefile>
|
||||
|
||||
<requires version="0.2.5"/>
|
||||
<using module="pkgconfig"/>
|
||||
|
||||
<include file="presets/debugopt.bkl"/>
|
||||
<include file="presets/sharedopt.bkl"/>
|
||||
<include file="presets/setbuilddir.bkl"/>
|
||||
|
||||
<!-- put all object files under the OBJ folder -->
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="BUILDDIR">obj$(DIRSEP)$(BUILDDIR)</set>
|
||||
</if>
|
||||
|
||||
<set var="DEBUG_BUILD_POSTFIX">
|
||||
<if cond="DEBUG=='0'"></if>
|
||||
<if cond="DEBUG=='1'">d</if>
|
||||
</set>
|
||||
|
||||
|
||||
<!-- Sources for this library -->
|
||||
<!-- ======================== -->
|
||||
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<!-- Note that since autoconf 2.60 the top_builddir variable does
|
||||
not ends with '/' anymore... -->
|
||||
<set var="LIBOUTPATH">$(top_builddir)/lib</set>
|
||||
<set var="SAMPLEOUTPATH">$(top_builddir)/samples</set>
|
||||
</if>
|
||||
<if cond="'msv' in FORMAT">
|
||||
<!-- match all MSVC visual studio formats -->
|
||||
<set-srcdir>../..</set-srcdir>
|
||||
</if>
|
||||
<if cond="FORMAT in [ 'borland', 'mingw', 'watcom', 'msvc' ]">
|
||||
<set-srcdir>..</set-srcdir>
|
||||
</if>
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="LIBOUTPATH">$(SRCDIR)/lib</set>
|
||||
<set var="SAMPLEOUTPATH">$(SRCDIR)/samples</set>
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
<!-- Settings for this library -->
|
||||
<!-- ========================= -->
|
||||
|
||||
<template id="muparser_base" template="debugopt">
|
||||
<!-- tell Bakefile to define the MUPARSER_DLL symbol when building in shared mode -->
|
||||
<define>$(substituteFromDict(SHARED, {'1':'MUPARSER_DLL', '0':''}))</define>
|
||||
<define>$(substituteFromDict(SHARED, {'1':'MUPARSERLIB_EXPORTS', '0':''}))</define>
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<define>_WIN32</define>
|
||||
</if>
|
||||
|
||||
<sources>$(fileList('src/*.cpp'))</sources>
|
||||
<headers>$(fileList('include/*.h'))</headers>
|
||||
<dirname>$(LIBOUTPATH)</dirname>
|
||||
<include>$(SRCDIR)/include</include>
|
||||
|
||||
<install-to>$(LIBDIR)</install-to>
|
||||
<install-headers-to>$(PREFIX)</install-headers-to>
|
||||
</template>
|
||||
|
||||
<lib id="muParser_lib" template="muparser_base" cond="SHARED=='0'">
|
||||
<libname>muparser$(DEBUG_BUILD_POSTFIX)</libname>
|
||||
</lib>
|
||||
<dll id="muParser_dll" template="muparser_base" cond="SHARED=='1'">
|
||||
<dllname>muparser$(DEBUG_BUILD_POSTFIX)</dllname>
|
||||
<libname>muparser$(DEBUG_BUILD_POSTFIX)</libname>
|
||||
|
||||
<version>2.2</version>
|
||||
<so_version>2.2.4</so_version>
|
||||
<mac_version>1</mac_version> <!-- must be > 0 -->
|
||||
</dll>
|
||||
|
||||
<!-- this makes the MSVC6 project files much nicer... -->
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS">muParser=muParser_lib+muParser_dll</set>
|
||||
|
||||
<!-- Installs the PKG-CONFIG file -->
|
||||
<pkgconfig id="pkgconfig" cond="FORMAT=='autoconf'">
|
||||
<src>build/autoconf/muparser.pc</src>
|
||||
</pkgconfig>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Samples for the library -->
|
||||
<!-- ======================= -->
|
||||
|
||||
<if cond="FORMAT_SUPPORTS_CONDITIONS=='1'">
|
||||
<option name="SAMPLES">
|
||||
<values>0,1</values>
|
||||
<default-value>1</default-value>
|
||||
<description>Set to 1 to compile samples</description>
|
||||
</option>
|
||||
</if>
|
||||
<if cond="FORMAT_SUPPORTS_CONDITIONS=='0'">
|
||||
<!-- Avoid to create IDE project files with multiple configurations
|
||||
which differ only for the SAMPLES=0/1 option! -->
|
||||
<set var="SAMPLES">1</set>
|
||||
</if>
|
||||
|
||||
<template id="muparser_sample" template="debugopt">
|
||||
<library>muParser_lib</library>
|
||||
<include>$(SRCDIR)/include</include>
|
||||
<lib-path>$(SRCDIR)/lib</lib-path>
|
||||
</template>
|
||||
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<exe id="example1" template="muparser_sample" cond="SAMPLES=='1' and SHARED=='0'">
|
||||
<sources>$(fileList('samples/example1/*.cpp'))</sources>
|
||||
<dirname>$(SAMPLEOUTPATH)/example1</dirname>
|
||||
<define>$(substituteFromDict(SHARED, {'1':'USINGDLL', '0':''}))</define>
|
||||
</exe>
|
||||
</if>
|
||||
<if cond="FORMAT=='autoconf'">
|
||||
<!-- On Unix this sample is always available -->
|
||||
<exe id="example1" template="muparser_sample" cond="SAMPLES=='1'">
|
||||
<sources>$(fileList('samples/example1/*.cpp'))</sources>
|
||||
<dirname>$(SAMPLEOUTPATH)/example1</dirname>
|
||||
</exe>
|
||||
</if>
|
||||
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<!-- This samples is win32-specific (it uses the DLL interface) -->
|
||||
<exe id="example2" template="muparser_sample" cond="SAMPLES=='1' and SHARED=='1'">
|
||||
<sources>$(fileList('samples/example2/*.c'))</sources>
|
||||
<dirname>$(SAMPLEOUTPATH)/example2</dirname>
|
||||
<define>$(substituteFromDict(SHARED, {'1':'USINGDLL', '0':''}))</define>
|
||||
</exe>
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
<!-- Some helpers for command-line makefiles -->
|
||||
<!-- ======================================= -->
|
||||
|
||||
<phony id="lib">
|
||||
<depends>muParser_lib</depends>
|
||||
<depends>muParser_dll</depends>
|
||||
</phony>
|
||||
|
||||
<phony id="samples">
|
||||
<depends>example1</depends>
|
||||
<!-- <depends cond="FORMAT in [ 'msvc', 'msvc6prj' ]">example2</depends> -->
|
||||
<depends cond="FORMAT!='autoconf'">example2</depends>
|
||||
</phony>
|
||||
|
||||
<if cond="FORMAT_SUPPORTS_ACTIONS=='1'">
|
||||
<action id="documentation">
|
||||
<command>( cd $(SRCDIR)$(DIRSEP)docs && doxygen )</command>
|
||||
</action>
|
||||
</if>
|
||||
|
||||
</makefile>
|
||||
|
|
@ -1,55 +0,0 @@
|
|||
<?xml version="1.0" ?>
|
||||
<!-- $Id: debugopt.bkl 40 2006-12-02 15:22:02Z frm $ -->
|
||||
|
||||
<!--
|
||||
|
||||
Adds the logic for handling a DEBUG=0/1 option, which switches between debug and
|
||||
release builds.
|
||||
|
||||
Usage: use template "debugopt" for your targets:
|
||||
|
||||
<include file="presets/debugopt.bkl"/>
|
||||
|
||||
<exe id="myapp" template="debugopt">
|
||||
<sources>myapp.cpp</sources>
|
||||
</exe>
|
||||
|
||||
-->
|
||||
|
||||
<makefile>
|
||||
|
||||
<set var="DEBUG_DEFAULT" overwrite="0">0</set>
|
||||
<option name="DEBUG">
|
||||
<values>0,1</values>
|
||||
<default-value>$(DEBUG_DEFAULT)</default-value>
|
||||
<values-description>Release,Debug</values-description>
|
||||
<description>Set to 1 to build debug version</description>
|
||||
</option>
|
||||
|
||||
<template id="debugopt">
|
||||
<define>
|
||||
$(substituteFromDict(DEBUG,{'1':'','0':'NDEBUG'}))
|
||||
</define>
|
||||
<optimize>
|
||||
$(substituteFromDict(DEBUG,{'1':'off','0':'speed'}))
|
||||
</optimize>
|
||||
<debug-info>
|
||||
$(substituteFromDict(DEBUG,{'1':'on','0':'off'}))
|
||||
</debug-info>
|
||||
<warnings>
|
||||
$(substituteFromDict(DEBUG,{'1':'max','0':'no'}))
|
||||
</warnings>
|
||||
<debug-runtime-libs>
|
||||
$(substituteFromDict(DEBUG,{'1':'on','0':'off'}))
|
||||
</debug-runtime-libs>
|
||||
</template>
|
||||
|
||||
|
||||
<!-- The DEBUGBUILDPOSTFIX variable is useful to set the BUILDDIR variable
|
||||
as done in presets/setbuilddir.bkl -->
|
||||
<set var="DEBUGBUILDPOSTFIX">
|
||||
<if cond="DEBUG=='0'">rel</if>
|
||||
<if cond="DEBUG=='1'">dbg</if>
|
||||
</set>
|
||||
|
||||
</makefile>
|
|
@ -1,63 +0,0 @@
|
|||
<?xml version="1.0" ?>
|
||||
<!-- $Id: setbuilddir.bkl 40 2006-12-02 15:22:02Z frm $ -->
|
||||
|
||||
<!--
|
||||
|
||||
Adds the logic for setting BUILDDIR in a smart way, checking which other presets have been
|
||||
included. Include this preset after including all other presets.
|
||||
|
||||
Usage:
|
||||
|
||||
<include file="presets/sharedopt.bkl"/>
|
||||
<include file="presets/unicodeopt.bkl"/>
|
||||
<include file="presets/debugopt.bkl"/>
|
||||
<include file="presets/setbuilddir.bkl"/>
|
||||
|
||||
<lib id="mylib_static" template="debugopt,unicodeopt" cond="SHARED=='0'">
|
||||
<sources>mylib.cpp</sources>
|
||||
</lib>
|
||||
|
||||
<dll id="mylib_shared" template="debugopt,unicodeopt" cond="SHARED=='1'">
|
||||
<sources>mylib.cpp</sources>
|
||||
</dll>
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS">mylib=mylib_static+mylib_shared</set>
|
||||
-->
|
||||
|
||||
<makefile>
|
||||
|
||||
<!--
|
||||
Setting the BUILDDIR variable using the
|
||||
SHAREDBUILDPOSTFIX/DEBUGBUILDPOSTFIX/UNICODEBUILDPOSTFIX
|
||||
variables we will keep separed the intermediate files (objects, compiled resources, exes, libs)
|
||||
generated using SHARED/DEBUG/UNICODE=0 from those generated using SHARED/DEBUG/UNICODE=1.
|
||||
|
||||
Using the same BUILDDIR for these different configurations would force the
|
||||
user to call a "make clean" (or equivalent) before rebuilding since it's not wise
|
||||
mixing a shared build with a static one or a debug build with a release one
|
||||
or a unicode build with an ansi one.
|
||||
|
||||
Last, using the COMPILER when setting BUILDDIR keeps separed the object files generated using
|
||||
different compilers (in case makefiles for different compilers are generated in the same directory).
|
||||
|
||||
NOTE: the autoconf format requires BUILDDIR='.' since using different build directories
|
||||
is already handled by the configure script.
|
||||
E.g.
|
||||
for debug builds: mkdir dbg && cd dbg && ../configure - -enable-debug
|
||||
for release builds: mkdir rel && cd rel && ../configure - -disable-debug
|
||||
...
|
||||
See autoconf documentation for more info.
|
||||
-->
|
||||
|
||||
<!-- some helpers -->
|
||||
<set var="SHRDSTR"><if cond="isdefined('SHAREDBUILDPOSTFIX')">_$(SHAREDBUILDPOSTFIX)</if></set>
|
||||
<set var="DBGSTR"><if cond="isdefined('DEBUGBUILDPOSTFIX')">_$(DEBUGBUILDPOSTFIX)</if></set>
|
||||
<set var="UNICSTR"><if cond="isdefined('UNICODEBUILDPOSTFIX')">_$(UNICODEBUILDPOSTFIX)</if></set>
|
||||
|
||||
<if cond="FORMAT!='autoconf'">
|
||||
<set var="BUILDDIR">
|
||||
$(COMPILER)$(SHRDSTR)$(DBGSTR)$(UNICSTR)
|
||||
</set>
|
||||
</if>
|
||||
|
||||
</makefile>
|
|
@ -1,42 +0,0 @@
|
|||
<?xml version="1.0" ?>
|
||||
<!-- $Id: sharedopt.bkl 40 2006-12-02 15:22:02Z frm $ -->
|
||||
|
||||
<!--
|
||||
|
||||
Adds the logic for handling a SHARED=0/1 option, which switches between static and
|
||||
shared (DLL) builds.
|
||||
|
||||
Usage: use template "sharedopt" for your targets:
|
||||
|
||||
<include file="presets/sharedopt.bkl"/>
|
||||
|
||||
<lib id="mylib_static" cond="SHARED=='0'">
|
||||
<sources>mylib.cpp</sources>
|
||||
</lib>
|
||||
|
||||
<dll id="mylib_shared" cond="SHARED=='1'">
|
||||
<sources>mylib.cpp</sources>
|
||||
</dll>
|
||||
|
||||
<set var="MSVC6PRJ_MERGED_TARGETS">mylib=mylib_static+mylib_shared</set>
|
||||
-->
|
||||
|
||||
<makefile>
|
||||
|
||||
<set var="SHARED_DEFAULT" overwrite="0">0</set>
|
||||
<option name="SHARED">
|
||||
<values>0,1</values>
|
||||
<default-value>$(SHARED_DEFAULT)</default-value>
|
||||
<values-description>Static,DLL</values-description>
|
||||
<description>Set to 1 to build shared (DLL) version</description>
|
||||
</option>
|
||||
|
||||
|
||||
<!-- The SHAREDBUILDPOSTFIX variable is useful to set the BUILDDIR variable
|
||||
as done in presets/setbuilddir.bkl -->
|
||||
<set var="SHAREDBUILDPOSTFIX">
|
||||
<if cond="SHARED=='0'">static</if>
|
||||
<if cond="SHARED=='1'">shared</if>
|
||||
</set>
|
||||
|
||||
</makefile>
|
|
@ -1,43 +0,0 @@
|
|||
<?xml version="1.0" ?>
|
||||
<!-- $Id: unicodeopt.bkl 40 2006-12-02 15:22:02Z frm $ -->
|
||||
|
||||
<!--
|
||||
|
||||
Adds the logic for handling a UNICODE=0/1 option, which switches between unicode and
|
||||
ansi builds.
|
||||
|
||||
Usage: use template "unicodeopt" for your targets:
|
||||
|
||||
<include file="presets/unicodeopt.bkl"/>
|
||||
|
||||
<exe id="myapp" template="unicodeopt">
|
||||
<sources>myapp.cpp</sources>
|
||||
</exe>
|
||||
|
||||
-->
|
||||
|
||||
<makefile>
|
||||
|
||||
<set var="UNICODE_DEFAULT" overwrite="0">0</set>
|
||||
<option name="UNICODE">
|
||||
<values>0,1</values>
|
||||
<default-value>$(UNICODE_DEFAULT)</default-value>
|
||||
<values-description>ANSI,Unicode</values-description>
|
||||
<description>Set to 1 to build Unicode version</description>
|
||||
</option>
|
||||
|
||||
<template id="unicodeopt">
|
||||
<define>
|
||||
$(substituteFromDict(UNICODE,{'1':'_UNICODE','0':''}))
|
||||
</define>
|
||||
</template>
|
||||
|
||||
|
||||
<!-- The UNICODEBUILDPOSTFIX variable is useful to set the BUILDDIR variable
|
||||
as done in presets/setbuilddir.bkl -->
|
||||
<set var="UNICODEBUILDPOSTFIX">
|
||||
<if cond="UNICODE=='0'">a</if>
|
||||
<if cond="UNICODE=='1'">u</if>
|
||||
</set>
|
||||
|
||||
</makefile>
|
|
@ -1,283 +0,0 @@
|
|||
# =========================================================================
|
||||
# This makefile was generated by
|
||||
# Bakefile 0.2.9 (http://www.bakefile.org)
|
||||
# Do not modify, all changes will be overwritten!
|
||||
# =========================================================================
|
||||
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# These are configurable options:
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
# Compiler flags to link shared library
|
||||
LINK_DLL_FLAGS ?= -shared
|
||||
|
||||
# C compiler
|
||||
CC = gcc
|
||||
|
||||
# C++ compiler
|
||||
CXX = g++
|
||||
|
||||
# Standard flags for CC
|
||||
CFLAGS ?=
|
||||
|
||||
# Standard flags for C++
|
||||
CXXFLAGS ?=
|
||||
|
||||
# Standard preprocessor flags (common for CC and CXX)
|
||||
CPPFLAGS ?=
|
||||
|
||||
# Standard linker flags
|
||||
LDFLAGS ?=
|
||||
|
||||
# Set to 1 to build debug version [0,1]
|
||||
DEBUG ?= 0
|
||||
|
||||
# Set to 1 to build shared (DLL) version [0,1]
|
||||
SHARED ?= 0
|
||||
|
||||
# Set to 1 to compile samples [0,1]
|
||||
SAMPLES ?= 1
|
||||
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Do not modify the rest of this file!
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
### Variables: ###
|
||||
|
||||
CPPDEPS = -MT$@ -MF$@.d -MD -MP
|
||||
MUPARSER_LIB_CXXFLAGS = $(____DEBUG) $(____DEBUG_3) $(____DEBUG_9) \
|
||||
$(____DEBUG_8) $(____SHARED) $(____SHARED_0) -D_WIN32 -I..\include \
|
||||
$(CPPFLAGS) $(CXXFLAGS)
|
||||
MUPARSER_LIB_OBJECTS = \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParser.o \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserBase.o \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserBytecode.o \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserCallback.o \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserDLL.o \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserError.o \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserInt.o \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserTest.o \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserTokenReader.o
|
||||
MUPARSER_DLL_CXXFLAGS = $(____DEBUG) $(____DEBUG_3) $(____DEBUG_9) \
|
||||
$(____DEBUG_8) $(____SHARED) $(____SHARED_0) -D_WIN32 -I..\include \
|
||||
$(CPPFLAGS) $(CXXFLAGS)
|
||||
MUPARSER_DLL_OBJECTS = \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParser.o \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserBase.o \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserBytecode.o \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserCallback.o \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserDLL.o \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserError.o \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserInt.o \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserTest.o \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserTokenReader.o
|
||||
EXAMPLE1_CXXFLAGS = $(____DEBUG) $(____DEBUG_3) $(____DEBUG_9) $(____DEBUG_8) \
|
||||
-I..\include $(____SHARED_1) $(CPPFLAGS) $(CXXFLAGS)
|
||||
EXAMPLE1_OBJECTS = \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\example1_example1.o
|
||||
EXAMPLE2_CFLAGS = $(____DEBUG) $(____DEBUG_3) $(____DEBUG_9) $(____DEBUG_8) \
|
||||
-I..\include $(____SHARED_1) $(CPPFLAGS) $(CFLAGS)
|
||||
EXAMPLE2_OBJECTS = \
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\example2_example2.o
|
||||
|
||||
### Conditionally set variables: ###
|
||||
|
||||
ifeq ($(DEBUG),0)
|
||||
DEBUGBUILDPOSTFIX = rel
|
||||
endif
|
||||
ifeq ($(DEBUG),1)
|
||||
DEBUGBUILDPOSTFIX = dbg
|
||||
endif
|
||||
ifeq ($(SHARED),0)
|
||||
SHAREDBUILDPOSTFIX = static
|
||||
endif
|
||||
ifeq ($(SHARED),1)
|
||||
SHAREDBUILDPOSTFIX = shared
|
||||
endif
|
||||
ifeq ($(DEBUG),0)
|
||||
DEBUG_BUILD_POSTFIX =
|
||||
endif
|
||||
ifeq ($(DEBUG),1)
|
||||
DEBUG_BUILD_POSTFIX = d
|
||||
endif
|
||||
ifeq ($(SHARED),0)
|
||||
__muParser_lib___depname = ..\lib\libmuparser$(DEBUG_BUILD_POSTFIX).a
|
||||
endif
|
||||
ifeq ($(SHARED),1)
|
||||
__muParser_dll___depname = ..\lib\muparser$(DEBUG_BUILD_POSTFIX).dll
|
||||
endif
|
||||
ifeq ($(SAMPLES),1)
|
||||
ifeq ($(SHARED),0)
|
||||
__example1___depname = ..\samples\example1\example1.exe
|
||||
endif
|
||||
endif
|
||||
ifeq ($(SAMPLES),1)
|
||||
ifeq ($(SHARED),1)
|
||||
__example2___depname = ..\samples\example2\example2.exe
|
||||
endif
|
||||
endif
|
||||
ifeq ($(SHARED),0)
|
||||
____SHARED =
|
||||
endif
|
||||
ifeq ($(SHARED),1)
|
||||
____SHARED = -DMUPARSER_DLL
|
||||
endif
|
||||
ifeq ($(SHARED),0)
|
||||
____SHARED_0 =
|
||||
endif
|
||||
ifeq ($(SHARED),1)
|
||||
____SHARED_0 = -DMUPARSERLIB_EXPORTS
|
||||
endif
|
||||
ifeq ($(DEBUG),0)
|
||||
____DEBUG = -DNDEBUG
|
||||
endif
|
||||
ifeq ($(DEBUG),1)
|
||||
____DEBUG =
|
||||
endif
|
||||
ifeq ($(DEBUG),0)
|
||||
____DEBUG_3 = -O2
|
||||
endif
|
||||
ifeq ($(DEBUG),1)
|
||||
____DEBUG_3 = -O0
|
||||
endif
|
||||
ifeq ($(DEBUG),0)
|
||||
____DEBUG_8 =
|
||||
endif
|
||||
ifeq ($(DEBUG),1)
|
||||
____DEBUG_8 = -W -Wall
|
||||
endif
|
||||
ifeq ($(SHARED),0)
|
||||
____SHARED_1 =
|
||||
endif
|
||||
ifeq ($(SHARED),1)
|
||||
____SHARED_1 = -DUSINGDLL
|
||||
endif
|
||||
ifeq ($(DEBUG),0)
|
||||
____DEBUG_9 =
|
||||
endif
|
||||
ifeq ($(DEBUG),1)
|
||||
____DEBUG_9 = -g
|
||||
endif
|
||||
|
||||
|
||||
all: obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX):
|
||||
-if not exist obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX) mkdir obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)
|
||||
|
||||
### Targets: ###
|
||||
|
||||
all: $(__muParser_lib___depname) $(__muParser_dll___depname) $(__example1___depname) $(__example2___depname)
|
||||
|
||||
clean:
|
||||
-if exist obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\*.o del obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\*.o
|
||||
-if exist obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\*.d del obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\*.d
|
||||
-if exist ..\lib\libmuparser$(DEBUG_BUILD_POSTFIX).a del ..\lib\libmuparser$(DEBUG_BUILD_POSTFIX).a
|
||||
-if exist ..\lib\muparser$(DEBUG_BUILD_POSTFIX).dll del ..\lib\muparser$(DEBUG_BUILD_POSTFIX).dll
|
||||
-if exist ..\lib\libmuparser$(DEBUG_BUILD_POSTFIX).a del ..\lib\libmuparser$(DEBUG_BUILD_POSTFIX).a
|
||||
-if exist ..\samples\example1\example1.exe del ..\samples\example1\example1.exe
|
||||
-if exist ..\samples\example2\example2.exe del ..\samples\example2\example2.exe
|
||||
|
||||
ifeq ($(SHARED),0)
|
||||
..\lib\libmuparser$(DEBUG_BUILD_POSTFIX).a: $(MUPARSER_LIB_OBJECTS)
|
||||
if exist $@ del $@
|
||||
ar rcu $@ $(MUPARSER_LIB_OBJECTS)
|
||||
ranlib $@
|
||||
endif
|
||||
|
||||
ifeq ($(SHARED),1)
|
||||
..\lib\muparser$(DEBUG_BUILD_POSTFIX).dll: $(MUPARSER_DLL_OBJECTS)
|
||||
$(CXX) $(LINK_DLL_FLAGS) -fPIC -o $@ $(MUPARSER_DLL_OBJECTS) $(____DEBUG_9) -Wl,--out-implib=..\lib\libmuparser$(DEBUG_BUILD_POSTFIX).a $(LDFLAGS)
|
||||
endif
|
||||
|
||||
ifeq ($(SAMPLES),1)
|
||||
ifeq ($(SHARED),0)
|
||||
..\samples\example1\example1.exe: $(EXAMPLE1_OBJECTS) $(__muParser_lib___depname)
|
||||
$(CXX) -o $@ $(EXAMPLE1_OBJECTS) $(____DEBUG_9) -L..\lib $(LDFLAGS) ..\lib\libmuparser$(DEBUG_BUILD_POSTFIX).a
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(SAMPLES),1)
|
||||
ifeq ($(SHARED),1)
|
||||
..\samples\example2\example2.exe: $(EXAMPLE2_OBJECTS) $(__muParser_lib___depname)
|
||||
$(CC) -o $@ $(EXAMPLE2_OBJECTS) $(____DEBUG_9) -L..\lib $(LDFLAGS) ..\lib\libmuparser$(DEBUG_BUILD_POSTFIX).a
|
||||
endif
|
||||
endif
|
||||
|
||||
lib: $(__muParser_lib___depname) $(__muParser_dll___depname)
|
||||
|
||||
samples: $(__example1___depname) $(__example2___depname)
|
||||
|
||||
documentation:
|
||||
( cd ..\docs && doxygen )
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParser.o: ../src/muParser.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_LIB_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserBase.o: ../src/muParserBase.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_LIB_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserBytecode.o: ../src/muParserBytecode.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_LIB_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserCallback.o: ../src/muParserCallback.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_LIB_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserDLL.o: ../src/muParserDLL.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_LIB_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserError.o: ../src/muParserError.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_LIB_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserInt.o: ../src/muParserInt.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_LIB_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserTest.o: ../src/muParserTest.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_LIB_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserTokenReader.o: ../src/muParserTokenReader.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_LIB_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParser.o: ../src/muParser.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_DLL_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserBase.o: ../src/muParserBase.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_DLL_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserBytecode.o: ../src/muParserBytecode.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_DLL_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserCallback.o: ../src/muParserCallback.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_DLL_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserDLL.o: ../src/muParserDLL.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_DLL_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserError.o: ../src/muParserError.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_DLL_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserInt.o: ../src/muParserInt.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_DLL_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserTest.o: ../src/muParserTest.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_DLL_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserTokenReader.o: ../src/muParserTokenReader.cpp
|
||||
$(CXX) -c -o $@ $(MUPARSER_DLL_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\example1_example1.o: ../samples/example1/example1.cpp
|
||||
$(CXX) -c -o $@ $(EXAMPLE1_CXXFLAGS) $(CPPDEPS) $<
|
||||
|
||||
obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\example2_example2.o: ../samples/example2/example2.c
|
||||
$(CC) -c -o $@ $(EXAMPLE2_CFLAGS) $(CPPDEPS) $<
|
||||
|
||||
.PHONY: all clean lib samples
|
||||
|
||||
|
||||
SHELL := $(COMSPEC)
|
||||
|
||||
# Dependencies tracking:
|
||||
-include obj\gcc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)/*.d
|
|
@ -1,322 +0,0 @@
|
|||
# =========================================================================
|
||||
# This makefile was generated by
|
||||
# Bakefile 0.2.9 (http://www.bakefile.org)
|
||||
# Do not modify, all changes will be overwritten!
|
||||
# =========================================================================
|
||||
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# These are configurable options:
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
# C compiler
|
||||
CC = cl
|
||||
|
||||
# C++ compiler
|
||||
CXX = cl
|
||||
|
||||
# Standard flags for CC
|
||||
CFLAGS =
|
||||
|
||||
# Standard flags for C++
|
||||
CXXFLAGS =
|
||||
|
||||
# Standard preprocessor flags (common for CC and CXX)
|
||||
CPPFLAGS =
|
||||
|
||||
# Standard linker flags
|
||||
LDFLAGS =
|
||||
|
||||
# Set to 1 to build debug version [0,1]
|
||||
# 0 - Release
|
||||
# 1 - Debug
|
||||
DEBUG = 0
|
||||
|
||||
# Set to 1 to build shared (DLL) version [0,1]
|
||||
# 0 - Static
|
||||
# 1 - DLL
|
||||
SHARED = 0
|
||||
|
||||
# Set to 1 to compile samples [0,1]
|
||||
SAMPLES = 1
|
||||
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Do not modify the rest of this file!
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
### Variables: ###
|
||||
|
||||
MUPARSER_LIB_CXXFLAGS = /MD$(DEBUG_3) /DWIN32 $(____DEBUG_8) $(____DEBUG) \
|
||||
$(____DEBUG_9) /Fd..\lib\muparser$(DEBUG_3).pdb $(____DEBUG_6) \
|
||||
$(______DEBUG) $(____SHARED) $(____SHARED_0) /D_WIN32 /I..\include /GR /EHsc \
|
||||
$(CPPFLAGS) $(CXXFLAGS)
|
||||
MUPARSER_LIB_OBJECTS = \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParser.obj \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserBase.obj \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserBytecode.obj \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserCallback.obj \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserDLL.obj \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserError.obj \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserInt.obj \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserTest.obj \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserTokenReader.obj
|
||||
MUPARSER_DLL_CXXFLAGS = /MD$(DEBUG_3) /DWIN32 $(____DEBUG_8) $(____DEBUG) \
|
||||
$(____DEBUG_9) /Fd..\lib\muparser$(DEBUG_3).pdb $(____DEBUG_6) \
|
||||
$(______DEBUG) $(____SHARED) $(____SHARED_0) /D_WIN32 /I..\include /GR /EHsc \
|
||||
$(CPPFLAGS) $(CXXFLAGS)
|
||||
MUPARSER_DLL_OBJECTS = \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParser.obj \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserBase.obj \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserBytecode.obj \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserCallback.obj \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserDLL.obj \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserError.obj \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserInt.obj \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserTest.obj \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserTokenReader.obj
|
||||
EXAMPLE1_CXXFLAGS = /MD$(DEBUG_3) /DWIN32 $(____DEBUG_8) $(____DEBUG) \
|
||||
$(____DEBUG_9) /Fd..\samples\example1\example1.pdb $(____DEBUG_6) \
|
||||
$(______DEBUG) /I..\include $(____SHARED_1) /GR /EHsc $(CPPFLAGS) $(CXXFLAGS)
|
||||
EXAMPLE1_OBJECTS = \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\example1_example1.obj
|
||||
EXAMPLE2_CFLAGS = /MD$(DEBUG_3) /DWIN32 $(____DEBUG_8) $(____DEBUG) \
|
||||
$(____DEBUG_9) /Fd..\samples\example2\example2.pdb $(____DEBUG_6) \
|
||||
$(______DEBUG) /I..\include $(____SHARED_1) $(CPPFLAGS) $(CFLAGS)
|
||||
EXAMPLE2_OBJECTS = \
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\example2_example2.obj
|
||||
|
||||
### Conditionally set variables: ###
|
||||
|
||||
!if "$(DEBUG)" == "0"
|
||||
DEBUGBUILDPOSTFIX = rel
|
||||
!endif
|
||||
!if "$(DEBUG)" == "1"
|
||||
DEBUGBUILDPOSTFIX = dbg
|
||||
!endif
|
||||
!if "$(SHARED)" == "0"
|
||||
SHAREDBUILDPOSTFIX = static
|
||||
!endif
|
||||
!if "$(SHARED)" == "1"
|
||||
SHAREDBUILDPOSTFIX = shared
|
||||
!endif
|
||||
!if "$(SHARED)" == "0"
|
||||
__muParser_lib___depname = ..\lib\muparser$(DEBUG_3).lib
|
||||
!endif
|
||||
!if "$(SHARED)" == "1"
|
||||
__muParser_dll___depname = ..\lib\muparser$(DEBUG_3).dll
|
||||
!endif
|
||||
!if "$(DEBUG)" == "0"
|
||||
____DEBUG_23_26 =
|
||||
!endif
|
||||
!if "$(DEBUG)" == "1"
|
||||
____DEBUG_23_26 = $(____DEBUG_10)
|
||||
!endif
|
||||
!if "$(SAMPLES)" == "1" && "$(SHARED)" == "0"
|
||||
__example1___depname = ..\samples\example1\example1.exe
|
||||
!endif
|
||||
!if "$(DEBUG)" == "0"
|
||||
____DEBUG_40_43 =
|
||||
!endif
|
||||
!if "$(DEBUG)" == "1"
|
||||
____DEBUG_40_43 = $(____DEBUG_10)
|
||||
!endif
|
||||
!if "$(SAMPLES)" == "1" && "$(SHARED)" == "1"
|
||||
__example2___depname = ..\samples\example2\example2.exe
|
||||
!endif
|
||||
!if "$(DEBUG)" == "0"
|
||||
____DEBUG_56_59 =
|
||||
!endif
|
||||
!if "$(DEBUG)" == "1"
|
||||
____DEBUG_56_59 = $(____DEBUG_10)
|
||||
!endif
|
||||
!if "$(SHARED)" == "0"
|
||||
____SHARED =
|
||||
!endif
|
||||
!if "$(SHARED)" == "1"
|
||||
____SHARED = /DMUPARSER_DLL
|
||||
!endif
|
||||
!if "$(SHARED)" == "0"
|
||||
____SHARED_0 =
|
||||
!endif
|
||||
!if "$(SHARED)" == "1"
|
||||
____SHARED_0 = /DMUPARSERLIB_EXPORTS
|
||||
!endif
|
||||
!if "$(DEBUG)" == "0"
|
||||
____DEBUG_8 = /DNDEBUG
|
||||
!endif
|
||||
!if "$(DEBUG)" == "1"
|
||||
____DEBUG_8 =
|
||||
!endif
|
||||
!if "$(DEBUG)" == "0"
|
||||
____DEBUG = /O2
|
||||
!endif
|
||||
!if "$(DEBUG)" == "1"
|
||||
____DEBUG = /Od
|
||||
!endif
|
||||
!if "$(DEBUG)" == "0"
|
||||
____DEBUG_9 =
|
||||
!endif
|
||||
!if "$(DEBUG)" == "1"
|
||||
____DEBUG_9 = /Zi
|
||||
!endif
|
||||
!if "$(DEBUG)" == "0"
|
||||
____DEBUG_5 =
|
||||
!endif
|
||||
!if "$(DEBUG)" == "1"
|
||||
____DEBUG_5 = /DEBUG
|
||||
!endif
|
||||
!if "$(DEBUG)" == "0"
|
||||
____DEBUG_6 = /w
|
||||
!endif
|
||||
!if "$(DEBUG)" == "1"
|
||||
____DEBUG_6 = /W4
|
||||
!endif
|
||||
!if "$(DEBUG)" == "0"
|
||||
______DEBUG =
|
||||
!endif
|
||||
!if "$(DEBUG)" == "1"
|
||||
______DEBUG = /D_DEBUG
|
||||
!endif
|
||||
!if "$(DEBUG)" == "0"
|
||||
DEBUG_3 =
|
||||
!endif
|
||||
!if "$(DEBUG)" == "1"
|
||||
DEBUG_3 = d
|
||||
!endif
|
||||
!if "$(DEBUG)" == "0"
|
||||
____DEBUG_10 = /opt:ref /opt:icf
|
||||
!endif
|
||||
!if "$(DEBUG)" == "1"
|
||||
____DEBUG_10 =
|
||||
!endif
|
||||
!if "$(SHARED)" == "0"
|
||||
____SHARED_1 =
|
||||
!endif
|
||||
!if "$(SHARED)" == "1"
|
||||
____SHARED_1 = /DUSINGDLL
|
||||
!endif
|
||||
|
||||
|
||||
all: obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX):
|
||||
-if not exist obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX) mkdir obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)
|
||||
|
||||
### Targets: ###
|
||||
|
||||
all: $(__muParser_lib___depname) $(__muParser_dll___depname) $(__example1___depname) $(__example2___depname)
|
||||
|
||||
clean:
|
||||
-if exist obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\*.obj del obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\*.obj
|
||||
-if exist obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\*.res del obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\*.res
|
||||
-if exist obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\*.pch del obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\*.pch
|
||||
-if exist ..\lib\muparser$(DEBUG_3).lib del ..\lib\muparser$(DEBUG_3).lib
|
||||
-if exist ..\lib\muparser$(DEBUG_3).dll del ..\lib\muparser$(DEBUG_3).dll
|
||||
-if exist ..\lib\muparser$(DEBUG_3).ilk del ..\lib\muparser$(DEBUG_3).ilk
|
||||
-if exist ..\lib\muparser$(DEBUG_3).pdb del ..\lib\muparser$(DEBUG_3).pdb
|
||||
-if exist ..\lib\muparser$(DEBUG_3).lib del ..\lib\muparser$(DEBUG_3).lib
|
||||
-if exist ..\samples\example1\example1.exe del ..\samples\example1\example1.exe
|
||||
-if exist ..\samples\example1\example1.ilk del ..\samples\example1\example1.ilk
|
||||
-if exist ..\samples\example1\example1.pdb del ..\samples\example1\example1.pdb
|
||||
-if exist ..\samples\example2\example2.exe del ..\samples\example2\example2.exe
|
||||
-if exist ..\samples\example2\example2.ilk del ..\samples\example2\example2.ilk
|
||||
-if exist ..\samples\example2\example2.pdb del ..\samples\example2\example2.pdb
|
||||
|
||||
!if "$(SHARED)" == "0"
|
||||
..\lib\muparser$(DEBUG_3).lib: $(MUPARSER_LIB_OBJECTS)
|
||||
if exist $@ del $@
|
||||
link /LIB /NOLOGO /OUT:$@ @<<
|
||||
$(MUPARSER_LIB_OBJECTS)
|
||||
<<
|
||||
!endif
|
||||
|
||||
!if "$(SHARED)" == "1"
|
||||
..\lib\muparser$(DEBUG_3).dll: $(MUPARSER_DLL_OBJECTS)
|
||||
link /DLL /NOLOGO /OUT:$@ $(____DEBUG_5) /pdb:"..\lib\muparser$(DEBUG_3).pdb" $(____DEBUG_23_26) $(LDFLAGS) @<<
|
||||
$(MUPARSER_DLL_OBJECTS) /IMPLIB:..\lib\muparser$(DEBUG_3).lib
|
||||
<<
|
||||
!endif
|
||||
|
||||
!if "$(SAMPLES)" == "1" && "$(SHARED)" == "0"
|
||||
..\samples\example1\example1.exe: $(EXAMPLE1_OBJECTS) $(__muParser_lib___depname)
|
||||
link /NOLOGO /OUT:$@ $(____DEBUG_5) /pdb:"..\samples\example1\example1.pdb" $(____DEBUG_40_43) /LIBPATH:..\lib $(LDFLAGS) @<<
|
||||
$(EXAMPLE1_OBJECTS) ..\lib\muparser$(DEBUG_3).lib
|
||||
<<
|
||||
!endif
|
||||
|
||||
!if "$(SAMPLES)" == "1" && "$(SHARED)" == "1"
|
||||
..\samples\example2\example2.exe: $(EXAMPLE2_OBJECTS) $(__muParser_lib___depname)
|
||||
link /NOLOGO /OUT:$@ $(____DEBUG_5) /pdb:"..\samples\example2\example2.pdb" $(____DEBUG_56_59) /LIBPATH:..\lib $(LDFLAGS) @<<
|
||||
$(EXAMPLE2_OBJECTS) ..\lib\muparser$(DEBUG_3).lib
|
||||
<<
|
||||
!endif
|
||||
|
||||
lib: $(__muParser_lib___depname) $(__muParser_dll___depname)
|
||||
|
||||
samples: $(__example1___depname) $(__example2___depname)
|
||||
|
||||
documentation:
|
||||
( cd ..\docs && doxygen )
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParser.obj: ..\src\muParser.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_LIB_CXXFLAGS) ..\src\muParser.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserBase.obj: ..\src\muParserBase.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_LIB_CXXFLAGS) ..\src\muParserBase.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserBytecode.obj: ..\src\muParserBytecode.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_LIB_CXXFLAGS) ..\src\muParserBytecode.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserCallback.obj: ..\src\muParserCallback.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_LIB_CXXFLAGS) ..\src\muParserCallback.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserDLL.obj: ..\src\muParserDLL.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_LIB_CXXFLAGS) ..\src\muParserDLL.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserError.obj: ..\src\muParserError.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_LIB_CXXFLAGS) ..\src\muParserError.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserInt.obj: ..\src\muParserInt.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_LIB_CXXFLAGS) ..\src\muParserInt.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserTest.obj: ..\src\muParserTest.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_LIB_CXXFLAGS) ..\src\muParserTest.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_lib_muParserTokenReader.obj: ..\src\muParserTokenReader.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_LIB_CXXFLAGS) ..\src\muParserTokenReader.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParser.obj: ..\src\muParser.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_DLL_CXXFLAGS) ..\src\muParser.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserBase.obj: ..\src\muParserBase.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_DLL_CXXFLAGS) ..\src\muParserBase.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserBytecode.obj: ..\src\muParserBytecode.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_DLL_CXXFLAGS) ..\src\muParserBytecode.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserCallback.obj: ..\src\muParserCallback.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_DLL_CXXFLAGS) ..\src\muParserCallback.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserDLL.obj: ..\src\muParserDLL.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_DLL_CXXFLAGS) ..\src\muParserDLL.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserError.obj: ..\src\muParserError.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_DLL_CXXFLAGS) ..\src\muParserError.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserInt.obj: ..\src\muParserInt.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_DLL_CXXFLAGS) ..\src\muParserInt.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserTest.obj: ..\src\muParserTest.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_DLL_CXXFLAGS) ..\src\muParserTest.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\muParser_dll_muParserTokenReader.obj: ..\src\muParserTokenReader.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(MUPARSER_DLL_CXXFLAGS) ..\src\muParserTokenReader.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\example1_example1.obj: ..\samples\example1\example1.cpp
|
||||
$(CXX) /c /nologo /TP /Fo$@ $(EXAMPLE1_CXXFLAGS) ..\samples\example1\example1.cpp
|
||||
|
||||
obj\vc_$(SHAREDBUILDPOSTFIX)_$(DEBUGBUILDPOSTFIX)\example2_example2.obj: ..\samples\example2\example2.c
|
||||
$(CC) /c /nologo /TC /Fo$@ $(EXAMPLE2_CFLAGS) ..\samples\example2\example2.c
|
||||
|
|
@ -1,119 +0,0 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2013
|
||||
VisualStudioVersion = 12.0.21005.1
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "muparser", "muparser_muParser.vcxproj", "{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example1", "muparser_example1.vcxproj", "{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "example2", "muparser_example2.vcxproj", "{B405983E-B929-5BCF-8CC8-03CF34796A23}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug DLL|Any CPU = Debug DLL|Any CPU
|
||||
Debug DLL|Mixed Platforms = Debug DLL|Mixed Platforms
|
||||
Debug DLL|Win32 = Debug DLL|Win32
|
||||
Debug DLL|x64 = Debug DLL|x64
|
||||
Debug Static|Any CPU = Debug Static|Any CPU
|
||||
Debug Static|Mixed Platforms = Debug Static|Mixed Platforms
|
||||
Debug Static|Win32 = Debug Static|Win32
|
||||
Debug Static|x64 = Debug Static|x64
|
||||
Release DLL|Any CPU = Release DLL|Any CPU
|
||||
Release DLL|Mixed Platforms = Release DLL|Mixed Platforms
|
||||
Release DLL|Win32 = Release DLL|Win32
|
||||
Release DLL|x64 = Release DLL|x64
|
||||
Release Static|Any CPU = Release Static|Any CPU
|
||||
Release Static|Mixed Platforms = Release Static|Mixed Platforms
|
||||
Release Static|Win32 = Release Static|Win32
|
||||
Release Static|x64 = Release Static|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Debug DLL|Any CPU.ActiveCfg = Debug DLL|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Debug DLL|Any CPU.Build.0 = Debug DLL|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Debug DLL|Mixed Platforms.ActiveCfg = Debug DLL|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Debug DLL|Mixed Platforms.Build.0 = Debug DLL|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Debug DLL|Win32.ActiveCfg = Debug DLL|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Debug DLL|Win32.Build.0 = Debug DLL|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Debug DLL|x64.ActiveCfg = Debug DLL|x64
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Debug DLL|x64.Build.0 = Debug DLL|x64
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Debug Static|Any CPU.ActiveCfg = Debug Static|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Debug Static|Any CPU.Build.0 = Debug Static|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Debug Static|Mixed Platforms.ActiveCfg = Debug Static|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Debug Static|Mixed Platforms.Build.0 = Debug Static|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Debug Static|Win32.ActiveCfg = Debug Static|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Debug Static|Win32.Build.0 = Debug Static|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Debug Static|x64.ActiveCfg = Debug Static|x64
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Debug Static|x64.Build.0 = Debug Static|x64
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Release DLL|Any CPU.ActiveCfg = Release DLL|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Release DLL|Any CPU.Build.0 = Release DLL|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Release DLL|Mixed Platforms.ActiveCfg = Release DLL|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Release DLL|Mixed Platforms.Build.0 = Release DLL|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Release DLL|Win32.ActiveCfg = Release DLL|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Release DLL|Win32.Build.0 = Release DLL|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Release DLL|x64.ActiveCfg = Release DLL|x64
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Release DLL|x64.Build.0 = Release DLL|x64
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Release Static|Any CPU.ActiveCfg = Release Static|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Release Static|Any CPU.Build.0 = Release Static|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Release Static|Mixed Platforms.ActiveCfg = Release Static|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Release Static|Mixed Platforms.Build.0 = Release Static|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Release Static|Win32.ActiveCfg = Release Static|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Release Static|Win32.Build.0 = Release Static|Win32
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Release Static|x64.ActiveCfg = Release Static|x64
|
||||
{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}.Release Static|x64.Build.0 = Release Static|x64
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Debug DLL|Any CPU.ActiveCfg = Debug Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Debug DLL|Mixed Platforms.ActiveCfg = Debug Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Debug DLL|Mixed Platforms.Build.0 = Debug Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Debug DLL|Win32.ActiveCfg = Debug Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Debug DLL|x64.ActiveCfg = Debug Static|x64
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Debug Static|Any CPU.ActiveCfg = Debug Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Debug Static|Any CPU.Build.0 = Debug Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Debug Static|Mixed Platforms.ActiveCfg = Debug Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Debug Static|Mixed Platforms.Build.0 = Debug Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Debug Static|Win32.ActiveCfg = Debug Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Debug Static|Win32.Build.0 = Debug Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Debug Static|x64.ActiveCfg = Debug Static|x64
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Debug Static|x64.Build.0 = Debug Static|x64
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Release DLL|Any CPU.ActiveCfg = Release Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Release DLL|Mixed Platforms.ActiveCfg = Release Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Release DLL|Mixed Platforms.Build.0 = Release Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Release DLL|Win32.ActiveCfg = Release Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Release DLL|x64.ActiveCfg = Release Static|x64
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Release Static|Any CPU.ActiveCfg = Release Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Release Static|Any CPU.Build.0 = Release Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Release Static|Mixed Platforms.ActiveCfg = Release Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Release Static|Mixed Platforms.Build.0 = Release Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Release Static|Win32.ActiveCfg = Release Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Release Static|Win32.Build.0 = Release Static|Win32
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Release Static|x64.ActiveCfg = Release Static|x64
|
||||
{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}.Release Static|x64.Build.0 = Release Static|x64
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Debug DLL|Any CPU.ActiveCfg = Debug DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Debug DLL|Any CPU.Build.0 = Debug DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Debug DLL|Mixed Platforms.ActiveCfg = Debug DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Debug DLL|Mixed Platforms.Build.0 = Debug DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Debug DLL|Win32.ActiveCfg = Debug DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Debug DLL|Win32.Build.0 = Debug DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Debug DLL|x64.ActiveCfg = Debug DLL|x64
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Debug DLL|x64.Build.0 = Debug DLL|x64
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Debug Static|Any CPU.ActiveCfg = Debug DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Debug Static|Mixed Platforms.ActiveCfg = Debug DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Debug Static|Mixed Platforms.Build.0 = Debug DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Debug Static|Win32.ActiveCfg = Debug DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Debug Static|x64.ActiveCfg = Debug DLL|x64
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Release DLL|Any CPU.ActiveCfg = Release DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Release DLL|Any CPU.Build.0 = Release DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Release DLL|Mixed Platforms.ActiveCfg = Release DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Release DLL|Mixed Platforms.Build.0 = Release DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Release DLL|Win32.ActiveCfg = Release DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Release DLL|Win32.Build.0 = Release DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Release DLL|x64.ActiveCfg = Release DLL|x64
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Release DLL|x64.Build.0 = Release DLL|x64
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Release Static|Any CPU.ActiveCfg = Release DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Release Static|Mixed Platforms.ActiveCfg = Release DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Release Static|Mixed Platforms.Build.0 = Release DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Release Static|Win32.ActiveCfg = Release DLL|Win32
|
||||
{B405983E-B929-5BCF-8CC8-03CF34796A23}.Release Static|x64.ActiveCfg = Release DLL|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -1,238 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug Static|Win32">
|
||||
<Configuration>Debug Static</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug Static|x64">
|
||||
<Configuration>Debug Static</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release Static|Win32">
|
||||
<Configuration>Release Static</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release Static|x64">
|
||||
<Configuration>Release Static</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectName>example1</ProjectName>
|
||||
<ProjectGuid>{A1DCD664-8803-54E2-B35F-84D96B9CA6DF}</ProjectGuid>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Static|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug Static|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 Static|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 Static|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)'=='Release Static|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)'=='Release Static|Win32'">..\..\samples\example1\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release Static|Win32'">obj\vc_static_rel\example1\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release Static|Win32'">false</LinkIncremental>
|
||||
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Release Static|Win32'">true</GenerateManifest>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'">..\..\samples\example1\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'">obj\vc_static_dbg\example1\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'">true</LinkIncremental>
|
||||
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'">true</GenerateManifest>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'">..\..\samples\example1\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'">obj\vc_static_rel\example1\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'">..\..\samples\example1\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'">obj\vc_static_dbg\example1\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'">true</LinkIncremental>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release Static|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release Static|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release Static|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Static|Win32'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>WIN32;_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions>/MP %(AdditionalOptions)</AdditionalOptions>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<ObjectFileName>obj\vc_static_rel\example1\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>..\..\samples\example1\example1.pdb</ProgramDataBaseFileName>
|
||||
<WarningLevel>TurnOffAllWarnings</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<DebugInformationFormat>
|
||||
</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>%(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalDependencies>..\..\lib\muparser32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>..\..\samples\example1\example1.exe</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<AdditionalLibraryDirectories>..\..\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<ProgramDatabaseFile>..\..\samples\example1\example1.pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<OutputFile>..\..\samples\example1\muparser_example1.bsc</OutputFile>
|
||||
</Bscmake>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>WIN32;_CONSOLE;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions>/MP %(AdditionalOptions)</AdditionalOptions>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_CONSOLE;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<BufferSecurityCheck>true</BufferSecurityCheck>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<ObjectFileName>obj\vc_static_dbg\example1\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>..\..\samples\example1\example1.pdb</ProgramDataBaseFileName>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>%(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalDependencies>..\..\lib\muparserd32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>..\..\samples\example1\example1.exe</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<AdditionalLibraryDirectories>..\..\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<ProgramDatabaseFile>..\..\samples\example1\example1.pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<OutputFile>..\..\samples\example1\muparser_example1.bsc</OutputFile>
|
||||
</Bscmake>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'">
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<ObjectFileName>obj\vc_static_rel\example1\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>..\..\samples\example1\example1.pdb</ProgramDataBaseFileName>
|
||||
<WarningLevel>TurnOffAllWarnings</WarningLevel>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>..\..\lib\muparser64.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>..\..\samples\example1\example1.exe</OutputFile>
|
||||
<AdditionalLibraryDirectories>..\..\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<SubSystem>Console</SubSystem>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'">
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>_CONSOLE;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<EnableEnhancedInstructionSet>NotSet</EnableEnhancedInstructionSet>
|
||||
<ObjectFileName>obj\vc_static_dbg\example1\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>..\..\samples\example1\example1.pdb</ProgramDataBaseFileName>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>..\..\lib\muparserd64.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>..\..\samples\example1\example1.exe</OutputFile>
|
||||
<AdditionalLibraryDirectories>..\..\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<ProgramDatabaseFile>..\..\samples\example1\example1.pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<TargetMachine>NotSet</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\samples\example1\example1.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="muparser_muParser.vcxproj">
|
||||
<Project>{2a1f639a-7642-57cc-bf97-3ec5b5c89d91}</Project>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
|
@ -1,14 +0,0 @@
|
|||
<?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>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\samples\example1\example1.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -1,208 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug DLL|Win32">
|
||||
<Configuration>Debug DLL</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug DLL|x64">
|
||||
<Configuration>Debug DLL</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release DLL|Win32">
|
||||
<Configuration>Release DLL</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release DLL|x64">
|
||||
<Configuration>Release DLL</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectName>example2</ProjectName>
|
||||
<ProjectGuid>{B405983E-B929-5BCF-8CC8-03CF34796A23}</ProjectGuid>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|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 DLL|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 DLL|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)'=='Release DLL|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)'=='Release DLL|Win32'">..\..\samples\example2\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'">obj\vc_shared_rel\example2\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'">false</LinkIncremental>
|
||||
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'">true</GenerateManifest>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'">..\..\samples\example2\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'">obj\vc_shared_rel\example2\</IntDir>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'">..\..\samples\example2\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'">obj\vc_shared_dbg\example2\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'">true</LinkIncremental>
|
||||
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'">true</GenerateManifest>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'">..\..\samples\example2\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'">obj\vc_shared_dbg\example2\</IntDir>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>WIN32;_CONSOLE;NDEBUG;USINGDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions>/MP %(AdditionalOptions)</AdditionalOptions>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_CONSOLE;NDEBUG;USINGDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<ObjectFileName>obj\vc_shared_rel\example2\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>..\..\samples\example2\example2.pdb</ProgramDataBaseFileName>
|
||||
<WarningLevel>TurnOffAllWarnings</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<DebugInformationFormat>
|
||||
</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;NDEBUG;USINGDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>%(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalDependencies>..\..\lib\muparser32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>..\..\samples\example2\example2.exe</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<AdditionalLibraryDirectories>..\..\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<ProgramDatabaseFile>..\..\samples\example2\example2.pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<OutputFile>..\..\samples\example2\muparser_example2.bsc</OutputFile>
|
||||
</Bscmake>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'">
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>..\..\lib\muparser64.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>..\..\samples\example2\example2.exe</OutputFile>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>WIN32;_CONSOLE;_DEBUG;USINGDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions>/MP %(AdditionalOptions)</AdditionalOptions>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_CONSOLE;_DEBUG;USINGDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<BufferSecurityCheck>true</BufferSecurityCheck>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<ObjectFileName>obj\vc_shared_dbg\example2\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>..\..\samples\example2\example2.pdb</ProgramDataBaseFileName>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_CONSOLE;_DEBUG;USINGDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>%(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalDependencies>..\..\lib\muparserd32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>..\..\samples\example2\example2.exe</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<AdditionalLibraryDirectories>..\..\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<ProgramDatabaseFile>..\..\samples\example2\example2.pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<OutputFile>..\..\samples\example2\muparser_example2.bsc</OutputFile>
|
||||
</Bscmake>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>..\..\lib\muparserd64.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>..\..\samples\example2\example2.exe</OutputFile>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\samples\example2\example2.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="muparser_muParser.vcxproj">
|
||||
<Project>{2a1f639a-7642-57cc-bf97-3ec5b5c89d91}</Project>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
|
@ -1,14 +0,0 @@
|
|||
<?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>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\samples\example2\example2.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -1,411 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug DLL|Win32">
|
||||
<Configuration>Debug DLL</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug DLL|x64">
|
||||
<Configuration>Debug DLL</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug Static|Win32">
|
||||
<Configuration>Debug Static</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug Static|x64">
|
||||
<Configuration>Debug Static</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release DLL|Win32">
|
||||
<Configuration>Release DLL</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release DLL|x64">
|
||||
<Configuration>Release DLL</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release Static|Win32">
|
||||
<Configuration>Release Static</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release Static|x64">
|
||||
<Configuration>Release Static</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectName>muparser</ProjectName>
|
||||
<ProjectGuid>{2A1F639A-7642-57CC-BF97-3EC5B5C89D91}</ProjectGuid>
|
||||
<RootNamespace>muParser</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Static|Win32'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<PlatformToolset>v120</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|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 Static|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 DLL|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 Static|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 DLL|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 Static|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)'=='Release DLL|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)'=='Release Static|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)'=='Release Static|Win32'">..\..\lib\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release Static|Win32'">obj\vc_static_rel\muParser\</IntDir>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'">..\..\lib\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'">obj\vc_shared_rel\muParser\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'">false</LinkIncremental>
|
||||
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'">true</GenerateManifest>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'">..\..\lib\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'">obj\vc_static_dbg\muParser\</IntDir>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'">..\..\lib\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'">obj\vc_shared_dbg\muParser\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'">true</LinkIncremental>
|
||||
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'">true</GenerateManifest>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'">..\..\lib\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'">obj\vc_static_rel\muParser\</IntDir>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'">..\..\lib\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'">obj\vc_shared_rel\muParser\</IntDir>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'">..\..\lib\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'">obj\vc_static_dbg\muParser\</IntDir>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'">..\..\lib\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'">obj\vc_shared_dbg\muParser\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'">true</LinkIncremental>
|
||||
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'">true</GenerateManifest>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release Static|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release Static|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release Static|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Static|Win32'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>WIN32;_LIB;NDEBUG;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions>/MP %(AdditionalOptions)</AdditionalOptions>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_LIB;NDEBUG;_WIN32;MUP_USE_OPENMP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<ObjectFileName>obj\vc_static_rel\muParser\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>..\..\lib\muparser.pdb</ProgramDataBaseFileName>
|
||||
<WarningLevel>TurnOffAllWarnings</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<DebugInformationFormat>
|
||||
</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ResourceCompile>
|
||||
<Lib>
|
||||
<OutputFile>..\..\lib\muparser32.lib</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
</Lib>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<OutputFile>..\..\lib\muparser_muParser.bsc</OutputFile>
|
||||
</Bscmake>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|Win32'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>WIN32;_USRDLL;DLL_EXPORTS;NDEBUG;MUPARSER_DLL;MUPARSERLIB_EXPORTS;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions>/MP %(AdditionalOptions)</AdditionalOptions>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_USRDLL;DLL_EXPORTS;NDEBUG;MUPARSER_DLL;MUPARSERLIB_EXPORTS;_WIN32;MUP_USE_OPENMP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<OpenMPSupport>true</OpenMPSupport>
|
||||
<ObjectFileName>obj\vc_shared_rel\muParser\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>..\..\lib\muparser32.pdb</ProgramDataBaseFileName>
|
||||
<WarningLevel>TurnOffAllWarnings</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<DebugInformationFormat>
|
||||
</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;MUPARSER_DLL;MUPARSERLIB_EXPORTS;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>%(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>..\..\lib\muparser32.dll</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<ProgramDatabaseFile>..\..\lib\muparser.pdb</ProgramDatabaseFile>
|
||||
<ImportLibrary>..\..\lib\muparser32.lib</ImportLibrary>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<OutputFile>..\..\lib\muparser_muParser.bsc</OutputFile>
|
||||
</Bscmake>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Static|Win32'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>WIN32;_LIB;_DEBUG;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions>/MP %(AdditionalOptions)</AdditionalOptions>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_LIB;_DEBUG;_WIN32;MUP_USE_OPENMP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<SmallerTypeCheck>true</SmallerTypeCheck>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<BufferSecurityCheck>true</BufferSecurityCheck>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<ObjectFileName>obj\vc_static_dbg\muParser\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>..\..\lib\muparserd.pdb</ProgramDataBaseFileName>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ResourceCompile>
|
||||
<Lib>
|
||||
<OutputFile>..\..\lib\muparserd32.lib</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
</Lib>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<OutputFile>..\..\lib\muparser_muParser.bsc</OutputFile>
|
||||
</Bscmake>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|Win32'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>WIN32;_USRDLL;DLL_EXPORTS;_DEBUG;MUPARSER_DLL;MUPARSERLIB_EXPORTS;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<AdditionalOptions>/MP %(AdditionalOptions)</AdditionalOptions>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_USRDLL;DLL_EXPORTS;_DEBUG;MUPARSER_DLL;MUPARSERLIB_EXPORTS;_WIN32;_CRT_SECURE_NO_WARNINGS;MUP_USE_OPENMP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ExceptionHandling>Sync</ExceptionHandling>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<BufferSecurityCheck>true</BufferSecurityCheck>
|
||||
<RuntimeTypeInfo>true</RuntimeTypeInfo>
|
||||
<OpenMPSupport>true</OpenMPSupport>
|
||||
<ObjectFileName>obj\vc_shared_dbg\muParser\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>..\..\lib\muparserd32.pdb</ProgramDataBaseFileName>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;MUPARSER_DLL;MUPARSERLIB_EXPORTS;_WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>%(AdditionalOptions)</AdditionalOptions>
|
||||
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>..\..\lib\muparserd32.dll</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<ProgramDatabaseFile>..\..\lib\muparserd32.pdb</ProgramDatabaseFile>
|
||||
<ImportLibrary>..\..\lib\muparserd32.lib</ImportLibrary>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
<Bscmake>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<OutputFile>..\..\lib\muparser_muParser.bsc</OutputFile>
|
||||
</Bscmake>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release Static|x64'">
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>_LIB;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Lib>
|
||||
<OutputFile>..\..\lib\muparser64.lib</OutputFile>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release DLL|x64'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>_USRDLL;DLL_EXPORTS;NDEBUG;MUPARSER_DLL;MUPARSERLIB_EXPORTS;MUP_USE_OPENMP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<ObjectFileName>obj\vc_shared_rel\muParser\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>..\..\lib\muparser64.pdb</ProgramDataBaseFileName>
|
||||
<WarningLevel>TurnOffAllWarnings</WarningLevel>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<OutputFile>..\..\lib\muparser64.dll</OutputFile>
|
||||
<ImportLibrary>..\..\lib\muparser64.lib</ImportLibrary>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Static|x64'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>_LIB;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<SmallerTypeCheck>true</SmallerTypeCheck>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<Optimization>Disabled</Optimization>
|
||||
</ClCompile>
|
||||
<Lib>
|
||||
<OutputFile>..\..\lib\muparserd64.lib</OutputFile>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug DLL|x64'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>_USRDLL;DLL_EXPORTS;_DEBUG;MUPARSER_DLL;MUPARSERLIB_EXPORTS;_CRT_SECURE_NO_WARNINGS;MUP_USE_OPENMP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<ObjectFileName>obj\vc_shared_dbg\muParser\</ObjectFileName>
|
||||
<ProgramDataBaseFileName>..\..\lib\muparserd64.pdb</ProgramDataBaseFileName>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<OutputFile>..\..\lib\muparserd64.dll</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<ProgramDatabaseFile>..\..\lib\muparserd64.pdb</ProgramDatabaseFile>
|
||||
<ImportLibrary>..\..\lib\muparserd64.lib</ImportLibrary>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\src\muParser.cpp" />
|
||||
<ClCompile Include="..\..\src\muParserBase.cpp" />
|
||||
<ClCompile Include="..\..\src\muParserBytecode.cpp" />
|
||||
<ClCompile Include="..\..\src\muParserCallback.cpp" />
|
||||
<ClCompile Include="..\..\src\muParserDLL.cpp" />
|
||||
<ClCompile Include="..\..\src\muParserError.cpp" />
|
||||
<ClCompile Include="..\..\src\muParserInt.cpp" />
|
||||
<ClCompile Include="..\..\src\muParserTest.cpp" />
|
||||
<ClCompile Include="..\..\src\muParserTokenReader.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\include\muParser.h" />
|
||||
<ClInclude Include="..\..\include\muParserBase.h" />
|
||||
<ClInclude Include="..\..\include\muParserBytecode.h" />
|
||||
<ClInclude Include="..\..\include\muParserCallback.h" />
|
||||
<ClInclude Include="..\..\include\muParserDef.h" />
|
||||
<ClInclude Include="..\..\include\muParserDLL.h" />
|
||||
<ClInclude Include="..\..\include\muParserError.h" />
|
||||
<ClInclude Include="..\..\include\muParserFixes.h" />
|
||||
<ClInclude Include="..\..\include\muParserInt.h" />
|
||||
<ClInclude Include="..\..\include\muParserStack.h" />
|
||||
<ClInclude Include="..\..\include\muParserTemplateMagic.h" />
|
||||
<ClInclude Include="..\..\include\muParserTest.h" />
|
||||
<ClInclude Include="..\..\include\muParserToken.h" />
|
||||
<ClInclude Include="..\..\include\muParserTokenReader.h" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
|
@ -1,86 +0,0 @@
|
|||
<?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>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\src\muParser.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\muParserBase.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\muParserBytecode.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\muParserCallback.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\muParserDLL.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\muParserError.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\muParserInt.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\muParserTest.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\muParserTokenReader.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\include\muParser.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\include\muParserBase.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\include\muParserBytecode.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\include\muParserCallback.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\include\muParserDef.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\include\muParserDLL.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\include\muParserError.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\include\muParserFixes.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\include\muParserInt.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\include\muParserStack.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\include\muParserTest.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\include\muParserToken.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\include\muParserTokenReader.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\include\muParserTemplateMagic.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -1,18 +0,0 @@
|
|||
|
||||
__________
|
||||
_____ __ __\______ \_____ _______ ______ ____ _______
|
||||
/ \ | | \| ___/\__ \ \_ __ \/ ___/_/ __ \\_ __ \
|
||||
| Y Y \| | /| | / __ \_| | \/\___ \ \ ___/ | | \/
|
||||
|__|_| /|____/ |____| (____ /|__| /____ > \___ >|__|
|
||||
\/ \/ \/ \/
|
||||
|
||||
Copyright (C) 2010
|
||||
Ingo Berg
|
||||
|
||||
|
||||
This sample demonstrates using muParsers C-interface. The C-Interface
|
||||
is usefull when interfacing muParser from different languages such
|
||||
as C#. This sample is intended for use with the MS-Windows OS.
|
||||
|
||||
You may need to copy the muparser.dll file from the ..\..\lib
|
||||
folder in this directory in order to run this sample.
|
|
@ -1,442 +0,0 @@
|
|||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <wchar.h>
|
||||
|
||||
#include "muParserDLL.h"
|
||||
|
||||
#define PARSER_CONST_PI 3.141592653589793238462643
|
||||
#define PARSER_CONST_E 2.718281828459045235360287
|
||||
#define PARSER_MAXVARS 10
|
||||
|
||||
#ifndef _UNICODE
|
||||
#define _T(x) x
|
||||
#define myprintf printf
|
||||
#define mystrlen strlen
|
||||
#define myfgets fgets
|
||||
#define mystrcmp strcmp
|
||||
#else
|
||||
#define _T(x) L ##x
|
||||
#define myprintf wprintf
|
||||
#define mystrlen wcslen
|
||||
#define myfgets fgetws
|
||||
#define mystrcmp wcscmp
|
||||
#endif
|
||||
|
||||
extern void CalcBulk();
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Callbacks for postfix operators
|
||||
muFloat_t Mega(muFloat_t a_fVal)
|
||||
{
|
||||
return a_fVal * 1.0e6;
|
||||
}
|
||||
|
||||
muFloat_t Milli(muFloat_t a_fVal)
|
||||
{
|
||||
return a_fVal / 1.0e3;
|
||||
}
|
||||
|
||||
muFloat_t ZeroArg()
|
||||
{
|
||||
myprintf(_T("i'm a function without arguments.\n"));
|
||||
return 123;
|
||||
}
|
||||
|
||||
muFloat_t BulkTest(int nBulkIdx, int nThreadIdx, muFloat_t v1)
|
||||
{
|
||||
(void*)&nThreadIdx; // STFU compiler warning...
|
||||
myprintf(_T("%d,%2.2f\n"), nBulkIdx, v1);
|
||||
return v1 / (nBulkIdx + 1);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Callbacks for infix operators
|
||||
muFloat_t Not(muFloat_t v) { return v == 0; }
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Function callbacks
|
||||
muFloat_t Rnd(muFloat_t v) { return v * rand() / (muFloat_t)(RAND_MAX + 1.0); }
|
||||
|
||||
muFloat_t SampleQuery(const muChar_t *szMsg)
|
||||
{
|
||||
if (szMsg)
|
||||
{
|
||||
myprintf(_T("%s\n"), szMsg);
|
||||
}
|
||||
|
||||
return 999;
|
||||
}
|
||||
|
||||
muFloat_t Sum(const muFloat_t *a_afArg, int a_iArgc)
|
||||
{
|
||||
muFloat_t fRes = 0;
|
||||
int i = 0;
|
||||
|
||||
for (i = 0; i < a_iArgc; ++i)
|
||||
fRes += a_afArg[i];
|
||||
|
||||
return fRes;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Binarty operator callbacks
|
||||
muFloat_t Add(muFloat_t v1, muFloat_t v2)
|
||||
{
|
||||
return v1 + v2;
|
||||
}
|
||||
|
||||
muFloat_t Mul(muFloat_t v1, muFloat_t v2)
|
||||
{
|
||||
return v1*v2;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Factory function for creating new parser variables
|
||||
// This could as well be a function performing database queries.
|
||||
muFloat_t* AddVariable(const muChar_t* a_szName, void *pUserData)
|
||||
{
|
||||
static muFloat_t afValBuf[PARSER_MAXVARS]; // I don't want dynamic allocation here
|
||||
static int iVal = 0; // so i used this buffer
|
||||
|
||||
myprintf(_T("Generating new variable \"%s\" (slots left: %d; context pointer: 0x%x)\n"), a_szName, PARSER_MAXVARS - iVal, (int)pUserData);
|
||||
|
||||
afValBuf[iVal] = 0;
|
||||
if (iVal >= PARSER_MAXVARS - 1)
|
||||
{
|
||||
myprintf(_T("Variable buffer overflow."));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return &afValBuf[iVal++];
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
void Intro(muParserHandle_t hParser)
|
||||
{
|
||||
myprintf(_T(" __________ \n"));
|
||||
myprintf(_T(" _____ __ __\\______ \\_____ _______ ______ ____ _______\n"));
|
||||
myprintf(_T(" / \\ | | \\| ___/\\__ \\ \\_ __ \\/ ___/_/ __ \\\\_ __ \\ \n"));
|
||||
myprintf(_T(" | Y Y \\| | /| | / __ \\_| | \\/\\___ \\ \\ ___/ | | \\/ \n"));
|
||||
myprintf(_T(" |__|_| /|____/ |____| (____ /|__| /____ > \\___ >|__| \n"));
|
||||
myprintf(_T(" \\/ \\/ \\/ \\/ \n"));
|
||||
myprintf(_T(" Version %s (DLL)\n"), mupGetVersion(hParser));
|
||||
#ifdef _UNICODE
|
||||
myprintf(_T(" Sample build with UNICODE support\n"));
|
||||
#else
|
||||
myprintf(_T(" Sample build with ASCII support\n"));
|
||||
#endif
|
||||
myprintf(_T(" (C) 2015 Ingo Berg\n"));
|
||||
myprintf(_T("---------------------------------------\n"));
|
||||
myprintf(_T("Commands:\n"));
|
||||
myprintf(_T(" list var - list parser variables\n"));
|
||||
myprintf(_T(" list exprvar - list expression variables\n"));
|
||||
myprintf(_T(" list const - list all numeric parser constants\n"));
|
||||
myprintf(_T(" locale de - switch to german locale\n"));
|
||||
myprintf(_T(" locale en - switch to english locale\n"));
|
||||
myprintf(_T(" locale reset - reset locale\n"));
|
||||
myprintf(_T(" test bulk - test bulk mode\n"));
|
||||
myprintf(_T(" quit - exits the parser\n\n"));
|
||||
myprintf(_T("---------------------------------------\n"));
|
||||
myprintf(_T("Constants:\n"));
|
||||
myprintf(_T(" \"_e\" 2.718281828459045235360287\n"));
|
||||
myprintf(_T(" \"_pi\" 3.141592653589793238462643\n"));
|
||||
myprintf(_T("---------------------------------------\n"));
|
||||
myprintf(_T("Please enter an expression:\n"));
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Callback function for parser errors
|
||||
void OnError(muParserHandle_t hParser)
|
||||
{
|
||||
myprintf(_T("\nError:\n"));
|
||||
myprintf(_T("------\n"));
|
||||
myprintf(_T("Message: \"%s\"\n"), mupGetErrorMsg(hParser));
|
||||
myprintf(_T("Token: \"%s\"\n"), mupGetErrorToken(hParser));
|
||||
myprintf(_T("Position: %d\n"), mupGetErrorPos(hParser));
|
||||
myprintf(_T("Errc: %d\n"), mupGetErrorCode(hParser));
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
void ListVar(muParserHandle_t a_hParser)
|
||||
{
|
||||
int iNumVar = mupGetVarNum(a_hParser);
|
||||
int i = 0;
|
||||
|
||||
if (iNumVar == 0)
|
||||
{
|
||||
myprintf(_T("No variables defined\n"));
|
||||
return;
|
||||
}
|
||||
|
||||
myprintf(_T("\nExpression variables:\n"));
|
||||
myprintf(_T("---------------------\n"));
|
||||
myprintf(_T("Number: %d\n"), iNumVar);
|
||||
|
||||
for (i = 0; i < iNumVar; ++i)
|
||||
{
|
||||
const muChar_t* szName = 0;
|
||||
muFloat_t* pVar = 0;
|
||||
|
||||
mupGetVar(a_hParser, i, &szName, &pVar);
|
||||
myprintf(_T("Name: %s Address: [0x%x]\n"), szName, (long long)pVar);
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
void ListExprVar(muParserHandle_t a_hParser)
|
||||
{
|
||||
muInt_t iNumVar = mupGetExprVarNum(a_hParser),
|
||||
i = 0;
|
||||
|
||||
if (iNumVar == 0)
|
||||
{
|
||||
myprintf(_T("Expression dos not contain variables\n"));
|
||||
return;
|
||||
}
|
||||
|
||||
myprintf(_T("\nExpression variables:\n"));
|
||||
myprintf(_T("---------------------\n"));
|
||||
myprintf(_T("Expression: %s\n"), mupGetExpr(a_hParser));
|
||||
myprintf(_T("Number: %d\n"), iNumVar);
|
||||
|
||||
for (i = 0; i < iNumVar; ++i)
|
||||
{
|
||||
const muChar_t* szName = 0;
|
||||
muFloat_t* pVar = 0;
|
||||
|
||||
mupGetExprVar(a_hParser, i, &szName, &pVar);
|
||||
myprintf(_T("Name: %s Address: [0x%x]\n"), szName, (long long)pVar);
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
void ListConst(muParserHandle_t a_hParser)
|
||||
{
|
||||
muInt_t iNumVar = mupGetConstNum(a_hParser),
|
||||
i = 0;
|
||||
|
||||
if (iNumVar == 0)
|
||||
{
|
||||
myprintf(_T("No constants defined\n"));
|
||||
return;
|
||||
}
|
||||
|
||||
myprintf(_T("\nParser constants:\n"));
|
||||
myprintf(_T("---------------------\n"));
|
||||
myprintf(_T("Number: %d"), iNumVar);
|
||||
|
||||
for (i = 0; i < iNumVar; ++i)
|
||||
{
|
||||
const muChar_t* szName = 0;
|
||||
muFloat_t fVal = 0;
|
||||
|
||||
mupGetConst(a_hParser, i, &szName, &fVal);
|
||||
myprintf(_T(" %s = %f\n"), szName, fVal);
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
/** \brief Check for external keywords.
|
||||
*/
|
||||
int CheckKeywords(const muChar_t *a_szLine, muParserHandle_t a_hParser)
|
||||
{
|
||||
if (!mystrcmp(a_szLine, _T("quit")))
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
else if (!mystrcmp(a_szLine, _T("list var")))
|
||||
{
|
||||
ListVar(a_hParser);
|
||||
return 1;
|
||||
}
|
||||
else if (!mystrcmp(a_szLine, _T("list exprvar")))
|
||||
{
|
||||
ListExprVar(a_hParser);
|
||||
return 1;
|
||||
}
|
||||
else if (!mystrcmp(a_szLine, _T("list const")))
|
||||
{
|
||||
ListConst(a_hParser);
|
||||
return 1;
|
||||
}
|
||||
else if (!mystrcmp(a_szLine, _T("locale de")))
|
||||
{
|
||||
myprintf(_T("Setting german locale: ArgSep=';' DecSep=',' ThousandsSep='.'\n"));
|
||||
mupSetArgSep(a_hParser, ';');
|
||||
mupSetDecSep(a_hParser, ',');
|
||||
mupSetThousandsSep(a_hParser, '.');
|
||||
return 1;
|
||||
}
|
||||
else if (!mystrcmp(a_szLine, _T("locale en")))
|
||||
{
|
||||
myprintf(_T("Setting english locale: ArgSep=',' DecSep='.' ThousandsSep=''\n"));
|
||||
mupSetArgSep(a_hParser, ',');
|
||||
mupSetDecSep(a_hParser, '.');
|
||||
mupSetThousandsSep(a_hParser, 0);
|
||||
return 1;
|
||||
}
|
||||
else if (!mystrcmp(a_szLine, _T("locale reset")))
|
||||
{
|
||||
myprintf(_T("Resetting locale\n"));
|
||||
mupResetLocale(a_hParser);
|
||||
return 1;
|
||||
}
|
||||
else if (!mystrcmp(a_szLine, _T("test bulk")))
|
||||
{
|
||||
myprintf(_T("Testing bulk mode\n"));
|
||||
CalcBulk();
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
void CalcBulk()
|
||||
{
|
||||
int nBulkSize = 200, i;
|
||||
muFloat_t *x = (muFloat_t*)malloc(nBulkSize * sizeof(muFloat_t));
|
||||
muFloat_t *y = (muFloat_t*)malloc(nBulkSize * sizeof(muFloat_t));
|
||||
muFloat_t *r = (muFloat_t*)malloc(nBulkSize * sizeof(muFloat_t));
|
||||
|
||||
muParserHandle_t hParser = mupCreate(muBASETYPE_FLOAT); // initialize the parser
|
||||
|
||||
for (i = 0; i < nBulkSize; ++i)
|
||||
{
|
||||
x[i] = i;
|
||||
y[i] = i;
|
||||
r[i] = 0;
|
||||
}
|
||||
|
||||
mupDefineVar(hParser, _T("x"), x);
|
||||
mupDefineVar(hParser, _T("y"), y);
|
||||
mupDefineBulkFun1(hParser, _T("bulktest"), BulkTest);
|
||||
mupSetExpr(hParser, _T("bulktest(x+y)"));
|
||||
mupEvalBulk(hParser, r, nBulkSize);
|
||||
if (mupError(hParser))
|
||||
{
|
||||
myprintf(_T("\nError:\n"));
|
||||
myprintf(_T("------\n"));
|
||||
myprintf(_T("Message: %s\n"), mupGetErrorMsg(hParser));
|
||||
myprintf(_T("Token: %s\n"), mupGetErrorToken(hParser));
|
||||
myprintf(_T("Position: %d\n"), mupGetErrorPos(hParser));
|
||||
myprintf(_T("Errc: %d\n"), mupGetErrorCode(hParser));
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < nBulkSize; ++i)
|
||||
{
|
||||
myprintf(_T("%d: bulkfun(%2.2f + %2.2f) = %2.2f\n"), i, x[i], y[i], r[i]);
|
||||
x[i] = i;
|
||||
y[i] = (muFloat_t)i / 10;
|
||||
}
|
||||
|
||||
free(x);
|
||||
free(y);
|
||||
free(r);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
void Calc()
|
||||
{
|
||||
muChar_t szLine[100];
|
||||
muFloat_t fVal = 0,
|
||||
afVarVal[] = { 1, 2 }; // Values of the parser variables
|
||||
muParserHandle_t hParser;
|
||||
|
||||
hParser = mupCreate(muBASETYPE_FLOAT); // initialize the parser
|
||||
Intro(hParser);
|
||||
|
||||
// Set an error handler [optional]
|
||||
// the only function that does not take a parser instance handle
|
||||
mupSetErrorHandler(hParser, OnError);
|
||||
|
||||
//#define GERMAN_LOCALS
|
||||
#ifdef GERMAN_LOCALS
|
||||
mupSetArgSep(hParser, ';');
|
||||
mupSetDecSep(hParser, ',');
|
||||
mupSetThousandsSep(hParser, '.');
|
||||
#else
|
||||
mupSetArgSep(hParser, ',');
|
||||
mupSetDecSep(hParser, '.');
|
||||
#endif
|
||||
|
||||
// Set a variable factory
|
||||
mupSetVarFactory(hParser, AddVariable, NULL);
|
||||
|
||||
// Define parser variables and bind them to C++ variables [optional]
|
||||
mupDefineConst(hParser, _T("const1"), 1);
|
||||
mupDefineConst(hParser, _T("const2"), 2);
|
||||
mupDefineStrConst(hParser, _T("strBuf"), _T("Hallo welt"));
|
||||
|
||||
// Define parser variables and bind them to C++ variables [optional]
|
||||
mupDefineVar(hParser, _T("a"), &afVarVal[0]);
|
||||
mupDefineVar(hParser, _T("b"), &afVarVal[1]);
|
||||
|
||||
// Define postfix operators [optional]
|
||||
mupDefinePostfixOprt(hParser, _T("M"), Mega, 0);
|
||||
mupDefinePostfixOprt(hParser, _T("m"), Milli, 0);
|
||||
|
||||
// Define infix operator [optional]
|
||||
mupDefineInfixOprt(hParser, _T("!"), Not, 0);
|
||||
|
||||
// Define functions [optional]
|
||||
// mupDefineStrFun(hParser, "query", SampleQuery, 0); // Add an unoptimizeable function
|
||||
mupDefineFun0(hParser, _T("zero"), ZeroArg, 0);
|
||||
mupDefineFun1(hParser, _T("rnd"), Rnd, 0); // Add an unoptimizeable function
|
||||
mupDefineFun1(hParser, _T("rnd2"), Rnd, 1);
|
||||
mupDefineMultFun(hParser, _T("_sum"), Sum, 0); // "sum" is already a default function
|
||||
|
||||
// Define binary operators [optional]
|
||||
mupDefineOprt(hParser, _T("add"), Add, 0, muOPRT_ASCT_LEFT, 0);
|
||||
mupDefineOprt(hParser, _T("mul"), Mul, 1, muOPRT_ASCT_LEFT, 0);
|
||||
|
||||
while (myfgets(szLine, 99, stdin))
|
||||
{
|
||||
szLine[mystrlen(szLine) - 1] = 0; // overwrite the newline
|
||||
|
||||
switch (CheckKeywords(szLine, hParser))
|
||||
{
|
||||
case 0: break; // no keyword found; parse the line
|
||||
case 1: continue; // A Keyword was found do not parse the line
|
||||
case -1: return; // abort the application
|
||||
}
|
||||
|
||||
mupSetExpr(hParser, szLine);
|
||||
|
||||
fVal = mupEval(hParser);
|
||||
|
||||
|
||||
// Without an Error handler function
|
||||
// you must use this for error treatment:
|
||||
//if (mupError(hParser))
|
||||
//{
|
||||
// printf("\nError:\n");
|
||||
// printf("------\n");
|
||||
// printf("Message: %s\n", mupGetErrorMsg(hParser) );
|
||||
// printf("Token: %s\n", mupGetErrorToken(hParser) );
|
||||
// printf("Position: %s\n", mupGetErrorPos(hParser) );
|
||||
// printf("Errc: %d\n", mupGetErrorCode(hParser) );
|
||||
// continue;
|
||||
//}
|
||||
|
||||
if (!mupError(hParser))
|
||||
myprintf(_T("%f\n"), fVal);
|
||||
|
||||
} // while
|
||||
|
||||
// finalle free the parser ressources
|
||||
mupRelease(hParser);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
// The next line is just for shutting up the compiler warning
|
||||
// about unused variables without getting another warning about not
|
||||
// beeing able to use type lists in function declarations.
|
||||
myprintf(_T("Executing \"%s\" (argc=%d)\n"), argv[0], argc);
|
||||
Calc();
|
||||
printf(_T("done..."));
|
||||
}
|
|
@ -1,100 +0,0 @@
|
|||
#!/bin/sh
|
||||
#-----------------------------------------------------------------------------
|
||||
#-- Name: distrib/mac/shared-ld-sh
|
||||
#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
|
||||
#-- Author: Gilles Depeyrot
|
||||
#-- Copyright: (c) 2002 Gilles Depeyrot
|
||||
#-- Licence: any use permitted
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
verbose=0
|
||||
args=""
|
||||
objects=""
|
||||
linking_flag="-dynamiclib"
|
||||
ldargs="-r -keep_private_externs -nostdlib"
|
||||
|
||||
if test "x$CXX" = "x"; then
|
||||
CXX="c++"
|
||||
fi
|
||||
|
||||
while test $# -gt 0; do
|
||||
case $1 in
|
||||
|
||||
-v)
|
||||
verbose=1
|
||||
;;
|
||||
|
||||
-o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
|
||||
# collect these options and values
|
||||
args="${args} $1 $2"
|
||||
shift
|
||||
;;
|
||||
|
||||
-arch|-isysroot)
|
||||
# collect these options and values
|
||||
ldargs="${ldargs} $1 $2"
|
||||
shift
|
||||
;;
|
||||
|
||||
-s|-Wl,*)
|
||||
# collect these load args
|
||||
ldargs="${ldargs} $1"
|
||||
;;
|
||||
|
||||
-l*|-L*|-flat_namespace|-headerpad_max_install_names)
|
||||
# collect these options
|
||||
args="${args} $1"
|
||||
;;
|
||||
|
||||
-dynamiclib|-bundle)
|
||||
linking_flag="$1"
|
||||
;;
|
||||
|
||||
-*)
|
||||
echo "shared-ld: unhandled option '$1'"
|
||||
exit 1
|
||||
;;
|
||||
|
||||
*.o | *.a | *.dylib)
|
||||
# collect object files
|
||||
objects="${objects} $1"
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "shared-ld: unhandled argument '$1'"
|
||||
exit 1
|
||||
;;
|
||||
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
status=0
|
||||
|
||||
#
|
||||
# Link one module containing all the others
|
||||
#
|
||||
if test ${verbose} = 1; then
|
||||
echo "$CXX ${ldargs} ${objects} -o master.$$.o"
|
||||
fi
|
||||
$CXX ${ldargs} ${objects} -o master.$$.o
|
||||
status=$?
|
||||
|
||||
#
|
||||
# Link the shared library from the single module created, but only if the
|
||||
# previous command didn't fail:
|
||||
#
|
||||
if test ${status} = 0; then
|
||||
if test ${verbose} = 1; then
|
||||
echo "$CXX ${linking_flag} master.$$.o ${args}"
|
||||
fi
|
||||
$CXX ${linking_flag} master.$$.o ${args}
|
||||
status=$?
|
||||
fi
|
||||
|
||||
#
|
||||
# Remove intermediate module
|
||||
#
|
||||
rm -f master.$$.o
|
||||
|
||||
exit $status
|
Loading…
Reference in New Issue
Block a user