Skip to content

Commit

Permalink
Add Mile.Cirno project.
Browse files Browse the repository at this point in the history
  • Loading branch information
MouriNaruto committed Jul 1, 2024
1 parent 6a28fb5 commit 3231f36
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Mile.Cirno.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,31 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.10.35013.160
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Mile.Cirno", "Mile.Cirno\Mile.Cirno.vcxproj", "{CAB475B1-F268-453F-A181-C6FD8AC9CA35}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM64 = Debug|ARM64
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|ARM64 = Release|ARM64
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CAB475B1-F268-453F-A181-C6FD8AC9CA35}.Debug|ARM64.ActiveCfg = Debug|ARM64
{CAB475B1-F268-453F-A181-C6FD8AC9CA35}.Debug|ARM64.Build.0 = Debug|ARM64
{CAB475B1-F268-453F-A181-C6FD8AC9CA35}.Debug|x64.ActiveCfg = Debug|x64
{CAB475B1-F268-453F-A181-C6FD8AC9CA35}.Debug|x64.Build.0 = Debug|x64
{CAB475B1-F268-453F-A181-C6FD8AC9CA35}.Debug|x86.ActiveCfg = Debug|Win32
{CAB475B1-F268-453F-A181-C6FD8AC9CA35}.Debug|x86.Build.0 = Debug|Win32
{CAB475B1-F268-453F-A181-C6FD8AC9CA35}.Release|ARM64.ActiveCfg = Release|ARM64
{CAB475B1-F268-453F-A181-C6FD8AC9CA35}.Release|ARM64.Build.0 = Release|ARM64
{CAB475B1-F268-453F-A181-C6FD8AC9CA35}.Release|x64.ActiveCfg = Release|x64
{CAB475B1-F268-453F-A181-C6FD8AC9CA35}.Release|x64.Build.0 = Release|x64
{CAB475B1-F268-453F-A181-C6FD8AC9CA35}.Release|x86.ActiveCfg = Release|Win32
{CAB475B1-F268-453F-A181-C6FD8AC9CA35}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
Expand Down
30 changes: 30 additions & 0 deletions Mile.Cirno/Mile.Cirno.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* PROJECT: Mile.Cirno
* FILE: Mile.Cirno.cpp
* PURPOSE: Implementation for Mile.Cirno
*
* LICENSE: The MIT License
*
* MAINTAINER: MouriNaruto (Kenji.Mouri@outlook.com)
*/

#include <cstdint>

#include <clocale>
#include <cstdio>
#include <cwchar>

int main()
{
// I can't use that because of the limitation in VC-LTL.
// std::setlocale(LC_ALL, "zh_CN.UTF-8");

std::setlocale(LC_ALL, "chs");

std::wprintf(
L"Mile.Cirno\n"
L"================================================================\n"
L"Hello World!\n");

return 0;
}
12 changes: 12 additions & 0 deletions Mile.Cirno/Mile.Cirno.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
</application>
</compatibility>
</assembly>
36 changes: 36 additions & 0 deletions Mile.Cirno/Mile.Cirno.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<ProjectGuid>{CAB475B1-F268-453F-A181-C6FD8AC9CA35}</ProjectGuid>
<RootNamespace>Mile.Cirno</RootNamespace>
<MileProjectType>ConsoleApplication</MileProjectType>
<MileProjectManifestFile>Mile.Cirno.manifest</MileProjectManifestFile>
<MileProjectEnableVCLTLSupport>true</MileProjectEnableVCLTLSupport>
<MileProjectUseProjectProperties>true</MileProjectUseProjectProperties>
<MileProjectCompanyName>Project Mile</MileProjectCompanyName>
<MileProjectFileDescription>Mile.Cirno</MileProjectFileDescription>
<MileProjectInternalName>Mile.Cirno</MileProjectInternalName>
<MileProjectLegalCopyright>© Project Mile. All rights reserved.</MileProjectLegalCopyright>
<MileProjectOriginalFilename>Mile.Cirno.exe</MileProjectOriginalFilename>
<MileProjectProductName>Mile.Cirno</MileProjectProductName>
<MileProjectVersion>1.0.$([System.DateTime]::Today.Subtract($([System.DateTime]::Parse('2023-08-03'))).TotalDays).0</MileProjectVersion>
<MileProjectVersionTag>Preview</MileProjectVersionTag>
</PropertyGroup>
<Import Project="..\Mile.Project.Windows\Mile.Project.Platform.x86.props" />
<Import Project="..\Mile.Project.Windows\Mile.Project.Platform.x64.props" />
<Import Project="..\Mile.Project.Windows\Mile.Project.Platform.ARM64.props" />
<Import Project="..\Mile.Project.Windows\Mile.Project.Cpp.Default.props" />
<Import Project="..\Mile.Project.Windows\Mile.Project.Cpp.props" />
<ItemGroup>
<ClCompile Include="Mile.Cirno.cpp" />
</ItemGroup>
<ItemGroup>
<Manifest Include="Mile.Cirno.manifest" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Mile.Windows.Helpers">
<Version>1.0.593</Version>
</PackageReference>
</ItemGroup>
<Import Project="..\Mile.Project.Windows\Mile.Project.Cpp.targets" />
</Project>

0 comments on commit 3231f36

Please sign in to comment.