File tree Expand file tree Collapse file tree 2 files changed +40
-2
lines changed
Expand file tree Collapse file tree 2 files changed +40
-2
lines changed Original file line number Diff line number Diff line change @@ -75,15 +75,15 @@ def run(self):
7575 '-I%s ' % qle_swig_dir +
7676 '-I%s ' % oredata_swig_dir +
7777 '-outdir ORE -o ORE/oreanalytics_wrap.cpp ' +
78- ' oreanalytics.i' )
78+ os . path . join ( ".." , "SWIG" , " oreanalytics.i" ) )
7979 else :
8080 os .system ('swig -python -c++ ' +
8181 '-I%s ' % swig_dir +
8282 '-I%s ' % ql_swig_dir +
8383 '-I%s ' % qle_swig_dir +
8484 '-I%s ' % oredata_swig_dir +
8585 '-outdir ORE -o ORE/oreanalytics_wrap.cpp ' +
86- ' oreanalytics.i' )
86+ os . path . join ( ".." , "SWIG" , " oreanalytics.i" ) )
8787
8888class my_build (build ):
8989 user_options = build .user_options + [
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # On your system, the boost_thread lib may have a nonstandard name, e.g. boost_thread-mt.
4+ # If that is the case then set the BOOST_THREAD variable before calling this script, e.g:
5+ # export BOOST_THREAD=boost_thread-mt
6+ BOOST_THREAD=" ${BOOST_THREAD:= boost_thread} "
7+
8+ usage=" \
9+ Usage: oreanalytics-config [--libs] [--cflags]"
10+
11+ if test $# -eq 0; then
12+ echo " ${usage} " 1>&2
13+ exit 1
14+ fi
15+
16+ while test $# -gt 0; do
17+ case " $1 " in
18+ -* =* ) optarg=` echo " $1 " | sed ' s/[-_a-zA-Z0-9]*=//' ` ;;
19+ * ) optarg= ;;
20+ esac
21+
22+ case $1 in
23+ --cflags)
24+ # echo -I${ORE}/OREAnalytics -I${ORE}/OREData -I${ORE}/QuantExt -I${ORE}/QuantLib -I${BOOST_INC} -std=c++1z
25+ # echo -I${ORE}/OREAnalytics -I${ORE}/OREData -I${ORE}/QuantExt -I${ORE}/QuantLib
26+ echo -I${ORE} /build/QuantLib -I${ORE} /OREAnalytics -I${ORE} /OREData -I${ORE} /QuantExt -I${ORE} /QuantLib
27+ ;;
28+ --libs)
29+ # echo -L${ORE}/build/OREAnalytics/orea -lOREAnalytics -L${ORE}/build/OREData/ored -lOREData -L${ORE}/build/QuantExt/qle -lQuantExt -L${ORE}/build/QuantLib/ql -lQuantLib -L${BOOST_LIB} -l${BOOST_THREAD} -lboost_system -lboost_serialization -lboost_date_time -lboost_regex -lboost_filesystem -std=c++1z
30+ echo -L${ORE} /build/OREAnalytics/orea -lOREAnalytics -L${ORE} /build/OREData/ored -lOREData -L${ORE} /build/QuantExt/qle -lQuantExt -L${ORE} /build/QuantLib/ql -lQuantLib -lboost_thread -lboost_system -lboost_serialization -lboost_date_time -lboost_regex -lboost_filesystem
31+ ;;
32+ * )
33+ echo " ${usage} " 1>&2
34+ exit 1
35+ ;;
36+ esac
37+ shift
38+ done
You can’t perform that action at this time.
0 commit comments