-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aef0104
commit cf9eb07
Showing
29 changed files
with
454 additions
and
239 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
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,50 @@ | ||
cmake_minimum_required(VERSION 3.12) | ||
|
||
project(beefweb) | ||
|
||
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake;${CMAKE_MODULE_PATH}") | ||
set(EXTLIB_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/cpp/extlibs") | ||
set(EXTLIB_INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/cpp/extlibs-root") | ||
|
||
include(EnvInfo) | ||
include(Utils) | ||
|
||
option(ENABLE_TESTS "Build tests" OFF) | ||
option(ENABLE_GIT_REV "Include Git revision in produced binaries" OFF) | ||
option(ENABLE_WERROR "Treat warnings as errors" OFF) | ||
option(ENABLE_LOCAL_LIBS "Build with local libraries" ON) | ||
option(ENABLE_STATIC_STDLIB "Build with static libstdc++" OFF) | ||
option(ENABLE_JS "Build JS parts" ON) | ||
|
||
local_library_option(boost ENABLE_LOCAL_BOOST "") | ||
local_library_option(nljson ENABLE_LOCAL_NLJSON "") | ||
local_library_option(catch ENABLE_LOCAL_CATCH "ENABLE_TESTS") | ||
local_library_option(stringencoders ENABLE_LOCAL_STRINGENCODERS "") | ||
|
||
if(OS_POSIX) | ||
option(ENABLE_PLAYER_DEADBEEF "Build plugin for deadbeef player" ON) | ||
|
||
local_library_option(deadbeef ENABLE_LOCAL_DEADBEEF "ENABLE_PLAYER_DEADBEEF") | ||
endif() | ||
|
||
if(OS_WINDOWS) | ||
option(ENABLE_PLAYER_FOOBAR2000 "Build plugin for foobar2000 player" ON) | ||
|
||
if(ENABLE_PLAYER_FOOBAR2000) | ||
local_library(foosdk) | ||
endif() | ||
|
||
local_library_option(zlib ENABLE_LOCAL_ZLIB "") | ||
endif() | ||
|
||
if(ENABLE_GIT_REV) | ||
detect_git_revision(GIT_REV) | ||
endif() | ||
|
||
add_subdirectory(cpp) | ||
|
||
if(ENABLE_JS) | ||
add_subdirectory(js) | ||
endif() | ||
|
||
print_status() |
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,11 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
function main | ||
{ | ||
scripts/build.sh --all --$BUILD_TYPE --tests --verbose \ | ||
-DENABLE_WERROR=ON -DENABLE_STATIC_STDLIB=OFF -DENABLE_GIT_REV=ON | ||
} | ||
|
||
source "$(dirname $0)/run-in-docker.sh" |
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
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,7 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
cd "$(dirname $0)" | ||
|
||
docker build -t beefweb-dev:ubuntu-14.04 -f ubuntu-14.04.dockerfile . |
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
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,37 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
function banner | ||
{ | ||
echo | ||
echo ">> $1 <<" | ||
echo | ||
} | ||
|
||
function run_server_tests | ||
{ | ||
banner 'Running server tests' | ||
build/$BUILD_TYPE/cpp/server/tests/core_tests | ||
} | ||
|
||
function run_api_tests | ||
{ | ||
( | ||
banner "Running API tests on deadbeef $1" | ||
export BEEFWEB_TEST_DEADBEEF_VERSION=$1 | ||
export BEEFWEB_TEST_BUILD_TYPE=$BUILD_TYPE | ||
apps/deadbeef/$1/deadbeef --version | ||
cd js/api_tests | ||
yarn test | ||
) | ||
} | ||
|
||
function main | ||
{ | ||
run_server_tests | ||
run_api_tests v1.8 | ||
run_api_tests v1.9 | ||
} | ||
|
||
source "$(dirname $0)/run-in-docker.sh" |
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
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
File renamed without changes.
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
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
Oops, something went wrong.