Hey there.
I am trying to turn the whole library into just one cpp and one h file. The
reason is, to make integrating into an existing project easier. Currently, I
have to compile using wildcards, and including stuff.
g++ -c -I. *.cpp
ar rcs libyaml-cpp.a *.o
Using the library from within another project then requires that include paths
are adjusted too.
The idea for combining everything into one file came from looking into ph7. It
is just one .c and one .h file. So you can compile it into another project
pretty easily.
g++ ph7.c mycode.cpp -o myapp
Or to phrase it in a build.ninja file:
rule cxx
command = g++ -c $in -o $out
rule cc
command = gcc -c $in -o $out
rule link
command = g++ $in -o $out
build ph7.o: cc ph7.c
build myapp.o: cxx myapp.cpp
build myapp: link myapp.o ph7.o
Currently, I have to generate much larger build files to cover allt he yaml
files - and adjust the include path.
Please consider the combination into one file.
Original issue reported on code.google.com by ingwie2...@googlemail.com on 31 Jan 2014 at 9:15
Original issue reported on code.google.com by
ingwie2...@googlemail.com
on 31 Jan 2014 at 9:15