Project

Profile

Help

Download (5.37 KB) Statistics
| Branch: | Revision:

he / src / main / c / samples / cppTests / build64-linux.sh @ 339c45ee

1 72bf04c6 Norman Walsh
#!/bin/sh
2
3
#Build file for Saxon/C on C++
4
5
#jdkdir=/usr/lib/jvm/java-7-oracle/include
6
7
# $jdkdir/bin/javac MyClassInDll.java
8
9
#jc =p MyDll.prj
10
#rm -rf MyDll_jetpdb
11
export JET_HOME=/usr/lib/rt
12
export PATH=$JET_HOME/bin:$PATH
13
export LD_LIBRARY_PATH=$JET_HOME/lib/x86/shared:$LD_LIBRARY_PATH
14
export SAXON_ERRORS="-Wall -Werror -Wextra"
15
16
17
export TURN_ERRORS_TO_WARNINGS="-Wno-error=sizeof-pointer-memaccess -Wno-error=unused-value -Wno-error=extra -Wno-error=reorder -Wno-error=sign-compare -Wno-error=unused-variable -Wno-error=unused-parameter -Wno-error=return-type -Wno-error=unused-but-set-variable"
18
19
mkdir -p bin
20
21
gcc -m64  -c ../../Saxon.C.API/SaxonCGlue.c -o bin/SaxonCGlue.o -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
22
23
gcc -m64  -c ../../Saxon.C.API/SaxonCXPath.c -o bin/SaxonCXPath.o -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
24
25 7099cfd5 O'Neil Delpratt
g++  -std=c++14 -fPIC -m64 -c cppExtensionFunction.cpp -o bin/cppExtensionFunction.o $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
26 0e64aa62 O'Neil Delpratt
27 766106fe O'Neil Delpratt
g++  -std=c++14 -m64  -fPIC -c ../../Saxon.C.API/XdmValue.cpp -o bin/XdmValue.o -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
28 72bf04c6 Norman Walsh
29 766106fe O'Neil Delpratt
g++  -std=c++14 -m64 -fPIC -c ../../Saxon.C.API/XdmItem.cpp -o bin/XdmItem.o -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
30 72bf04c6 Norman Walsh
31 766106fe O'Neil Delpratt
g++  -std=c++14 -m64 -fPIC -c ../../Saxon.C.API/XdmNode.cpp -o bin/XdmNode.o -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
32 72bf04c6 Norman Walsh
33 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC  -c ../../Saxon.C.API/XdmMap.cpp -o bin/XdmMap.o -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
34 72bf04c6 Norman Walsh
35 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC  -c ../../Saxon.C.API/XdmArray.cpp -o bin/XdmArray.o -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
36 72bf04c6 Norman Walsh
37 766106fe O'Neil Delpratt
g++ -std=c++14 -m64  -fPIC -c ../../Saxon.C.API/XdmFunctionItem.cpp -o bin/XdmFunctionItem.o -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
38 72bf04c6 Norman Walsh
39 766106fe O'Neil Delpratt
g++  -std=c++14 -m64 -fPIC -c ../../Saxon.C.API/XdmAtomicValue.cpp -o bin/XdmAtomicValue.o -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
40 72bf04c6 Norman Walsh
41 766106fe O'Neil Delpratt
g++  -std=c++14 -m64 -fPIC -c ../../Saxon.C.API/SaxonProcessor.cpp -o bin/SaxonProcessor.o -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
42 72bf04c6 Norman Walsh
43 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC  -c ../../Saxon.C.API/SaxonApiException.cpp -o bin/SaxonApiException.o -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
44 72bf04c6 Norman Walsh
45 766106fe O'Neil Delpratt
g++  -std=c++14 -m64 -fPIC -c ../../Saxon.C.API/XsltProcessor.cpp -o bin/XsltProcessor.o -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
46 72bf04c6 Norman Walsh
47 766106fe O'Neil Delpratt
g++  -std=c++14 -m64 -fPIC -c ../../Saxon.C.API/Xslt30Processor.cpp -o bin/Xslt30Processor.o -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
48 72bf04c6 Norman Walsh
49 766106fe O'Neil Delpratt
g++ -std=c++14 -m64  -fPIC -c ../../Saxon.C.API/XsltExecutable.cpp -o bin/XsltExecutable.o -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
50 72bf04c6 Norman Walsh
51 766106fe O'Neil Delpratt
g++  -std=c++14 -m64 -fPIC -c ../../Saxon.C.API/XQueryProcessor.cpp -o bin/XQueryProcessor.o -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
52 72bf04c6 Norman Walsh
53 766106fe O'Neil Delpratt
g++  -std=c++14 -m64 -fPIC -c ../../Saxon.C.API/XPathProcessor.cpp -o bin/XPathProcessor.o -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
54 72bf04c6 Norman Walsh
55 766106fe O'Neil Delpratt
g++  -std=c++14 -m64 -fPIC -c ../../Saxon.C.API/SchemaValidator.cpp -o bin/SchemaValidator.o -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
56 72bf04c6 Norman Walsh
57 766106fe O'Neil Delpratt
g++  -std=c++14 -m64 -fPIC  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XsltExecutable.o bin/Xslt30Processor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/XdmArray.o bin/XdmMap.o bin/XdmFunctionItem.o bin/SchemaValidator.o bin/SaxonApiException.o testXSLT.cpp -o testXSLT -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
58 72bf04c6 Norman Walsh
59 339c45ee Dave Delpratt
g++  -std=c++14 -m64 -fPIC -pthread bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XsltExecutable.o bin/Xslt30Processor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/XdmArray.o bin/XdmMap.o bin/XdmFunctionItem.o bin/SchemaValidator.o bin/SaxonApiException.o bin/cppExtensionFunction.o testXSLT30.cpp -o testXSLT30 -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
60 72bf04c6 Norman Walsh
61 8e87cf99 O'Neil Delpratt
g++  -std=c++14 -m64 -fPIC bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/Xslt30Processor.o bin/XsltExecutable.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/XdmArray.o bin/XdmFunctionItem.o bin/XdmMap.o bin/SchemaValidator.o bin/SaxonApiException.o testXQuery.cpp -o testXQuery -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
62 fc47eaa6 O'Neil Delpratt
63
64 8e87cf99 O'Neil Delpratt
g++  -std=c++14 -m64 -fPIC bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/Xslt30Processor.o bin/XsltExecutable.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/XdmArray.o bin/XdmFunctionItem.o bin/XdmMap.o bin/SchemaValidator.o bin/SaxonApiException.o testXPath.cpp -o testXPath -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
65 fc47eaa6 O'Neil Delpratt
66 8e87cf99 O'Neil Delpratt
g++  -std=c++14 -m64 -fPIC bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/Xslt30Processor.o bin/XsltExecutable.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/XdmArray.o bin/XdmFunctionItem.o bin/XdmMap.o bin/SchemaValidator.o bin/SaxonApiException.o testValidator.cpp -o testValidator -ldl -lc $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2
67 fc47eaa6 O'Neil Delpratt
68 766106fe O'Neil Delpratt
g++  -std=c++14 -fPIC -m64 -shared -Wl,-soname,cppExtensionFunction.so -o  cppExtensionFunction.so bin/cppExtensionFunction.o $TURN_ERRORS_TO_WARNINGS $SAXON_ERRORS $1 $2