Skip to content

Commit bf5e76b

Browse files
committed
debian: add dbgsrc package
1 parent 9550b34 commit bf5e76b

File tree

4 files changed

+21
-18
lines changed

4 files changed

+21
-18
lines changed

build/debian/control.in

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ Description: cross-platform C++ 3d math library.
3333
# Description: cross-platform C++ 3d math library.
3434
# Debug version of libr4.
3535

36-
# Package: libr4$(soname)-dbgsrc
37-
# Section: debug
38-
# Architecture: all
39-
# Depends:
40-
# libr4$(soname)-dbgsym (= ${binary:Version}),
41-
# libr4-dbg$(soname)-dbgsym (= ${binary:Version}),
42-
# ${misc:Depends}
43-
# Description: debugging sources for libr4$(soname) package.
36+
Package: libr4$(soname)-dbgsrc
37+
Section: debug
38+
Architecture: all
39+
Depends:
40+
# libr4$(soname)-dbgsym (= ${binary:Version}),
41+
# libr4-dbg$(soname)-dbgsym (= ${binary:Version}),
42+
${misc:Depends}
43+
Description: debugging sources for libr4$(soname) package.
4444

4545
Package: libr4-dev
4646
Section: libdevel

build/debian/rules

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
export PREFIX := /usr
44

5-
# dbgsrc_pkg_name := $(filter %-dbgsrc, $(shell awk '/^Package: /{print $2}' debian/control))
6-
# debug_prefix_map_arg := -fdebug-prefix-map=$(shell pwd)/src=$(PREFIX)/src/$(patsubst %-dbgsrc,%,$(dbgsrc_pkg_name))
7-
#
8-
# export PRORAB_INSTALL_DBGSRC := true
9-
#
10-
# export DEB_CFLAGS_MAINT_APPEND := $(debug_prefix_map_arg)
11-
# export DEB_CXXFLAGS_MAINT_APPEND := $(debug_prefix_map_arg)
12-
# export DEB_OBJCFLAGS_MAINT_APPEND := $(debug_prefix_map_arg)
13-
# export DEB_OBJCXXFLAGS_MAINT_APPEND := $(debug_prefix_map_arg)
5+
dbgsrc_pkg_name := $(filter %-dbgsrc, $(shell awk '/^Package: /{print $2}' debian/control))
6+
debug_prefix_map_arg := -fdebug-prefix-map=$(abspath ../src)=$(PREFIX)/src/$(patsubst %-dbgsrc,%,$(dbgsrc_pkg_name))
7+
8+
export PRORAB_INSTALL_DBGSRC := true
9+
10+
export DEB_CFLAGS_MAINT_APPEND := $(debug_prefix_map_arg)
11+
export DEB_CXXFLAGS_MAINT_APPEND := $(debug_prefix_map_arg)
12+
export DEB_OBJCFLAGS_MAINT_APPEND := $(debug_prefix_map_arg)
13+
export DEB_OBJCXXFLAGS_MAINT_APPEND := $(debug_prefix_map_arg)
1414

1515
%:
1616
dh $@

build/vcpkg/vcpkg.json.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
{
1717
"name" : "myci",
18-
"host" : true
18+
"host" : false
1919
},
2020
"utki"
2121
]

src/makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
include prorab.mk
22
include prorab-license.mk
33
include prorab-clang-format.mk
4+
include prorab-install-dbgsrc.mk
45

56
$(eval $(call prorab-config, ../config))
67

@@ -16,3 +17,5 @@ $(eval $(prorab-clang-format))
1617

1718
this_license_file := ../LICENSE
1819
$(eval $(prorab-license))
20+
21+
$(eval $(prorab-install-dbgsrc))

0 commit comments

Comments
 (0)