artemp / boost

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boost for Emscripten

2 changes over standard boost:

  • hardcoded paths to emar and emranlib in boost's build tools, based on suggestions from StackOverflow. Should be possible to use the config file to do this, but I don't have the patience.
  • Checked in project-config.jam, with a custom path for g++. This path also specifies emscripten compiler flags.

To compile parts of boost for use:

$ ./bootstrap.sh
$ git reset --hard # to revert change to project-config.jam
$ ./b2 --link=static --ignore-site-config --with-program_options --threading=multi
#                                                ^--------------
# change the -with option above to suit your needs

To use in a cmake project:

$ BOOST_ROOT=$HOME/PATH/TO/boost cmake [...]

(you may have to clear out your build directory so that cmake doesn't use cached values for what boost things are available)

About

License:Boost Software License 1.0


Languages

Language:C++ 64.6%Language:HTML 34.1%Language:Makefile 0.4%Language:C 0.2%Language:Python 0.1%Language:JavaScript 0.1%Language:CSS 0.1%Language:Assembly 0.1%Language:CWeb 0.1%Language:Shell 0.0%Language:XSLT 0.0%Language:PHP 0.0%Language:C# 0.0%Language:Max 0.0%Language:Perl 0.0%Language:TeX 0.0%Language:Cuda 0.0%Language:CMake 0.0%Language:QMake 0.0%Language:M4 0.0%Language:Batchfile 0.0%Language:Objective-C 0.0%Language:Perl 6 0.0%Language:Fortran 0.0%Language:Lex 0.0%Language:Tcl 0.0%Language:Objective-C++ 0.0%Language:Rebol 0.0%