diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-04 12:20:48 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-04 12:20:48 +0300 |
commit | 5d99cde8229a481363f1439ea4a4c2af851b1cb1 (patch) | |
tree | 76ebd7548ddb8eee0c7039e7f154ac982b57e80f /build_files/scons/Modules/FindSharedPtr.py | |
parent | 1eb5e0b6608b2c2bbc9813d9155ea379a5bc8ef4 (diff) |
Remove SCons building system
While SCons building system was serving us really good for ages it's no longer
having much attention by the developers and started to become quite a difficult
task to maintain.
What's even worse -- there started to be quite serious divergence between SCons
and CMake which was only accumulating over the releases now. The fact that none
of the active developers are really using SCons and that our main studio is also
using CMake spotting bugs in the SCons builds became quite a difficult task and
we aren't always spotting them in time.
Meanwhile CMake became really mature building system which is available on every
platform we support and arguably it's also easier and more robust to use.
This commit includes:
- Removal of actual SCons building system
- Removal of SCons git submodule
- Removal of documentation which is stored in the sources and covers SCons
- Tweaks to the buildbot master to stop using SCons submodule
(this change requires deploying to the server)
- Tweaks to the install dependencies script to skip installing or mentioning
SCons building system
- Tweaks to various helper scripts to avoid mention of SCons folders/files
as well
Reviewers: mont29, dingto, dfelinto, lukastoenne, lukasstockner97, brecht, Severin, merwin, aligorith, psy-fi, campbellbarton, juicyfruit
Reviewed By: campbellbarton, juicyfruit
Differential Revision: https://developer.blender.org/D1680
Diffstat (limited to 'build_files/scons/Modules/FindSharedPtr.py')
-rw-r--r-- | build_files/scons/Modules/FindSharedPtr.py | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/build_files/scons/Modules/FindSharedPtr.py b/build_files/scons/Modules/FindSharedPtr.py deleted file mode 100644 index ba53f55d563..00000000000 --- a/build_files/scons/Modules/FindSharedPtr.py +++ /dev/null @@ -1,42 +0,0 @@ -def FindSharedPtr(conf): - """ - Detect shared_ptr availability - """ - - found = False - namespace = None - header = None - - if conf.CheckCXXHeader("memory"): - # Finding the memory header doesn't mean that shared_ptr is in std - # namespace. - # - # In particular, MSVC 2008 has shared_ptr declared in std::tr1. In - # order to support this, we do an extra check to see which namespace - # should be used. - - if conf.CheckType('std::shared_ptr<int>', language = 'C++', includes="#include <memory>"): - print("-- Found shared_ptr in std namespace using <memory> header.") - namespace = 'std' - header = 'memory' - elif conf.CheckType('std::tr1::shared_ptr<int>', language = 'C++', includes="#include <memory>"): - print("-- Found shared_ptr in std::tr1 namespace using <memory> header..") - namespace = 'std::tr1' - header = 'memory' - - if not namespace and conf.CheckCXXHeader("tr1/memory"): - # Further, gcc defines shared_ptr in std::tr1 namespace and - # <tr1/memory> is to be included for this. And what makes things - # even more tricky is that gcc does have <memory> header, so - # all the checks above wouldn't find shared_ptr. - if conf.CheckType('std::tr1::shared_ptr<int>', language = 'C++', includes="#include <tr1/memory>"): - print("-- Found shared_ptr in std::tr1 namespace using <tr1/memory> header..") - namespace = 'std::tr1' - header = 'tr1/memory' - - if not namespace: - print("-- Unable to find shared_ptrred_map>.") - - conf.env['WITH_SHARED_PTR_SUPPORT'] = namespace and header - conf.env['SHARED_PTR_NAMESPACE'] = namespace - conf.env['SHARED_PTR_HEADER'] = header |