mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-25 11:07:45 +00:00
Link libsodium on linux
This commit is contained in:
parent
a4914b903a
commit
6f7ec47014
2 changed files with 7 additions and 6 deletions
|
@ -2,17 +2,18 @@ language: c++
|
||||||
sudo: enabled
|
sudo: enabled
|
||||||
before_install:
|
before_install:
|
||||||
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
- 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 add-apt-repository universe
|
||||||
- sudo apt-get update
|
- sudo apt-get update
|
||||||
- sudo apt-get install -y software-properties-common
|
- sudo apt-get install -y software-properties-common
|
||||||
- sudo apt-get update
|
- 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 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 libboost-dev libboost-all-dev libmysqlclient-dev -y
|
||||||
|
- sudo apt-get install libsodium-dev -y
|
||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
|
|
||||||
|
|
||||||
# Build steps
|
# Build steps
|
||||||
script:
|
script:
|
||||||
- mkdir build
|
- mkdir build
|
||||||
|
|
|
@ -92,7 +92,7 @@ set_target_properties(server_rest PROPERTIES
|
||||||
)
|
)
|
||||||
|
|
||||||
if (UNIX)
|
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()
|
else()
|
||||||
target_link_libraries (server_rest Common xivdat libmysql zlib1 libsodium)
|
target_link_libraries (server_rest Common xivdat libmysql zlib1 libsodium)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Add table
Reference in a new issue