File: rules

package info (click to toggle)
ada-url 3.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,296 kB
  • sloc: cpp: 24,166; ansic: 4,353; python: 573; sh: 189; makefile: 17
file content (31 lines) | stat: -rwxr-xr-x 767 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# This needs to be changed whenever a new upstream version is imported,
# unless we are sure that the ABI hasn't changed
debian_abi = 0


enable_testing = OFF

ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
enable_testing = ON
endif

%:
	dh $@

override_dh_auto_configure-arch:
	dh_auto_configure -- -DADA_TESTING=$(enable_testing) -DADA_TOOLS=False -DBUILD_SHARED_LIBS=True -DCMAKE_DISABLE_FIND_PACKAGE_Python3=True -DADA_USE_SIMDUTF=ON -DADA_LIB_ABI=$(debian_abi)

# Skip compilation for 'all' architecture.
override_dh_auto_configure-indep:

ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
execute_after_dh_auto_build-indep:
	doxygen doxygen
endif

execute_after_dh_auto_clean:
	$(RM) -r docs/html