forked from nasa/astrobee
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrules
More file actions
executable file
·63 lines (51 loc) · 2.09 KB
/
Copy pathrules
File metadata and controls
executable file
·63 lines (51 loc) · 2.09 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_OPTIONS = parallel=`nproc`
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export EXTRA_CMAKE_OPTS
export LIB_SEARCH_OPTIONS
ifeq ($(DEB_HOST_ARCH),armhf)
# export EXTRA_CMAKE_OPTS=-DCMAKE_TOOLCHAIN_FILE=../scripts/build/ubuntu_cross.cmake -DUSE_CTC=true
# stripping doesn't work with the cross compile
#export DEB_BUILD_OPTIONS += nostrip
export LIB_SEARCH_OPTIONS = -l$(ARMHF_CHROOT_DIR)/opt/rti/ndds/lib/armv6vfphLinux3.xgcc4.7.2:$(ARMHF_CHROOT_DIR)/opt/ros/kinetic/lib:$(ARMHF_CHROOT_DIR)/opt/ros/kinetic/lib/arm-linux-gnueabihf:$(ARMHF_CHROOT_DIR)/lib:$(ARMHF_CHROOT_DIR)/usr/lib:$(ARMHF_CHROOT_DIR)/usr/lib/arm-linux-gnueabihf:$(ARMHF_CHROOT_DIR)/lib/arm-linux-gnueabihf -- --ignore-missing-info --admindir=$(ARMHF_CHROOT_DIR)/var/lib/dpkg
export DEB_MAINT_CC_SET = $(ARMHF_TOOLCHAIN)/bin/arm-linux-gnueabihf-gcc
export DEB_MAINT_CXX_SET = $(ARMHF_TOOLCHAIN)/bin/arm-linux-gnueabihf-g++
else
export LIB_SEARCH_OPTIONS = -l/opt/ros/kinetic/lib:/opt/ros/kinetic/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/gazebo-7/plugins
endif
# skip build for config files
build-indep: ;
mkdir -p build
%:
dh $@ --buildsystem=cmake --builddirectory=build/ --parallel
# we always need release, otherwise it is too slow
override_dh_auto_configure:
# configure the build
cd .. && \
./src/scripts/configure.sh -a -w debian -p src/debian/tmp -n debian
override_dh_auto_build: ;
# the install command is already invoked in the build
override_dh_auto_install:
cd .. && \
catkin build
override_dh_install:
dh_movefiles
dh_install
override_dh_auto_test: ;
#override_dh_auto_install-idep:
# @
#
#override_dh_auto_install:
# dh_auto_install
#
override_dh_shlibdeps:
dh_shlibdeps $(LIB_SEARCH_OPTIONS)