Changeset View
Changeset View
Standalone View
Standalone View
build/premake/premake5.lua
Show First 20 Lines • Show All 635 Lines • ▼ Show 20 Lines | else | ||||
"gloox", | "gloox", | ||||
} | } | ||||
if _OPTIONS["build-shared-glooxwrapper"] then | if _OPTIONS["build-shared-glooxwrapper"] then | ||||
setup_shared_lib_project("glooxwrapper", source_dirs, extern_libs, {}) | setup_shared_lib_project("glooxwrapper", source_dirs, extern_libs, {}) | ||||
else | else | ||||
setup_static_lib_project("glooxwrapper", source_dirs, extern_libs, {}) | setup_static_lib_project("glooxwrapper", source_dirs, extern_libs, {}) | ||||
end | end | ||||
end | end | ||||
else | |||||
source_dirs = { | |||||
"lobby/scripting", | |||||
"third_party/encryption" | |||||
} | |||||
extern_libs = { | |||||
"spidermonkey", | |||||
"boost", | |||||
"libsodium" | |||||
} | |||||
setup_static_lib_project("lobby", source_dirs, extern_libs, {}) | |||||
files { source_root.."lobby/Globals.cpp" } | |||||
end | end | ||||
source_dirs = { | source_dirs = { | ||||
"simulation2", | "simulation2", | ||||
"simulation2/components", | "simulation2/components", | ||||
"simulation2/helpers", | "simulation2/helpers", | ||||
"simulation2/scripting", | "simulation2/scripting", | ||||
▲ Show 20 Lines • Show All 651 Lines • ▼ Show 20 Lines | function setup_tests() | ||||
local target_type = get_main_project_target_type() | local target_type = get_main_project_target_type() | ||||
project_create("test", target_type) | project_create("test", target_type) | ||||
-- Find header files in 'test' subdirectories | -- Find header files in 'test' subdirectories | ||||
local all_files = os.matchfiles(source_root .. "**/tests/*.h") | local all_files = os.matchfiles(source_root .. "**/tests/*.h") | ||||
local test_files = {} | local test_files = {} | ||||
for i,v in pairs(all_files) do | for i,v in pairs(all_files) do | ||||
-- Don't include sysdep tests on the wrong sys | -- Don't include sysdep tests on the wrong sys | ||||
-- Don't include pbkdf2 tests unless pbkdf2/lobby is being built | |||||
-- Don't include Atlas tests unless Atlas is being built | -- Don't include Atlas tests unless Atlas is being built | ||||
if not (string.find(v, "/sysdep/os/win/") and not os.istarget("windows")) and | if not (string.find(v, "/sysdep/os/win/") and not os.istarget("windows")) and | ||||
not (string.find(v, "/third_party/encryption/") and _OPTIONS["without-lobby"]) and | |||||
not (string.find(v, "/tools/atlas/") and not _OPTIONS["atlas"]) and | not (string.find(v, "/tools/atlas/") and not _OPTIONS["atlas"]) and | ||||
not (string.find(v, "/sysdep/arch/x86_x64/") and ((arch ~= "amd64") or (arch ~= "x86"))) | not (string.find(v, "/sysdep/arch/x86_x64/") and ((arch ~= "amd64") or (arch ~= "x86"))) | ||||
then | then | ||||
table.insert(test_files, v) | table.insert(test_files, v) | ||||
end | end | ||||
end | end | ||||
cxxtest.configure_project(test_files) | cxxtest.configure_project(test_files) | ||||
▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator