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
|
#!/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 += -O2 -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 \
# This may cause issues on some platforms, but as far as I can
# tell all platfoms debian supports have USLEEP.
-DHAVE_USLEEP=1
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- $(DDEBUG) \
--enable-threadsafe \
--enable-load-extension \
--enable-tempstore \
--disable-tcl
override_dh_install:
dh_install -Xlibsqlcipher.la --fail-missing
# TODO: fix and enable auto tests
override_dh_auto_test:
|