Browse Source

Separate SpritePacker from CLI

tags/v0.1
Starbeamrainbowlabs 2 years ago
parent
commit
57ebb57335

SpritePacker/Program.cs → SpritePacker-CLI/Program.cs View File

@@ -1,8 +1,6 @@
1 1
 using System;
2 2
 using System.Collections.Generic;
3
-using System.Windows.Markup;
4 3
 using System.IO;
5
-using System.Reflection;
6 4
 
7 5
 namespace SpritePacker
8 6
 {

+ 27
- 0
SpritePacker-CLI/Properties/AssemblyInfo.cs View File

@@ -0,0 +1,27 @@
1
+using System.Reflection;
2
+using System.Runtime.CompilerServices;
3
+
4
+// Information about this assembly is defined by the following attributes.
5
+// Change them to the values specific to your project.
6
+
7
+[assembly: AssemblyTitle("SpritePacker")]
8
+[assembly: AssemblyDescription("")]
9
+[assembly: AssemblyConfiguration("")]
10
+[assembly: AssemblyCompany("")]
11
+[assembly: AssemblyProduct("")]
12
+[assembly: AssemblyCopyright("Starbeamrainbowlabs")]
13
+[assembly: AssemblyTrademark("")]
14
+[assembly: AssemblyCulture("")]
15
+
16
+// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
17
+// The form "{Major}.{Minor}.*" will automatically update the build and revision,
18
+// and "{Major}.{Minor}.{Build}.*" will update just the revision.
19
+
20
+[assembly: AssemblyVersion("0.1.*")]
21
+
22
+// The following attributes are used to specify the signing key for the assembly,
23
+// if desired. See the Mono documentation for more information about signing.
24
+
25
+//[assembly: AssemblyDelaySign(false)]
26
+//[assembly: AssemblyKeyFile("")]
27
+

SpritePacker/Resources/HelpText.txt → SpritePacker-CLI/Resources/HelpText.txt View File


SpritePacker/Resources/VersionText.txt → SpritePacker-CLI/Resources/VersionText.txt View File


+ 59
- 0
SpritePacker-CLI/SpritePacker-CLI.csproj View File

@@ -0,0 +1,59 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+  <PropertyGroup>
4
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5
+    <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
6
+    <ProjectGuid>{6EF47B64-1920-4827-BEEF-B262D5A2D214}</ProjectGuid>
7
+    <OutputType>Exe</OutputType>
8
+    <RootNamespace>SpritePacker</RootNamespace>
9
+    <AssemblyName>SpritePacker</AssemblyName>
10
+    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
11
+  </PropertyGroup>
12
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
13
+    <DebugSymbols>true</DebugSymbols>
14
+    <DebugType>full</DebugType>
15
+    <Optimize>false</Optimize>
16
+    <OutputPath>bin\Debug</OutputPath>
17
+    <DefineConstants>DEBUG;</DefineConstants>
18
+    <ErrorReport>prompt</ErrorReport>
19
+    <WarningLevel>4</WarningLevel>
20
+    <Externalconsole>true</Externalconsole>
21
+    <PlatformTarget>x86</PlatformTarget>
22
+    <Commandlineparameters>result.png /tmp/*.png</Commandlineparameters>
23
+  </PropertyGroup>
24
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
25
+    <DebugType>full</DebugType>
26
+    <Optimize>true</Optimize>
27
+    <OutputPath>bin\Release</OutputPath>
28
+    <ErrorReport>prompt</ErrorReport>
29
+    <WarningLevel>4</WarningLevel>
30
+    <Externalconsole>true</Externalconsole>
31
+    <PlatformTarget>x86</PlatformTarget>
32
+  </PropertyGroup>
33
+  <PropertyGroup>
34
+    <PreBuildEvent>git rev-parse HEAD &gt;../../latest-commit-hash.txt</PreBuildEvent>
35
+  </PropertyGroup>
36
+  <ItemGroup>
37
+    <Reference Include="System" />
38
+  </ItemGroup>
39
+  <ItemGroup>
40
+    <Compile Include="Program.cs" />
41
+    <Compile Include="Properties\AssemblyInfo.cs" />
42
+  </ItemGroup>
43
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
44
+  <ItemGroup>
45
+    <EmbeddedResource Include="latest-commit-hash.txt" />
46
+    <EmbeddedResource Include="Resources\VersionText.txt" />
47
+    <EmbeddedResource Include="Resources\HelpText.txt" />
48
+    <EmbeddedResource Include="Version.txt" />
49
+  </ItemGroup>
50
+  <ItemGroup>
51
+    <Folder Include="Resources\" />
52
+  </ItemGroup>
53
+  <ItemGroup>
54
+    <ProjectReference Include="..\SpritePacker\SpritePacker.csproj">
55
+      <Project>{2D3C4FAA-6D9C-4644-ABC0-361550A1884A}</Project>
56
+      <Name>SpritePacker</Name>
57
+    </ProjectReference>
58
+  </ItemGroup>
59
+</Project>

SpritePacker/Version.txt → SpritePacker-CLI/Version.txt View File


+ 7
- 1
SpritePacker.sln View File

@@ -1,7 +1,7 @@
1 1
 
2 2
 Microsoft Visual Studio Solution File, Format Version 12.00
3 3
 # Visual Studio 2012
4
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpritePacker", "SpritePacker\SpritePacker.csproj", "{6EF47B64-1920-4827-BEEF-B262D5A2D214}"
4
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpritePacker-CLI", "SpritePacker-CLI\SpritePacker-CLI.csproj", "{6EF47B64-1920-4827-BEEF-B262D5A2D214}"
5 5
 EndProject
6 6
 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5C9D36DD-3962-45BF-938E-BE1E258053EC}"
7 7
 	ProjectSection(SolutionItems) = preProject
@@ -9,12 +9,18 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
9 9
 		.gitignore = .gitignore
10 10
 	EndProjectSection
11 11
 EndProject
12
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpritePacker", "SpritePacker\SpritePacker.csproj", "{2D3C4FAA-6D9C-4644-ABC0-361550A1884A}"
13
+EndProject
12 14
 Global
13 15
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 16
 		Debug|x86 = Debug|x86
15 17
 		Release|x86 = Release|x86
16 18
 	EndGlobalSection
17 19
 	GlobalSection(ProjectConfigurationPlatforms) = postSolution
20
+		{2D3C4FAA-6D9C-4644-ABC0-361550A1884A}.Debug|x86.ActiveCfg = Debug|Any CPU
21
+		{2D3C4FAA-6D9C-4644-ABC0-361550A1884A}.Debug|x86.Build.0 = Debug|Any CPU
22
+		{2D3C4FAA-6D9C-4644-ABC0-361550A1884A}.Release|x86.ActiveCfg = Release|Any CPU
23
+		{2D3C4FAA-6D9C-4644-ABC0-361550A1884A}.Release|x86.Build.0 = Release|Any CPU
18 24
 		{6EF47B64-1920-4827-BEEF-B262D5A2D214}.Debug|x86.ActiveCfg = Debug|x86
19 25
 		{6EF47B64-1920-4827-BEEF-B262D5A2D214}.Debug|x86.Build.0 = Debug|x86
20 26
 		{6EF47B64-1920-4827-BEEF-B262D5A2D214}.Release|x86.ActiveCfg = Release|x86

+ 1
- 1
SpritePacker/Properties/AssemblyInfo.cs View File

@@ -17,7 +17,7 @@ using System.Runtime.CompilerServices;
17 17
 // The form "{Major}.{Minor}.*" will automatically update the build and revision,
18 18
 // and "{Major}.{Minor}.{Build}.*" will update just the revision.
19 19
 
20
-[assembly: AssemblyVersion("0.1.*")]
20
+[assembly: AssemblyVersion("1.0.*")]
21 21
 
22 22
 // The following attributes are used to specify the signing key for the assembly,
23 23
 // if desired. See the Mono documentation for more information about signing.

+ 9
- 25
SpritePacker/SpritePacker.csproj View File

@@ -2,14 +2,14 @@
2 2
 <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 3
   <PropertyGroup>
4 4
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5
-    <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
6
-    <ProjectGuid>{6EF47B64-1920-4827-BEEF-B262D5A2D214}</ProjectGuid>
7
-    <OutputType>Exe</OutputType>
5
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6
+    <ProjectGuid>{2D3C4FAA-6D9C-4644-ABC0-361550A1884A}</ProjectGuid>
7
+    <OutputType>Library</OutputType>
8 8
     <RootNamespace>SpritePacker</RootNamespace>
9 9
     <AssemblyName>SpritePacker</AssemblyName>
10 10
     <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
11 11
   </PropertyGroup>
12
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
12
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
13 13
     <DebugSymbols>true</DebugSymbols>
14 14
     <DebugType>full</DebugType>
15 15
     <Optimize>false</Optimize>
@@ -17,41 +17,25 @@
17 17
     <DefineConstants>DEBUG;</DefineConstants>
18 18
     <ErrorReport>prompt</ErrorReport>
19 19
     <WarningLevel>4</WarningLevel>
20
-    <Externalconsole>true</Externalconsole>
21
-    <PlatformTarget>x86</PlatformTarget>
22
-    <Commandlineparameters>result.png /tmp/*.png</Commandlineparameters>
20
+    <ConsolePause>false</ConsolePause>
23 21
   </PropertyGroup>
24
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
22
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25 23
     <DebugType>full</DebugType>
26 24
     <Optimize>true</Optimize>
27 25
     <OutputPath>bin\Release</OutputPath>
28 26
     <ErrorReport>prompt</ErrorReport>
29 27
     <WarningLevel>4</WarningLevel>
30
-    <Externalconsole>true</Externalconsole>
31
-    <PlatformTarget>x86</PlatformTarget>
32
-  </PropertyGroup>
33
-  <PropertyGroup>
34
-    <PreBuildEvent>git rev-parse HEAD &gt;../../latest-commit-hash.txt</PreBuildEvent>
28
+    <ConsolePause>false</ConsolePause>
35 29
   </PropertyGroup>
36 30
   <ItemGroup>
37 31
     <Reference Include="System" />
38 32
     <Reference Include="System.Drawing" />
39 33
   </ItemGroup>
40 34
   <ItemGroup>
41
-    <Compile Include="Program.cs" />
42 35
     <Compile Include="Properties\AssemblyInfo.cs" />
43 36
     <Compile Include="Sprite.cs" />
44
-    <Compile Include="Utilities.cs" />
45 37
     <Compile Include="SpritePacker.cs" />
38
+    <Compile Include="Utilities.cs" />
46 39
   </ItemGroup>
47 40
   <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
48
-  <ItemGroup>
49
-    <EmbeddedResource Include="latest-commit-hash.txt" />
50
-    <EmbeddedResource Include="Resources\VersionText.txt" />
51
-    <EmbeddedResource Include="Resources\HelpText.txt" />
52
-    <EmbeddedResource Include="Version.txt" />
53
-  </ItemGroup>
54
-  <ItemGroup>
55
-    <Folder Include="Resources\" />
56
-  </ItemGroup>
57
-</Project>
41
+</Project>

Loading…
Cancel
Save