Project

Profile

Help

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

he / src / main / c / samples / cppTests / build32-linux.sh @ f299305b

1
#!/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

    
15
mkdir -p bin
16

    
17
gcc -m32  -c ../../Saxon.C.API/SaxonCGlue.c -o bin/SaxonCGlue.o -ldl -lc  $1 $2
18

    
19
gcc -m32  -c ../../Saxon.C.API/SaxonCXPath.c -o bin/SaxonCXPath.o -ldl -lc  $1 $2
20

    
21
g++ -m32  -c ../../Saxon.C.API/XdmValue.cpp -o bin/XdmValue.o -ldl -lc  $1 $2
22

    
23
g++ -m32  -c ../../Saxon.C.API/XdmItem.cpp -o bin/XdmItem.o -ldl -lc  $1 $2
24

    
25
g++ -m32  -c ../../Saxon.C.API/XdmNode.cpp -o bin/XdmNode.o -ldl -lc  $1 $2
26

    
27
g++ -m32  -c ../../Saxon.C.API/XdmAtomicValue.cpp -o bin/XdmAtomicValue.o -ldl -lc  $1 $2
28

    
29
g++ -m32  -c ../../Saxon.C.API/SaxonProcessor.cpp -o bin/SaxonProcessor.o -ldl -lc  $1 $2
30

    
31
g++ -m32  -c ../../Saxon.C.API/XsltProcessor.cpp -o bin/XsltProcessor.o -ldl -lc  $1 $2
32

    
33
g++ -m32 -c ../../Saxon.C.API/XQueryProcessor.cpp -o bin/XQueryProcessor.o -ldl -lc  $1 $2
34

    
35
g++ -m32 -c ../../Saxon.C.API/XPathProcessor.cpp -o bin/XPathProcessor.o -ldl -lc  $1 $2
36

    
37
g++ -m32 -c ../../Saxon.C.API/SchemaValidator.cpp -o bin/SchemaValidator.o -ldl -lc  $1 $2
38

    
39
g++ -m32 -fPIC -shared 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 cppExtensionFunction.cpp -o cppExtensionFunction.so -ldl -lc  $1 $2
40

    
41
g++ -m32  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 -lc  $1 $2
42

    
43
g++ -m32  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 -lc  $1 $2
44

    
45

    
46
g++ -m32  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 -lc  $1 $2
47

    
48
g++ -m32  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 -lc  $1 $2
49

    
(3-3/28)