Skip to content

Commit 77c55d3

Browse files
committed
RASPI: Added external json-c, botan-2 and asio
1 parent 81ec8e1 commit 77c55d3

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/libretroshare.pro

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,10 @@ rs_jsonapi {
964964
}
965965
}
966966

967+
linux-* {
968+
RESTBED_CMAKE_PARAMS += -DCMAKE_INCLUDE_PATH=$$escape_expand($$shell_path($$PWD/../../../lib/libs/include))
969+
}
970+
967971
genrestbedlib.name = Generating librestbed.
968972
genrestbedlib.input = DUMMYRESTBEDINPUT
969973
genrestbedlib.output = $$clean_path($${RESTBED_BUILD_PATH}/librestbed.a)
@@ -1222,6 +1226,17 @@ message("In rnp_rnplib precompilation code")
12221226
cd /D $$shell_path($${LIBRNP_SRC_PATH}) && git submodule update --init src/libsexpp || cd . $$escape_expand(\\n\\t) \
12231227
$(CHK_DIR_EXISTS) $$shell_path($$LIBRNP_BUILD_PATH) $(MKDIR) $$shell_path($${LIBRNP_BUILD_PATH}) $$escape_expand(\\n\\t)
12241228
} else {
1229+
linux-* {
1230+
# json-c
1231+
LIBRNP_CMAKE_PARAMS *= "-DJSON-C_INCLUDE_DIR=$$escape_expand($$clean_path($$PWD/../../../lib/libs/include/json-c))"
1232+
LIBRNP_CMAKE_PARAMS *= "-DJSON-C_LIBRARY=$$escape_expand($$clean_path($$PWD/../../../lib/libs/lib/libjson-c.a))"
1233+
# botan
1234+
LIBRNP_CMAKE_PARAMS *= "-DBOTAN_INCLUDE_DIR=$$escape_expand($$clean_path($$PWD/../../../lib/libs/include/botan-2))"
1235+
LIBRNP_CMAKE_PARAMS *= "-DBOTAN_LIBRARY=$$escape_expand($$clean_path($$PWD/../../../lib/libs/lib/libbotan-2.a))"
1236+
# link pthread
1237+
LIBRNP_CMAKE_PARAMS *= "-DCMAKE_CXX_STANDARD_LIBRARIES=-lpthread"
1238+
}
1239+
12251240
librnp_header.commands = \
12261241
cd $${RS_SRC_PATH} && \
12271242
(git submodule update --init supportlibs/librnp || true ) && \

0 commit comments

Comments
 (0)