Project

Profile

Help

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

he / src / main / c / samples / cppTests / build64-mac.sh @ 55b80284

1 72bf04c6 Norman Walsh
#!/bin/sh
2
3
#Build file for Saxon/C on C++
4
5
6
#jdkdir=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home
7
jdkdir=../../Saxon.C.API/jni
8
9
10
#jc =p MyDll.prj
11
#rm -rf MyDll_jetpdb
12
export JET_HOME=/usr/local/lib/rt
13
export PATH=$JET_HOME/bin:$PATH
14
export DYLD_LIBRARY_PATH=$JET_HOME/lib/lib/jetvm:$DYLD_LIBRARY_PATH
15
#export CPLUS_INCLUDE_PATH=
16
export SAXON_ERRORS="-Wall -Werror -Wextra"
17
18
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"
19
20
21
mkdir -p bin
22
23 766106fe O'Neil Delpratt
gcc -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/SaxonCGlue.c -o bin/SaxonCGlue.o $1 $2
24 72bf04c6 Norman Walsh
25 766106fe O'Neil Delpratt
gcc -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/SaxonCXPath.c -o bin/SaxonCXPath.o $1 $2
26 72bf04c6 Norman Walsh
27 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c cppExtensionFunction.cpp -o bin/cppExtensionFunction.o
28 e05bbe34 O'Neil Delpratt
29 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XdmValue.cpp -o bin/XdmValue.o $1 $2
30 72bf04c6 Norman Walsh
31 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XdmItem.cpp -o bin/XdmItem.o $1 $2
32 72bf04c6 Norman Walsh
33 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XdmMap.cpp -o bin/XdmMap.o $1 $2
34 72bf04c6 Norman Walsh
35 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XdmArray.cpp -o bin/XdmArray.o $1 $2
36 72bf04c6 Norman Walsh
37 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XdmNode.cpp -o bin/XdmNode.o $1 $2
38 72bf04c6 Norman Walsh
39 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XdmFunctionItem.cpp -o bin/XdmFunctionItem.o $1 $2
40 501beb26 O'Neil Delpratt
41 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XdmAtomicValue.cpp -o bin/XdmAtomicValue.o $1 $2
42 72bf04c6 Norman Walsh
43 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/SaxonProcessor.cpp -o bin/SaxonProcessor.o $1 $2
44 72bf04c6 Norman Walsh
45 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/SaxonApiException.cpp -o bin/SaxonApiException.o $1 $2
46 72bf04c6 Norman Walsh
47 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XsltProcessor.cpp -o bin/XsltProcessor.o $1 $2
48 72bf04c6 Norman Walsh
49 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/Xslt30Processor.cpp -o bin/Xslt30Processor.o $1 $2
50 72bf04c6 Norman Walsh
51 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XsltExecutable.cpp -o bin/XsltExecutable.o $1 $2
52 72bf04c6 Norman Walsh
53 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XQueryProcessor.cpp -o bin/XQueryProcessor.o $1 $2
54 72bf04c6 Norman Walsh
55 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XPathProcessor.cpp -o bin/XPathProcessor.o $1 $2
56 72bf04c6 Norman Walsh
57 766106fe O'Neil Delpratt
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/SchemaValidator.cpp -o bin/SchemaValidator.o $1 $2
58 72bf04c6 Norman Walsh
59 766106fe O'Neil Delpratt
g++ -std=c++14  -m64 -fPIC -I$jdkdir   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  -L.  $1 $2
60 72bf04c6 Norman Walsh
61 55b80284 O'Neil Delpratt
g++ -std=c++14  -m64 -fPIC -pthread -I$jdkdir   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  -L.  $1 $2
62 72bf04c6 Norman Walsh
63 766106fe O'Neil Delpratt
g++ -std=c++14   -m64 -fPIC -I$jdkdir   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/XdmFunctionItem.o bin/XdmMap.o bin/SchemaValidator.o bin/SaxonApiException.o testXQuery.cpp -o testXQuery -ldl  -L.  $1 $2
64 72bf04c6 Norman Walsh
65
66 766106fe O'Neil Delpratt
g++ -std=c++14  -m64 -fPIC -I$jdkdir  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 testXPath.cpp -o testXPath -ldl  -L.  $1 $2
67 72bf04c6 Norman Walsh
68 766106fe O'Neil Delpratt
g++ -std=c++14  -m64 -fPIC -I$jdkdir  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 testValidator.cpp -o testValidator -ldl  -L.  $1 $2
69
70
g++  -std=c++14 -fPIC -m64 -dynamiclib -o  cppExtensionFunction.dylib bin/cppExtensionFunction.o 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 $1 $2