OSDN Git Service

Add work-arounds for missing C++11 features.
authorNicolas Capens <capn@google.com>
Mon, 9 Apr 2018 19:12:15 +0000 (15:12 -0400)
committerNicolas Capens <nicolascapens@google.com>
Tue, 10 Apr 2018 13:20:58 +0000 (13:20 +0000)
commite3490ede24844d5b2b79fff1cb84154be1b634a5
treeceef2748b103bcd1fc721d4796bee64d141eb926
parent7e45f6d1b239819ad107ea66d23e656d47856ec3
Add work-arounds for missing C++11 features.

Android versions before M did not have:

std::shared_ptr
std::unique_ptr
std::to_string

This is fixed by extending stlport with custom implementations for
these features. This works by using 'string' and 'memory' header
files in a path searched before stlport itself, in which the new
features are implemented, and including stport's original headers for
all other functionality.

Bug b/75229322

Change-Id: Icd05c072c366381155e086c3f14f805bc4f104d6
Reviewed-on: https://swiftshader-review.googlesource.com/18408
Tested-by: Nicolas Capens <nicolascapens@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/OpenGL/compiler/Android.mk
third_party/stlport-cpp11-extension/memory [new file with mode: 0644]
third_party/stlport-cpp11-extension/string [new file with mode: 0644]