Tue, 29 Oct 2024 10:28:52 +0100
implement menu item groups
173 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
3 | <Import Project="..\packages\Microsoft.WindowsAppSDK.1.3.230331000\build\native\Microsoft.WindowsAppSDK.props" Condition="Exists('..\packages\Microsoft.WindowsAppSDK.1.3.230331000\build\native\Microsoft.WindowsAppSDK.props')" /> | |
4 | <Import Project="..\packages\Microsoft.Windows.SDK.BuildTools.10.0.22621.1\build\Microsoft.Windows.SDK.BuildTools.props" Condition="Exists('..\packages\Microsoft.Windows.SDK.BuildTools.10.0.22621.1\build\Microsoft.Windows.SDK.BuildTools.props')" /> | |
5 | <Import Project="..\packages\Microsoft.Windows.CppWinRT.2.0.230225.1\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('..\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>{3541f08b-e6cc-4c23-a0d3-51983aab33c6}</ProjectGuid> | |
28 | <RootNamespace>testapp</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>Application</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\testapp\$(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> | |
115 | <PreprocessorDefinitions>_DEBUG;_CONSOLE;UI_WINUI;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
116 | <ConformanceMode>true</ConformanceMode> | |
177
e79a60b3a7cb
minimal working winui app
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
173
diff
changeset
|
117 | <AdditionalIncludeDirectories>C:\Users\Olaf\Projekte\toolkit\ui;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
231
e160bb392148
add getter/setter for ui number/string types
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
211
diff
changeset
|
118 | <LanguageStandard_C>stdc17</LanguageStandard_C> |
173 | 119 | </ClCompile> |
120 | <Link> | |
177
e79a60b3a7cb
minimal working winui app
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
173
diff
changeset
|
121 | <SubSystem>Windows</SubSystem> |
173 | 122 | <GenerateDebugInformation>true</GenerateDebugInformation> |
123 | </Link> | |
124 | </ItemDefinitionGroup> | |
125 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | |
126 | <ClCompile> | |
127 | <WarningLevel>Level3</WarningLevel> | |
128 | <FunctionLevelLinking>true</FunctionLevelLinking> | |
129 | <IntrinsicFunctions>true</IntrinsicFunctions> | |
130 | <SDLCheck>true</SDLCheck> | |
131 | <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
132 | <ConformanceMode>true</ConformanceMode> | |
133 | </ClCompile> | |
134 | <Link> | |
135 | <SubSystem>Console</SubSystem> | |
136 | <EnableCOMDATFolding>true</EnableCOMDATFolding> | |
137 | <OptimizeReferences>true</OptimizeReferences> | |
138 | <GenerateDebugInformation>true</GenerateDebugInformation> | |
139 | </Link> | |
140 | </ItemDefinitionGroup> | |
141 | <ItemGroup> | |
142 | <ClCompile Include="main.c" /> | |
143 | </ItemGroup> | |
144 | <ItemGroup> | |
145 | <None Include="packages.config" /> | |
146 | </ItemGroup> | |
177
e79a60b3a7cb
minimal working winui app
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
173
diff
changeset
|
147 | <ItemGroup> |
e79a60b3a7cb
minimal working winui app
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
173
diff
changeset
|
148 | <ProjectReference Include="..\..\..\ui\winui\winui.vcxproj"> |
205
b1ac0dd1d38b
new winui vs project, add toolbar
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
193
diff
changeset
|
149 | <Project>{59f97886-bf49-4b3f-9ef6-fa7a84f3ab56}</Project> |
177
e79a60b3a7cb
minimal working winui app
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
173
diff
changeset
|
150 | </ProjectReference> |
179
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
151 | <ProjectReference Include="..\ucx\ucx.vcxproj"> |
34f4d78647be
add ui common to vs build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
177
diff
changeset
|
152 | <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
|
153 | </ProjectReference> |
177
e79a60b3a7cb
minimal working winui app
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
173
diff
changeset
|
154 | </ItemGroup> |
211
5d71a36b833b
add custom titlebar (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
205
diff
changeset
|
155 | <ItemGroup> |
5d71a36b833b
add custom titlebar (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
205
diff
changeset
|
156 | <Manifest Include="app.manifest" /> |
5d71a36b833b
add custom titlebar (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
205
diff
changeset
|
157 | </ItemGroup> |
173 | 158 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
159 | <ImportGroup Label="ExtensionTargets"> | |
160 | <Import Project="..\packages\Microsoft.Windows.CppWinRT.2.0.230225.1\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.230225.1\build\native\Microsoft.Windows.CppWinRT.targets')" /> | |
161 | <Import Project="..\packages\Microsoft.Windows.SDK.BuildTools.10.0.22621.1\build\Microsoft.Windows.SDK.BuildTools.targets" Condition="Exists('..\packages\Microsoft.Windows.SDK.BuildTools.10.0.22621.1\build\Microsoft.Windows.SDK.BuildTools.targets')" /> | |
162 | <Import Project="..\packages\Microsoft.WindowsAppSDK.1.3.230331000\build\native\Microsoft.WindowsAppSDK.targets" Condition="Exists('..\packages\Microsoft.WindowsAppSDK.1.3.230331000\build\native\Microsoft.WindowsAppSDK.targets')" /> | |
193
74c688cc1839
add frame container (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
179
diff
changeset
|
163 | <Import Project="..\packages\Microsoft.Windows.ImplementationLibrary.1.0.230824.2\build\native\Microsoft.Windows.ImplementationLibrary.targets" Condition="Exists('..\packages\Microsoft.Windows.ImplementationLibrary.1.0.230824.2\build\native\Microsoft.Windows.ImplementationLibrary.targets')" /> |
173 | 164 | </ImportGroup> |
165 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | |
166 | <PropertyGroup> | |
167 | <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> | |
168 | </PropertyGroup> | |
169 | <Error Condition="!Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.230225.1\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.CppWinRT.2.0.230225.1\build\native\Microsoft.Windows.CppWinRT.props'))" /> | |
170 | <Error Condition="!Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.230225.1\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.CppWinRT.2.0.230225.1\build\native\Microsoft.Windows.CppWinRT.targets'))" /> | |
171 | <Error Condition="!Exists('..\packages\Microsoft.Windows.SDK.BuildTools.10.0.22621.1\build\Microsoft.Windows.SDK.BuildTools.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.SDK.BuildTools.10.0.22621.1\build\Microsoft.Windows.SDK.BuildTools.props'))" /> | |
172 | <Error Condition="!Exists('..\packages\Microsoft.Windows.SDK.BuildTools.10.0.22621.1\build\Microsoft.Windows.SDK.BuildTools.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.SDK.BuildTools.10.0.22621.1\build\Microsoft.Windows.SDK.BuildTools.targets'))" /> | |
173 | <Error Condition="!Exists('..\packages\Microsoft.WindowsAppSDK.1.3.230331000\build\native\Microsoft.WindowsAppSDK.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.WindowsAppSDK.1.3.230331000\build\native\Microsoft.WindowsAppSDK.props'))" /> | |
174 | <Error Condition="!Exists('..\packages\Microsoft.WindowsAppSDK.1.3.230331000\build\native\Microsoft.WindowsAppSDK.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.WindowsAppSDK.1.3.230331000\build\native\Microsoft.WindowsAppSDK.targets'))" /> | |
193
74c688cc1839
add frame container (WinUI3)
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
179
diff
changeset
|
175 | <Error Condition="!Exists('..\packages\Microsoft.Windows.ImplementationLibrary.1.0.230824.2\build\native\Microsoft.Windows.ImplementationLibrary.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.ImplementationLibrary.1.0.230824.2\build\native\Microsoft.Windows.ImplementationLibrary.targets'))" /> |
173 | 176 | </Target> |
177 | </Project> |