Project

Profile

Help

How to connect?
Download (4.91 KB) Statistics
| Branch: | Revision:

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

1
#!/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
gcc -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/SaxonCGlue.c -o bin/SaxonCGlue.o $1 $2
24

    
25
gcc -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/SaxonCXPath.c -o bin/SaxonCXPath.o $1 $2
26

    
27
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c cppExtensionFunction.cpp -o bin/cppExtensionFunction.o
28

    
29
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XdmValue.cpp -o bin/XdmValue.o $1 $2
30

    
31
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XdmItem.cpp -o bin/XdmItem.o $1 $2
32

    
33
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XdmMap.cpp -o bin/XdmMap.o $1 $2
34

    
35
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XdmArray.cpp -o bin/XdmArray.o $1 $2
36

    
37
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XdmNode.cpp -o bin/XdmNode.o $1 $2
38

    
39
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XdmFunctionItem.cpp -o bin/XdmFunctionItem.o $1 $2
40

    
41
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XdmAtomicValue.cpp -o bin/XdmAtomicValue.o $1 $2
42

    
43
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/SaxonProcessor.cpp -o bin/SaxonProcessor.o $1 $2
44

    
45
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/SaxonApiException.cpp -o bin/SaxonApiException.o $1 $2
46

    
47
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XsltProcessor.cpp -o bin/XsltProcessor.o $1 $2
48

    
49
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/Xslt30Processor.cpp -o bin/Xslt30Processor.o $1 $2
50

    
51
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XsltExecutable.cpp -o bin/XsltExecutable.o $1 $2
52

    
53
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XQueryProcessor.cpp -o bin/XQueryProcessor.o $1 $2
54

    
55
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/XPathProcessor.cpp -o bin/XPathProcessor.o $1 $2
56

    
57
g++ -std=c++14 -m64 -fPIC -I$jdkdir   -c ../../Saxon.C.API/SchemaValidator.cpp -o bin/SchemaValidator.o $1 $2
58

    
59
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

    
61
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

    
63
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

    
65

    
66
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

    
68
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
71

    
(5-5/28)