update documentation extraction script (use .cc instead of .h)
authorRobin Gareus <robin@gareus.org>
Wed, 30 Mar 2016 23:14:35 +0000 (01:14 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 30 Mar 2016 23:16:07 +0000 (01:16 +0200)
Most ardour header have incomplete dependencies. e.g gtk2_ardour/marker.h
has a "Pango::FontDescription" member but never includes pangomm itself.
(marker.cc includes it [indirectly] before including marker.h)

Until this situation is remedied, parse .cc files (which takes
significantly longer but works).

tools/doxy2json/ardourdoc.sh

index b1bacd530a00be59c6fbf37a1c2c5350a1bbfab7..a560edf0c156183c472388bdda9bec295ea81e65 100755 (executable)
@@ -11,14 +11,24 @@ trap 'rm -f $TMPFILE' exit SIGINT SIGTERM
 
 echo "# analyzing source.. -> $TMPFILE"
 ./tools/doxy2json/doxy2json \
-       `pkg-config --cflags glib-2.0 glibmm-2.4 cairomm-1.0 gtkmm-2.4 | sed 's/-std=c++11 //;s/-pthread //'` \
-       $LLVMINCLUDE -I /usr/include/linux \
-       -I libs/ardour -I libs/pbd -I libs/lua -I gtk2_ardour -I libs/timecode \
-       -I libs/ltc -I libs/evoral \
+       $LLVMINCLUDE \
+       -D PACKAGE=\"doc\" \
+       -D PROGRAM_NAME=\"Ardour\" -D PROGRAM_VERSION=\"4\" -D LOCALEDIR=\"/\" \
+       -D ARCH_X86 -D CONFIG_ARCH=\"x86_64\" -D WAF_BUILD \
+       -D HAVE_AUBIO=1 -D HAVE_ALSA=1 -D HAVE_GLIB=1 -D HAVE_LIBS_LUA=1 -D HAVE_XML=1 -D PTFORMAT=1 \
+       -D HAVE_SAMPLERATE=1 -D HAVE_LV2=1 -D HAVE_LV2_1_2_0=1 -D HAVE_LV2_1_10_0=1 -D HAVE_SERD=1 -D HAVE_SORD=1 -D HAVE_SRATOM=1 -D HAVE_LILV=1 -D HAVE_LV2_1_0_0=1 \
+       -D HAVE_LILV_0_16_0=1 -D HAVE_LILV_0_19_2=1 -D HAVE_LILV_0_21_3=1 -D HAVE_SUIL=1 -D LV2_SUPPORT=1 -D LV2_EXTENDED=1 -D HAVE_GTK=1 -D HAVE_LIBS_GTKMM2EXT=1 \
+       -D HAVE_X11=1  -D LXVST_64BIT=1 -D LXVST_SUPPORT=1 -D HAVE_TAGLIB=1 -D HAVE_POSIX_MEMALIGN=1 -D HAVE_VAMPSDK=1 -D HAVE_VAMPHOSTSDK=1 -D HAVE_RUBBERBAND=1 -D ENABLE_NLS=1 \
+       -D HAVE_CURL=1 -D HAVE_LO=1 -D HAVE_LRDF=1 \
+       -I libs/ardour -I libs/pbd -I libs/lua -I gtk2_ardour -I libs/timecode -I libs/audiographer -I libs/ptformat -I libs/fst \
+       -I libs/ltc -I libs/evoral -I libs/canvas -I libs/gtkmm2ext -I libs/midi++2 -I libs/surfaces/control_protocol -I libs \
+       -I build/libs/pbd -I build/libs/ardour -I build/gtk2_ardour \
+       `pkg-config --cflags glib-2.0 glibmm-2.4 cairomm-1.0 gtkmm-2.4 libxml-2.0 lilv-0 suil-0 | sed 's/-std=c++11 //;s/-pthread //'` \
        -X "_" -X "::" -X "sigc" -X "Atk::" -X "Gdk::" -X "Gtk::" -X "Gio::" \
        -X "Glib::" -X "Pango::" -X "luabridge::" \
-       libs/ardour/ardour/* libs/pbd/pbd/* \
-       gtk2_ardour/*.h \
+       \
+       libs/ardour/*.cc libs/pbd/*.cc \
+       gtk2_ardour/*.cc \
        /usr/include/cairomm-1.0/cairomm/context.h \
 > $TMPFILE