init lvgl code
This commit is contained in:
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
PROJECT: Mouri Internal Library Essentials
|
||||
FILE: Mile.Project.Cpp.props
|
||||
PURPOSE: Definition for Visual Studio C++ Project
|
||||
|
||||
LICENSE: The MIT License
|
||||
|
||||
DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com)
|
||||
-->
|
||||
<!--
|
||||
The documents of specific options in Mile.Project.
|
||||
|
||||
How to define the project type in the "Globals" label property group.
|
||||
If the project is a console application project.
|
||||
<MileProjectType>ConsoleApplication</MileProjectType>
|
||||
If the project is a windows application project.
|
||||
<MileProjectType>WindowsApplication</MileProjectType>
|
||||
If the project is a dynamic library project.
|
||||
<MileProjectType>DynamicLibrary</MileProjectType>
|
||||
If the project is a static library project.
|
||||
<MileProjectType>StaticLibrary</MileProjectType>
|
||||
|
||||
How to define the manifest file in the "Globals" label property group.
|
||||
<MileProjectManifestFile>C:\Folder\Manifest.manifest</MileProjectManifestFile>
|
||||
|
||||
How to enable the version information support.
|
||||
Copy Mile.Project.Properties.Template.h to the project folder and rename it
|
||||
to Mile.Project.Properties.h.
|
||||
|
||||
How to enable VC-LTL support.
|
||||
<MileProjectEnableVCLTLSupport>true</MileProjectEnableVCLTLSupport>
|
||||
-->
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<!--
|
||||
Only do this for MSBuild versions below 16.0 as it is since done
|
||||
automatically, see https://github.com/microsoft/msbuild/pull/3605.
|
||||
-->
|
||||
<MSBuildAllProjects Condition="'$(MSBuildToolsVersion)' <= '15'">$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
<CleanImport>true</CleanImport>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<ConfigurationType Condition="'$(MileProjectType)'=='DynamicLibrary'">DynamicLibrary</ConfigurationType>
|
||||
<ConfigurationType Condition="'$(MileProjectType)'=='StaticLibrary'">StaticLibrary</ConfigurationType>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '16.0'">v142</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '15.0'">v141</PlatformToolset>
|
||||
<PlatformToolset Condition="'$(VisualStudioVersion)' == '14.0'">v140</PlatformToolset>
|
||||
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<UseDebugLibraries Condition="'$(Configuration)'=='Debug'">true</UseDebugLibraries>
|
||||
<UseDebugLibraries Condition="'$(Configuration)'=='Release'">false</UseDebugLibraries>
|
||||
<WholeProgramOptimization Condition="'$(Configuration)'=='Release'">true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<PropertyGroup>
|
||||
<LinkIncremental Condition="'$(Configuration)'=='Debug'">true</LinkIncremental>
|
||||
<LinkIncremental Condition="'$(Configuration)'=='Release'">false</LinkIncremental>
|
||||
<GenerateManifest>false</GenerateManifest>
|
||||
<IncludePath>$(MSBuildThisFileDirectory);$(IncludePath)</IncludePath>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup>
|
||||
<ClCompile>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<EnableEnhancedInstructionSet Condition="'$(Platform)'=='Win32'">NoExtensions</EnableEnhancedInstructionSet>
|
||||
<PreprocessorDefinitions Condition="'$(Platform)'=='Win32'">WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions Condition="'$(MileProjectType)'=='ConsoleApplication'">_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions Condition="'$(MileProjectType)'=='WindowsApplication'">_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions Condition="'$(MileProjectType)'=='DynamicLibrary'">_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions Condition="'$(MileProjectType)'=='StaticLibrary'">_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem Condition="'$(MileProjectType)'=='ConsoleApplication'">Console</SubSystem>
|
||||
<SubSystem Condition="'$(MileProjectType)'=='WindowsApplication'">Windows</SubSystem>
|
||||
<SubSystem Condition="'$(MileProjectType)'=='DynamicLibrary'">Windows</SubSystem>
|
||||
<SubSystem Condition="'$(MileProjectType)'=='StaticLibrary'"></SubSystem>
|
||||
</Link>
|
||||
<ResourceCompile Condition="'$(MileProjectType)'!='StaticLibrary'">
|
||||
<PreprocessorDefinitions Condition="'$(MileProjectType)'!='DynamicLibrary'">_MILE_PROJECT_MANIFEST_ID=1;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions Condition="'$(MileProjectType)'=='DynamicLibrary'">_MILE_PROJECT_MANIFEST_ID=2;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PreprocessorDefinitions Condition="'$(MileProjectManifestFile)'!=''">_MILE_PROJECT_MANIFEST_FILE=$([System.String]::Copy('$(MileProjectManifestFile)').Replace('\','\\'));%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(ProjectDir);$(MSBuildThisFileDirectory);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ResourceCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<RuntimeLibrary Condition="'$(MileProjectEnableVCLTLSupport)' == 'true'">MultiThreadedDebug</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<RuntimeLibrary Condition="'$(MileProjectEnableVCLTLSupport)' == 'true'">MultiThreaded</RuntimeLibrary>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="VC-LTL" Condition="'$(MileProjectEnableVCLTLSupport)' == 'true'">
|
||||
<Version>5.0.5</Version>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
PROJECT: Mouri Internal Library Essentials
|
||||
FILE: Mile.Project.Cpp.targets
|
||||
PURPOSE: Definition for Visual Studio C++ Project
|
||||
|
||||
LICENSE: The MIT License
|
||||
|
||||
DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com)
|
||||
-->
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<!--
|
||||
Only do this for MSBuild versions below 16.0 as it is since done
|
||||
automatically, see https://github.com/microsoft/msbuild/pull/3605.
|
||||
-->
|
||||
<MSBuildAllProjects Condition="'$(MSBuildToolsVersion)' <= '15'">$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||
</PropertyGroup>
|
||||
<Target Name="MileProjectBuildManifestResources" BeforeTargets="BeforeResourceCompile">
|
||||
<ItemGroup Condition="'$(MileProjectType)'!='StaticLibrary'">
|
||||
<ResourceCompile Condition="'$(MileProjectManifestFile)'!=''" Include="$(MSBuildThisFileDirectory)Mile.Project.Manifest.rc" />
|
||||
<ResourceCompile Condition="Exists('$(ProjectDir)Mile.Project.Properties.h')" Include="$(MSBuildThisFileDirectory)Mile.Project.Version.rc" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
</Project>
|
||||
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
PROJECT: Mouri Internal Library Essentials
|
||||
FILE: Mile.Project.Platform.ARM.props
|
||||
PURPOSE: Definition for Visual Studio C++ Project
|
||||
|
||||
LICENSE: The MIT License
|
||||
|
||||
DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com)
|
||||
-->
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|ARM">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>ARM</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|ARM">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>ARM</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
PROJECT: Mouri Internal Library Essentials
|
||||
FILE: Mile.Project.Platform.ARM64.props
|
||||
PURPOSE: Definition for Visual Studio C++ Project
|
||||
|
||||
LICENSE: The MIT License
|
||||
|
||||
DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com)
|
||||
-->
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|ARM64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>ARM64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|ARM64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>ARM64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
PROJECT: Mouri Internal Library Essentials
|
||||
FILE: Mile.Project.Platform.Win32.props
|
||||
PURPOSE: Definition for Visual Studio C++ Project
|
||||
|
||||
LICENSE: The MIT License
|
||||
|
||||
DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com)
|
||||
-->
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
PROJECT: Mouri Internal Library Essentials
|
||||
FILE: Mile.Project.Platform.x64.props
|
||||
PURPOSE: Definition for Visual Studio C++ Project
|
||||
|
||||
LICENSE: The MIT License
|
||||
|
||||
DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com)
|
||||
-->
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* PROJECT: Mouri Internal Library Essentials
|
||||
* FILE: Mile.Project.Version.h
|
||||
* PURPOSE: Version Definition for Mile.Project
|
||||
*
|
||||
* LICENSE: The MIT License
|
||||
*
|
||||
* DEVELOPER: Mouri_Naruto (Mouri_Naruto AT Outlook.com)
|
||||
*/
|
||||
|
||||
#ifndef MILE_PROJECT_VERSION
|
||||
#define MILE_PROJECT_VERSION
|
||||
|
||||
#ifndef MILE_PROJECT_MACRO_TO_STRING
|
||||
#define _MILE_PROJECT_MACRO_TO_STRING(arg) L#arg
|
||||
#define MILE_PROJECT_MACRO_TO_STRING(arg) _MILE_PROJECT_MACRO_TO_STRING(arg)
|
||||
#endif
|
||||
|
||||
#ifndef MILE_PROJECT_MACRO_TO_UTF8_STRING
|
||||
#define _MILE_PROJECT_MACRO_TO_UTF8_STRING(arg) #arg
|
||||
#define MILE_PROJECT_MACRO_TO_UTF8_STRING(arg) \
|
||||
_MILE_PROJECT_MACRO_TO_UTF8_STRING(arg)
|
||||
#endif
|
||||
|
||||
#ifndef MILE_PROJECT_DEFINE_COMMA_VERSION
|
||||
#define MILE_PROJECT_DEFINE_COMMA_VERSION(MAJOR,MINOR,BUILD,REVISION) \
|
||||
MAJOR,MINOR,BUILD,REVISION
|
||||
#endif
|
||||
|
||||
#ifndef MILE_PROJECT_DEFINE_DOT_VERSION
|
||||
#define MILE_PROJECT_DEFINE_DOT_VERSION(MAJOR,MINOR,BUILD,REVISION) \
|
||||
MAJOR.MINOR.BUILD.REVISION
|
||||
#endif
|
||||
|
||||
#ifndef MILE_PROJECT_COMMA_VERSION
|
||||
#define MILE_PROJECT_COMMA_VERSION \
|
||||
MILE_PROJECT_DEFINE_COMMA_VERSION( \
|
||||
MILE_PROJECT_VERSION_MAJOR, \
|
||||
MILE_PROJECT_VERSION_MINOR, \
|
||||
MILE_PROJECT_VERSION_BUILD, \
|
||||
MILE_PROJECT_VERSION_REVISION)
|
||||
#endif
|
||||
|
||||
#ifndef MILE_PROJECT_DOT_VERSION
|
||||
#define MILE_PROJECT_DOT_VERSION \
|
||||
MILE_PROJECT_DEFINE_DOT_VERSION( \
|
||||
MILE_PROJECT_VERSION_MAJOR, \
|
||||
MILE_PROJECT_VERSION_MINOR, \
|
||||
MILE_PROJECT_VERSION_BUILD, \
|
||||
MILE_PROJECT_VERSION_REVISION)
|
||||
#endif
|
||||
|
||||
#ifndef MILE_PROJECT_COMMA_VERSION_STRING
|
||||
#define MILE_PROJECT_COMMA_VERSION_STRING \
|
||||
MILE_PROJECT_MACRO_TO_STRING(MILE_PROJECT_COMMA_VERSION)
|
||||
#endif
|
||||
|
||||
#ifndef MILE_PROJECT_DOT_VERSION_STRING
|
||||
#define MILE_PROJECT_DOT_VERSION_STRING \
|
||||
MILE_PROJECT_MACRO_TO_STRING(MILE_PROJECT_DOT_VERSION)
|
||||
#endif
|
||||
|
||||
#ifndef MILE_PROJECT_COMMA_VERSION_UTF8_STRING
|
||||
#define MILE_PROJECT_COMMA_VERSION_UTF8_STRING \
|
||||
MILE_PROJECT_MACRO_TO_UTF8_STRING(MILE_PROJECT_COMMA_VERSION)
|
||||
#endif
|
||||
|
||||
#ifndef MILE_PROJECT_DOT_VERSION_UTF8_STRING
|
||||
#define MILE_PROJECT_DOT_VERSION_UTF8_STRING \
|
||||
MILE_PROJECT_MACRO_TO_UTF8_STRING(MILE_PROJECT_DOT_VERSION)
|
||||
#endif
|
||||
|
||||
#ifndef MILE_PROJECT_DEFINE_SIMPLE_VERSION
|
||||
#define MILE_PROJECT_DEFINE_SIMPLE_VERSION(MAJOR,MINOR) \
|
||||
MAJOR.MINOR
|
||||
#endif
|
||||
|
||||
#ifndef MILE_PROJECT_SIMPLE_VERSION
|
||||
#define MILE_PROJECT_SIMPLE_VERSION \
|
||||
MILE_PROJECT_DEFINE_SIMPLE_VERSION( \
|
||||
MILE_PROJECT_VERSION_MAJOR, \
|
||||
MILE_PROJECT_VERSION_MINOR)
|
||||
#endif
|
||||
|
||||
#ifndef MILE_PROJECT_SIMPLE_VERSION_STRING
|
||||
#define MILE_PROJECT_SIMPLE_VERSION_STRING \
|
||||
MILE_PROJECT_MACRO_TO_STRING(MILE_PROJECT_SIMPLE_VERSION)
|
||||
#endif
|
||||
|
||||
#ifdef MILE_PROJECT_VERSION_TAG
|
||||
#define MILE_PROJECT_VERSION_TAG_STRING L" " MILE_PROJECT_VERSION_TAG
|
||||
#else
|
||||
#define MILE_PROJECT_VERSION_TAG_STRING
|
||||
#endif
|
||||
|
||||
#ifndef MILE_PROJECT_VERSION_STRING
|
||||
#define MILE_PROJECT_VERSION_STRING \
|
||||
MILE_PROJECT_SIMPLE_VERSION_STRING \
|
||||
MILE_PROJECT_VERSION_TAG_STRING
|
||||
#endif
|
||||
|
||||
#ifndef MILE_PROJECT_SIMPLE_VERSION_UTF8_STRING
|
||||
#define MILE_PROJECT_SIMPLE_VERSION_UTF8_STRING \
|
||||
MILE_PROJECT_MACRO_TO_UTF8_STRING(MILE_PROJECT_SIMPLE_VERSION)
|
||||
#endif
|
||||
|
||||
#ifdef MILE_PROJECT_VERSION_TAG
|
||||
#define MILE_PROJECT_VERSION_TAG_UTF8_STRING " " MILE_PROJECT_VERSION_TAG
|
||||
#else
|
||||
#define MILE_PROJECT_VERSION_TAG_UTF8_STRING
|
||||
#endif
|
||||
|
||||
#ifndef MILE_PROJECT_VERSION_UTF8_STRING
|
||||
#define MILE_PROJECT_VERSION_UTF8_STRING \
|
||||
MILE_PROJECT_SIMPLE_VERSION_UTF8_STRING \
|
||||
MILE_PROJECT_VERSION_TAG_UTF8_STRING
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Binary file not shown.
Reference in New Issue
Block a user