File: rules

package info (click to toggle)
sqlcipher 4.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 120,100 kB
  • sloc: ansic: 285,202; tcl: 19,833; javascript: 12,886; java: 8,151; sh: 4,409; yacc: 1,644; makefile: 1,578; cpp: 440; cs: 307; sql: 45
file content (47 lines) | stat: -rwxr-xr-x 1,187 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/make -f
#-*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
    DDEBUG="--enable-debug"
endif

export CFLAGS += -fno-strict-aliasing \
	-DSQLITE_SECURE_DELETE -DSQLITE_ENABLE_COLUMN_METADATA \
	-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SOUNDEX=1 \
	-DSQLITE_ENABLE_UNLOCK_NOTIFY \
	-DSQLITE_OMIT_LOOKASIDE=1 \
	-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1 \
	-DSQLITE_MAX_SCHEMA_RETRY=25 \
	-DSQLITE_HAS_CODEC \
	-DHAVE_USLEEP=1
	# -DHAVE_USLEEP may cause issues on some platforms, but as far as I can
	# tell all platfoms debian supports have USLEEP.

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(DDEBUG) \
	  --enable-threadsafe \
	  --enable-load-extension \
	  --enable-tempstore \
	  --enable-fts4 \
	  --enable-fts5 \
	  --enable-json \
	  --disable-tcl

override_dh_install:
	dh_install -Xlibsqlcipher.la
override_dh_missing:
	dh_missing -Xlibsqlcipher.la --fail-missing

override_dh_auto_clean:
	dh_auto_clean
	$(RM) sqlite3session.h config.log mksourceid

# TODO: fix and enable auto tests
override_dh_auto_test: