Skip to content

Commit d36523c

Browse files
committed
fix build
1 parent d8049ee commit d36523c

File tree

7 files changed

+46
-37
lines changed

7 files changed

+46
-37
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
- {os: ubuntu, codename: noble, image_owner: }
7474
# - {os: raspbian, codename: buster, image_owner: igagis/, labels: [ubuntu-24.04-arm]}
7575
# - {os: raspbian, codename: bullseye, image_owner: igagis/, labels: [ubuntu-24.04-arm]}
76-
- {os: raspbian, codename: bookworm, image_owner: igagis/, labels: [ubuntu-24.04-arm]}
76+
# - {os: raspbian, codename: bookworm, image_owner: igagis/, labels: [ubuntu-24.04-arm]}
7777
runs-on: ${{ (matrix.labels == '' && 'ubuntu-latest') || matrix.labels }}
7878
container: ${{ matrix.image_owner }}${{ matrix.os }}:${{ matrix.codename }}
7979
name: linux - ${{ matrix.image_owner }}${{ matrix.os }}:${{ matrix.codename }}

src/makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ include prorab-clang-format.mk
55

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

8-
this_name := papki
8+
this_src_dir := papki
9+
this_name := $(this_src_dir)$(this_dbg)
910

1011
this_soname := $(shell cat $(d)soname.txt)
1112

12-
this_srcs := $(call prorab-src-dir, $(this_name))
13+
this_srcs := $(call prorab-src-dir, $(this_src_dir))
1314

1415
this_cxxflags += -isystem ../src_deps
1516

@@ -24,8 +25,6 @@ endif
2425

2526
$(eval $(prorab-build-lib))
2627

27-
this_src_dir := $(this_name)
28-
2928
$(eval $(prorab-clang-format))
3029

3130
this_license_file := ../LICENSE

tests/fs_file/makefile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,21 @@ this_name := tests
77

88
this_srcs += $(call prorab-src-dir, .)
99

10-
this_ldlibs += -lpapki -lutki
11-
this_ldflags += -L$(d)../../src/out/$(c)
10+
this_ldlibs += -lutki$(this_dbg)
11+
12+
this__libpapki += ../../src/out/$(c)/libpapki$(this_dbg)$(dot_so)
13+
14+
this_ldlibs += $(this__libpapki)
1215

1316
this_no_install := true
1417

1518
$(eval $(prorab-build-app))
1619

17-
# add dependency on libpapki.so/dll
18-
$(prorab_this_name): $(abspath $(d)../../src/out/$(c)/libpapki$(dot_so))
19-
2020
this_test_cmd := $(prorab_this_name)
21-
this_test_deps := $(prorab_this_name)
21+
this_test_deps := $(prorab_this_name) $(this__libpapki)
2222
this_test_ld_path := ../../src/out/$(c)
23+
24+
# TODO: is needed?
2325
# for conan
2426
this_test_ld_path += $(patsubst -L%,%,$(filter -L%,$(LDFLAGS)))
2527

tests/load_whole_file/makefile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,21 @@ this_name := tests
77

88
this_srcs += $(call prorab-src-dir, .)
99

10-
this_ldlibs += -lpapki -lutki
11-
this_ldflags += -L$(d)../../src/out/$(c)
10+
this_ldlibs += -l utki$(this_dbg)
11+
12+
this__libpapki := ../../src/out/$(c)/libpapki$(this_dbg)$(dot_so)
13+
14+
this_ldlibs += $(this__libpapki)
1215

1316
this_no_install := true
1417

1518
$(eval $(prorab-build-app))
1619

17-
# add dependency on libpapki.so
18-
$(prorab_this_name): $(abspath $(d)../../src/out/$(c)/libpapki$(dot_so))
19-
2020
this_test_cmd := $(prorab_this_name)
21-
this_test_deps := $(prorab_this_name)
21+
this_test_deps := $(prorab_this_name) $(this__libpapki)
2222
this_test_ld_path := ../../src/out/$(c)
23+
24+
# TODO: is needed?
2325
# for conan
2426
this_test_ld_path += $(patsubst -L%,%,$(filter -L%,$(LDFLAGS)))
2527

tests/span_file/makefile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,25 @@ this_name := tests
77

88
this_srcs += $(call prorab-src-dir, .)
99

10-
this_ldlibs += -lpapki -lutki
11-
this_ldflags += -L$(d)../../src/out/$(c)
10+
this_ldlibs += -l utki$(this_dbg)
11+
12+
this__libpapki := ../../src/out/$(c)/libpapki$(this_dbg)$(dot_so)
13+
14+
this_ldlibs += $(this__libpapki)
1215

1316
this_no_install := true
1417

1518
$(eval $(prorab-build-app))
1619

17-
# add dependency on libpapki.so
18-
$(prorab_this_name): $(abspath $(d)../../src/out/$(c)/libpapki$(dot_so))
19-
2020
this_test_cmd := $(prorab_this_name)
21-
this_test_deps := $(prorab_this_name)
21+
this_test_deps := $(prorab_this_name) $(this__libpapki)
2222
this_test_ld_path := ../../src/out/$(c)
23+
24+
# TODO: is needed?
2325
# for conan
2426
this_test_ld_path += $(patsubst -L%,%,$(filter -L%,$(LDFLAGS)))
2527

2628
$(eval $(prorab-test))
2729

2830
# include makefile for building papki
29-
$(eval $(call prorab-include,../../src/makefile))
31+
$(eval $(call prorab-include, ../../src/makefile))

tests/vector_file/makefile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,25 @@ this_name := tests
77

88
this_srcs += $(call prorab-src-dir, .)
99

10-
this_ldlibs += -lpapki -lutki
11-
this_ldflags += -L$(d)../../src/out/$(c)
10+
this_ldlibs += -l utki$(this_dbg)
11+
12+
this__libpapki := ../../src/out/$(c)/libpapki$(this_dbg)$(dot_so)
13+
14+
this_ldlibs += $(this__libpapki)
1215

1316
this_no_install := true
1417

1518
$(eval $(prorab-build-app))
1619

17-
# add dependency on libpapki.so
18-
$(prorab_this_name): $(abspath $(d)../../src/out/$(c)/libpapki$(dot_so))
19-
2020
this_test_cmd := $(prorab_this_name)
21-
this_test_deps := $(prorab_this_name)
21+
this_test_deps := $(prorab_this_name) $(this__libpapki)
2222
this_test_ld_path := ../../src/out/$(c)
23+
24+
# TODO: is needed?
2325
# for conan
2426
this_test_ld_path += $(patsubst -L%,%,$(filter -L%,$(LDFLAGS)))
2527

2628
$(eval $(prorab-test))
2729

2830
# include makefile for building papki
29-
$(eval $(call prorab-include,../../src/makefile))
31+
$(eval $(call prorab-include, ../../src/makefile))

tests/zip_file/makefile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,21 @@ this_name := tests
77

88
this_srcs += $(call prorab-src-dir, .)
99

10-
this_ldlibs += -lpapki -lutki
11-
this_ldflags += -L$(d)../../src/out/$(c)
10+
this_ldlibs += -l utki$(this_dbg)
11+
12+
this__libpapki := ../../src/out/$(c)/libpapki$(this_dbg)$(dot_so)
13+
14+
this_ldlibs += $(this__libpapki)
1215

1316
this_no_install := true
1417

1518
$(eval $(prorab-build-app))
1619

17-
# add dependency on libpapki.so
18-
$(prorab_this_name): $(abspath $(d)../../src/out/$(c)/libpapki$(dot_so))
19-
2020
this_test_cmd := $(prorab_this_name)
21-
this_test_deps := $(prorab_this_name)
21+
this_test_deps := $(prorab_this_name) $(this__libpapki)
2222
this_test_ld_path := ../../src/out/$(c)
23+
24+
# TODO: is needed?
2325
# for conan
2426
this_test_ld_path += $(patsubst -L%,%,$(filter -L%,$(LDFLAGS)))
2527

0 commit comments

Comments
 (0)