File: rules

package info (click to toggle)
sol2 3.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,096 kB
  • sloc: cpp: 43,816; ansic: 1,018; python: 356; sh: 288; makefile: 202
file content (28 lines) | stat: -rwxr-xr-x 754 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
#!/usr/bin/make -f

DH_FLAGS = --buildsystem=cmake
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES) $(BUILD_PROFILES) $(DEB_BUILD_OPTIONS)),)
	DH_FLAGS += --with=sphinxdoc
endif

%:
	dh $@ $(DH_FLAGS)

CMAKE_FLAGS = -DSOL2_BUILD_LUA=OFF

ifneq ($(filter nocheck,$(DEB_BUILD_PROFILES) $(BUILD_PROFILES) $(DEB_BUILD_OPTIONS)),)
CMAKE_FLAGS += -DSOL2_SKIP_VERSION_CHECK=ON
else
CMAKE_FLAGS += -DSOL2_RELAX_VERSION_CHECK=ON -DSOL2_TESTS=ON
endif

ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES) $(BUILD_PROFILES) $(DEB_BUILD_OPTIONS)),)
CMAKE_FLAGS += -DSOL2_DOCS=ON
ifeq ($(filter nocheck,$(DEB_BUILD_PROFILES) $(BUILD_PROFILES) $(DEB_BUILD_OPTIONS)),)
CMAKE_FLAGS += -DSOL2_EXAMPLES=ON
endif
endif

override_dh_auto_configure:
	dh_auto_configure -- \
	$(CMAKE_FLAGS)