Skip to content

Commit

Permalink
Merge branch 'master' of github.com:cppfw/ruis-render-opengl
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Apr 15, 2024
2 parents 1f11c1d + 906a89c commit 919db7e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- name: deploy deb packages
run: |
echo "${{ secrets.MYCI_REPO_SSH_KEY }}" > repo_key_rsa && chmod 600 repo_key_rsa
myci-deploy-apt-ssh.sh --key repo_key_rsa --server gagis.hopto.org --repo cppfw/${{ matrix.os }} --distro ${{ matrix.codename }} --component main ../lib${PACKAGE_NAME}*_${PACKAGE_VERSION}_*.deb
myci-deploy-apt-ssh.sh --key repo_key_rsa --server gagis.hopto.org --repo cppfw/${{ matrix.os }} --distro ${{ matrix.codename }} --component main ../lib${PACKAGE_NAME}*_${PACKAGE_VERSION}_*.*deb
if: matrix.package_type == 'deb' && startsWith(github.ref, 'refs/tags/')
##### macosx #####
macosx:
Expand Down
8 changes: 4 additions & 4 deletions debian/control.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ Depends: ${shlibs:Depends}, ${misc:Depends}
Description: OpenGL renderer for ruis.
OpenGL renderer for ruis GUI library.

Package: libruis-render-opengl$(soname)-dbg
Package: libruis-render-opengl$(soname)-dbgsrc
Section: debug
Architecture: any
Depends: libruis-render-opengl$(soname) (= ${binary:Version}), ${misc:Depends}
Description: debugging symbols for libruis-render-opengl$(soname) package.
Architecture: all
Depends: libruis-render-opengl$(soname)-dbgsym (= ${binary:Version}), ${misc:Depends}
Description: debugging sources for libruis-render-opengl$(soname) package.

Package: libruis-render-opengl-dev
Section: libdevel
Expand Down
1 change: 1 addition & 0 deletions debian/libruis-render-opengl$(soname)-dbgsrc.install.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/src/*
21 changes: 13 additions & 8 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
#!/usr/bin/make -f
%:
dh $@

.PHONY: override_dh_strip
override_dh_strip:
dh_strip --dbg-package=$(filter %-dbg, $(shell awk '/^Package: /{print $2}' debian/control))
export PREFIX := /usr

dbgsrc_pkg_name := $(filter %-dbgsrc, $(shell awk '/^Package: /{print $2}' debian/control))
debug_prefix_map_arg := -fdebug-prefix-map=$(shell pwd)/src=$(PREFIX)/src/$(patsubst %-dbgsrc,%,$(dbgsrc_pkg_name))

export PRORAB_INSTALL_DBGSRC := true

.PHONY: override_dh_auto_install
override_dh_auto_install:
PREFIX=/usr dh_auto_install
export DEB_CFLAGS_MAINT_APPEND := $(debug_prefix_map_arg)
export DEB_CXXFLAGS_MAINT_APPEND := $(debug_prefix_map_arg)
export DEB_OBJCFLAGS_MAINT_APPEND := $(debug_prefix_map_arg)
export DEB_OBJCXXFLAGS_MAINT_APPEND := $(debug_prefix_map_arg)

%:
dh $@
3 changes: 3 additions & 0 deletions src/makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
include prorab.mk
include prorab-license.mk
include prorab-clang-format.mk
include prorab-install-dbgsrc.mk

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

Expand All @@ -27,3 +28,5 @@ this_src_dir := ruis
$(eval $(prorab-license))

$(eval $(prorab-clang-format))

$(eval $(prorab-install-dbgsrc))

0 comments on commit 919db7e

Please sign in to comment.