diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2013-07-19 13:36:54 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2013-07-19 13:36:54 +0400 |
commit | ad42a67be68eff1075a03b14594a91290eec3b6c (patch) | |
tree | 07024463638e25202109ba06ee7bebfad9f325d0 /main/src/addins/MonoDevelop.Autotools | |
parent | b1bd024c3c8305528a6ba25e85ac71b6dcd34e77 (diff) |
Use attributes to define the add-in version and dependencies
Diffstat (limited to 'main/src/addins/MonoDevelop.Autotools')
3 files changed, 20 insertions, 18 deletions
diff --git a/main/src/addins/MonoDevelop.Autotools/AddinInfo.cs b/main/src/addins/MonoDevelop.Autotools/AddinInfo.cs new file mode 100644 index 0000000000..b9c07978a1 --- /dev/null +++ b/main/src/addins/MonoDevelop.Autotools/AddinInfo.cs @@ -0,0 +1,17 @@ + +using System; +using Mono.Addins; +using Mono.Addins.Description; + +[assembly:Addin ("Autotools", + Namespace = "MonoDevelop", + Version = MonoDevelop.BuildInfo.Version, + Category = "Project Import and Export")] + +[assembly:AddinName ("Makefile generation")] +[assembly:AddinDescription ("Allows generating simple makefiles and Autotools based makefiles for projects")] + +[assembly:AddinDependency ("Core", MonoDevelop.BuildInfo.Version)] +[assembly:AddinDependency ("Ide", MonoDevelop.BuildInfo.Version)] +[assembly:AddinDependency ("Deployment", MonoDevelop.BuildInfo.Version)] +[assembly:AddinDependency ("DesignerSupport", MonoDevelop.BuildInfo.Version)] diff --git a/main/src/addins/MonoDevelop.Autotools/MonoDevelop.Autotools.addin.xml b/main/src/addins/MonoDevelop.Autotools/MonoDevelop.Autotools.addin.xml index 198da5e37d..0ed738152b 100644 --- a/main/src/addins/MonoDevelop.Autotools/MonoDevelop.Autotools.addin.xml +++ b/main/src/addins/MonoDevelop.Autotools/MonoDevelop.Autotools.addin.xml @@ -1,15 +1,6 @@ -<Addin id = "Autotools" - namespace = "MonoDevelop" - name = "Makefile generation" - author = "Matthias Braun, Scott Ellington" - copyright = "LGPL" - url = "http://monodevelop.com" - description = "Allows generating simple makefiles and Autotools based makefiles for projects" - category = "Project Import and Export" - version = "4.1.7"> +<ExtensionModel> <Runtime> - <Import assembly="MonoDevelop.Autotools.dll" /> <Import file="templates/autogen.sh.template"/> <Import file="templates/Makefile.am.project.template"/> <Import file="templates/Makefile.include"/> @@ -18,13 +9,6 @@ <Import file="templates/expansions.m4"/> </Runtime> - <Dependencies> - <Addin id="Core" version="4.1.7"/> - <Addin id="Ide" version="4.1.7"/> - <Addin id="Deployment" version="4.1.7"/> - <Addin id="DesignerSupport" version="4.1.7"/> - </Dependencies> - <ExtensionPoint path = "/MonoDevelop/Autotools/SimpleSetups"> <Description>Simple autotools setups. Specified classes must implement ISimpleAutotoolsSetup</Description> <ExtensionNode name ="Class" /> @@ -145,4 +129,4 @@ </Extension> --> -</Addin> +</ExtensionModel> diff --git a/main/src/addins/MonoDevelop.Autotools/MonoDevelop.Autotools.csproj b/main/src/addins/MonoDevelop.Autotools/MonoDevelop.Autotools.csproj index f47958a71f..936b8d25ed 100644 --- a/main/src/addins/MonoDevelop.Autotools/MonoDevelop.Autotools.csproj +++ b/main/src/addins/MonoDevelop.Autotools/MonoDevelop.Autotools.csproj @@ -118,6 +118,7 @@ <Compile Include="MakefileSwitchEditor.cs" /> <Compile Include="gtk-gui\MonoDevelop.Autotools.MakefileSwitchEditor.cs" /> <Compile Include="Switch.cs" /> + <Compile Include="AddinInfo.cs" /> </ItemGroup> <ItemGroup> <None Include="Makefile.am" /> |