2022-01-06 16:24:03 +08:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
#DH_VERBOSE = 1
|
|
|
|
|
|
|
|
export QT_SELECT=qt5
|
|
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
|
|
|
|
|
|
|
%:
|
|
|
|
dh ${@} --buildsystem qmake
|
2024-02-19 18:24:29 +08:00
|
|
|
|
|
|
|
ifeq ($(DEB_HOST_ARCH), amd64)
|
|
|
|
|
|
|
|
MINGW_UTF8_OBJS = x86_64-w64-mingw32/utf8init.o i686-w64-mingw32/utf8init.o x86_64-w64-mingw32/utf8manifest.o i686-w64-mingw32/utf8manifest.o
|
|
|
|
|
|
|
|
execute_after_dh_auto_build: $(MINGW_UTF8_OBJS)
|
|
|
|
|
|
|
|
x86_64-w64-mingw32/utf8init.o: platform/windows/utf8/utf8init.cpp
|
|
|
|
mkdir -p $(dir $@)
|
|
|
|
x86_64-w64-mingw32-g++ -Os -fno-exceptions -nodefaultlibs -nostdlib -c -o $@ $<
|
|
|
|
|
|
|
|
x86_64-w64-mingw32/utf8manifest.o: platform/windows/utf8/utf8manifest.rc
|
|
|
|
mkdir -p $(dir $@)
|
|
|
|
x86_64-w64-mingw32-windres -O coff -o $@ $<
|
|
|
|
|
|
|
|
i686-w64-mingw32/utf8init.o: platform/windows/utf8/utf8init.cpp
|
|
|
|
mkdir -p $(dir $@)
|
|
|
|
i686-w64-mingw32-g++ -Os -fno-exceptions -nodefaultlibs -nostdlib -c -o $@ $<
|
|
|
|
|
|
|
|
i686-w64-mingw32/utf8manifest.o: platform/windows/utf8/utf8manifest.rc
|
|
|
|
mkdir -p $(dir $@)
|
|
|
|
i686-w64-mingw32-windres -O coff -o $@ $<
|
|
|
|
|
|
|
|
execute_after_dh_install:
|
|
|
|
dh_install debian/compiler_hint.lua usr/libexec/RedPandaCPP
|
|
|
|
dh_install x86_64-w64-mingw32/* usr/libexec/RedPandaCPP/x86_64-w64-mingw32
|
|
|
|
dh_install i686-w64-mingw32/* usr/libexec/RedPandaCPP/i686-w64-mingw32
|
|
|
|
|
|
|
|
endif
|