Fri, 22 Sep 2023 21:32:45 +0200
create WinUI wrapper classes for usage in UiObject and widget creation functions
| 173 | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| 3 | <Import Project="..\..\make\vs\packages\Microsoft.WindowsAppSDK.1.3.230331000\build\native\Microsoft.WindowsAppSDK.props" Condition="Exists('..\..\make\vs\packages\Microsoft.WindowsAppSDK.1.3.230331000\build\native\Microsoft.WindowsAppSDK.props')" /> | |
| 4 | <Import Project="..\..\make\vs\packages\Microsoft.Windows.SDK.BuildTools.10.0.22621.1\build\Microsoft.Windows.SDK.BuildTools.props" Condition="Exists('..\..\make\vs\packages\Microsoft.Windows.SDK.BuildTools.10.0.22621.1\build\Microsoft.Windows.SDK.BuildTools.props')" /> | |
| 5 | <Import Project="..\..\make\vs\packages\Microsoft.Windows.CppWinRT.2.0.230225.1\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('..\..\make\vs\packages\Microsoft.Windows.CppWinRT.2.0.230225.1\build\native\Microsoft.Windows.CppWinRT.props')" /> | |
| 6 | <ItemGroup Label="ProjectConfigurations"> | |
| 7 | <ProjectConfiguration Include="Debug|Win32"> | |
| 8 | <Configuration>Debug</Configuration> | |
| 9 | <Platform>Win32</Platform> | |
| 10 | </ProjectConfiguration> | |
| 11 | <ProjectConfiguration Include="Release|Win32"> | |
| 12 | <Configuration>Release</Configuration> | |
| 13 | <Platform>Win32</Platform> | |
| 14 | </ProjectConfiguration> | |
| 15 | <ProjectConfiguration Include="Debug|x64"> | |
| 16 | <Configuration>Debug</Configuration> | |
| 17 | <Platform>x64</Platform> | |
| 18 | </ProjectConfiguration> | |
| 19 | <ProjectConfiguration Include="Release|x64"> | |
| 20 | <Configuration>Release</Configuration> | |
| 21 | <Platform>x64</Platform> | |
| 22 | </ProjectConfiguration> | |
| 23 | </ItemGroup> | |
| 24 | <PropertyGroup Label="Globals"> | |
| 25 | <VCProjectVersion>16.0</VCProjectVersion> | |
| 26 | <Keyword>Win32Proj</Keyword> | |
| 27 | <ProjectGuid>{04d5ee2c-6076-4c7c-8b70-b0f6d602ff55}</ProjectGuid> | |
| 28 | <RootNamespace>winui</RootNamespace> | |
| 29 | <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion> | |
|
177
e79a60b3a7cb
minimal working winui app
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
173
diff
changeset
|
30 | <WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained> |
|
e79a60b3a7cb
minimal working winui app
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
173
diff
changeset
|
31 | <WindowsPackageType>None</WindowsPackageType> |
|
e79a60b3a7cb
minimal working winui app
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
173
diff
changeset
|
32 | <AppxPackage>false</AppxPackage> |
| 173 | 33 | </PropertyGroup> |
| 34 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | |
| 35 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | |
| 36 | <ConfigurationType>Application</ConfigurationType> | |
| 37 | <UseDebugLibraries>true</UseDebugLibraries> | |
| 38 | <PlatformToolset>v143</PlatformToolset> | |
| 39 | <CharacterSet>Unicode</CharacterSet> | |
| 40 | </PropertyGroup> | |
| 41 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | |
| 42 | <ConfigurationType>Application</ConfigurationType> | |
| 43 | <UseDebugLibraries>false</UseDebugLibraries> | |
| 44 | <PlatformToolset>v143</PlatformToolset> | |
| 45 | <WholeProgramOptimization>true</WholeProgramOptimization> | |
| 46 | <CharacterSet>Unicode</CharacterSet> | |
| 47 | </PropertyGroup> | |
| 48 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> | |
| 49 | <ConfigurationType>StaticLibrary</ConfigurationType> | |
| 50 | <UseDebugLibraries>true</UseDebugLibraries> | |
| 51 | <PlatformToolset>v143</PlatformToolset> | |
| 52 | <CharacterSet>Unicode</CharacterSet> | |
| 53 | </PropertyGroup> | |
| 54 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> | |
| 55 | <ConfigurationType>Application</ConfigurationType> | |
| 56 | <UseDebugLibraries>false</UseDebugLibraries> | |
| 57 | <PlatformToolset>v143</PlatformToolset> | |
| 58 | <WholeProgramOptimization>true</WholeProgramOptimization> | |
| 59 | <CharacterSet>Unicode</CharacterSet> | |
| 60 | </PropertyGroup> | |
| 61 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | |
| 62 | <ImportGroup Label="ExtensionSettings"> | |
| 63 | </ImportGroup> | |
| 64 | <ImportGroup Label="Shared"> | |
| 65 | </ImportGroup> | |
| 66 | <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
| 67 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |
| 68 | </ImportGroup> | |
| 69 | <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | |
| 70 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |
| 71 | </ImportGroup> | |
| 72 | <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | |
| 73 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |
| 74 | </ImportGroup> | |
| 75 | <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | |
| 76 | <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |
| 77 | </ImportGroup> | |
| 78 | <PropertyGroup Label="UserMacros" /> | |
| 79 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | |
| 80 | <OutDir>$(SolutionDir)..\..\build\vs\$(Platform)\$(Configuration)\</OutDir> | |
| 81 | <IntDir>..\..\build\vs\winui\$(Platform)\$(Configuration)\</IntDir> | |
| 82 | </PropertyGroup> | |
| 83 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
| 84 | <ClCompile> | |
| 85 | <WarningLevel>Level3</WarningLevel> | |
| 86 | <SDLCheck>true</SDLCheck> | |
| 87 | <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
| 88 | <ConformanceMode>true</ConformanceMode> | |
| 89 | </ClCompile> | |
| 90 | <Link> | |
| 91 | <SubSystem>Console</SubSystem> | |
| 92 | <GenerateDebugInformation>true</GenerateDebugInformation> | |
| 93 | </Link> | |
| 94 | </ItemDefinitionGroup> | |
| 95 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | |
| 96 | <ClCompile> | |
| 97 | <WarningLevel>Level3</WarningLevel> | |
| 98 | <FunctionLevelLinking>true</FunctionLevelLinking> | |
| 99 | <IntrinsicFunctions>true</IntrinsicFunctions> | |
| 100 | <SDLCheck>true</SDLCheck> | |
| 101 | <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
| 102 | <ConformanceMode>true</ConformanceMode> | |
| 103 | </ClCompile> | |
| 104 | <Link> | |
| 105 | <SubSystem>Console</SubSystem> | |
| 106 | <EnableCOMDATFolding>true</EnableCOMDATFolding> | |
| 107 | <OptimizeReferences>true</OptimizeReferences> | |
| 108 | <GenerateDebugInformation>true</GenerateDebugInformation> | |
| 109 | </Link> | |
| 110 | </ItemDefinitionGroup> | |
| 111 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | |
| 112 | <ClCompile> | |
| 113 | <WarningLevel>Level3</WarningLevel> | |
| 114 | <SDLCheck>true</SDLCheck> | |
|
179
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
115 | <PreprocessorDefinitions>_DEBUG;_CONSOLE;UI_WINUI;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 173 | 116 | <ConformanceMode>true</ConformanceMode> |
|
179
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
117 | <LanguageStandard_C>stdc17</LanguageStandard_C> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
118 | <AdditionalIncludeDirectories>$(SolutionDir)..\..\ucx;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
119 | <AdditionalOptions> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
120 | </AdditionalOptions> |
|
182
6cf690e042bd
add window container (WinUI)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
180
diff
changeset
|
121 | <PrecompiledHeader>NotUsing</PrecompiledHeader> |
|
183
3ce2eb11913b
create WinUI wrapper classes for usage in UiObject and widget creation functions
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
182
diff
changeset
|
122 | <PrecompiledHeaderFile>toolkit.h</PrecompiledHeaderFile> |
| 173 | 123 | </ClCompile> |
| 124 | <Link> | |
| 125 | <SubSystem>Console</SubSystem> | |
| 126 | <GenerateDebugInformation>true</GenerateDebugInformation> | |
| 127 | </Link> | |
| 128 | </ItemDefinitionGroup> | |
| 129 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | |
| 130 | <ClCompile> | |
| 131 | <WarningLevel>Level3</WarningLevel> | |
| 132 | <FunctionLevelLinking>true</FunctionLevelLinking> | |
| 133 | <IntrinsicFunctions>true</IntrinsicFunctions> | |
| 134 | <SDLCheck>true</SDLCheck> | |
| 135 | <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
| 136 | <ConformanceMode>true</ConformanceMode> | |
| 137 | </ClCompile> | |
| 138 | <Link> | |
| 139 | <SubSystem>Console</SubSystem> | |
| 140 | <EnableCOMDATFolding>true</EnableCOMDATFolding> | |
| 141 | <OptimizeReferences>true</OptimizeReferences> | |
| 142 | <GenerateDebugInformation>true</GenerateDebugInformation> | |
| 143 | </Link> | |
| 144 | </ItemDefinitionGroup> | |
| 145 | <ItemGroup> | |
|
179
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
146 | <ClCompile Include="..\common\context.c" /> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
147 | <ClCompile Include="..\common\document.c" /> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
148 | <ClCompile Include="..\common\menu.c" /> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
149 | <ClCompile Include="..\common\object.c" /> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
150 | <ClCompile Include="..\common\properties.c" /> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
151 | <ClCompile Include="..\common\types.c" /> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
152 | <ClCompile Include="..\common\ucx_properties.c" /> |
|
180
f34953bf4ac7
add basic winui menu implementation
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
179
diff
changeset
|
153 | <ClCompile Include="appmenu.cpp" /> |
|
182
6cf690e042bd
add window container (WinUI)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
180
diff
changeset
|
154 | <ClCompile Include="container.cpp" /> |
| 173 | 155 | <ClCompile Include="toolkit.cpp" /> |
|
180
f34953bf4ac7
add basic winui menu implementation
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
179
diff
changeset
|
156 | <ClCompile Include="util.cpp" /> |
|
177
e79a60b3a7cb
minimal working winui app
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
173
diff
changeset
|
157 | <ClCompile Include="window.cpp" /> |
| 173 | 158 | </ItemGroup> |
| 159 | <ItemGroup> | |
| 160 | <None Include="packages.config" /> | |
| 161 | </ItemGroup> | |
|
177
e79a60b3a7cb
minimal working winui app
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
173
diff
changeset
|
162 | <ItemGroup> |
|
179
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
163 | <ClInclude Include="..\common\context.h" /> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
164 | <ClInclude Include="..\common\document.h" /> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
165 | <ClInclude Include="..\common\menu.h" /> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
166 | <ClInclude Include="..\common\object.h" /> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
167 | <ClInclude Include="..\common\properties.h" /> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
168 | <ClInclude Include="..\common\types.h" /> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
169 | <ClInclude Include="..\common\ucx_properties.h" /> |
|
180
f34953bf4ac7
add basic winui menu implementation
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
179
diff
changeset
|
170 | <ClInclude Include="appmenu.h" /> |
|
182
6cf690e042bd
add window container (WinUI)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
180
diff
changeset
|
171 | <ClInclude Include="container.h" /> |
|
177
e79a60b3a7cb
minimal working winui app
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
173
diff
changeset
|
172 | <ClInclude Include="toolkit.h" /> |
|
180
f34953bf4ac7
add basic winui menu implementation
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
179
diff
changeset
|
173 | <ClInclude Include="util.h" /> |
|
177
e79a60b3a7cb
minimal working winui app
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
173
diff
changeset
|
174 | <ClInclude Include="window.h" /> |
|
e79a60b3a7cb
minimal working winui app
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
173
diff
changeset
|
175 | </ItemGroup> |
|
179
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
176 | <ItemGroup> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
177 | <ProjectReference Include="..\..\make\vs\ucx\ucx.vcxproj"> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
178 | <Project>{27da0164-3475-43e2-a1a4-a5d07d305749}</Project> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
179 | </ProjectReference> |
|
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
180 | </ItemGroup> |
| 173 | 181 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 182 | <ImportGroup Label="ExtensionTargets"> | |
| 183 | <Import Project="..\..\make\vs\packages\Microsoft.Windows.CppWinRT.2.0.230225.1\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('..\..\make\vs\packages\Microsoft.Windows.CppWinRT.2.0.230225.1\build\native\Microsoft.Windows.CppWinRT.targets')" /> | |
| 184 | <Import Project="..\..\make\vs\packages\Microsoft.Windows.SDK.BuildTools.10.0.22621.1\build\Microsoft.Windows.SDK.BuildTools.targets" Condition="Exists('..\..\make\vs\packages\Microsoft.Windows.SDK.BuildTools.10.0.22621.1\build\Microsoft.Windows.SDK.BuildTools.targets')" /> | |
| 185 | <Import Project="..\..\make\vs\packages\Microsoft.WindowsAppSDK.1.3.230331000\build\native\Microsoft.WindowsAppSDK.targets" Condition="Exists('..\..\make\vs\packages\Microsoft.WindowsAppSDK.1.3.230331000\build\native\Microsoft.WindowsAppSDK.targets')" /> | |
| 186 | </ImportGroup> | |
| 187 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | |
| 188 | <PropertyGroup> | |
| 189 | <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> | |
| 190 | </PropertyGroup> | |
| 191 | <Error Condition="!Exists('..\..\make\vs\packages\Microsoft.Windows.CppWinRT.2.0.230225.1\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\make\vs\packages\Microsoft.Windows.CppWinRT.2.0.230225.1\build\native\Microsoft.Windows.CppWinRT.props'))" /> | |
| 192 | <Error Condition="!Exists('..\..\make\vs\packages\Microsoft.Windows.CppWinRT.2.0.230225.1\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\make\vs\packages\Microsoft.Windows.CppWinRT.2.0.230225.1\build\native\Microsoft.Windows.CppWinRT.targets'))" /> | |
| 193 | <Error Condition="!Exists('..\..\make\vs\packages\Microsoft.Windows.SDK.BuildTools.10.0.22621.1\build\Microsoft.Windows.SDK.BuildTools.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\make\vs\packages\Microsoft.Windows.SDK.BuildTools.10.0.22621.1\build\Microsoft.Windows.SDK.BuildTools.props'))" /> | |
| 194 | <Error Condition="!Exists('..\..\make\vs\packages\Microsoft.Windows.SDK.BuildTools.10.0.22621.1\build\Microsoft.Windows.SDK.BuildTools.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\make\vs\packages\Microsoft.Windows.SDK.BuildTools.10.0.22621.1\build\Microsoft.Windows.SDK.BuildTools.targets'))" /> | |
| 195 | <Error Condition="!Exists('..\..\make\vs\packages\Microsoft.WindowsAppSDK.1.3.230331000\build\native\Microsoft.WindowsAppSDK.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\make\vs\packages\Microsoft.WindowsAppSDK.1.3.230331000\build\native\Microsoft.WindowsAppSDK.props'))" /> | |
| 196 | <Error Condition="!Exists('..\..\make\vs\packages\Microsoft.WindowsAppSDK.1.3.230331000\build\native\Microsoft.WindowsAppSDK.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\make\vs\packages\Microsoft.WindowsAppSDK.1.3.230331000\build\native\Microsoft.WindowsAppSDK.targets'))" /> | |
| 197 | </Target> | |
| 198 | </Project> |