Skip to content

Commit

Permalink
boost_adaptbx: updates for Boost 1.72
Browse files Browse the repository at this point in the history
- Add files for boost.filesystem

[skip ci]
  • Loading branch information
bkpoon committed Feb 11, 2021
1 parent 32d4c51 commit 5fa38c8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions boost_adaptbx/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,17 @@ e.g. with "yum install python-dev" or "apt-get install python-dev".
env_etc.include_registry.prepend(env=env_fs, paths=[env_etc.boost_include])
fs_root = '#' + os.path.join(
os.path.basename(env_etc.boost_dist), 'libs', 'filesystem', 'src')
fs_src = [os.path.join(fs_root, path) for path in
['operations.cpp', 'path.cpp', 'path_traits.cpp', 'portability.cpp',
'unique_path.cpp', 'utf8_codecvt_facet.cpp',
'codecvt_error_category.cpp']]
fs_src_base = ['operations.cpp', 'path.cpp', 'path_traits.cpp', 'portability.cpp',
'unique_path.cpp', 'utf8_codecvt_facet.cpp',
]
if env_etc.boost_version >= 107200:
fs_src_base.extend(['codecvt_error_category.cpp', 'directory.cpp', 'exception.cpp'])
env_fs.Append(LIBS=['boost_system'])
fs_src = [os.path.join(fs_root, path) for path in fs_src_base]
if (sys.platform == 'win32'): # Windows
fs_src.append(os.path.join(fs_root, 'windows_file_codecvt.cpp'))
env_fs.Append(CPPDEFINES={'BOOST_FILESYSTEM_DYN_LINK':1})
#env_fs.Append(CPPDEFINES={'BOOST_FILESYSTEM_DYN_LINK':1})
env_fs.Append(CPPDEFINES={'BOOST_FILESYSTEM_STATIC_LINK':1})
env_fs.StaticLibrary(
target='#lib/boost_filesystem',
source=fs_src)
Expand Down

0 comments on commit 5fa38c8

Please sign in to comment.