-
Notifications
You must be signed in to change notification settings - Fork 18
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
Showing
179 changed files
with
12,855 additions
and
6,308 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,6 @@ | ||
@echo off | ||
cd %2 | ||
set build_folder=%1 | ||
mkdir %build_folder% | ||
pushd %build_folder% | ||
call cmake ../ %3 -DEASTL_BUILD_TESTS:BOOL=OFF -DEASTL_BUILD_BENCHMARK:BOOL=OFF |
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,61 @@ | ||
local outputDir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" | ||
local loc = "/Deps/EASTL" | ||
local locBase = "/Deps/EABase" | ||
|
||
local function readFile(strPath) | ||
local f = io.open(strPath, "r") | ||
assert( f ) | ||
|
||
local t = {} | ||
for line in f:lines() do | ||
t[#t+1] = line | ||
end | ||
|
||
local src = table.concat(t, "\n") | ||
f:close() | ||
return src | ||
end | ||
|
||
local function writeFile(strPath, strData) | ||
local f = io.open(strPath, "w") | ||
assert(f, "Failed to open file ".. strPath.. "!\n") | ||
f:write(strData) | ||
f:close() | ||
end | ||
|
||
return function( root, platform ) | ||
local args = "-G" | ||
|
||
if platform == "vs2019" then | ||
args = args.. "Visual Studio 16 2019" | ||
else | ||
args = args.. "Visual Studio 15 2017 Win64" | ||
end | ||
|
||
-- CMake blows | ||
-- No way (that I can see) to force the static runtime on the command line | ||
-- Rewrite the cmakelists file to do this for the targets we care about | ||
local flags = [[set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT") | ||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")]] | ||
-- Lua also blows | ||
local flagsEscaped = [[set%(CMAKE_CXX_FLAGS_RELEASE "%${CMAKE_CXX_FLAGS_RELEASE} /MT"%) | ||
set%(CMAKE_CXX_FLAGS_DEBUG "%${CMAKE_CXX_FLAGS_DEBUG} /MTd"%)]] | ||
|
||
local data = readFile(root.. loc.. "/CMakeLists.txt") | ||
if not data:find(flagsEscaped) then | ||
data = data.. "\n".. flags | ||
writeFile(root.. loc.. "/CMakeLists.txt", data) | ||
end | ||
|
||
os.execute(("call \"%s\" \"%s\" \"%s\" \"%s\""):format( | ||
"BuildScripts/build_eastl.bat", | ||
root.. loc .. "/build", | ||
root.. loc, | ||
args | ||
)) | ||
externalproject "EASTL" | ||
location(root.. loc .. "/build") | ||
uuid "5BC9CEB8-8B4A-11D0-8D21-01A0C91FF942" | ||
kind "StaticLib" | ||
language "C++" | ||
end |
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
Binary file not shown.
Oops, something went wrong.