Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Copyright: UnionTech Software Technology Co., Ltd.
License: CC-BY-4.0

# xml toml json conf yaml
Files: msic/dbus-conf/com.deepin.face.conf msic/deepin-face-driver.json .gitignore msic/dbus-conf/org.deepin.dde.Face1.conf
Files: msic/dbus-conf/com.deepin.face.conf msic/deepin-face-driver.json .gitignore msic/dbus-conf/org.deepin.dde.Face1.conf msic/deepin-face.conf
msic/dbus-services/org.deepin.dde.Face1.service
Copyright: None
License: CC0-1.0
Expand Down
1 change: 1 addition & 0 deletions debian/deepin-face.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
msic/deepin-face.conf etc/ld.so.conf.d/
22 changes: 22 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh

set -e

case "$1" in
configure)
# Update the dynamic linker cache after installing ld.so.conf.d configuration
if [ -x "$(command -v ldconfig)" ]; then
ldconfig
fi
;;

abort-upgrade|abort-remove|abort-deconfigure)
;;

*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac

exit 0
22 changes: 22 additions & 0 deletions debian/postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh

set -e

case "$1" in
remove|purge)
# Update the dynamic linker cache after removing ld.so.conf.d configuration
if [ -x "$(command -v ldconfig)" ]; then
ldconfig
fi
;;

upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;

*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac

exit 0
8 changes: 3 additions & 5 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed


export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_CXXFLAGS_MAINT_APPEND = -Wall
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-E
%:
dh $@ --buildsystem qmake6

Expand Down
6 changes: 0 additions & 6 deletions deepin-face.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ DEFINES += QT_DEPRECATED_WARNINGS
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

# 增加安全编译参数
QMAKE_CFLAGS += -fstack-protector-all
QMAKE_CXXFLAGS += -fstack-protector-all
QMAKE_LFLAGS += -z relro -z now -z noexecstack -pie


SOURCES += \
main.cpp \
Expand Down Expand Up @@ -50,7 +45,6 @@ LIBS += -L/usr/lib/auto \
-lSeetaFaceAntiSpoofingX600d -lSeetaFaceTracking600 -lSeetaFaceRecognizer610 \
-lSeetaQualityAssessor300 -lSeetaPoseEstimation600 -lSeetaAuthorize -ltennis

QMAKE_RPATHDIR += /usr/lib/auto/

isEmpty(PREFIX){
PREFIX = /usr
Expand Down
1 change: 1 addition & 0 deletions msic/deepin-face.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/usr/lib/auto