1
edit
Changes
→Add External String capability to analysis Makefile.in
=== Projected Project Time-line ===
{| class="wikitable" border="1"
! Version !! Details
|}
=== Project Related Bugs ===
{| class="wikitable" border="1"
! Number !! Related Ver. No. !! Title
|-
| April 12th, 2010 || 0.9 is released! [http://enderstruth.wordpress.com/2010/04/12/0-9-release/ 0.9 Release]
|-
| April 23rd, 2010 || 1.0 Release [http://enderstruth.wordpress.com/2010/04/23/release-1-0/ Release 1.0]
|}
== Unofficial scripts and patches ==
=== Add External String capability to analysis Makefile.in ===
[[File:external_makefile.diff]]
diff -r fe80dd3ebe74 xpcom/analysis/Makefile.in
--- a/xpcom/analysis/Makefile.in Wed Nov 11 19:11:57 2009 -0600
+++ b/xpcom/analysis/Makefile.in Wed Nov 18 22:33:53 2009 -0500
@@ -1,35 +1,46 @@
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
+#This has to be set above rules.mk to work
+#It is okay even while building classapi_external
+#type-printer-external.cpp undefines it
MOZILLA_INTERNAL_API = 1
-
include $(topsrcdir)/config/rules.mk
-DUMP_CLASSES = \
- nsAString_internal \
- nsACString_internal \
- $(NULL)
-
SPACE = $(NULL) $(NULL)
COMMA = ,
HGREV = $(shell hg -R $(topsrcdir) id -i)
+classapi_internal: typeprinter = type-printer.cpp
+classapi_internal: DUMP_CLASSES = \
+ nsAString_internal \
+ nsACString_internal \
+ $(NULL)
+classapi_internal: classapi
+
+classapi_external: typeprinter = type-printer-external.cpp
+classapi_external: DUMP_CLASSES = \
+ nsAString \
+ nsACString \
+ $(NULL)
+classapi_external: classapi
+
classapi: DEHYDRA_MODULES = $(srcdir)/type-printer.js
classapi: TREEHYDRA_MODULES =
classapi: DEHYDRA_ARGS += --dump-types=$(subst $(SPACE),$(COMMA),$(strip $(DUMP_CLASSES))) --rev=$(HGREV)
classapi: $(MDDEPDIR)
- $(CCC) $(OUTOPTION)/dev/null -c $(COMPILE_CXXFLAGS) $(srcdir)/type-printer.cpp >classapi.out 2>&1
+ $(CCC) $(OUTOPTION)/dev/null -c $(COMPILE_CXXFLAGS) $(srcdir)/$(typeprinter) >classapi.out 2>&1
perl -e 'while (<>) {if (/DUMP-TYPE\((.*)\)/) {print "$$1 ";}}' <classapi.out >dumptypes.list
perl -e 'while (<>) {if (/GRAPH-TYPE\((.*)\)/) {print "$$1 ";}}' <classapi.out >graphtypes.list
$(EXIT_ON_ERROR) \
for class in `cat graphtypes.list`; do \
dot -Tpng -o$${class}-graph.png -Tcmapx -o$${class}-graph.map $${class}-graph.gv; \
done
$(EXIT_ON_ERROR) \
for class in `cat dumptypes.list`; do \
[[File:add-type-printer-external.diff]]