Project

Profile

Help

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

he / latest9.6 / hec / samples / cppTests / build64-mac.sh @ 5bc9d5a1

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

    
8
# $jdkdir/bin/javac MyClassInDll.java
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=/System/Library/Frameworks/JavaVM.framework/Headers
16
mkdir -p bin
17

    
18
gcc -m64 -fPIC -I$jdkdir/include  -I /System/Library/Frameworks/JavaVM.framework/Headers  -c ../../Saxon.C.API/SaxonCGlue.c -o bin/SaxonCGlue.o $1 $2
19

    
20
gcc -m64 -fPIC -I$jdkdir/include  -I /System/Library/Frameworks/JavaVM.framework/Headers -c ../../Saxon.C.API/SaxonCXPath.c -o bin/SaxonCXPath.o $1 $2
21

    
22
g++ -m64 -fPIC -I$jdkdir/include  -I /System/Library/Frameworks/JavaVM.framework/Headers -c ../../Saxon.C.API/XdmValue.cpp -o bin/XdmValue.o $1 $2
23

    
24
g++ -m64 -fPIC -I$jdkdir/include  -I /System/Library/Frameworks/JavaVM.framework/Headers -c ../../Saxon.C.API/XdmItem.cpp -o bin/XdmItem.o $1 $2
25

    
26
g++ -m64 -fPIC -I$jdkdir/include  -I /System/Library/Frameworks/JavaVM.framework/Headers -c ../../Saxon.C.API/XdmNode.cpp -o bin/XdmNode.o $1 $2
27

    
28
g++ -m64 -fPIC -I$jdkdir/include  -I /System/Library/Frameworks/JavaVM.framework/Headers -c ../../Saxon.C.API/XdmAtomicValue.cpp -o bin/XdmAtomicValue.o $1 $2
29

    
30
g++ -m64 -fPIC -I$jdkdir/include  -I /System/Library/Frameworks/JavaVM.framework/Headers -c ../../Saxon.C.API/SaxonProcessor.cpp -o bin/SaxonProcessor.o $1 $2
31

    
32
g++ -m64 -fPIC -I$jdkdir/include  -I /System/Library/Frameworks/JavaVM.framework/Headers -c ../../Saxon.C.API/XsltProcessor.cpp -o bin/XsltProcessor.o $1 $2
33

    
34
g++ -m64 -fPIC -I$jdkdir/include  -I /System/Library/Frameworks/JavaVM.framework/Headers -c ../../Saxon.C.API/XQueryProcessor.cpp -o bin/XQueryProcessor.o $1 $2
35

    
36
g++ -m64 -fPIC -I$jdkdir/include  -I /System/Library/Frameworks/JavaVM.framework/Headers -c ../../Saxon.C.API/XPathProcessor.cpp -o bin/XPathProcessor.o $1 $2
37

    
38
g++ -m64 -fPIC -I$jdkdir/include  -I /System/Library/Frameworks/JavaVM.framework/Headers -c ../../Saxon.C.API/SchemaValidator.cpp -o bin/SchemaValidator.o $1 $2
39

    
40
g++  -m64 -fPIC -I$jdkdir/include  -I /System/Library/Frameworks/JavaVM.framework/Headers bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXSLT.cpp -o testXSLT -ldl  -L.  $1 $2
41

    
42
g++   -m64 -fPIC -I$jdkdir/include  -I /System/Library/Frameworks/JavaVM.framework/Headers bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXQuery.cpp -o testXQuery -ldl  -L.  $1 $2
43

    
44

    
45
g++  -m64 -fPIC -I$jdkdir/include  -I /System/Library/Frameworks/JavaVM.framework/Headers  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXPath.cpp -o testXPath -ldl  -L.  $1 $2
46

    
47
g++  -m64 -fPIC -I$jdkdir/include  -I /System/Library/Frameworks/JavaVM.framework/Headers  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testValidator.cpp -o testValidator -ldl  -L.  $1 $2
48

    
(3-3/16)