Skip to content

Commit

Permalink
*Fixed a compile issue for linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
paladin-t committed Mar 10, 2024
1 parent 29e97c1 commit 02ab1e2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bitty.linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ target_link_libraries(bitty libcurl)
# libuv.
include_directories("../lib/libuv/include")
add_library(libuv SHARED IMPORTED)
set_target_properties(libuv PROPERTIES IMPORTED_LOCATION "./libuv.so.1.0.0")
set_target_properties(libuv PROPERTIES IMPORTED_LOCATION "./libuv.so.1")
target_link_libraries(bitty libuv)

# SDL.
Expand All @@ -428,7 +428,7 @@ add_custom_target(
bitty_prev_sdl
COMMAND cp "../lib/curl/x${BITTY_ARCH}/libcurl.a" ${BITTY_TEMP}
COMMAND cp "../lib/curl/x${BITTY_ARCH}/libcurl.so" ${BITTY_TEMP}
COMMAND cp "../lib/libuv/lib/x${BITTY_ARCH}/libuv.so.1.0.0" ${BITTY_TEMP}
COMMAND cp "../lib/libuv/lib/x${BITTY_ARCH}/libuv.so.1" ${BITTY_TEMP}
COMMAND cp "../lib/sdl/lib/x${BITTY_ARCH}/libSDL2.a" ${BITTY_TEMP}
COMMAND cp "../lib/sdl/lib/x${BITTY_ARCH}/libSDL2-2.0.so.0" ${BITTY_TEMP}
COMMAND cp "../lib/sdl_mixer/lib/x${BITTY_ARCH}/libSDL2_mixer-2.0.so.0" ${BITTY_TEMP}
Expand All @@ -440,12 +440,12 @@ add_custom_command(
TARGET bitty POST_BUILD
COMMAND file "${BITTY_TEMP}bitty"
COMMAND file "${BITTY_TEMP}libcurl.so"
COMMAND file "${BITTY_TEMP}libuv.so.1.0.0"
COMMAND file "${BITTY_TEMP}libuv.so.1"
COMMAND file "${BITTY_TEMP}libSDL2-2.0.so.0"
COMMAND file "${BITTY_TEMP}libSDL2_mixer-2.0.so.0"
COMMAND cp "${BITTY_TEMP}bitty" "../bitty/x${BITTY_ARCH}_release/"
COMMAND cp "${BITTY_TEMP}libcurl.so" "../bitty/x${BITTY_ARCH}_release/"
COMMAND cp "${BITTY_TEMP}libuv.so.1.0.0" "../bitty/x${BITTY_ARCH}_release/"
COMMAND cp "${BITTY_TEMP}libuv.so.1" "../bitty/x${BITTY_ARCH}_release/"
COMMAND cp "${BITTY_TEMP}libSDL2-2.0.so.0" "../bitty/x${BITTY_ARCH}_release/"
COMMAND cp "${BITTY_TEMP}libSDL2_mixer-2.0.so.0" "../bitty/x${BITTY_ARCH}_release/"
)
4 changes: 4 additions & 0 deletions docs/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ <h2>
CivetWeb
<a href="https://civetweb.github.io/civetweb/" target="_blank">https://civetweb.github.io/civetweb/</a>
</p>
<p align="left">
libuv
<a href="https://libuv.org/" target="_blank">https://libuv.org/</a>
</p>
<p align="left">
cURL
<a href="https://curl.se" target="_blank">https://curl.se</a>
Expand Down
2 changes: 1 addition & 1 deletion lib/libuv/copy_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fi
if [ -d "/usr/local/lib" ]; then
cp -f "/usr/local/lib/libuv.a" "$BASEDIR/lib/$SUBDIR/"
cp -f "/usr/local/lib/libuv.la" "$BASEDIR/lib/$SUBDIR/"
cp -f "/usr/local/lib/libuv.so.1.0.0" "$BASEDIR/lib/$SUBDIR/"
cp -f "/usr/local/lib/libuv.so.1" "$BASEDIR/lib/$SUBDIR/"
fi

echo Ok.

0 comments on commit 02ab1e2

Please sign in to comment.