Add Atmel Studio Extension (VSIX) packaging files and scripts.
authorDean Camera <dean@fourwalledcubicle.com>
Sat, 5 Jan 2013 11:18:49 +0000 (11:18 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Sat, 5 Jan 2013 11:18:49 +0000 (11:18 +0000)
LUFA/StudioIntegration/VSIX/[Content_Types].xml [new file with mode: 0644]
LUFA/StudioIntegration/VSIX/extension.vsixmanifest [new file with mode: 0644]
LUFA/StudioIntegration/makefile

diff --git a/LUFA/StudioIntegration/VSIX/[Content_Types].xml b/LUFA/StudioIntegration/VSIX/[Content_Types].xml
new file mode 100644 (file)
index 0000000..bb630d8
--- /dev/null
@@ -0,0 +1,22 @@
+<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\r
+  <Default Extension="vsixmanifest" ContentType="text/xml"/>\r
+\r
+  <Default Extension="jpg" ContentType="image/jpg"/>\r
+  <Default Extension="png" ContentType="application/octet-stream"/>\r
+  <Default Extension="bmp" ContentType="application/octet-stream"/>\r
+\r
+  <Default Extension="c" ContentType="application/octet-stream"/>\r
+  <Default Extension="h" ContentType="application/octet-stream"/>\r
+  <Default Extension="S" ContentType="application/octet-stream"/>\r
+\r
+  <Default Extension="txt" ContentType="text/plain"/>\r
+\r
+  <Default Extension="conf" ContentType="application/octet-stream"/>\r
+  <Default Extension="inf" ContentType="application/octet-stream"/>\r
+\r
+  <Default Extension="xml" ContentType="text/xml"/>\r
+\r
+  <Default Extension="css" ContentType="application/octet-stream"/>\r
+  <Default Extension="html" ContentType="text/html"/>\r
+  <Default Extension="js" ContentType="application/octet-stream"/>\r
+</Types>\r
diff --git a/LUFA/StudioIntegration/VSIX/extension.vsixmanifest b/LUFA/StudioIntegration/VSIX/extension.vsixmanifest
new file mode 100644 (file)
index 0000000..0adf426
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>\r
+\r
+<Vsix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2010">\r
+       <Identifier Id="FourWalledCubicle.LUFA.0e160d5c-e331-48d9-850b-e0387912171b">\r
+               <Name>LUFA Library</Name>\r
+               <Author>Dean Camera</Author>\r
+               <Version>00.00.00</Version>\r
+               <MoreInfoUrl>http://www.lufa-lib.org</MoreInfoUrl>\r
+               <Description xml:space="preserve">LUFA USB Framework</Description>\r
+\r
+           <Icon>LUFA\DoxygenPages\Images\LUFA_thumb.png</Icon>\r
+           <PreviewImage>LUFA\DoxygenPages\Images\LUFA.png</PreviewImage>\r
+\r
+               <SupportedProducts>\r
+                       <IsolatedShell Version="6.1">AtmelStudio</IsolatedShell>\r
+               </SupportedProducts>\r
+               <SupportedFrameworkRuntimeEdition MinVersion="4.0" MaxVersion="4.0" />\r
+\r
+               <Locale>1033</Locale>\r
+       </Identifier>\r
+\r
+       <References/>\r
+       <Content/>\r
+</Vsix>\r
index aa1feb1..442e8fd 100644 (file)
@@ -9,7 +9,7 @@
 #  Makefile for the LUFA Atmel Studio Integration.
 # ---------------------------------------
 
 #  Makefile for the LUFA Atmel Studio Integration.
 # ---------------------------------------
 
-LUFA_ROOT            := ../
+LUFA_ROOT            := ..
 DOXYGEN_TAG_FILE_XML := $(LUFA_ROOT)/Documentation/lufa_doc_tags.xml
 TEMP_MANIFEST_XML    := manifest.xml
 EXTENSION_OUTPUT_XML := $(LUFA_ROOT)/../extension.xml
 DOXYGEN_TAG_FILE_XML := $(LUFA_ROOT)/Documentation/lufa_doc_tags.xml
 TEMP_MANIFEST_XML    := manifest.xml
 EXTENSION_OUTPUT_XML := $(LUFA_ROOT)/../extension.xml
@@ -17,7 +17,7 @@ MODULE_OUTPUT_XML    := $(LUFA_ROOT)/asf.xml
 XML_FILES            := $(filter-out $(TEMP_MANIFEST_FILE), $(shell ls *.xml))
 LUFA_VERSION_NUM     := $(shell grep LUFA_VERSION_STRING $(LUFA_ROOT)/Version.h | cut -d'"' -f2)
 
 XML_FILES            := $(filter-out $(TEMP_MANIFEST_FILE), $(shell ls *.xml))
 LUFA_VERSION_NUM     := $(shell grep LUFA_VERSION_STRING $(LUFA_ROOT)/Version.h | cut -d'"' -f2)
 
-all: check_filenames generate_xml
+all: check_filenames generate_xml generate_vsix
 
 clean:
        @rm $(TEMP_MANIFEST_XML) $(MODULE_OUTPUT_XML) $(EXTENSION_OUTPUT_XML)
 
 clean:
        @rm $(TEMP_MANIFEST_XML) $(MODULE_OUTPUT_XML) $(EXTENSION_OUTPUT_XML)
@@ -47,6 +47,10 @@ generate_xml: $(TEMP_MANIFEST_XML)
 
        @rm $(TEMP_MANIFEST_XML)
 
 
        @rm $(TEMP_MANIFEST_XML)
 
+generate_vsix: $(EXTENSION_OUTPUT_XML) $(MODULE_OUTPUT_XML)
+       cp VSIX/* $(LUFA_ROOT)/../
+       cd $(LUFA_ROOT)/../; zip LUFA_AS_Extension.vsix -r --exclude=*StudioIntegration* *
+
 check_filenames: $(TEMP_MANIFEST_XML)
        @for i in `xsltproc XSLT/lufa_filelist_transform.xslt $< | grep -v "^<" | sed -e "/^$$/d"`; do \
                if ( ! test -f "$(LUFA_ROOT)/$$i" ); then \
 check_filenames: $(TEMP_MANIFEST_XML)
        @for i in `xsltproc XSLT/lufa_filelist_transform.xslt $< | grep -v "^<" | sed -e "/^$$/d"`; do \
                if ( ! test -f "$(LUFA_ROOT)/$$i" ); then \