From ebd059d0eb07055d3d949f53ba284e23eac23bc6 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 8 Apr 2013 18:59:25 +0000 Subject: [PATCH] Update AS integration scripts and transforms - extract out the module description from the Doxygen XML output for the GUI. --- LUFA/Doxygen.conf | 2 +- LUFA/DoxygenPages/ChangeLog.txt | 2 +- .../XSLT/lufa_module_transform.xslt | 23 ++++++++++--------- LUFA/StudioIntegration/makefile | 14 +++++++---- 4 files changed, 23 insertions(+), 18 deletions(-) diff --git a/LUFA/Doxygen.conf b/LUFA/Doxygen.conf index e8d5e5c8da..af74d44d3a 100644 --- a/LUFA/Doxygen.conf +++ b/LUFA/Doxygen.conf @@ -1643,7 +1643,7 @@ TAGFILES = # When a file name is specified after GENERATE_TAGFILE, doxygen will create # a tag file that is based on the input files it reads. -GENERATE_TAGFILE = Documentation/lufa_doc_tags.xml +GENERATE_TAGFILE = # If the ALLEXTERNALS tag is set to YES all external classes will be listed # in the class index. If set to NO only the inherited external classes diff --git a/LUFA/DoxygenPages/ChangeLog.txt b/LUFA/DoxygenPages/ChangeLog.txt index e94b788187..fb05dd63d5 100644 --- a/LUFA/DoxygenPages/ChangeLog.txt +++ b/LUFA/DoxygenPages/ChangeLog.txt @@ -49,7 +49,7 @@ * - Increased throughput in the USBtoSerial project now that data transmission is non-blocking (thanks to Joseph Lacerte) * - Updated bootloader makefiles to remove dependency on the \c bc command line calculator tool * - Updated AVRISP-MKII Clone Programmer project so that the SCK clock period is saved in EEPROM (thanks to Gerhard Wesser) - * - Changed all *_SendByte() function prototypes to accept a void pointer for the input buffer (thanks to Simon Küppers) + * - Changed all *_SendByte() function prototypes to accept a void pointer for the input buffer (thanks to Simon Kuppers) * * Fixed: * - Core: diff --git a/LUFA/StudioIntegration/XSLT/lufa_module_transform.xslt b/LUFA/StudioIntegration/XSLT/lufa_module_transform.xslt index 65ff2f0b0f..9146202a45 100644 --- a/LUFA/StudioIntegration/XSLT/lufa_module_transform.xslt +++ b/LUFA/StudioIntegration/XSLT/lufa_module_transform.xslt @@ -17,6 +17,9 @@ + + + @@ -38,22 +41,20 @@ + nodes instead and add descriptions, so that they show up as links in + Studio correctly --> - - - - - - - - - - + + + + + + + diff --git a/LUFA/StudioIntegration/makefile b/LUFA/StudioIntegration/makefile index e895a41e42..8c0595f659 100644 --- a/LUFA/StudioIntegration/makefile +++ b/LUFA/StudioIntegration/makefile @@ -11,6 +11,7 @@ LUFA_ROOT := .. DOXYGEN_TAG_FILE_XML := $(LUFA_ROOT)/Documentation/lufa_doc_tags.xml +DOXYGEN_COMBINED_XML := $(LUFA_ROOT)/Documentation/xml/lufa_doc.xml TEMP_MANIFEST_XML := manifest.xml EXTENSION_OUTPUT_XML := $(LUFA_ROOT)/../extension.xml MODULE_OUTPUT_XML := $(LUFA_ROOT)/asf.xml @@ -21,7 +22,7 @@ ifneq ($(LUFA_VERSION_NUM),000000) EXT_VERSION_NUM := $(shell date +"%y.%m.%d").$(LUFA_VERSION_NUM) EXT_VSIX_NAME := LUFA-RELEASE-$(LUFA_VERSION_NUM).vsix else - EXT_VERSION_NUM := 0.$(shell date +"%y%m%d.%H%M%S") + EXT_VERSION_NUM := 0.$(shell date +"%y%m%d-%H%M%S") EXT_VSIX_NAME := LUFA-TESTING-$(shell date +"%y.%m.%d.%H.%M.%S").vsix $(warning No LUFA version set - assuming a test version should be created.) @@ -30,15 +31,18 @@ endif all: generate_xml check_filenames generate_vsix clean: - @rm -f $(TEMP_MANIFEST_XML) $(MODULE_OUTPUT_XML) $(EXTENSION_OUTPUT_XML) + @rm -f $(TEMP_MANIFEST_XML) $(MODULE_OUTPUT_XML) $(EXTENSION_OUTPUT_XML) $(DOXYGEN_TAG_FILE_XML) $(DOXYGEN_COMBINED_XML) $(DOXYGEN_TAG_FILE_XML): - $(MAKE) -C ../ doxygen + $(MAKE) -C ../ doxygen DOXYGEN_OVERRIDE_PARAMS="GENERATE_TAGFILE=Documentation/lufa_doc_tags.xml GENERATE_XML=yes" -$(TEMP_MANIFEST_XML): $(DOXYGEN_TAG_FILE_XML) +$(DOXYGEN_COMBINED_XML): $(DOXYGEN_TAG_FILE_XML) + @xsltproc $(dir $@)/combine.xslt $(dir $@)/index.xml > $(DOXYGEN_COMBINED_XML) + +$(TEMP_MANIFEST_XML): $(DOXYGEN_TAG_FILE_XML) $(DOXYGEN_COMBINED_XML) @echo "Generating Manifest XML..." - @printf "\n" $(LUFA_VERSION_NUM) $(DOXYGEN_TAG_FILE_XML) > $@ + @printf "\n" $(LUFA_VERSION_NUM) $(DOXYGEN_TAG_FILE_XML) $(DOXYGEN_COMBINED_XML) > $@ @for i in $(XML_FILES); do \ printf "\t\n" $$i >> $@; \ done;