fix setyp.py

git-svn-id: svn://svn.code.sf.net/p/libtorrent/code/branches/RC_1_0@10485 a83610d8-ad2a-0410-a6ab-fc0612d85776
support overlong utf-8 sequences. fix single-file torrent case where name contains a full path, make the mapping to filenames more intuitive and extend the unit tests

git-svn-id: svn://svn.code.sf.net/p/libtorrent/code/branches/RC_1_0@10489 a83610d8-ad2a-0410-a6ab-fc0612d85776
CMake build: Split examples in public API examples and TORRENT_EXTRA_EXPORT examples.

This is the last fix required to make the default CMake build work.
CMake build: Move self includes further up so they get preferred over installed include dirs.
CMake build: Make generation of the pkg-config file unconditional.

If we always install it, we might as well make sure it exists.
(CMake bails otherwise.)
CMake build: Allow exclusion of Boost.Asio sources from the build.

By passing "-D asio_source=OFF" to cmake, it's possible to build
the Asio compilation unit in a parent project, which makes it
easier to combine libtorrent with other libraries that also depend
on Asio.
CMake build: Allow building with C++11 support.
CMake build: Automatic clang color diagnostics when building with Ninja.