| 1 |
|
| 2 |
export DH_VERBOSE = 1 |
| 3 |
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) |
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 6 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 7 |
include /usr/share/dpkg/buildflags.mk |
| 8 |
|
| 9 |
|
| 10 |
include /usr/share/dpkg/pkg-info.mk |
| 11 |
export BUILD_NAME = debian${DEB_VERSION} |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
SCONS_OPTIONS = platform=linuxbsd \ |
| 16 |
--jobs=$(NUMJOBS) \ |
| 17 |
import_env_vars=CCACHE_DIR,CCACHE_MAXSIZE \ |
| 18 |
CC="$(CC)" \ |
| 19 |
CXX="$(CXX)" \ |
| 20 |
ccflags="$(CPPFLAGS)" \ |
| 21 |
cflags="$(CFLAGS)" \ |
| 22 |
cxxflags="$(CXXFLAGS)" \ |
| 23 |
linkflags="$(LDFLAGS)" \ |
| 24 |
builtin_brotli=no \ |
| 25 |
builtin_certs=no \ |
| 26 |
system_certs_path=/etc/ssl/certs/ca-certificates.crt \ |
| 27 |
builtin_clipper2=yes \ |
| 28 |
builtin_embree=no \ |
| 29 |
builtin_enet=no \ |
| 30 |
builtin_freetype=no \ |
| 31 |
builtin_msdfgen=yes \ |
| 32 |
builtin_glslang=yes \ |
| 33 |
builtin_graphite=no \ |
| 34 |
builtin_harfbuzz=no \ |
| 35 |
builtin_icu4c=no \ |
| 36 |
static_icu_data=no \ |
| 37 |
builtin_libjpeg_turbo=no \ |
| 38 |
builtin_libogg=no \ |
| 39 |
builtin_libpng=no \ |
| 40 |
builtin_libtheora=no \ |
| 41 |
builtin_libvorbis=no \ |
| 42 |
builtin_libwebp=no \ |
| 43 |
builtin_wslay=no \ |
| 44 |
builtin_mbedtls=no \ |
| 45 |
builtin_miniupnpc=no \ |
| 46 |
builtin_openxr=no \ |
| 47 |
builtin_pcre2=no \ |
| 48 |
builtin_recastnavigation=no \ |
| 49 |
builtin_rvo2_2d=yes \ |
| 50 |
builtin_rvo2_3d=yes \ |
| 51 |
builtin_sdl=no \ |
| 52 |
builtin_xatlas=yes \ |
| 53 |
builtin_zlib=no \ |
| 54 |
builtin_zstd=no \ |
| 55 |
use_static_cpp=no \ |
| 56 |
use_sowrap=no \ |
| 57 |
tests=yes \ |
| 58 |
engine_update_check=no \ |
| 59 |
verbose=yes |
| 60 |
|
| 61 |
|
| 62 |
ifneq (,$(findstring noautodbgsym, $(DEB_BUILD_OPTIONS))) |
| 63 |
SCONS_OPTIONS += debug_symbols=no |
| 64 |
else |
| 65 |
SCONS_OPTIONS += debug_symbols=yes |
| 66 |
endif |
| 67 |
|
| 68 |
%: |
| 69 |
dh $@ |
| 70 |
|
| 71 |
override_dh_clean: |
| 72 |
scons $(SCONS_OPTIONS) -c target=editor output_path=bin/godot.editor |
| 73 |
scons $(SCONS_OPTIONS) -c target=template_debug output_path=bin/godot.template-debug |
| 74 |
scons $(SCONS_OPTIONS) -c target=template_release production=yes output_path=bin/godot.template-release |
| 75 |
dh_clean |
| 76 |
|
| 77 |
override_dh_auto_build: |
| 78 |
dh_auto_build |
| 79 |
|
| 80 |
install -D /dev/null thirdparty/certs/ca-bundle.crt |
| 81 |
scons $(SCONS_OPTIONS) target=editor output_path=bin/godot.editor |
| 82 |
scons $(SCONS_OPTIONS) target=template_debug output_path=bin/godot.template-debug |
| 83 |
scons $(SCONS_OPTIONS) target=template_release production=yes output_path=bin/godot.template-release |
| 84 |
|
| 85 |
override_dh_auto_install: |
| 86 |
install -D -m 400 $(CURDIR)/bin/godot.editor $(CURDIR)/debian/godot/usr/bin/godot |
| 87 |
install -D -m 400 $(CURDIR)/bin/godot.template-debug $(CURDIR)/debian/godot-template-debug/usr/bin/godot-template-debug |
| 88 |
install -D -m 400 $(CURDIR)/bin/godot.template-release $(CURDIR)/debian/godot-template-release/usr/bin/godot-template-release |
| 89 |
install -D -m 444 $(CURDIR)/misc/dist/linux/org.godotengine.Godot.desktop $(CURDIR)/debian/godot/usr/share/applications/org.godotengine.Godot.desktop |
| 90 |
install -D -m 444 $(CURDIR)/misc/dist/linux/org.godotengine.Godot.appdata.xml $(CURDIR)/debian/godot/usr/share/metainfo/org.godotengine.Godot.metainfo.xml |
| 91 |
install -D -m 444 $(CURDIR)/misc/dist/linux/org.godotengine.Godot.xml $(CURDIR)/debian/godot/usr/share/mime/packages/org.godotengine.Godot.xml |
| 92 |
install -D -m 644 $(CURDIR)/icon.svg $(CURDIR)/debian/godot/usr/share/icons/hicolor/scalable/apps/godot.svg |
| 93 |
install -D -m 444 $(CURDIR)/misc/dist/linux/godot.6 $(CURDIR)/debian/godot/usr/share/man/man6/godot.6 |
| 94 |
install -D -m 444 $(CURDIR)/misc/dist/linux/godot.6 $(CURDIR)/debian/godot-template-debug/usr/share/man/man6/godot-template-debug.6 |
| 95 |
install -D -m 444 $(CURDIR)/misc/dist/linux/godot.6 $(CURDIR)/debian/godot-template-release/usr/share/man/man6/godot-template-release.6 |
| 96 |
dh_auto_install |
| 97 |
|
| 98 |
override_dh_dwz: |
| 99 |
|
| 100 |
dh_dwz -- --max-die-limit none |