forked from irungentoo/toxcore
-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add appveyor build for native windows tests.
It doesn't compile, yet. A few changes (like VLA support) need to be made before we can enable appveyor as a required PR check.
- Loading branch information
Showing
5 changed files
with
154 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
install: | ||
- curl https://download.libsodium.org/libsodium/releases/libsodium-1.0.11-msvc.zip -o libsodium-1.0.11-msvc.zip | ||
- unzip libsodium-1.0.11-msvc.zip | ||
|
||
before_build: | ||
- cmake . -DBOOTSTRAP_DAEMON=OFF | ||
|
||
build: | ||
project: INSTALL.vcxproj | ||
|
||
branches: | ||
only: | ||
- master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
############################################################################### | ||
# | ||
# :: For UNIX-like systems that have pkg-config. | ||
# | ||
############################################################################### | ||
|
||
include(ModulePackage) | ||
|
||
find_package(Threads REQUIRED) | ||
|
||
find_library(NCURSES_LIBRARIES ncurses ) | ||
find_library(UTIL_LIBRARIES util ) | ||
find_library(RT_LIBRARIES rt ) | ||
|
||
# For toxcore. | ||
pkg_use_module(LIBSODIUM libsodium ) | ||
|
||
# For toxav. | ||
pkg_use_module(OPUS opus ) | ||
pkg_use_module(VPX vpx ) | ||
|
||
# For tox-bootstrapd. | ||
pkg_use_module(LIBCONFIG libconfig ) | ||
|
||
# For auto tests. | ||
pkg_use_module(CHECK check ) | ||
|
||
# For tox-spectest. | ||
pkg_use_module(MSGPACK msgpack ) | ||
|
||
# For av_test. | ||
pkg_use_module(OPENCV opencv ) | ||
pkg_use_module(PORTAUDIO portaudio-2.0) | ||
pkg_use_module(SNDFILE sndfile ) | ||
|
||
############################################################################### | ||
# | ||
# :: For Windows and other systems lacking pkg-config. | ||
# | ||
############################################################################### | ||
|
||
if(NOT LIBSODIUM_FOUND) | ||
include_directories(include) | ||
find_library(LIBSODIUM_LIBRARIES | ||
NAMES | ||
sodium | ||
libsodium | ||
PATHS | ||
Win32/Release/v140/static | ||
x64/Release/v140/static | ||
) | ||
if(LIBSODIUM_LIBRARIES) | ||
set(LIBSODIUM_FOUND TRUE) | ||
endif() | ||
message("libsodium: ${LIBSODIUM_LIBRARIES}") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters