-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import original source code for eastl project v3.16.07
- Loading branch information
Showing
600 changed files
with
287,845 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- | ||
Language : Cpp | ||
BasedOnStyle : Google | ||
Standard : Auto | ||
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- | ||
AccessModifierOffset : -4 | ||
AlignTrailingComments : true | ||
AllowAllParametersOfDeclarationOnNextLine : false | ||
AllowShortBlocksOnASingleLine : true | ||
AllowShortFunctionsOnASingleLine : true | ||
AllowShortIfStatementsOnASingleLine : false | ||
AllowShortLoopsOnASingleLine : false | ||
BinPackParameters : false | ||
BreakBeforeBraces : Allman | ||
BreakBeforeTernaryOperators : false | ||
BreakConstructorInitializersBeforeComma : true | ||
ColumnLimit : 120 | ||
Cpp11BracedListStyle : true | ||
DerivePointerAlignment : true | ||
DerivePointerBinding : false | ||
IndentWidth : 4 | ||
KeepEmptyLinesAtTheStartOfBlocks : true | ||
MaxEmptyLinesToKeep : 2 | ||
NamespaceIndentation : All | ||
PointerBindsToType : true | ||
SpacesBeforeTrailingComments : 1 | ||
SpacesInAngles : false | ||
SpacesInSquareBrackets : false | ||
TabWidth : 4 | ||
UseTab : ForIndentation | ||
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- | ||
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- |
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 @@ | ||
# Auto detect text files and perform LF normalization | ||
# http://git-scm.com/docs/gitattributes | ||
* text=auto | ||
.appveyor.yml -text eol=crlf | ||
.appveyor-mingw.yml -text eol=crlf | ||
ci-*.cmd -text eol=crlf |
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,49 @@ | ||
tags | ||
cscope.out | ||
**/*.swp | ||
**/*.swo | ||
.swp | ||
*.swp | ||
.swo | ||
.TMP | ||
-.d | ||
eastl_build_out | ||
build_bench | ||
bench.bat | ||
build.bat | ||
.p4config | ||
|
||
## CMake generated files | ||
CMakeCache.txt | ||
cmake_install.cmake | ||
|
||
## Patch files | ||
*.patch | ||
|
||
## For Visual Studio Generated projects | ||
*.sln | ||
**/*.vcxproj | ||
**/*.vcxproj.filters | ||
*.VC.opendb | ||
*.sdf | ||
**/*.suo | ||
**/*.user | ||
.vs/* | ||
**/Debug/* | ||
CMakeFiles/* | ||
EASTL.dir/** | ||
RelWithDebInfo/* | ||
Release/* | ||
Win32/* | ||
x64/* | ||
MinSizeRel/* | ||
build*/* | ||
Testing/* | ||
%ALLUSERSPROFILE%/* | ||
|
||
# Buck | ||
/buck-out/ | ||
/.buckd/ | ||
/buckaroo/ | ||
.buckconfig.local | ||
BUCKAROO_DEPS |
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,18 @@ | ||
[submodule "test/packages/EABase"] | ||
path = test/packages/EABase | ||
url = ../EABase.git | ||
[submodule "test/packages/EAAssert"] | ||
path = test/packages/EAAssert | ||
url = ../EAAssert.git | ||
[submodule "test/packages/EAMain"] | ||
path = test/packages/EAMain | ||
url = ../EAMain.git | ||
[submodule "test/packages/EAStdC"] | ||
path = test/packages/EAStdC | ||
url = ../EAStdC.git | ||
[submodule "test/packages/EATest"] | ||
path = test/packages/EATest | ||
url = ../EATest.git | ||
[submodule "test/packages/EAThread"] | ||
path = test/packages/EAThread | ||
url = ../EAThread.git |
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,4 @@ | ||
/.git/ | ||
tags | ||
.gitignore | ||
cscope.out |
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,83 @@ | ||
language: cpp | ||
|
||
cache: | ||
- ccache: true | ||
|
||
os: | ||
- linux | ||
- osx | ||
- windows | ||
|
||
compiler: | ||
- gcc | ||
- clang | ||
- msvc | ||
|
||
env: | ||
- EASTL_CONFIG=Debug | ||
- EASTL_CONFIG=Release | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
- george-edison55-precise-backports | ||
- llvm-toolchain-trusty-7 | ||
packages: | ||
- cmake | ||
- cmake-data | ||
- g++-7 | ||
- clang-7 | ||
|
||
matrix: | ||
include: | ||
- compiler: clang "release build with clang to trigger MOJI check" | ||
env: EASTL_CONFIG=Release USE_MOJI_CHECK=yes | ||
os: linux | ||
- compiler: msvc | ||
env: EASTL_CONFIG=Release CXXFLAGS="/std:c++latest /Zc:char8_t" | ||
os: windows | ||
|
||
exclude: | ||
- os: osx | ||
compiler: gcc | ||
- os: osx | ||
compiler: msvc | ||
- os: linux | ||
compiler: msvc | ||
- os: windows | ||
compiler: clang | ||
- os: windows | ||
compiler: gcc | ||
|
||
# Handle git submodules yourself | ||
git: | ||
submodules: false | ||
|
||
before_install: | ||
- git submodule update --init | ||
- if [[ "$CXX" == "g++" ]]; then export CC="gcc-7" ;fi | ||
- if [[ "$CXX" == "g++" ]]; then export CXX="g++-7" ;fi | ||
- if [[ "$CXX" == "clang++" && "${TRAVIS_OS_NAME}" != "osx" ]]; then export CC="clang-7" ;fi | ||
- if [[ "$CXX" == "clang++" && "${TRAVIS_OS_NAME}" != "osx" ]]; then export CXX="clang++-7" ;fi | ||
|
||
install: | ||
# MOJI check; exit 1 if non-ascii characters detected in C++ | ||
- if [[ -n "$USE_MOJI_CHECK" && -n `git grep -P "[^[:ascii:]]" source test` ]]; then echo "Moji Detected" && exit 1 ;fi | ||
- if [[ -n "$USE_MOJI_CHECK" ]]; then exit 0 ;fi | ||
|
||
before_script: | ||
- mkdir build_$EASTL_CONFIG | ||
- cd build_$EASTL_CONFIG | ||
- cmake .. -DEASTL_BUILD_BENCHMARK:BOOL=ON -DEASTL_BUILD_TESTS:BOOL=ON | ||
- cmake --build . --config $EASTL_CONFIG | ||
|
||
script: | ||
# Run Tests | ||
- cd $TRAVIS_BUILD_DIR/build_$EASTL_CONFIG/test | ||
- ctest -C $EASTL_CONFIG -V || exit 1 | ||
|
||
# Run Benchmarks | ||
- cd $TRAVIS_BUILD_DIR/build_$EASTL_CONFIG/benchmark | ||
- ctest -C $EASTL_CONFIG -V || exit 1 | ||
|
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,110 @@ | ||
Additional licenses also apply to this software package as detailed below. | ||
|
||
|
||
|
||
HP STL comes with the following license: | ||
|
||
/////////////////////////////////////////////////////////////////////////////// | ||
// Copyright (c) 1994 | ||
// Hewlett-Packard Company | ||
// | ||
// Permission to use, copy, modify, distribute and sell this software | ||
// and its documentation for any purpose is hereby granted without fee, | ||
// provided that the above copyright notice appear in all copies and | ||
// that both that copyright notice and this permission notice appear | ||
// in supporting documentation. Hewlett-Packard Company makes no | ||
// representations about the suitability of this software for any | ||
// purpose. It is provided "as is" without express or implied warranty. | ||
/////////////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
|
||
libc++ comes with the following license: | ||
|
||
============================================================================== | ||
libc++ License | ||
============================================================================== | ||
|
||
The libc++ library is dual licensed under both the University of Illinois | ||
"BSD-Like" license and the MIT license. As a user of this code you may choose | ||
to use it under either license. As a contributor, you agree to allow your code | ||
to be used under both. | ||
|
||
Full text of the relevant licenses is included below. | ||
|
||
============================================================================== | ||
|
||
University of Illinois/NCSA | ||
Open Source License | ||
|
||
Copyright (c) 2009-2015 by the contributors listed at | ||
http://llvm.org/svn/llvm-project/libcxx/trunk/CREDITS.TXT | ||
|
||
All rights reserved. | ||
|
||
Developed by: | ||
|
||
LLVM Team | ||
|
||
University of Illinois at Urbana-Champaign | ||
|
||
http://llvm.org | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal with | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
of the Software, and to permit persons to whom the Software is furnished to do | ||
so, subject to the following conditions: | ||
|
||
* Redistributions of source code must retain the above copyright notice, | ||
this list of conditions and the following disclaimers. | ||
|
||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimers in the | ||
documentation and/or other materials provided with the distribution. | ||
|
||
* Neither the names of the LLVM Team, University of Illinois at | ||
Urbana-Champaign, nor the names of its contributors may be used to | ||
endorse or promote products derived from this Software without specific | ||
prior written permission. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE | ||
SOFTWARE. | ||
|
||
============================================================================== | ||
|
||
Copyright (c) 2009-2014 by the contributors listed at | ||
http://llvm.org/svn/llvm-project/libcxx/trunk/CREDITS.TXT | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
|
||
============================================================================== | ||
|
||
*No express or implied license to use PlayStation®4 libraries included. | ||
PlayStation®4 development tools and libraries are subject to separate license | ||
with Sony Interactive Entertainment LLC. | ||
|
||
============================================================================== | ||
|
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 @@ | ||
#------------------------------------------------------------------------------------------- | ||
# Copyright (C) Electronic Arts Inc. All rights reserved. | ||
#------------------------------------------------------------------------------------------- | ||
cmake_minimum_required(VERSION 3.1) | ||
project(EASTL CXX) | ||
|
||
#------------------------------------------------------------------------------------------- | ||
# Options | ||
#------------------------------------------------------------------------------------------- | ||
option(EASTL_BUILD_BENCHMARK "Enable generation of build files for benchmark" OFF) | ||
option(EASTL_BUILD_TESTS "Enable generation of build files for tests" OFF) | ||
|
||
#------------------------------------------------------------------------------------------- | ||
# Compiler Flags | ||
#------------------------------------------------------------------------------------------- | ||
set (CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/scripts/CMake") | ||
include(CommonCppFlags) | ||
|
||
#------------------------------------------------------------------------------------------- | ||
# Library definition | ||
#------------------------------------------------------------------------------------------- | ||
file(GLOB EASTL_SOURCES "source/*.cpp") | ||
add_library(EASTL ${EASTL_SOURCES}) | ||
|
||
if(EASTL_BUILD_BENCHMARK) | ||
add_subdirectory(benchmark) | ||
endif() | ||
|
||
if(EASTL_BUILD_TESTS) | ||
add_subdirectory(test) | ||
endif() | ||
|
||
#------------------------------------------------------------------------------------------- | ||
# Defines | ||
#------------------------------------------------------------------------------------------- | ||
add_definitions(-D_CHAR16T) | ||
add_definitions(-D_CRT_SECURE_NO_WARNINGS) | ||
add_definitions(-D_SCL_SECURE_NO_WARNINGS) | ||
add_definitions(-DEASTL_OPENSOURCE=1) | ||
|
||
#------------------------------------------------------------------------------------------- | ||
# Include dirs | ||
#------------------------------------------------------------------------------------------- | ||
target_include_directories(EASTL PUBLIC include) | ||
|
||
#------------------------------------------------------------------------------------------- | ||
# Dependencies | ||
#------------------------------------------------------------------------------------------- | ||
target_link_libraries(EASTL EABase) | ||
|
Oops, something went wrong.