File: rules

package info (click to toggle)
android-platform-system-tools-hidl 10.0.0%2Br36-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,928 kB
  • sloc: cpp: 21,932; yacc: 1,416; java: 1,239; lex: 496; sh: 360; python: 44; xml: 20; makefile: 12
file content (21 lines) | stat: -rwxr-xr-x 611 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export OUT_DIR = debian/out
# fails with "Unknown debugging section .debug_addr"
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1016936
# can be removed once dwz is fixed
export DEB_CPPFLAGS_MAINT_APPEND = -DNDEBUG -UDEBUG -I/usr/include/android -I. -I$(OUT_DIR) -gdwarf-4
export DEB_CXXFLAGS_MAINT_APPEND = -fPIC
export DEB_LDFLAGS_MAINT_APPEND = -fPIC

export CC=clang
export CXX=clang++

$(OUT_DIR)/hidl-gen: debian/hidl-gen.mk
	dh_auto_build --buildsystem=makefile -- --file $<

%:
	dh $@

override_dh_auto_build: $(OUT_DIR)/hidl-gen