From 841bb33e362cfbeee8fb3d267072a3e64f5fbd87 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 7 Jan 2013 20:39:25 +0000 Subject: [PATCH] Add ASF provider manifest file and adjust VSIX packing to compress the library contents. --- .../VSIX/[Content_Types].xml | 17 +-------- LUFA/StudioIntegration/VSIX/asf-manifest.xml | 18 ++++++++++ .../VSIX/extension.vsixmanifest | 13 ++++--- .../XSLT/lufa_asfmanifest_transform.xslt | 35 +++++++++++++++++++ LUFA/StudioIntegration/makefile | 9 ++++- 5 files changed, 71 insertions(+), 21 deletions(-) create mode 100644 LUFA/StudioIntegration/VSIX/asf-manifest.xml create mode 100644 LUFA/StudioIntegration/XSLT/lufa_asfmanifest_transform.xslt diff --git a/LUFA/StudioIntegration/VSIX/[Content_Types].xml b/LUFA/StudioIntegration/VSIX/[Content_Types].xml index bb630d84ed..8a20e77f34 100644 --- a/LUFA/StudioIntegration/VSIX/[Content_Types].xml +++ b/LUFA/StudioIntegration/VSIX/[Content_Types].xml @@ -1,22 +1,7 @@ - - - - - - - - - - - - - - - - + diff --git a/LUFA/StudioIntegration/VSIX/asf-manifest.xml b/LUFA/StudioIntegration/VSIX/asf-manifest.xml new file mode 100644 index 0000000000..511e743f69 --- /dev/null +++ b/LUFA/StudioIntegration/VSIX/asf-manifest.xml @@ -0,0 +1,18 @@ + + + FourWalledCubicle + LUFA + Dean Camera + + True + + + + + + + content.xml.cache + + + + diff --git a/LUFA/StudioIntegration/VSIX/extension.vsixmanifest b/LUFA/StudioIntegration/VSIX/extension.vsixmanifest index 8dd6de0917..6be9f6a66b 100644 --- a/LUFA/StudioIntegration/VSIX/extension.vsixmanifest +++ b/LUFA/StudioIntegration/VSIX/extension.vsixmanifest @@ -8,9 +8,9 @@ http://www.lufa-lib.org LUFA USB Framework - LUFA\License.txt - LUFA\DoxygenPages\Images\LUFA_thumb.png - LUFA\DoxygenPages\Images\LUFA.png + License.txt + PreviewThumb.png + Preview.png AtmelStudio @@ -18,8 +18,13 @@ 1033 + + true - + + + asf-manifest.xml + diff --git a/LUFA/StudioIntegration/XSLT/lufa_asfmanifest_transform.xslt b/LUFA/StudioIntegration/XSLT/lufa_asfmanifest_transform.xslt new file mode 100644 index 0000000000..8cbb8afb80 --- /dev/null +++ b/LUFA/StudioIntegration/XSLT/lufa_asfmanifest_transform.xslt @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + . + + . + + + + diff --git a/LUFA/StudioIntegration/makefile b/LUFA/StudioIntegration/makefile index 860b5983db..2e7ae564ce 100644 --- a/LUFA/StudioIntegration/makefile +++ b/LUFA/StudioIntegration/makefile @@ -49,12 +49,19 @@ generate_xml: $(TEMP_MANIFEST_XML) @rm $(TEMP_MANIFEST_XML) generate_vsix: $(EXTENSION_OUTPUT_XML) $(MODULE_OUTPUT_XML) + @echo "Archiving Content..." + @cd $(LUFA_ROOT)/../ && zip contents.zip -q -9 -r --exclude=*$(notdir $(DOXYGEN_TAG_FILE_XML)) --exclude=*StudioIntegration* LUFA Bootloaders Demos Projects extension.xml README.txt + @echo "Creating VSIX Dependencies..." + @cp $(LUFA_ROOT)/DoxygenPages/Images/LUFA_thumb.png $(LUFA_ROOT)/../PreviewThumb.png + @cp $(LUFA_ROOT)/DoxygenPages/Images/LUFA.png $(LUFA_ROOT)/../Preview.png + @cp $(LUFA_ROOT)/License.txt $(LUFA_ROOT)/../ @cp "VSIX/[Content_Types].xml" $(LUFA_ROOT)/../ @xsltproc --stringparam extension-version "$(EXT_VERSION_NUM)" XSLT/lufa_vsmanifest_transform.xslt VSIX/extension.vsixmanifest > $(LUFA_ROOT)/../extension.vsixmanifest + @xsltproc --stringparam lufa-version "$(LUFA_VERSION_NUM)" XSLT/lufa_asfmanifest_transform.xslt VSIX/asf-manifest.xml > $(LUFA_ROOT)/../asf-manifest.xml @echo "Generating Atmel Studio VSIX Extension file..." - @cd $(LUFA_ROOT)/../ && zip LUFA_AS_Extension.vsix -q -9 -r --exclude=*$(notdir $(DOXYGEN_TAG_FILE_XML)) --exclude=*StudioIntegration* * + @cd $(LUFA_ROOT)/../ && zip LUFA.vsix -q contents.zip License.txt Preview.png PreviewThumb.png "[Content_Types].xml" extension.vsixmanifest asf-manifest.xml extension.xml @echo "Atmel Studio VSIX Extension file generated." check_filenames: $(TEMP_MANIFEST_XML)