mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
commit
4899be84d1
13
.travis.yml
13
.travis.yml
|
@ -5,21 +5,22 @@ compiler:
|
|||
before_script:
|
||||
- git clone git://github.com/jedisct1/libsodium.git
|
||||
- cd libsodium
|
||||
- git checkout tags/0.4.2
|
||||
- ./autogen.sh
|
||||
- ./configure && make -j 3 check
|
||||
- ./configure && make -j3 check
|
||||
- sudo make install
|
||||
- sudo ldconfig
|
||||
- cd ..
|
||||
|
||||
script:
|
||||
#- cmake CMakeLists.txt
|
||||
#- make -j3
|
||||
- gcc -o test -Wall -Werror -Ilibsodium/src/libsodium/include/ core/*.c libsodium/src/libsodium/.libs/libsodium.a testing/Messenger_test.c
|
||||
- cmake CMakeLists.txt
|
||||
- make -j3
|
||||
|
||||
notifications:
|
||||
email: false
|
||||
|
||||
|
||||
irc:
|
||||
channels:
|
||||
- "chat.freenode.net#InsertProjectNameHere"
|
||||
on_success: always
|
||||
on_failure: always
|
||||
|
||||
|
|
|
@ -1,30 +1,31 @@
|
|||
cmake_minimum_required(VERSION 2.6.0)
|
||||
project(TOX C)
|
||||
|
||||
|
||||
set(exe_name toxMessengerTest)
|
||||
|
||||
set(core_sources
|
||||
core/DHT.c
|
||||
core/network.c
|
||||
core/Lossless_UDP.c
|
||||
core/net_crypto.c
|
||||
core/Messenger.c)
|
||||
|
||||
|
||||
set(test_sources
|
||||
testing/Messenger_test.c)
|
||||
|
||||
set(exe_name TOX-app)
|
||||
|
||||
|
||||
add_executable(${exe_name}
|
||||
${core_sources}
|
||||
${test_sources})
|
||||
${core_sources}
|
||||
${test_sources})
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(${exe_name} ws2_32 libsodium)
|
||||
else(WIN32)
|
||||
target_link_libraries(libsodium)
|
||||
endif(WIN32)
|
||||
include_directories(${TOX_SOURCE_DIR}/sodium/include/)
|
||||
target_link_libraries(${exe_name} ws2_32
|
||||
${CMAKE_SOURCE_DIR}/sodium/lib/libsodium.a)
|
||||
else()
|
||||
target_link_libraries(${exe_name} sodium)
|
||||
endif()
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNUCC)
|
||||
message(STATUS "==== GCC detected - Adding compiler flags")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror")
|
||||
endif()
|
||||
message(STATUS "==== GCC detected - Adding compiler flags ====")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror")
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue
Block a user