I'm thinking about using Boost.Preprocessor
in some project, but I don't want to make the entire Boost library a dependency.
Can I just copy it alone and get away with this? Otherwise, what are its dependencies?
I'm thinking about using Boost.Preprocessor
in some project, but I don't want to make the entire Boost library a dependency.
Can I just copy it alone and get away with this? Otherwise, what are its dependencies?
As stated at http://www.boost.org/doc/libs/1_45_0/ , Preprocessor is a header only library. No run time library needed.
New Answer
I just got
bcp
working:./bcp --list preprocessor --boost=/usr/local/include/boost_1_45_0/ | grep -v preprocessor
w/o the grep I get something like:
Original answer
Try using the boost
bcp
utility to copy itI did a quick
grep -R "include" /usr/include/boost/preprocessor/* | grep -v preprocessor
and didn't come up with any matches. I could have sworn that config was needed.Edit (my grep-ful is weak =/)
grep -rh "include" /usr/include/boost/preprocessor/* | grep -v preprocessor | sort |uniq
grep -rhE "define\\s+BOOST_PP_FILENAME" /usr/include/boost/preprocessor/* | sort |uniq
BOOST_PP_ITERATION_PARAMS_# don't seem to be
#defined
anywhere. Strangely enough, they are#undef
ed in ./detail/iter/forward#.hpp so I'm probably missing some nested macro or other...