Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fix a makefile deps problem which caused ext/jni build to fail if sqlite3.c/h were not created beforehand. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | jni |
Files: | files | file ages | folders |
SHA3-256: |
101de670774f63757180282763730aa5 |
User & Date: | stephan 2023-08-11 20:32:40.205 |
Context
2023-08-11
| ||
21:24 | Merge trunk into jni branch. (check-in: 4f0aeeba02 user: stephan tags: jni) | |
20:32 | Fix a makefile deps problem which caused ext/jni build to fail if sqlite3.c/h were not created beforehand. (check-in: 101de67077 user: stephan tags: jni) | |
18:59 | Minor SQLTester test tweaks and have 'make tester' include the out-of-tree tests if they are found. (check-in: 6c8538d834 user: stephan tags: jni) | |
Changes
Changes to ext/jni/GNUmakefile.
︙ | ︙ | |||
132 133 134 135 136 137 138 | # coincidentally, those 3 modules are included in the sqlite3-see.c # bundle. # # A custom sqlite3.c must not have any spaces in its name. # $(sqlite3.canonical.c) must point to the sqlite3.c in # the sqlite3 canonical source tree, as that source file # is required for certain utility and test code. | | | | | | 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | # coincidentally, those 3 modules are included in the sqlite3-see.c # bundle. # # A custom sqlite3.c must not have any spaces in its name. # $(sqlite3.canonical.c) must point to the sqlite3.c in # the sqlite3 canonical source tree, as that source file # is required for certain utility and test code. sqlite3.canonical.c := $(firstword $(wildcard $(dir.src.c)/sqlite3.c) $(dir.top)/sqlite3.c) sqlite3.canonical.h := $(firstword $(wildcard $(dir.src.c)/sqlite3.h) $(dir.top)/sqlite3.h) sqlite3.c := $(sqlite3.canonical.c) sqlite3.h := $(sqlite3.canonical.h) #ifeq (,$(shell grep sqlite3_activate_see $(sqlite3.c) 2>/dev/null)) # SQLITE_C_IS_SEE := 0 #else # SQLITE_C_IS_SEE := 1 # $(info This is an SEE build.) #endif .NOTPARALLEL: $(sqlite3.h) $(sqlite3.h): $(MAKE) -C $(dir.top) sqlite3.c $(sqlite3.c): $(sqlite3.h) SQLITE_OPT = \ -DSQLITE_ENABLE_RTREE \ -DSQLITE_ENABLE_EXPLAIN_COMMENTS \ -DSQLITE_ENABLE_STMTVTAB \ -DSQLITE_ENABLE_DBPAGE_VTAB \ -DSQLITE_ENABLE_DBSTAT_VTAB \ -DSQLITE_ENABLE_BYTECODE_VTAB \ -DSQLITE_ENABLE_OFFSET_SQL_FUNC \ |
︙ | ︙ | |||
195 196 197 198 199 200 201 | $(eval $(call ADD_JNI_H,fts5_tokenizer)) endif ifeq (1,$(enable.tester)) sqlite3-jni.h.in += $(dir.bld.c)/org_sqlite_jni_tester_SQLTester.h $(dir.bld.c)/org_sqlite_jni_tester_SQLTester.h: $(dir.src.jni.tester)/SQLTester.java endif #sqlite3-jni.dll.cfiles := $(dir.src.c) | | | 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | $(eval $(call ADD_JNI_H,fts5_tokenizer)) endif ifeq (1,$(enable.tester)) sqlite3-jni.h.in += $(dir.bld.c)/org_sqlite_jni_tester_SQLTester.h $(dir.bld.c)/org_sqlite_jni_tester_SQLTester.h: $(dir.src.jni.tester)/SQLTester.java endif #sqlite3-jni.dll.cfiles := $(dir.src.c) sqlite3-jni.dll.cflags = \ -fPIC \ -I. \ -I$(dir $(sqlite3.h)) \ -I$(dir.src.c) \ -I$(JDK_HOME)/include \ $(patsubst %,-I%,$(patsubst %.h,,$(wildcard $(JDK_HOME)/include/*))) \ -Wall |
︙ | ︙ | |||
219 220 221 222 223 224 225 | sqlite3-jni.dll.cflags += -DS3JNI_ENABLE_SQLTester endif $(sqlite3-jni.h): $(sqlite3-jni.h.in) $(MAKEFILE) cat $(sqlite3-jni.h.in) > $@ $(sqlite3-jni.dll): $(sqlite3-jni.h) $(sqlite3.c) $(sqlite3.h) $(sqlite3-jni.dll): $(dir.bld.c) $(sqlite3-jni.c) $(SQLite3Jni.java) $(MAKEFILE) $(CC) $(sqlite3-jni.dll.cflags) $(SQLITE_OPT) \ | | | 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | sqlite3-jni.dll.cflags += -DS3JNI_ENABLE_SQLTester endif $(sqlite3-jni.h): $(sqlite3-jni.h.in) $(MAKEFILE) cat $(sqlite3-jni.h.in) > $@ $(sqlite3-jni.dll): $(sqlite3-jni.h) $(sqlite3.c) $(sqlite3.h) $(sqlite3-jni.dll): $(dir.bld.c) $(sqlite3-jni.c) $(SQLite3Jni.java) $(MAKEFILE) $(CC) $(sqlite3-jni.dll.cflags) $(SQLITE_OPT) \ $(sqlite3-jni.c) -shared -o $@ all: $(sqlite3-jni.dll) .PHONY: test test.flags ?= -v test: $(SQLite3Jni.class) $(sqlite3-jni.dll) $(bin.java) -ea -Djava.library.path=$(dir.bld.c) \ $(java.flags) -cp $(classpath) \ |
︙ | ︙ |
Changes to ext/jni/src/c/sqlite3-jni.h.
︙ | ︙ | |||
1116 1117 1118 1119 1120 1121 1122 | (JNIEnv *, jclass, jobject, jstring); /* * Class: org_sqlite_jni_SQLite3Jni * Method: sqlite3_db_config * Signature: (Lorg/sqlite/jni/sqlite3;IILorg/sqlite/jni/OutputPointer/Int32;)I */ | | | 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 | (JNIEnv *, jclass, jobject, jstring); /* * Class: org_sqlite_jni_SQLite3Jni * Method: sqlite3_db_config * Signature: (Lorg/sqlite/jni/sqlite3;IILorg/sqlite/jni/OutputPointer/Int32;)I */ JNIEXPORT jint JNICALL Java_org_sqlite_jni_SQLite3Jni_sqlite3_1db_1config__Lorg_sqlite_jni_sqlite3_2IILorg_sqlite_jni_OutputPointer_Int32_2 (JNIEnv *, jclass, jobject, jint, jint, jobject); /* * Class: org_sqlite_jni_SQLite3Jni * Method: sqlite3_db_config * Signature: (Lorg/sqlite/jni/sqlite3;ILjava/lang/String;)I */ |
︙ | ︙ |