Discussion:
[libtorrent] Is there a way to see all available options for b2 and how to build the docs
sledgehammer999
2016-01-30 19:24:13 UTC
Permalink
I am starting to play with 1.1.x. I see that some options for b2 were
renamed or removed.
Is there a way to make it spew all available switches?

What is the equivalent of the old "boost=source" switch?
geoip is gone completely, right?
If I have "crypto=openssl" do I need to also set "encryption=on"?
I see in the Jamfile a `windows-version` switch. Do I need to use it?
There are some other switches not documented in building.html...

Also how do you build the docs from source?
I have launched the index.html file, but there isn't a reference.html
file...
Arvid Norberg
2016-02-01 04:32:35 UTC
Permalink
On Sat, Jan 30, 2016 at 2:24 PM, sledgehammer999 <
Post by sledgehammer999
I am starting to play with 1.1.x. I see that some options for b2 were
renamed or removed.
Is there a way to make it spew all available switches?
I'm not aware of a way to make bjam do that from the command line. There
are tons of built-in features and features defined by boost though, so all
of them might not be all that useful.
The ones defined by libtorrent can be listed by just grepping for "feature"
in the root Jamfile.
Post by sledgehammer999
What is the equivalent of the old "boost=source" switch?
If the environment variable BOOST_ROOT is defined, libtorrent will build
and link against boost from source, otherwise it will expect to find shared
libraries in the default library path.
Post by sledgehammer999
geoip is gone completely, right?
yes.
Post by sledgehammer999
If I have "crypto=openssl" do I need to also set "encryption=on"?
encryption=on is on by default, and refers to the bittorrent protocol
encryption, which does not require openssl. If you want SSL support (for
both bittorrent and HTTPS) you need to say crypto=openssl.
Post by sledgehammer999
I see in the Jamfile a `windows-version` switch. Do I need to use it?
That's a way to control the version of the windows SDK to build against
(i.e. _WIN32_WINNT). If you want to support XP, you should say
windows-version=xp
Post by sledgehammer999
There are some other switches not documented in building.html...
There may be a few I've added for debugging specific issues. I believe all
the relevant ones are documented though.
Post by sledgehammer999
Also how do you build the docs from source?
There's a makefile in the docs directory. You need docutils' rst2html and
dot and aafigure for figures and python for generating documentation.
--
Arvid Norberg
Loading...