donghualin 5f4429b3f8 fix: 修复debian打包使用AM宏不生效的问题
原因:rule中定义的宏只在CMakeLists.txt文件中生效,在c++代码中不生效
解决方案:在CMakeLists.txt文件中直接定义一个宏来判断是否使用AM,这样c++代码中就可以使用CMakeLists.txt文件中的宏

Log:
Influence: 任务栏是否使用AM服务
Task: https://pms.uniontech.com/task-view-133075.html
Change-Id: Icea6ac1ac4d86dfc4f4aab040deabe99a9d1d83c
2022-06-28 11:33:53 +00:00

16 lines
315 B
Makefile
Executable File

#!/usr/bin/make -f
# -*- makefile -*-
export QT_SELECT = qt5
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@ --parallel
override_dh_auto_configure:
dh_auto_configure -- \
-DHOST_MULTIARCH="$(DEB_HOST_MULTIARCH)"