{"id":228,"date":"2008-06-24T13:12:21","date_gmt":"2008-06-24T17:12:21","guid":{"rendered":"http:\/\/benjamin.smedbergs.us\/blog\/?p=228"},"modified":"2008-06-24T13:12:21","modified_gmt":"2008-06-24T17:12:21","slug":"mozilla-build-tricks-viewing-preprocessed-source","status":"publish","type":"post","link":"http:\/\/benjamin.smedbergs.us\/blog\/2008-06-24\/mozilla-build-tricks-viewing-preprocessed-source\/","title":{"rendered":"Mozilla Build Tricks: viewing preprocessed source"},"content":{"rendered":"<p>More in the occasional series of tricks you can do with the Mozilla build system.<\/p>\n<h4>Making Preprocessed Sources<\/h4>\n<p>If you have a compile error and you can&#8217;t figure out what macros are being expanded, you can make a preprocessed version of any C\/C++ file:<\/p>\n<pre>$ cd $OBJDIR\/some\/directory\r\n$ make nsMyFilename.i<\/pre>\n<h4>Using Doxygen to Generate Documentation<\/h4>\n<p>You can use the documentation-generation tool <a href=\"http:\/\/www.doxygen.org\/\">Doxygen<\/a> to automatically generate interface\/class\/method documentation from the Mozilla sources.<\/p>\n<pre>$ cd $OBJDIR\r\n$ make documentation<\/pre>\n<p>Warning: doxygen isn&#8217;t especially precise. Your mileage may vary.<\/p>\n<h4>Displaying a Build Variable<\/h4>\n<p>Sometimes when hacking a Makefile it may not be obvious what the final value of a variable is. You can check this by using the <tt>echo-variable-%<\/tt> rule:<\/p>\n<pre>$ cd $OBJDIR\/some\/directory\r\n$ make echo-variable-EXTRA_DSO_LDOPTS<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>More in the occasional series of tricks you can do with the Mozilla build system. Making Preprocessed Sources If you have a compile error and you can&#8217;t figure out what macros are being expanded, you can make a preprocessed version of any C\/C++ file: $ cd $OBJDIR\/some\/directory $ make nsMyFilename.i Using Doxygen to Generate Documentation [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[127,125,126],"class_list":["post-228","post","type-post","status-publish","format-standard","hentry","category-mozilla","tag-doxygen","tag-mozilla-build","tag-preprocessed"],"_links":{"self":[{"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/posts\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/comments?post=228"}],"version-history":[{"count":0,"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/posts\/228\/revisions"}],"wp:attachment":[{"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/media?parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/categories?post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/tags?post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}