Skip to content
Snippets Groups Projects
Commit 1402c164 authored by Marcel Huber's avatar Marcel Huber
Browse files

Merge branch 'develop' into 'master'

cleanup of project structure

See merge request 3rdparty/boost!1
parents e00f06a2 28a8e6d0
No related branches found
No related tags found
1 merge request!1cleanup of project structure
File deleted
This diff is collapsed.
/.cproject
[gerrit]
host=gerrit.coast-project.org
port=29418
project=boost.git
defaultbranch=master
defaultremote=origin
defaultrebase=1
This directory contains only a subset of the full boost library distribution.
To reduce a full source distribution of boost to include the needed headers/libs only,
use the following steps:
# examine what files of boost you need based on your current code:
git grep -E -e "include\s+.*boost" | cut -d ':' -f2 | sed -r -n -e 's|[<">]||g' -e 's|.* (.*)|\1|p' | sort | uniq | tr '\n' ' '
# -> non git users using parallel grep processing:
find coast/ "(" -name '*.cpp' -o -name '*.h' -o -name '*.hpp' -o -name '*.ipp' ")" | xargs --max-procs=4 grep -E "include\s+.*boost" | cut -d ':' -f2 | sed -r -n -e 's|[<">]||g' -e 's|.* (.*)|\1|p' | sort | uniq | tr '\n' ' '
# download and extract boost libraries: http://www.boost.org/users/download/
# compile bcp tool used to extract a subset of headers and libs:
./bootstrap.sh
./b2 tools/bcp
ln -s bin.v2/tools/bcp/gcc-*/release/link-static/bcp
# test which files would be copied based on the list of used header files:
## the following list is just an example, the last command in this file
## reflects the command used for the current set of files
./bcp --list --unix-lines boost/bind.hpp boost/format.hpp boost/function.hpp
# copy files to new directory
mkdir /tmp/boost_reduced
./bcp --unix-lines boost/bind.hpp boost/format.hpp boost/function.hpp /tmp/boost_reduced
# COMMAND USED TO CREATE THE CURRENT SET OF FILES:
# ./bcp --unix-lines boost/assign.hpp boost/bind.hpp boost/format.hpp boost/function.hpp boost/intrusive_ptr.hpp boost/limits.hpp boost/pool/object_pool.hpp boost/pool/pool_alloc.hpp boost/pool/pool.hpp boost/preprocessor/cat.hpp boost/preprocessor/seq/elem.hpp boost/preprocessor/seq/for_each_product.hpp boost/preprocessor/seq.hpp boost/preprocessor/seq/to_tuple.hpp boost/preprocessor/stringize.hpp boost/preprocessor/tuple/elem.hpp boost/shared_ptr.hpp boost/type_traits.hpp boost/unordered_map.hpp ~/Develop/coast/3rdparty/boost
= boost 3rdparty libraries tailored for COAST building
This directory contains only a subset of the full boost library distribution.
To reduce a full source distribution of boost to include the needed headers/libs only,
use the steps described in this document.
== Prepare a new release
. Examine what files of boost you need based on your current code.
+
[source,bash]
----
git grep -E -e "include\s+.*boost" | \
cut -d ':' -f2 | \
sed -r -n -e 's|[<">]||g' -e 's|.* (.*)|\1|p' | \
sort | uniq | tr '\n' ' '
----
. -> non git users using parallel grep processing:
+
[source,bash]
----
find coast/ "(" -name '*.cpp' -o -name '*.h' -o -name '*.hpp' -o -name '*.ipp' ")" | \
xargs --max-procs=4 grep -E "include\s+.*boost" | \
cut -d ':' -f2 | \
sed -r -n -e 's|[<">]||g' -e 's|.* (.*)|\1|p' | \
sort | uniq | tr '\n' ' '
----
. download and extract boost libraries: http://www.boost.org/users/download/
. compile bcp tool used to extract a subset of headers and libs
+
[source,bash]
----
./bootstrap.sh
./b2 tools/bcp
ln -s bin.v2/tools/bcp/gcc-*/release/link-static/bcp
----
. Test which files would be copied based on the list of used header files.
The following list is just an example, the last command in this file.
Reflects the command used for the current set of files.
+
[source,bash]
----
./bcp --list --unix-lines boost/bind.hpp boost/format.hpp boost/function.hpp
----
. copy files to new directory
+
[source,bash]
----
mkdir /tmp/boost_reduced
./bcp --unix-lines boost/bind.hpp boost/format.hpp boost/function.hpp /tmp/boost_reduced
----
== Command used to create the current set of files
[source,bash]
----
./bcp --unix-lines boost/assign.hpp boost/bind.hpp boost/format.hpp boost/function.hpp \
boost/intrusive_ptr.hpp boost/limits.hpp boost/pool/object_pool.hpp boost/pool/pool_alloc.hpp \
boost/pool/pool.hpp boost/preprocessor/cat.hpp boost/preprocessor/seq/elem.hpp \
boost/preprocessor/seq/for_each_product.hpp boost/preprocessor/seq.hpp \
boost/preprocessor/seq/to_tuple.hpp boost/preprocessor/stringize.hpp \
boost/preprocessor/tuple/elem.hpp boost/shared_ptr.hpp boost/type_traits.hpp \
boost/unordered_map.hpp ~/Develop/coast/3rdparty/boost
----
1.60.0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment