1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-23 18:17:46 +00:00

Link libsodium on linux

This commit is contained in:
Minho Kang 2017-09-01 18:34:55 +09:00
parent a4914b903a
commit 6f7ec47014
2 changed files with 7 additions and 6 deletions

View file

@ -2,21 +2,22 @@ language: c++
sudo: enabled
before_install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo add-apt-repository ppa:chris-lea/libsodium -y
- sudo add-apt-repository universe
- sudo apt-get update
- sudo apt-get update
- sudo apt-get install -y software-properties-common
- sudo apt-get update
- sudo apt-get install gcc-4.9 g++-4.9 gcc-4.9-multilib g++-4.9-multilib cmake3 -y
- sudo apt-get install libboost-dev libboost-all-dev libmysqlclient-dev -y
- sudo apt-get install libsodium-dev -y
compiler:
- gcc
# Build steps
script:
- mkdir build
- cd build
- cmake .. -DSAPPHIRE_BOOST_VER="1.54.0" -DCMAKE_CXX_COMPILER=g++-4.9 -DCMAKE_C_COMPILER=gcc-4.9 && make -j 3
- cd ..
- bash sql_import.sh
- bash sql_import.sh

View file

@ -92,7 +92,7 @@ set_target_properties(server_rest PROPERTIES
)
if (UNIX)
target_link_libraries (server_rest Common xivdat pthread mysqlclient dl z)
target_link_libraries (server_rest Common xivdat pthread mysqlclient dl z sodium)
else()
target_link_libraries (server_rest Common xivdat libmysql zlib1 libsodium)
endif()