Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Initial pass at 'make dist' rules for the JNI bundle, but they still need a bare-bones, posix-make-compatible makefile to include in the bundle. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | jni |
Files: | files | file ages | folders |
SHA3-256: |
ff54e66a4d43f2f0f8b25ded970779e6 |
User & Date: | stephan 2023-08-10 18:57:37.830 |
Context
2023-08-10
| ||
20:52 | Add a working dist zip file for the JNI bits. (check-in: d6a4d212ce user: stephan tags: jni) | |
18:57 | Initial pass at 'make dist' rules for the JNI bundle, but they still need a bare-bones, posix-make-compatible makefile to include in the bundle. (check-in: ff54e66a4d user: stephan tags: jni) | |
17:39 | Merge trunk into jni branch for the newly-relocated version-info tool. (check-in: cc8e8cba67 user: stephan tags: jni) | |
Changes
Changes to ext/jni/GNUmakefile.
︙ | ︙ | |||
13 14 15 16 17 18 19 20 21 22 23 24 25 26 | MAKEFILE := $(lastword $(MAKEFILE_LIST)) $(MAKEFILE): package.version := 0.0.1 package.jar := sqlite3-jni-$(package.version).jar dir.top := ../.. dir.jni := $(patsubst %/,%,$(dir $(MAKEFILE))) dir.src := $(dir.jni)/src dir.src.c := $(dir.src)/c dir.bld := $(dir.jni)/bld dir.bld.c := $(dir.bld) dir.src.jni := $(dir.src)/org/sqlite/jni | > | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | MAKEFILE := $(lastword $(MAKEFILE_LIST)) $(MAKEFILE): package.version := 0.0.1 package.jar := sqlite3-jni-$(package.version).jar dir.top := ../.. dir.tool := ../../tool dir.jni := $(patsubst %/,%,$(dir $(MAKEFILE))) dir.src := $(dir.jni)/src dir.src.c := $(dir.src)/c dir.bld := $(dir.jni)/bld dir.bld.c := $(dir.bld) dir.src.jni := $(dir.src)/org/sqlite/jni |
︙ | ︙ | |||
130 131 132 133 134 135 136 | # 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. | | > | | 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | # 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 ?= $(firstword $(wildcard $(dir.top)/sqlite3-see.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 |
︙ | ︙ | |||
259 260 261 262 263 264 265 | .PHONY: clean distclean clean: -rm -f $(CLEAN_FILES) distclean: clean -rm -f $(DISTCLEAN_FILES) -rm -fr $(dir.bld.c) | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 | .PHONY: clean distclean clean: -rm -f $(CLEAN_FILES) distclean: clean -rm -f $(DISTCLEAN_FILES) -rm -fr $(dir.bld.c) ######################################################################## # disttribution bundle rules... ifeq (,$(filter snapshot,$(MAKECMDGOALS))) dist-name-prefix := sqlite-jni else dist-name-prefix := sqlite-jni-snapshot-$(shell /usr/bin/date +%Y%m%d) endif dist-name := $(dist-name-prefix)-TEMP dist-dir.top := $(dist-name) dist-dir.src := $(dist-dir.top)/src dist-dir.c := $(dist-dir.src)/c dist.top.extras := \ README.md .PHONY: dist snapshot dist: \ $(bin.version-info) $(sqlite3.canonical.c) \ $(MAKEFILE) $(MAKEFILE.dist) @echo "Making end-user deliverables..." @rm -fr $(dist-dir.top) @mkdir -p $(dist-dir.top) $(dist-dir.c) @cp -p $(dist.top.extras) $(dist-dir.top)/. @cp -p $(dir.src.c)/*.[ch] $(dist-dir.c)/. @cp -p $(sqlite3.canonical.c) $(sqlite3.canonical.h) $(dist-dir.c)/. @cp -rp $(dir.src)/org $(dist-dir.src) @set -e; \ vnum=$$($(bin.version-info) --download-version); \ vdir=$(dist-name-prefix)-$$vnum; \ arczip=$$vdir.zip; \ echo "Making $$arczip ..."; \ rm -fr $$arczip $$vdir; \ mv $(dist-dir.top) $$vdir; \ zip -qr $$arczip $$vdir -x '*.class' -x '*~'; \ rm -fr $$vdir; \ ls -la $$arczip; \ set +e; \ unzip -lv $$arczip || echo "Missing unzip app? Not fatal." snapshot: dist .PHONY: dist-clean clean: dist-clean dist-clean: rm -fr $(dist-name) $(wildcard sqlite-jni-*.zip) |