mhs-xapian 1.0.18a
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/AUTHORS +1 -0
- data/COPYING +340 -0
- data/ChangeLog +5876 -0
- data/HACKING +101 -0
- data/INSTALL +293 -0
- data/Makefile +722 -0
- data/Makefile.am +26 -0
- data/Makefile.in +722 -0
- data/NEWS +2110 -0
- data/README +59 -0
- data/Rakefile +51 -0
- data/TODO +47 -0
- data/aclocal.m4 +7675 -0
- data/config.guess +1501 -0
- data/config.h +56 -0
- data/config.h.in +55 -0
- data/config.status +1298 -0
- data/config.sub +1705 -0
- data/configure +18536 -0
- data/configure.ac +944 -0
- data/csharp/.deps/xapian_wrap.Plo +1 -0
- data/csharp/AssemblyInfo.cs +40 -0
- data/csharp/AssemblyInfo.cs.in +40 -0
- data/csharp/Auto.cs +46 -0
- data/csharp/BM25Weight.cs +107 -0
- data/csharp/BoolWeight.cs +103 -0
- data/csharp/Database.cs +275 -0
- data/csharp/DateValueRangeProcessor.cs +61 -0
- data/csharp/Document.cs +177 -0
- data/csharp/ESet.cs +94 -0
- data/csharp/ESetIterator.cs +117 -0
- data/csharp/Enquire.cs +274 -0
- data/csharp/ExpandDecider.cs +76 -0
- data/csharp/Flint.cs +58 -0
- data/csharp/InMemory.cs +46 -0
- data/csharp/MSet.cs +193 -0
- data/csharp/MSetIterator.cs +141 -0
- data/csharp/Makefile +868 -0
- data/csharp/Makefile.am +106 -0
- data/csharp/Makefile.in +868 -0
- data/csharp/MatchDecider.cs +76 -0
- data/csharp/MultiValueSorter.cs +63 -0
- data/csharp/NumberValueRangeProcessor.cs +61 -0
- data/csharp/PositionIterator.cs +101 -0
- data/csharp/PostingIterator.cs +125 -0
- data/csharp/Quartz.cs +58 -0
- data/csharp/Query.cs +150 -0
- data/csharp/QueryParser.cs +174 -0
- data/csharp/RSet.cs +102 -0
- data/csharp/Remote.cs +100 -0
- data/csharp/SWIGTYPE_p_std__string.cs +30 -0
- data/csharp/SWIGTYPE_p_std__vectorTXapian__Query_t.cs +30 -0
- data/csharp/SWIGTYPE_p_std__vectorTstd__string_t.cs +30 -0
- data/csharp/SimpleStopper.cs +64 -0
- data/csharp/SmokeTest.cs +178 -0
- data/csharp/Sorter.cs +76 -0
- data/csharp/Stem.cs +66 -0
- data/csharp/Stopper.cs +91 -0
- data/csharp/StringValueRangeProcessor.cs +53 -0
- data/csharp/TermGenerator.cs +152 -0
- data/csharp/TermIterator.cs +125 -0
- data/csharp/TradWeight.cs +107 -0
- data/csharp/ValueIterator.cs +102 -0
- data/csharp/ValueRangeProcessor.cs +76 -0
- data/csharp/Version.cs +60 -0
- data/csharp/Weight.cs +93 -0
- data/csharp/WritableDatabase.cs +153 -0
- data/csharp/Xapian.cs +65 -0
- data/csharp/XapianPINVOKE.cs +1527 -0
- data/csharp/docs/Makefile +450 -0
- data/csharp/docs/Makefile.am +16 -0
- data/csharp/docs/Makefile.in +450 -0
- data/csharp/docs/examples/SimpleExpand.cs +109 -0
- data/csharp/docs/examples/SimpleIndex.cs +71 -0
- data/csharp/docs/examples/SimpleSearch.cs +78 -0
- data/csharp/docs/index.html +211 -0
- data/csharp/util.i +233 -0
- data/csharp/xapian_wrap.cc +10338 -0
- data/csharp/xapian_wrap.h +93 -0
- data/depcomp +632 -0
- data/extconf.rb +20 -0
- data/generic/except.i +80 -0
- data/generic/generic.mk +48 -0
- data/install-sh +520 -0
- data/java-swig/.deps/xapian_wrap.Plo +1 -0
- data/java-swig/Auto.java +35 -0
- data/java-swig/BM25Weight.java +81 -0
- data/java-swig/BoolWeight.java +77 -0
- data/java-swig/Database.java +195 -0
- data/java-swig/DateValueRangeProcessor.java +51 -0
- data/java-swig/Document.java +135 -0
- data/java-swig/ESet.java +71 -0
- data/java-swig/ESetIterator.java +71 -0
- data/java-swig/Enquire.java +246 -0
- data/java-swig/ExpandDecider.java +59 -0
- data/java-swig/Flint.java +43 -0
- data/java-swig/InMemory.java +35 -0
- data/java-swig/MSet.java +143 -0
- data/java-swig/MSetIterator.java +87 -0
- data/java-swig/Makefile +781 -0
- data/java-swig/Makefile.am +132 -0
- data/java-swig/Makefile.in +781 -0
- data/java-swig/MatchDecider.java +59 -0
- data/java-swig/MultiValueSorter.java +51 -0
- data/java-swig/NumberValueRangeProcessor.java +51 -0
- data/java-swig/PositionIterator.java +63 -0
- data/java-swig/PostingIterator.java +83 -0
- data/java-swig/Quartz.java +43 -0
- data/java-swig/Query.java +189 -0
- data/java-swig/QueryParser.java +214 -0
- data/java-swig/RSet.java +79 -0
- data/java-swig/Remote.java +71 -0
- data/java-swig/SWIGTYPE_p_std__string.java +25 -0
- data/java-swig/SimpleStopper.java +51 -0
- data/java-swig/SmokeTest.java +161 -0
- data/java-swig/Sorter.java +59 -0
- data/java-swig/Stem.java +51 -0
- data/java-swig/Stopper.java +63 -0
- data/java-swig/StringValueRangeProcessor.java +43 -0
- data/java-swig/TermGenerator.java +158 -0
- data/java-swig/TermIterator.java +83 -0
- data/java-swig/TradWeight.java +81 -0
- data/java-swig/ValueIterator.java +67 -0
- data/java-swig/ValueRangeProcessor.java +59 -0
- data/java-swig/Version.java +47 -0
- data/java-swig/Weight.java +68 -0
- data/java-swig/WritableDatabase.java +123 -0
- data/java-swig/Xapian.java +39 -0
- data/java-swig/XapianConstants.java +15 -0
- data/java-swig/XapianJNI.java +508 -0
- data/java-swig/run-java-test +6 -0
- data/java-swig/xapian_wrap.cc +12594 -0
- data/java-swig/xapian_wrap.h +91 -0
- data/java/Makefile +660 -0
- data/java/Makefile.am +35 -0
- data/java/Makefile.in +660 -0
- data/java/README +76 -0
- data/java/SmokeTest.java +148 -0
- data/java/native/.deps/Database.Plo +1 -0
- data/java/native/.deps/Document.Plo +1 -0
- data/java/native/.deps/ESet.Plo +1 -0
- data/java/native/.deps/ESetIterator.Plo +1 -0
- data/java/native/.deps/Enquire.Plo +1 -0
- data/java/native/.deps/MSet.Plo +1 -0
- data/java/native/.deps/MSetIterator.Plo +1 -0
- data/java/native/.deps/PositionIterator.Plo +1 -0
- data/java/native/.deps/Query.Plo +1 -0
- data/java/native/.deps/RSet.Plo +1 -0
- data/java/native/.deps/Stem.Plo +1 -0
- data/java/native/.deps/TermIterator.Plo +1 -0
- data/java/native/.deps/WritableDatabase.Plo +1 -0
- data/java/native/.deps/org_xapian_XapianJNI.Plo +1 -0
- data/java/native/.deps/utils.Plo +1 -0
- data/java/native/Database.cc +222 -0
- data/java/native/Document.cc +173 -0
- data/java/native/ESet.cc +79 -0
- data/java/native/ESetIterator.cc +82 -0
- data/java/native/Enquire.cc +271 -0
- data/java/native/MSet.cc +169 -0
- data/java/native/MSetIterator.cc +107 -0
- data/java/native/Makefile +594 -0
- data/java/native/Makefile.am +51 -0
- data/java/native/Makefile.in +594 -0
- data/java/native/PositionIterator.cc +64 -0
- data/java/native/Query.cc +180 -0
- data/java/native/RSet.cc +98 -0
- data/java/native/Stem.cc +75 -0
- data/java/native/TermIterator.cc +107 -0
- data/java/native/WritableDatabase.cc +118 -0
- data/java/native/XapianObjectHolder.h +115 -0
- data/java/native/org_xapian_XapianJNI.cc +78 -0
- data/java/native/org_xapian_XapianJNI.h +1369 -0
- data/java/native/utils.cc +51 -0
- data/java/native/xapian_jni.h +116 -0
- data/java/org/xapian/Database.java +148 -0
- data/java/org/xapian/Document.java +135 -0
- data/java/org/xapian/ESet.java +66 -0
- data/java/org/xapian/ESetIterator.java +97 -0
- data/java/org/xapian/Enquire.java +136 -0
- data/java/org/xapian/ExpandDecider.java +30 -0
- data/java/org/xapian/MSet.java +104 -0
- data/java/org/xapian/MSetIterator.java +132 -0
- data/java/org/xapian/Makefile +580 -0
- data/java/org/xapian/Makefile.am +38 -0
- data/java/org/xapian/Makefile.in +580 -0
- data/java/org/xapian/MatchDecider.java +30 -0
- data/java/org/xapian/PositionIterator.java +89 -0
- data/java/org/xapian/Query.java +190 -0
- data/java/org/xapian/RSet.java +89 -0
- data/java/org/xapian/Stem.java +80 -0
- data/java/org/xapian/TermIterator.java +142 -0
- data/java/org/xapian/WritableDatabase.java +92 -0
- data/java/org/xapian/Xapian.java +114 -0
- data/java/org/xapian/XapianJNI.java +444 -0
- data/java/org/xapian/errors/AssertionError.java +40 -0
- data/java/org/xapian/errors/DatabaseCorruptError.java +40 -0
- data/java/org/xapian/errors/DatabaseError.java +40 -0
- data/java/org/xapian/errors/DatabaseLockError.java +40 -0
- data/java/org/xapian/errors/DatabaseModifiedError.java +40 -0
- data/java/org/xapian/errors/DatabaseOpeningError.java +40 -0
- data/java/org/xapian/errors/DocNotFoundError.java +40 -0
- data/java/org/xapian/errors/FeatureUnavailableError.java +40 -0
- data/java/org/xapian/errors/InternalError.java +40 -0
- data/java/org/xapian/errors/InvalidArgumentError.java +40 -0
- data/java/org/xapian/errors/InvalidOperationError.java +40 -0
- data/java/org/xapian/errors/LogicError.java +40 -0
- data/java/org/xapian/errors/Makefile +416 -0
- data/java/org/xapian/errors/Makefile.am +32 -0
- data/java/org/xapian/errors/Makefile.in +416 -0
- data/java/org/xapian/errors/NetworkError.java +40 -0
- data/java/org/xapian/errors/NetworkTimeoutError.java +40 -0
- data/java/org/xapian/errors/RangeError.java +40 -0
- data/java/org/xapian/errors/RuntimeError.java +40 -0
- data/java/org/xapian/errors/UnimplementedError.java +40 -0
- data/java/org/xapian/errors/XapianError.java +40 -0
- data/java/org/xapian/errors/XapianRuntimeError.java +49 -0
- data/java/org/xapian/examples/Makefile +391 -0
- data/java/org/xapian/examples/Makefile.am +8 -0
- data/java/org/xapian/examples/Makefile.in +391 -0
- data/java/org/xapian/examples/SimpleIndex.java +68 -0
- data/java/org/xapian/examples/SimpleSearch.java +71 -0
- data/java/run-java-test +6 -0
- data/libtool +7618 -0
- data/ltmain.sh +6956 -0
- data/mhs-xapian.gemspec +368 -0
- data/missing +378 -0
- data/php/.deps/xapian_wrap.Plo +1 -0
- data/php/Makefile +871 -0
- data/php/Makefile.am +82 -0
- data/php/Makefile.in +871 -0
- data/php/docs/Makefile +453 -0
- data/php/docs/Makefile.am +19 -0
- data/php/docs/Makefile.in +453 -0
- data/php/docs/examples/simpleexpand.php4 +108 -0
- data/php/docs/examples/simpleexpand.php5 +104 -0
- data/php/docs/examples/simpleindex.php4 +76 -0
- data/php/docs/examples/simpleindex.php5 +73 -0
- data/php/docs/examples/simplesearch.php4 +75 -0
- data/php/docs/examples/simplesearch.php5 +72 -0
- data/php/docs/index.html +313 -0
- data/php/except.i +98 -0
- data/php/php4/php_xapian.h +323 -0
- data/php/php4/xapian.php +32 -0
- data/php/php4/xapian_wrap.cc +27656 -0
- data/php/php5/php_xapian.h +319 -0
- data/php/php5/xapian.php +1566 -0
- data/php/php5/xapian_wrap.cc +24330 -0
- data/php/smoketest.php +246 -0
- data/php/smoketest4.php +84 -0
- data/php/smoketest5.php +79 -0
- data/php/util.i +187 -0
- data/python/.deps/xapian_wrap.Plo +1 -0
- data/python/Makefile +891 -0
- data/python/Makefile.am +105 -0
- data/python/Makefile.in +891 -0
- data/python/doccomments.i +5134 -0
- data/python/docs/Makefile +448 -0
- data/python/docs/Makefile.am +14 -0
- data/python/docs/Makefile.in +448 -0
- data/python/docs/examples/simpleexpand.py +98 -0
- data/python/docs/examples/simpleindex.py +65 -0
- data/python/docs/examples/simplematchdecider.py +78 -0
- data/python/docs/examples/simplesearch.py +65 -0
- data/python/docs/index.html +420 -0
- data/python/except.i +290 -0
- data/python/extra.i +1048 -0
- data/python/extracomments.i +28 -0
- data/python/generate-python-exceptions +189 -0
- data/python/generate-python-exceptions.in +189 -0
- data/python/modern/xapian.py +5662 -0
- data/python/modern/xapian_wrap.cc +35170 -0
- data/python/modern/xapian_wrap.h +244 -0
- data/python/pythontest.py +1110 -0
- data/python/smoketest.py +328 -0
- data/python/testsuite.py +382 -0
- data/python/util.i +517 -0
- data/ruby/.deps/xapian_wrap.Plo +494 -0
- data/ruby/.libs/_xapian.bundle +0 -0
- data/ruby/.libs/_xapian.bundle.dSYM/Contents/Info.plist +25 -0
- data/ruby/.libs/_xapian.bundle.dSYM/Contents/Resources/DWARF/_xapian.bundle +0 -0
- data/ruby/.libs/_xapian.la +35 -0
- data/ruby/.libs/_xapian.lai +35 -0
- data/ruby/Makefile +854 -0
- data/ruby/Makefile.am +62 -0
- data/ruby/Makefile.in +854 -0
- data/ruby/_xapian.la +35 -0
- data/ruby/docs/Makefile +487 -0
- data/ruby/docs/Makefile.am +50 -0
- data/ruby/docs/Makefile.in +487 -0
- data/ruby/docs/examples/simpleexpand.rb +98 -0
- data/ruby/docs/examples/simpleindex.rb +60 -0
- data/ruby/docs/examples/simplematchdecider.rb +74 -0
- data/ruby/docs/examples/simplesearch.rb +63 -0
- data/ruby/docs/index.html +197 -0
- data/ruby/smoketest.rb +211 -0
- data/ruby/util.i +232 -0
- data/ruby/xapian.rb +280 -0
- data/ruby/xapian_wrap.cc +25837 -0
- data/ruby/xapian_wrap.h +65 -0
- data/ruby/xapian_wrap.lo +12 -0
- data/skiptest +2 -0
- data/stamp-h1 +1 -0
- data/tcl8/.deps/xapian_wrap.Plo +1 -0
- data/tcl8/Makefile +835 -0
- data/tcl8/Makefile.am +49 -0
- data/tcl8/Makefile.in +835 -0
- data/tcl8/docs/Makefile +448 -0
- data/tcl8/docs/Makefile.am +14 -0
- data/tcl8/docs/Makefile.in +448 -0
- data/tcl8/docs/examples/simpleexpand.tcl +104 -0
- data/tcl8/docs/examples/simpleindex.tcl +68 -0
- data/tcl8/docs/examples/simplesearch.tcl +66 -0
- data/tcl8/docs/index.html +208 -0
- data/tcl8/except.i +48 -0
- data/tcl8/pkgIndex.tcl +1 -0
- data/tcl8/pkgIndex.tcl.in +1 -0
- data/tcl8/run-tcl-test +15 -0
- data/tcl8/runtest.tcl +29 -0
- data/tcl8/smoketest.tcl +155 -0
- data/tcl8/util.i +76 -0
- data/tcl8/xapian_wrap.cc +20900 -0
- data/xapian-bindings.spec +206 -0
- data/xapian-bindings.spec.in +206 -0
- data/xapian-version.h +1 -0
- data/xapian-version.h.in +1 -0
- data/xapian.i +939 -0
- metadata +395 -0
@@ -0,0 +1,59 @@
|
|
1
|
+
/* ----------------------------------------------------------------------------
|
2
|
+
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
+
* Version 1.3.32
|
4
|
+
*
|
5
|
+
* Do not make changes to this file unless you know what you are doing--modify
|
6
|
+
* the SWIG interface file instead.
|
7
|
+
* ----------------------------------------------------------------------------- */
|
8
|
+
|
9
|
+
|
10
|
+
public class ExpandDecider {
|
11
|
+
private long swigCPtr;
|
12
|
+
protected boolean swigCMemOwn;
|
13
|
+
|
14
|
+
protected ExpandDecider(long cPtr, boolean cMemoryOwn) {
|
15
|
+
swigCMemOwn = cMemoryOwn;
|
16
|
+
swigCPtr = cPtr;
|
17
|
+
}
|
18
|
+
|
19
|
+
protected static long getCPtr(ExpandDecider obj) {
|
20
|
+
return (obj == null) ? 0 : obj.swigCPtr;
|
21
|
+
}
|
22
|
+
|
23
|
+
protected void finalize() {
|
24
|
+
delete();
|
25
|
+
}
|
26
|
+
|
27
|
+
public synchronized void delete() {
|
28
|
+
if(swigCPtr != 0 && swigCMemOwn) {
|
29
|
+
swigCMemOwn = false;
|
30
|
+
XapianJNI.delete_ExpandDecider(swigCPtr);
|
31
|
+
}
|
32
|
+
swigCPtr = 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
protected void swigDirectorDisconnect() {
|
36
|
+
swigCMemOwn = false;
|
37
|
+
delete();
|
38
|
+
}
|
39
|
+
|
40
|
+
public void swigReleaseOwnership() {
|
41
|
+
swigCMemOwn = false;
|
42
|
+
XapianJNI.ExpandDecider_change_ownership(this, swigCPtr, false);
|
43
|
+
}
|
44
|
+
|
45
|
+
public void swigTakeOwnership() {
|
46
|
+
swigCMemOwn = true;
|
47
|
+
XapianJNI.ExpandDecider_change_ownership(this, swigCPtr, true);
|
48
|
+
}
|
49
|
+
|
50
|
+
public boolean accept(String term) {
|
51
|
+
return XapianJNI.ExpandDecider_accept(swigCPtr, this, term);
|
52
|
+
}
|
53
|
+
|
54
|
+
public ExpandDecider() {
|
55
|
+
this(XapianJNI.new_ExpandDecider(), true);
|
56
|
+
XapianJNI.ExpandDecider_director_connect(this, swigCPtr, swigCMemOwn, true);
|
57
|
+
}
|
58
|
+
|
59
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/* ----------------------------------------------------------------------------
|
2
|
+
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
+
* Version 1.3.32
|
4
|
+
*
|
5
|
+
* Do not make changes to this file unless you know what you are doing--modify
|
6
|
+
* the SWIG interface file instead.
|
7
|
+
* ----------------------------------------------------------------------------- */
|
8
|
+
|
9
|
+
|
10
|
+
public class Flint {
|
11
|
+
private long swigCPtr;
|
12
|
+
protected boolean swigCMemOwn;
|
13
|
+
|
14
|
+
protected Flint(long cPtr, boolean cMemoryOwn) {
|
15
|
+
swigCMemOwn = cMemoryOwn;
|
16
|
+
swigCPtr = cPtr;
|
17
|
+
}
|
18
|
+
|
19
|
+
protected static long getCPtr(Flint obj) {
|
20
|
+
return (obj == null) ? 0 : obj.swigCPtr;
|
21
|
+
}
|
22
|
+
|
23
|
+
public synchronized void delete() {
|
24
|
+
if(swigCPtr != 0 && swigCMemOwn) {
|
25
|
+
swigCMemOwn = false;
|
26
|
+
throw new UnsupportedOperationException("C++ destructor does not have public access");
|
27
|
+
}
|
28
|
+
swigCPtr = 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
public static Database open(String dir) {
|
32
|
+
return new Database(XapianJNI.Flint_open__SWIG_0(dir), true);
|
33
|
+
}
|
34
|
+
|
35
|
+
public static WritableDatabase open(String dir, int action, int block_size) {
|
36
|
+
return new WritableDatabase(XapianJNI.Flint_open__SWIG_1(dir, action, block_size), true);
|
37
|
+
}
|
38
|
+
|
39
|
+
public static WritableDatabase open(String dir, int action) {
|
40
|
+
return new WritableDatabase(XapianJNI.Flint_open__SWIG_2(dir, action), true);
|
41
|
+
}
|
42
|
+
|
43
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/* ----------------------------------------------------------------------------
|
2
|
+
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
+
* Version 1.3.32
|
4
|
+
*
|
5
|
+
* Do not make changes to this file unless you know what you are doing--modify
|
6
|
+
* the SWIG interface file instead.
|
7
|
+
* ----------------------------------------------------------------------------- */
|
8
|
+
|
9
|
+
|
10
|
+
public class InMemory {
|
11
|
+
private long swigCPtr;
|
12
|
+
protected boolean swigCMemOwn;
|
13
|
+
|
14
|
+
protected InMemory(long cPtr, boolean cMemoryOwn) {
|
15
|
+
swigCMemOwn = cMemoryOwn;
|
16
|
+
swigCPtr = cPtr;
|
17
|
+
}
|
18
|
+
|
19
|
+
protected static long getCPtr(InMemory obj) {
|
20
|
+
return (obj == null) ? 0 : obj.swigCPtr;
|
21
|
+
}
|
22
|
+
|
23
|
+
public synchronized void delete() {
|
24
|
+
if(swigCPtr != 0 && swigCMemOwn) {
|
25
|
+
swigCMemOwn = false;
|
26
|
+
throw new UnsupportedOperationException("C++ destructor does not have public access");
|
27
|
+
}
|
28
|
+
swigCPtr = 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
public static WritableDatabase open() {
|
32
|
+
return new WritableDatabase(XapianJNI.InMemory_open(), true);
|
33
|
+
}
|
34
|
+
|
35
|
+
}
|
data/java-swig/MSet.java
ADDED
@@ -0,0 +1,143 @@
|
|
1
|
+
/* ----------------------------------------------------------------------------
|
2
|
+
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
+
* Version 1.3.32
|
4
|
+
*
|
5
|
+
* Do not make changes to this file unless you know what you are doing--modify
|
6
|
+
* the SWIG interface file instead.
|
7
|
+
* ----------------------------------------------------------------------------- */
|
8
|
+
|
9
|
+
|
10
|
+
public class MSet {
|
11
|
+
private long swigCPtr;
|
12
|
+
protected boolean swigCMemOwn;
|
13
|
+
|
14
|
+
protected MSet(long cPtr, boolean cMemoryOwn) {
|
15
|
+
swigCMemOwn = cMemoryOwn;
|
16
|
+
swigCPtr = cPtr;
|
17
|
+
}
|
18
|
+
|
19
|
+
protected static long getCPtr(MSet obj) {
|
20
|
+
return (obj == null) ? 0 : obj.swigCPtr;
|
21
|
+
}
|
22
|
+
|
23
|
+
protected void finalize() {
|
24
|
+
delete();
|
25
|
+
}
|
26
|
+
|
27
|
+
public synchronized void delete() {
|
28
|
+
if(swigCPtr != 0 && swigCMemOwn) {
|
29
|
+
swigCMemOwn = false;
|
30
|
+
XapianJNI.delete_MSet(swigCPtr);
|
31
|
+
}
|
32
|
+
swigCPtr = 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
public MSet() {
|
36
|
+
this(XapianJNI.new_MSet__SWIG_0(), true);
|
37
|
+
}
|
38
|
+
|
39
|
+
public MSet(MSet other) {
|
40
|
+
this(XapianJNI.new_MSet__SWIG_1(MSet.getCPtr(other), other), true);
|
41
|
+
}
|
42
|
+
|
43
|
+
public void fetch(MSetIterator begin, MSetIterator end) {
|
44
|
+
XapianJNI.MSet_fetch__SWIG_0(swigCPtr, this, MSetIterator.getCPtr(begin), begin, MSetIterator.getCPtr(end), end);
|
45
|
+
}
|
46
|
+
|
47
|
+
public void fetch(MSetIterator item) {
|
48
|
+
XapianJNI.MSet_fetch__SWIG_1(swigCPtr, this, MSetIterator.getCPtr(item), item);
|
49
|
+
}
|
50
|
+
|
51
|
+
public void fetch() {
|
52
|
+
XapianJNI.MSet_fetch__SWIG_2(swigCPtr, this);
|
53
|
+
}
|
54
|
+
|
55
|
+
public int convertToPercent(double wt) {
|
56
|
+
return XapianJNI.MSet_convertToPercent__SWIG_0(swigCPtr, this, wt);
|
57
|
+
}
|
58
|
+
|
59
|
+
public int convertToPercent(MSetIterator item) {
|
60
|
+
return XapianJNI.MSet_convertToPercent__SWIG_1(swigCPtr, this, MSetIterator.getCPtr(item), item);
|
61
|
+
}
|
62
|
+
|
63
|
+
public long getTermFreq(String tname) {
|
64
|
+
return XapianJNI.MSet_getTermFreq(swigCPtr, this, tname);
|
65
|
+
}
|
66
|
+
|
67
|
+
public double getTermWeight(String tname) {
|
68
|
+
return XapianJNI.MSet_getTermWeight(swigCPtr, this, tname);
|
69
|
+
}
|
70
|
+
|
71
|
+
public long getFirstItem() {
|
72
|
+
return XapianJNI.MSet_getFirstItem(swigCPtr, this);
|
73
|
+
}
|
74
|
+
|
75
|
+
public long getMatchesLowerBound() {
|
76
|
+
return XapianJNI.MSet_getMatchesLowerBound(swigCPtr, this);
|
77
|
+
}
|
78
|
+
|
79
|
+
public long getMatchesEstimated() {
|
80
|
+
return XapianJNI.MSet_getMatchesEstimated(swigCPtr, this);
|
81
|
+
}
|
82
|
+
|
83
|
+
public long getMatchesUpperBound() {
|
84
|
+
return XapianJNI.MSet_getMatchesUpperBound(swigCPtr, this);
|
85
|
+
}
|
86
|
+
|
87
|
+
public double getMaxPossible() {
|
88
|
+
return XapianJNI.MSet_getMaxPossible(swigCPtr, this);
|
89
|
+
}
|
90
|
+
|
91
|
+
public double getMaxAttained() {
|
92
|
+
return XapianJNI.MSet_getMaxAttained(swigCPtr, this);
|
93
|
+
}
|
94
|
+
|
95
|
+
public long size() {
|
96
|
+
return XapianJNI.MSet_size(swigCPtr, this);
|
97
|
+
}
|
98
|
+
|
99
|
+
public boolean empty() {
|
100
|
+
return XapianJNI.MSet_empty(swigCPtr, this);
|
101
|
+
}
|
102
|
+
|
103
|
+
public MSetIterator begin() {
|
104
|
+
return new MSetIterator(XapianJNI.MSet_begin(swigCPtr, this), true);
|
105
|
+
}
|
106
|
+
|
107
|
+
public MSetIterator end() {
|
108
|
+
return new MSetIterator(XapianJNI.MSet_end(swigCPtr, this), true);
|
109
|
+
}
|
110
|
+
|
111
|
+
public MSetIterator back() {
|
112
|
+
return new MSetIterator(XapianJNI.MSet_back(swigCPtr, this), true);
|
113
|
+
}
|
114
|
+
|
115
|
+
public MSetIterator getHit(long i) {
|
116
|
+
return new MSetIterator(XapianJNI.MSet_getHit(swigCPtr, this, i), true);
|
117
|
+
}
|
118
|
+
|
119
|
+
public int getDocumentPercentage(long i) {
|
120
|
+
return XapianJNI.MSet_getDocumentPercentage(swigCPtr, this, i);
|
121
|
+
}
|
122
|
+
|
123
|
+
public Document getDocument(long i) {
|
124
|
+
return new Document(XapianJNI.MSet_getDocument(swigCPtr, this, i), true);
|
125
|
+
}
|
126
|
+
|
127
|
+
public long getDocId(long i) {
|
128
|
+
return XapianJNI.MSet_getDocId(swigCPtr, this, i);
|
129
|
+
}
|
130
|
+
|
131
|
+
public MSetIterator getElement(long i) {
|
132
|
+
return new MSetIterator(XapianJNI.MSet_getElement(swigCPtr, this, i), true);
|
133
|
+
}
|
134
|
+
|
135
|
+
public long getDocumentId(long i) {
|
136
|
+
return XapianJNI.MSet_getDocumentId(swigCPtr, this, i);
|
137
|
+
}
|
138
|
+
|
139
|
+
public String toString() {
|
140
|
+
return XapianJNI.MSet_toString(swigCPtr, this);
|
141
|
+
}
|
142
|
+
|
143
|
+
}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
/* ----------------------------------------------------------------------------
|
2
|
+
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
+
* Version 1.3.32
|
4
|
+
*
|
5
|
+
* Do not make changes to this file unless you know what you are doing--modify
|
6
|
+
* the SWIG interface file instead.
|
7
|
+
* ----------------------------------------------------------------------------- */
|
8
|
+
|
9
|
+
|
10
|
+
public class MSetIterator {
|
11
|
+
private long swigCPtr;
|
12
|
+
protected boolean swigCMemOwn;
|
13
|
+
|
14
|
+
protected MSetIterator(long cPtr, boolean cMemoryOwn) {
|
15
|
+
swigCMemOwn = cMemoryOwn;
|
16
|
+
swigCPtr = cPtr;
|
17
|
+
}
|
18
|
+
|
19
|
+
protected static long getCPtr(MSetIterator obj) {
|
20
|
+
return (obj == null) ? 0 : obj.swigCPtr;
|
21
|
+
}
|
22
|
+
|
23
|
+
protected void finalize() {
|
24
|
+
delete();
|
25
|
+
}
|
26
|
+
|
27
|
+
public synchronized void delete() {
|
28
|
+
if(swigCPtr != 0 && swigCMemOwn) {
|
29
|
+
swigCMemOwn = false;
|
30
|
+
XapianJNI.delete_MSetIterator(swigCPtr);
|
31
|
+
}
|
32
|
+
swigCPtr = 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
public MSetIterator() {
|
36
|
+
this(XapianJNI.new_MSetIterator__SWIG_0(), true);
|
37
|
+
}
|
38
|
+
|
39
|
+
public MSetIterator(MSetIterator other) {
|
40
|
+
this(XapianJNI.new_MSetIterator__SWIG_1(MSetIterator.getCPtr(other), other), true);
|
41
|
+
}
|
42
|
+
|
43
|
+
public long getDocId() {
|
44
|
+
return XapianJNI.MSetIterator_getDocId(swigCPtr, this);
|
45
|
+
}
|
46
|
+
|
47
|
+
public long next() {
|
48
|
+
return XapianJNI.MSetIterator_next(swigCPtr, this);
|
49
|
+
}
|
50
|
+
|
51
|
+
public long prev() {
|
52
|
+
return XapianJNI.MSetIterator_prev(swigCPtr, this);
|
53
|
+
}
|
54
|
+
|
55
|
+
public boolean equals(MSetIterator other) {
|
56
|
+
return XapianJNI.MSetIterator_equals(swigCPtr, this, MSetIterator.getCPtr(other), other);
|
57
|
+
}
|
58
|
+
|
59
|
+
public Document getDocument() {
|
60
|
+
return new Document(XapianJNI.MSetIterator_getDocument(swigCPtr, this), true);
|
61
|
+
}
|
62
|
+
|
63
|
+
public long getRank() {
|
64
|
+
return XapianJNI.MSetIterator_getRank(swigCPtr, this);
|
65
|
+
}
|
66
|
+
|
67
|
+
public double getWeight() {
|
68
|
+
return XapianJNI.MSetIterator_getWeight(swigCPtr, this);
|
69
|
+
}
|
70
|
+
|
71
|
+
public String getCollapseKey() {
|
72
|
+
return XapianJNI.MSetIterator_getCollapseKey(swigCPtr, this);
|
73
|
+
}
|
74
|
+
|
75
|
+
public long getCollapseCount() {
|
76
|
+
return XapianJNI.MSetIterator_getCollapseCount(swigCPtr, this);
|
77
|
+
}
|
78
|
+
|
79
|
+
public int getPercent() {
|
80
|
+
return XapianJNI.MSetIterator_getPercent(swigCPtr, this);
|
81
|
+
}
|
82
|
+
|
83
|
+
public String toString() {
|
84
|
+
return XapianJNI.MSetIterator_toString(swigCPtr, this);
|
85
|
+
}
|
86
|
+
|
87
|
+
}
|
data/java-swig/Makefile
ADDED
@@ -0,0 +1,781 @@
|
|
1
|
+
# Makefile.in generated by automake 1.10.3 from Makefile.am.
|
2
|
+
# java-swig/Makefile. Generated from Makefile.in by configure.
|
3
|
+
|
4
|
+
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
5
|
+
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
6
|
+
# Inc.
|
7
|
+
# This Makefile.in is free software; the Free Software Foundation
|
8
|
+
# gives unlimited permission to copy and/or distribute it,
|
9
|
+
# with or without modifications, as long as this notice is preserved.
|
10
|
+
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
13
|
+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
14
|
+
# PARTICULAR PURPOSE.
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
pkgdatadir = $(datadir)/xapian-bindings
|
21
|
+
pkglibdir = $(libdir)/xapian-bindings
|
22
|
+
pkgincludedir = $(includedir)/xapian-bindings
|
23
|
+
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
24
|
+
install_sh_DATA = $(install_sh) -c -m 644
|
25
|
+
install_sh_PROGRAM = $(install_sh) -c
|
26
|
+
install_sh_SCRIPT = $(install_sh) -c
|
27
|
+
INSTALL_HEADER = $(INSTALL_DATA)
|
28
|
+
transform = $(program_transform_name)
|
29
|
+
NORMAL_INSTALL = :
|
30
|
+
PRE_INSTALL = :
|
31
|
+
POST_INSTALL = :
|
32
|
+
NORMAL_UNINSTALL = :
|
33
|
+
PRE_UNINSTALL = :
|
34
|
+
POST_UNINSTALL = :
|
35
|
+
build_triplet = i386-apple-darwin9.8.0
|
36
|
+
host_triplet = i386-apple-darwin9.8.0
|
37
|
+
DIST_COMMON = $(srcdir)/../generic/generic.mk $(srcdir)/Makefile.am \
|
38
|
+
$(srcdir)/Makefile.in
|
39
|
+
#am__append_1 = $(BUILT_SOURCES)
|
40
|
+
subdir = java-swig
|
41
|
+
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
42
|
+
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
|
43
|
+
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
44
|
+
$(ACLOCAL_M4)
|
45
|
+
mkinstalldirs = $(install_sh) -d
|
46
|
+
CONFIG_HEADER = $(top_builddir)/config.h
|
47
|
+
CONFIG_CLEAN_FILES =
|
48
|
+
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
|
49
|
+
am__vpath_adj = case $$p in \
|
50
|
+
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
|
51
|
+
*) f=$$p;; \
|
52
|
+
esac;
|
53
|
+
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
|
54
|
+
am__installdirs = "$(DESTDIR)$(jnidir)"
|
55
|
+
jniLTLIBRARIES_INSTALL = $(INSTALL)
|
56
|
+
LTLIBRARIES = $(jni_LTLIBRARIES)
|
57
|
+
am__DEPENDENCIES_1 =
|
58
|
+
libxapian_jni_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
|
59
|
+
am_libxapian_jni_la_OBJECTS = xapian_wrap.lo
|
60
|
+
libxapian_jni_la_OBJECTS = $(am_libxapian_jni_la_OBJECTS)
|
61
|
+
libxapian_jni_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
62
|
+
$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
|
63
|
+
$(CXXFLAGS) $(libxapian_jni_la_LDFLAGS) $(LDFLAGS) -o $@
|
64
|
+
DEFAULT_INCLUDES = -I. -I$(top_builddir)
|
65
|
+
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
66
|
+
am__depfiles_maybe = depfiles
|
67
|
+
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
68
|
+
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
69
|
+
LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
70
|
+
--mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
71
|
+
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
72
|
+
CXXLD = $(CXX)
|
73
|
+
CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
74
|
+
--mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
|
75
|
+
$(LDFLAGS) -o $@
|
76
|
+
SOURCES = $(libxapian_jni_la_SOURCES)
|
77
|
+
DIST_SOURCES = $(libxapian_jni_la_SOURCES)
|
78
|
+
DATA = $(noinst_DATA)
|
79
|
+
ETAGS = etags
|
80
|
+
CTAGS = ctags
|
81
|
+
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
82
|
+
ACLOCAL = ${SHELL} /Users/zdennis/source/opensource_projects/xapian/missing --run aclocal-1.10
|
83
|
+
AMTAR = ${SHELL} /Users/zdennis/source/opensource_projects/xapian/missing --run tar
|
84
|
+
AR = ar
|
85
|
+
AUTOCONF = ${SHELL} /Users/zdennis/source/opensource_projects/xapian/missing --run autoconf
|
86
|
+
AUTOHEADER = ${SHELL} /Users/zdennis/source/opensource_projects/xapian/missing --run autoheader
|
87
|
+
AUTOM4TE = autom4te
|
88
|
+
AUTOMAKE = ${SHELL} /Users/zdennis/source/opensource_projects/xapian/missing --run automake-1.10
|
89
|
+
AWK = gawk
|
90
|
+
BINDINGS = ruby
|
91
|
+
CC = gcc
|
92
|
+
CCDEPMODE = depmode=gcc3
|
93
|
+
CFLAGS = -g -O2
|
94
|
+
COMPAT_VERSION = 1.0.18
|
95
|
+
CPP = gcc -E
|
96
|
+
CPPFLAGS =
|
97
|
+
CSC =
|
98
|
+
CXX = g++
|
99
|
+
CXXCPP = g++ -E
|
100
|
+
CXXDEPMODE = depmode=gcc3
|
101
|
+
CXXFLAGS = -g -O2
|
102
|
+
CYGPATH_W = echo
|
103
|
+
DEFS = -DHAVE_CONFIG_H
|
104
|
+
DEPDIR = .deps
|
105
|
+
DSYMUTIL = dsymutil
|
106
|
+
ECHO = /bin/echo
|
107
|
+
ECHO_C = \c
|
108
|
+
ECHO_N =
|
109
|
+
ECHO_T =
|
110
|
+
EGREP = /usr/bin/grep -E
|
111
|
+
EXEEXT =
|
112
|
+
GACUTIL =
|
113
|
+
GREP = /usr/bin/grep
|
114
|
+
INSTALL = /opt/local/bin/ginstall -c
|
115
|
+
INSTALL_DATA = ${INSTALL} -m 644
|
116
|
+
INSTALL_PROGRAM = ${INSTALL}
|
117
|
+
INSTALL_SCRIPT = ${INSTALL}
|
118
|
+
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
|
119
|
+
JAR =
|
120
|
+
JAVA =
|
121
|
+
JAVAC =
|
122
|
+
JAVA_CPPFLAGS =
|
123
|
+
JAVA_CXXFLAGS = -Wall -W -Wno-unused
|
124
|
+
JAVA_HOME =
|
125
|
+
JAVA_PATHSEP =
|
126
|
+
JDK_HOME =
|
127
|
+
JNI_INCLUDE_DIR =
|
128
|
+
LDFLAGS =
|
129
|
+
LIBOBJS =
|
130
|
+
LIBS =
|
131
|
+
|
132
|
+
# `make QUIET=' overrides `./configure --enable-quiet'.
|
133
|
+
# `make QUIET=y' overrides `./configure' without `--enable-quiet'.
|
134
|
+
LIBTOOL = $(SHELL) $(top_builddir)/libtool $(QUIET:y=--quiet)
|
135
|
+
LN_S = ln -s
|
136
|
+
LTLIBOBJS =
|
137
|
+
MAINT = #
|
138
|
+
MAKEINFO = ${SHELL} /Users/zdennis/source/opensource_projects/xapian/missing --run makeinfo
|
139
|
+
MKDIR_P = /opt/local/bin/gmkdir -p
|
140
|
+
MONO =
|
141
|
+
NMEDIT = nmedit
|
142
|
+
NO_UNDEFINED =
|
143
|
+
OBJEXT = o
|
144
|
+
OVERRIDE_MACOSX_DEPLOYMENT_TARGET = 10.3
|
145
|
+
PACKAGE = xapian-bindings
|
146
|
+
PACKAGE_BUGREPORT = http://xapian.org/bugs
|
147
|
+
PACKAGE_NAME = xapian-bindings
|
148
|
+
PACKAGE_STRING = xapian-bindings 1.0.18
|
149
|
+
PACKAGE_TARNAME = xapian-bindings
|
150
|
+
PACKAGE_VERSION = 1.0.18
|
151
|
+
PATH_SEPARATOR = :
|
152
|
+
PERL =
|
153
|
+
PHP =
|
154
|
+
PHP_CONFIG =
|
155
|
+
PHP_EXTENSION_DIR =
|
156
|
+
PHP_INC =
|
157
|
+
PHP_LIBS =
|
158
|
+
PHP_MAJOR_VERSION =
|
159
|
+
PYTHON =
|
160
|
+
PYTHON_INC =
|
161
|
+
PYTHON_LIB =
|
162
|
+
PYTHON_LIBS =
|
163
|
+
PYTHON_SO =
|
164
|
+
RANLIB = ranlib
|
165
|
+
RDOC =
|
166
|
+
RUBY = /opt/local/bin/ruby
|
167
|
+
RUBY_DLEXT = bundle
|
168
|
+
RUBY_INC = /opt/local/lib/ruby/1.8/i686-darwin9
|
169
|
+
RUBY_INC_ARCH = /opt/local/lib/ruby/1.8/i686-darwin9
|
170
|
+
RUBY_LIB = /opt/local/lib/ruby/site_ruby/1.8
|
171
|
+
RUBY_LIBS =
|
172
|
+
RUBY_LIB_ARCH = /opt/local/lib/ruby/site_ruby/1.8/i686-darwin9
|
173
|
+
RUN_CSHARP =
|
174
|
+
SED = /opt/local/bin/gsed
|
175
|
+
SET_MAKE =
|
176
|
+
SHELL = /bin/sh
|
177
|
+
SN =
|
178
|
+
STRIP = strip
|
179
|
+
SWIG =
|
180
|
+
SWIG_CXXFLAGS = -fno-strict-aliasing -Wall -Wno-unused -Wno-uninitialized -fvisibility=hidden
|
181
|
+
SWIG_FLAGS =
|
182
|
+
TCLSH =
|
183
|
+
TCL_CPPFLAGS =
|
184
|
+
TCL_LIB =
|
185
|
+
TCL_LIBS =
|
186
|
+
VERSION = 1.0.18
|
187
|
+
VERSION_NO_SNAPSHOT = 1.0.18
|
188
|
+
XAPIAN_CONFIG = /opt/local/bin/xapian-config
|
189
|
+
XAPIAN_CXXFLAGS = -I/opt/local/include
|
190
|
+
XAPIAN_LIBS = /opt/local/lib/libxapian.la -lstdc++
|
191
|
+
XAPIAN_VERSION = 1.0.18
|
192
|
+
abs_builddir = /Users/zdennis/source/opensource_projects/xapian/java-swig
|
193
|
+
abs_srcdir = /Users/zdennis/source/opensource_projects/xapian/java-swig
|
194
|
+
abs_top_builddir = /Users/zdennis/source/opensource_projects/xapian
|
195
|
+
abs_top_srcdir = /Users/zdennis/source/opensource_projects/xapian
|
196
|
+
ac_ct_CC = gcc
|
197
|
+
ac_ct_CXX = g++
|
198
|
+
am__include = include
|
199
|
+
am__leading_dot = .
|
200
|
+
am__quote =
|
201
|
+
am__tar = tar --format=ustar -chf - "$$tardir"
|
202
|
+
am__untar = tar -xf -
|
203
|
+
bindir = ${exec_prefix}/bin
|
204
|
+
build = i386-apple-darwin9.8.0
|
205
|
+
build_alias =
|
206
|
+
build_cpu = i386
|
207
|
+
build_os = darwin9.8.0
|
208
|
+
build_vendor = apple
|
209
|
+
builddir = .
|
210
|
+
datadir = ${datarootdir}
|
211
|
+
datarootdir = ${prefix}/share
|
212
|
+
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
|
213
|
+
dvidir = ${docdir}
|
214
|
+
exec_prefix = ${prefix}
|
215
|
+
host = i386-apple-darwin9.8.0
|
216
|
+
host_alias =
|
217
|
+
host_cpu = i386
|
218
|
+
host_os = darwin9.8.0
|
219
|
+
host_vendor = apple
|
220
|
+
htmldir = ${docdir}
|
221
|
+
includedir = ${prefix}/include
|
222
|
+
infodir = ${datarootdir}/info
|
223
|
+
install_sh = $(SHELL) /Users/zdennis/source/opensource_projects/xapian/install-sh
|
224
|
+
libdir = ${exec_prefix}/lib
|
225
|
+
libexecdir = ${exec_prefix}/libexec
|
226
|
+
localedir = ${datarootdir}/locale
|
227
|
+
localstatedir = ${prefix}/var
|
228
|
+
mandir = ${datarootdir}/man
|
229
|
+
mkdir_p = /opt/local/bin/gmkdir -p
|
230
|
+
oldincludedir = /usr/include
|
231
|
+
pdfdir = ${docdir}
|
232
|
+
prefix = /usr/local
|
233
|
+
program_transform_name = s,x,x,
|
234
|
+
psdir = ${docdir}
|
235
|
+
sbindir = ${exec_prefix}/sbin
|
236
|
+
sharedstatedir = ${prefix}/com
|
237
|
+
srcdir = .
|
238
|
+
sysconfdir = ${prefix}/etc
|
239
|
+
target_alias =
|
240
|
+
top_build_prefix = ../
|
241
|
+
top_builddir = ..
|
242
|
+
top_srcdir = ..
|
243
|
+
|
244
|
+
# Recover from the removal of $@. A full explanation of this is in the
|
245
|
+
# automake manual under the heading "Multiple Outputs".
|
246
|
+
make_many_locked = \
|
247
|
+
if test -f $@; then :; else \
|
248
|
+
trap 'rm -rf "$$stamp-lck" "$$stamp"' 1 2 13 15; \
|
249
|
+
if mkdir "$$stamp-lck" 2>/dev/null; then \
|
250
|
+
rm -f "$$stamp"; \
|
251
|
+
$(MAKE) $(AM_MAKEFLAGS) "$$stamp"; \
|
252
|
+
result=$$?; rm -rf "$$stamp-lck"; exit $$result; \
|
253
|
+
else \
|
254
|
+
while test -d "$$stamp-lck"; do sleep 1; done; \
|
255
|
+
test -f "$$stamp"; \
|
256
|
+
fi; \
|
257
|
+
fi
|
258
|
+
|
259
|
+
multitarget_begin = @rm -f $@-t; touch $@-t
|
260
|
+
multitarget_end = @mv -f $@-t $@
|
261
|
+
SWIG_mainsource = \
|
262
|
+
$(srcdir)/../xapian.i
|
263
|
+
|
264
|
+
SWIG_sources = \
|
265
|
+
$(SWIG_mainsource) \
|
266
|
+
$(srcdir)/../generic/except.i
|
267
|
+
|
268
|
+
SWIG_includes = \
|
269
|
+
-I$(srcdir) \
|
270
|
+
-I$(srcdir)/../generic
|
271
|
+
|
272
|
+
|
273
|
+
#SUBDIRS = docs
|
274
|
+
TESTS_ENVIRONMENT = \
|
275
|
+
LIBTOOL="$(LIBTOOL)" JAVA="$(JAVA)" PATHSEP="$(JAVA_PATHSEP)" $(srcdir)/run-java-test
|
276
|
+
|
277
|
+
TESTS = SmokeTest.class
|
278
|
+
CLEANFILES = SmokeTest.class built/xapian_jni.jar \
|
279
|
+
$(XAPIAN_SWIG_JAVA_CLASS) $(XAPIAN_SWIG_JAVA_EXTRA_CLASSES) \
|
280
|
+
Query*1.class $(am__append_1)
|
281
|
+
XAPIAN_SWIG_JAVA_SRCS = \
|
282
|
+
Auto.java\
|
283
|
+
BM25Weight.java\
|
284
|
+
BoolWeight.java\
|
285
|
+
Database.java\
|
286
|
+
DateValueRangeProcessor.java\
|
287
|
+
Document.java\
|
288
|
+
Enquire.java\
|
289
|
+
ESet.java\
|
290
|
+
ESetIterator.java\
|
291
|
+
ExpandDecider.java\
|
292
|
+
Flint.java\
|
293
|
+
InMemory.java\
|
294
|
+
MatchDecider.java\
|
295
|
+
MSet.java\
|
296
|
+
MSetIterator.java\
|
297
|
+
MultiValueSorter.java\
|
298
|
+
NumberValueRangeProcessor.java\
|
299
|
+
PositionIterator.java\
|
300
|
+
PostingIterator.java\
|
301
|
+
Quartz.java\
|
302
|
+
Query.java\
|
303
|
+
QueryParser.java\
|
304
|
+
Remote.java\
|
305
|
+
RSet.java\
|
306
|
+
SimpleStopper.java\
|
307
|
+
Sorter.java\
|
308
|
+
Stem.java\
|
309
|
+
Stopper.java\
|
310
|
+
StringValueRangeProcessor.java\
|
311
|
+
SWIGTYPE_p_std__string.java\
|
312
|
+
TermGenerator.java\
|
313
|
+
TermIterator.java\
|
314
|
+
TradWeight.java\
|
315
|
+
ValueIterator.java\
|
316
|
+
ValueRangeProcessor.java\
|
317
|
+
Version.java\
|
318
|
+
Weight.java\
|
319
|
+
WritableDatabase.java\
|
320
|
+
Xapian.java\
|
321
|
+
XapianConstants.java\
|
322
|
+
XapianJNI.java
|
323
|
+
|
324
|
+
XAPIAN_SWIG_JAVA_CLASS = $(XAPIAN_SWIG_JAVA_SRCS:.java=.class)
|
325
|
+
|
326
|
+
# Java generates nested classes with filenames containing a $ (smart move) so
|
327
|
+
# we pick them up with a wildcard and omit them from dependencies to avoid
|
328
|
+
# escaping hell. The lack of a dependency shouldn't really be an issue since
|
329
|
+
# these classes are always generated along with the containing class which
|
330
|
+
# is listed in the dependencies.
|
331
|
+
XAPIAN_SWIG_JAVA_EXTRA_CLASSES = \
|
332
|
+
Enquire*docid_order.class\
|
333
|
+
Query*op.class\
|
334
|
+
QueryParser*feature_flag.class\
|
335
|
+
QueryParser*stem_strategy.class\
|
336
|
+
TermGenerator*flags.class
|
337
|
+
|
338
|
+
noinst_DATA = built/xapian_jni.jar
|
339
|
+
jnidir = `pwd`/built
|
340
|
+
jni_LTLIBRARIES = libxapian_jni.la
|
341
|
+
AM_CXXFLAGS = $(SWIG_CXXFLAGS) $(XAPIAN_CXXFLAGS)
|
342
|
+
AM_CPPFLAGS = $(JAVA_CPPFLAGS)
|
343
|
+
libxapian_jni_la_LDFLAGS = -avoid-version -module $(NO_UNDEFINED)
|
344
|
+
libxapian_jni_la_LIBADD = $(XAPIAN_LIBS)
|
345
|
+
libxapian_jni_la_SOURCES = xapian_wrap.cc
|
346
|
+
BUILT_SOURCES = xapian_wrap.cc xapian_wrap.h $(XAPIAN_SWIG_JAVA_SRCS)
|
347
|
+
EXTRA_DIST = run-java-test SmokeTest.java $(BUILT_SOURCES)
|
348
|
+
MAINTAINERCLEANFILES = $(BUILT_SOURCES)
|
349
|
+
all: $(BUILT_SOURCES)
|
350
|
+
$(MAKE) $(AM_MAKEFLAGS) all-am
|
351
|
+
|
352
|
+
.SUFFIXES:
|
353
|
+
.SUFFIXES: .cc .class .java .lo .o .obj
|
354
|
+
$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(srcdir)/../generic/generic.mk $(am__configure_deps)
|
355
|
+
@for dep in $?; do \
|
356
|
+
case '$(am__configure_deps)' in \
|
357
|
+
*$$dep*) \
|
358
|
+
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
359
|
+
&& { if test -f $@; then exit 0; else break; fi; }; \
|
360
|
+
exit 1;; \
|
361
|
+
esac; \
|
362
|
+
done; \
|
363
|
+
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu java-swig/Makefile'; \
|
364
|
+
cd $(top_srcdir) && \
|
365
|
+
$(AUTOMAKE) --gnu java-swig/Makefile
|
366
|
+
.PRECIOUS: Makefile
|
367
|
+
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
368
|
+
@case '$?' in \
|
369
|
+
*config.status*) \
|
370
|
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
371
|
+
*) \
|
372
|
+
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
373
|
+
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
374
|
+
esac;
|
375
|
+
|
376
|
+
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
377
|
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
378
|
+
|
379
|
+
$(top_srcdir)/configure: # $(am__configure_deps)
|
380
|
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
381
|
+
$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
|
382
|
+
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
383
|
+
install-jniLTLIBRARIES: $(jni_LTLIBRARIES)
|
384
|
+
@$(NORMAL_INSTALL)
|
385
|
+
test -z "$(jnidir)" || $(MKDIR_P) "$(DESTDIR)$(jnidir)"
|
386
|
+
@list='$(jni_LTLIBRARIES)'; for p in $$list; do \
|
387
|
+
if test -f $$p; then \
|
388
|
+
f=$(am__strip_dir) \
|
389
|
+
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(jniLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(jnidir)/$$f'"; \
|
390
|
+
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(jniLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(jnidir)/$$f"; \
|
391
|
+
else :; fi; \
|
392
|
+
done
|
393
|
+
|
394
|
+
uninstall-jniLTLIBRARIES:
|
395
|
+
@$(NORMAL_UNINSTALL)
|
396
|
+
@list='$(jni_LTLIBRARIES)'; for p in $$list; do \
|
397
|
+
p=$(am__strip_dir) \
|
398
|
+
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(jnidir)/$$p'"; \
|
399
|
+
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(jnidir)/$$p"; \
|
400
|
+
done
|
401
|
+
|
402
|
+
clean-jniLTLIBRARIES:
|
403
|
+
-test -z "$(jni_LTLIBRARIES)" || rm -f $(jni_LTLIBRARIES)
|
404
|
+
@list='$(jni_LTLIBRARIES)'; for p in $$list; do \
|
405
|
+
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
|
406
|
+
test "$$dir" != "$$p" || dir=.; \
|
407
|
+
echo "rm -f \"$${dir}/so_locations\""; \
|
408
|
+
rm -f "$${dir}/so_locations"; \
|
409
|
+
done
|
410
|
+
libxapian_jni.la: $(libxapian_jni_la_OBJECTS) $(libxapian_jni_la_DEPENDENCIES)
|
411
|
+
$(libxapian_jni_la_LINK) -rpath $(jnidir) $(libxapian_jni_la_OBJECTS) $(libxapian_jni_la_LIBADD) $(LIBS)
|
412
|
+
|
413
|
+
mostlyclean-compile:
|
414
|
+
-rm -f *.$(OBJEXT)
|
415
|
+
|
416
|
+
distclean-compile:
|
417
|
+
-rm -f *.tab.c
|
418
|
+
|
419
|
+
include ./$(DEPDIR)/xapian_wrap.Plo
|
420
|
+
|
421
|
+
.cc.o:
|
422
|
+
$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
423
|
+
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
424
|
+
# source='$<' object='$@' libtool=no \
|
425
|
+
# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
|
426
|
+
# $(CXXCOMPILE) -c -o $@ $<
|
427
|
+
|
428
|
+
.cc.obj:
|
429
|
+
$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
430
|
+
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
431
|
+
# source='$<' object='$@' libtool=no \
|
432
|
+
# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
|
433
|
+
# $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
434
|
+
|
435
|
+
.cc.lo:
|
436
|
+
$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
437
|
+
mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
|
438
|
+
# source='$<' object='$@' libtool=yes \
|
439
|
+
# DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \
|
440
|
+
# $(LTCXXCOMPILE) -c -o $@ $<
|
441
|
+
|
442
|
+
mostlyclean-libtool:
|
443
|
+
-rm -f *.lo
|
444
|
+
|
445
|
+
clean-libtool:
|
446
|
+
-rm -rf .libs _libs
|
447
|
+
|
448
|
+
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
449
|
+
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
450
|
+
unique=`for i in $$list; do \
|
451
|
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
452
|
+
done | \
|
453
|
+
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
454
|
+
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
455
|
+
mkid -fID $$unique
|
456
|
+
tags: TAGS
|
457
|
+
|
458
|
+
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
459
|
+
$(TAGS_FILES) $(LISP)
|
460
|
+
tags=; \
|
461
|
+
here=`pwd`; \
|
462
|
+
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
463
|
+
unique=`for i in $$list; do \
|
464
|
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
465
|
+
done | \
|
466
|
+
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
467
|
+
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
468
|
+
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
|
469
|
+
test -n "$$unique" || unique=$$empty_fix; \
|
470
|
+
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
471
|
+
$$tags $$unique; \
|
472
|
+
fi
|
473
|
+
ctags: CTAGS
|
474
|
+
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
475
|
+
$(TAGS_FILES) $(LISP)
|
476
|
+
tags=; \
|
477
|
+
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
478
|
+
unique=`for i in $$list; do \
|
479
|
+
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
480
|
+
done | \
|
481
|
+
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
482
|
+
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
483
|
+
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|
484
|
+
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
485
|
+
$$tags $$unique
|
486
|
+
|
487
|
+
GTAGS:
|
488
|
+
here=`$(am__cd) $(top_builddir) && pwd` \
|
489
|
+
&& cd $(top_srcdir) \
|
490
|
+
&& gtags -i $(GTAGS_ARGS) $$here
|
491
|
+
|
492
|
+
distclean-tags:
|
493
|
+
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
494
|
+
|
495
|
+
check-TESTS: $(TESTS)
|
496
|
+
@failed=0; all=0; xfail=0; xpass=0; skip=0; \
|
497
|
+
srcdir=$(srcdir); export srcdir; \
|
498
|
+
list=' $(TESTS) '; \
|
499
|
+
if test -n "$$list"; then \
|
500
|
+
for tst in $$list; do \
|
501
|
+
if test -f ./$$tst; then dir=./; \
|
502
|
+
elif test -f $$tst; then dir=; \
|
503
|
+
else dir="$(srcdir)/"; fi; \
|
504
|
+
if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
|
505
|
+
all=`expr $$all + 1`; \
|
506
|
+
case " $(XFAIL_TESTS) " in \
|
507
|
+
*[\ \ ]$$tst[\ \ ]*) \
|
508
|
+
xpass=`expr $$xpass + 1`; \
|
509
|
+
failed=`expr $$failed + 1`; \
|
510
|
+
echo "XPASS: $$tst"; \
|
511
|
+
;; \
|
512
|
+
*) \
|
513
|
+
echo "PASS: $$tst"; \
|
514
|
+
;; \
|
515
|
+
esac; \
|
516
|
+
elif test $$? -ne 77; then \
|
517
|
+
all=`expr $$all + 1`; \
|
518
|
+
case " $(XFAIL_TESTS) " in \
|
519
|
+
*[\ \ ]$$tst[\ \ ]*) \
|
520
|
+
xfail=`expr $$xfail + 1`; \
|
521
|
+
echo "XFAIL: $$tst"; \
|
522
|
+
;; \
|
523
|
+
*) \
|
524
|
+
failed=`expr $$failed + 1`; \
|
525
|
+
echo "FAIL: $$tst"; \
|
526
|
+
;; \
|
527
|
+
esac; \
|
528
|
+
else \
|
529
|
+
skip=`expr $$skip + 1`; \
|
530
|
+
echo "SKIP: $$tst"; \
|
531
|
+
fi; \
|
532
|
+
done; \
|
533
|
+
if test "$$all" -eq 1; then \
|
534
|
+
tests="test"; \
|
535
|
+
All=""; \
|
536
|
+
else \
|
537
|
+
tests="tests"; \
|
538
|
+
All="All "; \
|
539
|
+
fi; \
|
540
|
+
if test "$$failed" -eq 0; then \
|
541
|
+
if test "$$xfail" -eq 0; then \
|
542
|
+
banner="$$All$$all $$tests passed"; \
|
543
|
+
else \
|
544
|
+
if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
|
545
|
+
banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
|
546
|
+
fi; \
|
547
|
+
else \
|
548
|
+
if test "$$xpass" -eq 0; then \
|
549
|
+
banner="$$failed of $$all $$tests failed"; \
|
550
|
+
else \
|
551
|
+
if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
|
552
|
+
banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
|
553
|
+
fi; \
|
554
|
+
fi; \
|
555
|
+
dashes="$$banner"; \
|
556
|
+
skipped=""; \
|
557
|
+
if test "$$skip" -ne 0; then \
|
558
|
+
if test "$$skip" -eq 1; then \
|
559
|
+
skipped="($$skip test was not run)"; \
|
560
|
+
else \
|
561
|
+
skipped="($$skip tests were not run)"; \
|
562
|
+
fi; \
|
563
|
+
test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
|
564
|
+
dashes="$$skipped"; \
|
565
|
+
fi; \
|
566
|
+
report=""; \
|
567
|
+
if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
|
568
|
+
report="Please report to $(PACKAGE_BUGREPORT)"; \
|
569
|
+
test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
|
570
|
+
dashes="$$report"; \
|
571
|
+
fi; \
|
572
|
+
dashes=`echo "$$dashes" | sed s/./=/g`; \
|
573
|
+
echo "$$dashes"; \
|
574
|
+
echo "$$banner"; \
|
575
|
+
test -z "$$skipped" || echo "$$skipped"; \
|
576
|
+
test -z "$$report" || echo "$$report"; \
|
577
|
+
echo "$$dashes"; \
|
578
|
+
test "$$failed" -eq 0; \
|
579
|
+
else :; fi
|
580
|
+
|
581
|
+
distdir: $(DISTFILES)
|
582
|
+
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
583
|
+
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
584
|
+
list='$(DISTFILES)'; \
|
585
|
+
dist_files=`for file in $$list; do echo $$file; done | \
|
586
|
+
sed -e "s|^$$srcdirstrip/||;t" \
|
587
|
+
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
588
|
+
case $$dist_files in \
|
589
|
+
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
590
|
+
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
591
|
+
sort -u` ;; \
|
592
|
+
esac; \
|
593
|
+
for file in $$dist_files; do \
|
594
|
+
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
595
|
+
if test -d $$d/$$file; then \
|
596
|
+
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
597
|
+
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
598
|
+
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
599
|
+
fi; \
|
600
|
+
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
601
|
+
else \
|
602
|
+
test -f $(distdir)/$$file \
|
603
|
+
|| cp -p $$d/$$file $(distdir)/$$file \
|
604
|
+
|| exit 1; \
|
605
|
+
fi; \
|
606
|
+
done
|
607
|
+
check-am: all-am
|
608
|
+
$(MAKE) $(AM_MAKEFLAGS) check-TESTS
|
609
|
+
check: $(BUILT_SOURCES)
|
610
|
+
$(MAKE) $(AM_MAKEFLAGS) check-am
|
611
|
+
all-am: Makefile $(LTLIBRARIES) $(DATA)
|
612
|
+
installdirs:
|
613
|
+
for dir in "$(DESTDIR)$(jnidir)"; do \
|
614
|
+
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
615
|
+
done
|
616
|
+
install: $(BUILT_SOURCES)
|
617
|
+
$(MAKE) $(AM_MAKEFLAGS) install-am
|
618
|
+
install-exec: install-exec-am
|
619
|
+
install-data: install-data-am
|
620
|
+
uninstall: uninstall-am
|
621
|
+
|
622
|
+
install-am: all-am
|
623
|
+
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
624
|
+
|
625
|
+
installcheck: installcheck-am
|
626
|
+
install-strip:
|
627
|
+
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
628
|
+
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
629
|
+
`test -z '$(STRIP)' || \
|
630
|
+
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
631
|
+
mostlyclean-generic:
|
632
|
+
|
633
|
+
clean-generic:
|
634
|
+
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
635
|
+
|
636
|
+
distclean-generic:
|
637
|
+
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
638
|
+
|
639
|
+
maintainer-clean-generic:
|
640
|
+
@echo "This command is intended for maintainers to use"
|
641
|
+
@echo "it deletes files that may require special tools to rebuild."
|
642
|
+
-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
|
643
|
+
-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
|
644
|
+
clean: clean-am
|
645
|
+
|
646
|
+
clean-am: clean-generic clean-jniLTLIBRARIES clean-libtool \
|
647
|
+
mostlyclean-am
|
648
|
+
|
649
|
+
distclean: distclean-am
|
650
|
+
-rm -rf ./$(DEPDIR)
|
651
|
+
-rm -f Makefile
|
652
|
+
distclean-am: clean-am distclean-compile distclean-generic \
|
653
|
+
distclean-tags
|
654
|
+
|
655
|
+
dvi: dvi-am
|
656
|
+
|
657
|
+
dvi-am:
|
658
|
+
|
659
|
+
html: html-am
|
660
|
+
|
661
|
+
html-am:
|
662
|
+
|
663
|
+
info: info-am
|
664
|
+
|
665
|
+
info-am:
|
666
|
+
|
667
|
+
install-data-am: install-jniLTLIBRARIES
|
668
|
+
@$(NORMAL_INSTALL)
|
669
|
+
$(MAKE) $(AM_MAKEFLAGS) install-data-hook
|
670
|
+
|
671
|
+
install-dvi: install-dvi-am
|
672
|
+
|
673
|
+
install-dvi-am:
|
674
|
+
|
675
|
+
install-exec-am:
|
676
|
+
|
677
|
+
install-html: install-html-am
|
678
|
+
|
679
|
+
install-html-am:
|
680
|
+
|
681
|
+
install-info: install-info-am
|
682
|
+
|
683
|
+
install-info-am:
|
684
|
+
|
685
|
+
install-man:
|
686
|
+
|
687
|
+
install-pdf: install-pdf-am
|
688
|
+
|
689
|
+
install-pdf-am:
|
690
|
+
|
691
|
+
install-ps: install-ps-am
|
692
|
+
|
693
|
+
install-ps-am:
|
694
|
+
|
695
|
+
installcheck-am:
|
696
|
+
|
697
|
+
maintainer-clean: maintainer-clean-am
|
698
|
+
-rm -rf ./$(DEPDIR)
|
699
|
+
-rm -f Makefile
|
700
|
+
maintainer-clean-am: distclean-am maintainer-clean-generic
|
701
|
+
|
702
|
+
mostlyclean: mostlyclean-am
|
703
|
+
|
704
|
+
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
705
|
+
mostlyclean-libtool
|
706
|
+
|
707
|
+
pdf: pdf-am
|
708
|
+
|
709
|
+
pdf-am:
|
710
|
+
|
711
|
+
ps: ps-am
|
712
|
+
|
713
|
+
ps-am:
|
714
|
+
|
715
|
+
uninstall-am: uninstall-jniLTLIBRARIES uninstall-local
|
716
|
+
|
717
|
+
.MAKE: install-am install-data-am install-strip
|
718
|
+
|
719
|
+
.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
|
720
|
+
clean-generic clean-jniLTLIBRARIES clean-libtool ctags \
|
721
|
+
distclean distclean-compile distclean-generic \
|
722
|
+
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
723
|
+
html-am info info-am install install-am install-data \
|
724
|
+
install-data-am install-data-hook install-dvi install-dvi-am \
|
725
|
+
install-exec install-exec-am install-html install-html-am \
|
726
|
+
install-info install-info-am install-jniLTLIBRARIES \
|
727
|
+
install-man install-pdf install-pdf-am install-ps \
|
728
|
+
install-ps-am install-strip installcheck installcheck-am \
|
729
|
+
installdirs maintainer-clean maintainer-clean-generic \
|
730
|
+
mostlyclean mostlyclean-compile mostlyclean-generic \
|
731
|
+
mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
|
732
|
+
uninstall-am uninstall-jniLTLIBRARIES uninstall-local
|
733
|
+
|
734
|
+
|
735
|
+
# Export these so that we run the locally installed autotools when building
|
736
|
+
# from a bootstrapped SVN tree.
|
737
|
+
#export ACLOCAL AUTOCONF AUTOHEADER AUTOM4TE AUTOMAKE
|
738
|
+
|
739
|
+
# This requires GNU make, but apparently that's the default on OS X.
|
740
|
+
export MACOSX_DEPLOYMENT_TARGET=10.3
|
741
|
+
|
742
|
+
SmokeTest: SmokeTest.class
|
743
|
+
|
744
|
+
.java.class:
|
745
|
+
$(JAVAC) -classpath $(srcdir)$(JAVA_PATHSEP). -d . $<
|
746
|
+
|
747
|
+
built/xapian_jni.jar: $(XAPIAN_SWIG_JAVA_CLASS)
|
748
|
+
-test -d built || mkdir built
|
749
|
+
$(JAR) -cf built/xapian_jni.jar $(XAPIAN_SWIG_JAVA_CLASS) $(XAPIAN_SWIG_JAVA_EXTRA_CLASSES)
|
750
|
+
|
751
|
+
# Remove the .la file - libxapian_jni.la is never linked against (it's a
|
752
|
+
# module) and JVMs don't use libltdl. Note that the library gets installed by
|
753
|
+
# install-data, so that's where we need to hook.
|
754
|
+
install-data-hook:
|
755
|
+
rm -f $(DESTDIR)$(jnidir)/xapian.la
|
756
|
+
|
757
|
+
# Because we don't install the .la file, "make uninstall" doesn't work and
|
758
|
+
# we need to remove the file ourselves.
|
759
|
+
uninstall-local:
|
760
|
+
eval `grep '^dlname=' $(jni_LTLIBRARIES)` ; \
|
761
|
+
rm -f $(DESTDIR)$(jnidir)/"$$dlname"
|
762
|
+
|
763
|
+
#xapian_wrap.cc xapian_wrap.h $(XAPIAN_SWIG_JAVA_SRCS): xapian_wrap.stamp
|
764
|
+
# @stamp=xapian_wrap.stamp; $(make_many_locked)
|
765
|
+
#xapian_wrap.stamp: $(SWIG_sources) util.i
|
766
|
+
# $(multitarget_begin)
|
767
|
+
# : # Make sure that we don't package stale generated sources in the
|
768
|
+
# : # case where SWIG changes its mind as to which files it generates.
|
769
|
+
# -rm -f $(XAPIAN_SWIG_JAVA_SRCS)
|
770
|
+
# $(SWIG) $(SWIG_includes) $(SWIG_FLAGS) -c++ \
|
771
|
+
# -java -module Xapian \
|
772
|
+
# -o xapian_wrap.cc $(SWIG_mainsource)
|
773
|
+
# : # -package org.xapian
|
774
|
+
# : # Insert code to automatically load the JNI library.
|
775
|
+
# $(PERL) -pi -e 'print " System.loadLibrary(\"xapian_jni\");\n" if /^\s*swig_module_init/' XapianJNI.java
|
776
|
+
# : # Check that all the sources we expected were generated.
|
777
|
+
# ls $(XAPIAN_SWIG_JAVA_SRCS) > /dev/null
|
778
|
+
# $(multitarget_end)
|
779
|
+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
780
|
+
# Otherwise a system limit (for SysV at least) may be exceeded.
|
781
|
+
.NOEXPORT:
|