2023-03-31 18:23:57 +08:00
<?xml version="1.0" encoding="utf-8"?>
2022-05-30 17:38:36 +08:00
<Project ToolsVersion= "15.0" DefaultTargets= "Build" xmlns= "http://schemas.microsoft.com/developer/msbuild/2003" >
2022-10-12 16:19:01 +08:00
<Import Project= "..\packages\Microsoft.Windows.CppWinRT.2.0.220929.3\build\native\Microsoft.Windows.CppWinRT.props" Condition= "Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.220929.3\build\native\Microsoft.Windows.CppWinRT.props')" />
2022-07-01 04:10:14 +08:00
<Import Project= "..\wix.props" Condition= "Exists('..\wix.props')" />
2019-09-05 00:26:26 +08:00
<PropertyGroup Label= "Globals" >
<ProjectGuid > {32f3882b-f2d6-4586-b5ed-11e39e522bd3}</ProjectGuid>
<Keyword > Win32Proj</Keyword>
<RootNamespace > PowerToysSetupCustomActions</RootNamespace>
2022-07-01 04:10:14 +08:00
<WindowsTargetPlatformVersion > 10.0.19041.0</WindowsTargetPlatformVersion>
2022-01-06 02:28:09 +08:00
<ProjectName > PowerToysSetupCustomActions</ProjectName>
2019-09-05 00:26:26 +08:00
</PropertyGroup>
<Import Project= "$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
2022-04-21 22:55:02 +08:00
<PropertyGroup Condition= "'$(Configuration)'=='Debug'" Label= "Configuration" >
2019-09-05 00:26:26 +08:00
<ConfigurationType > DynamicLibrary</ConfigurationType>
<CharacterSet > Unicode</CharacterSet>
2022-02-07 22:08:30 +08:00
<PlatformToolset > v143</PlatformToolset>
2019-09-05 00:26:26 +08:00
</PropertyGroup>
2022-04-21 22:55:02 +08:00
<PropertyGroup Condition= "'$(Configuration)'=='Release'" Label= "Configuration" >
2019-09-05 00:26:26 +08:00
<ConfigurationType > DynamicLibrary</ConfigurationType>
<CharacterSet > Unicode</CharacterSet>
<WholeProgramOptimization > true</WholeProgramOptimization>
2022-02-07 22:08:30 +08:00
<PlatformToolset > v143</PlatformToolset>
2019-09-05 00:26:26 +08:00
</PropertyGroup>
<Import Project= "$(VCTargetsPath)\Microsoft.Cpp.props" />
2021-11-10 03:48:07 +08:00
<Import Project= "..\..\deps\spdlog.props" />
2019-09-05 00:26:26 +08:00
<ImportGroup Label= "ExtensionSettings" >
</ImportGroup>
2022-04-21 22:55:02 +08:00
<ImportGroup Condition= "'$(Configuration)'=='Debug'" Label= "PropertySheets" >
2019-09-05 00:26:26 +08:00
<Import Project= "$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition= "exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label= "LocalAppDataPlatform" />
</ImportGroup>
2022-04-21 22:55:02 +08:00
<ImportGroup Condition= "'$(Configuration)'=='Release'" Label= "PropertySheets" >
2019-09-05 00:26:26 +08:00
<Import Project= "$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition= "exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label= "LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label= "UserMacros" />
2022-04-21 22:55:02 +08:00
<PropertyGroup >
2023-03-31 18:23:57 +08:00
<OutDir Condition= " '$(PerUser)' != 'true' " > $(Platform)\$(Configuration)\MachineSetup</OutDir>
<OutDir Condition= " '$(PerUser)' == 'true' " > $(Platform)\$(Configuration)\UserSetup</OutDir>
<IntDir Condition= " '$(PerUser)' != 'true' " > $(SolutionDir)$(ProjectName)\$(Platform)\$(Configuration)\MachineSetup\obj\</IntDir>
<IntDir Condition= " '$(PerUser)' == 'true' " > $(SolutionDir)$(ProjectName)\$(Platform)\$(Configuration)\UserSetup\obj\</IntDir>
2019-09-05 00:26:26 +08:00
</PropertyGroup>
2022-04-21 22:55:02 +08:00
<PropertyGroup Condition= "'$(Configuration)'=='Debug'" >
<LinkIncremental > true</LinkIncremental>
</PropertyGroup>
<PropertyGroup Condition= "'$(Configuration)'=='Release'" >
2019-09-05 00:26:26 +08:00
<LinkIncremental > false</LinkIncremental>
2021-03-18 21:24:48 +08:00
<IncludePath > ..\..\src\common\Telemetry;$(IncludePath)</IncludePath>
2019-09-05 00:26:26 +08:00
</PropertyGroup>
2023-01-12 22:25:36 +08:00
<ItemDefinitionGroup >
<PreBuildEvent >
<Command >
call cmd /C "copy ""$(ProjectDir)DepsFilesLists.h"" ""$(ProjectDir)DepsFilesLists.h.bk"""
2023-03-31 18:23:57 +08:00
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\AlwaysOnTop.wxs"" ""$(ProjectDir)..\PowerToysSetup\AlwaysOnTop.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\Awake.wxs"" ""$(ProjectDir)..\PowerToysSetup\Awake.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\ColorPicker.wxs"" ""$(ProjectDir)..\PowerToysSetup\ColorPicker.wxs.bk""""
2023-01-23 22:59:18 +08:00
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\Core.wxs"" ""$(ProjectDir)..\PowerToysSetup\Core.wxs.bk""""
2023-03-31 18:23:57 +08:00
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\FancyZones.wxs"" ""$(ProjectDir)..\PowerToysSetup\FancyZones.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\FileExplorerPreview.wxs"" ""$(ProjectDir)..\PowerToysSetup\FileExplorerPreview.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\FileLocksmith.wxs"" ""$(ProjectDir)..\PowerToysSetup\FileLocksmith.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\Hosts.wxs"" ""$(ProjectDir)..\PowerToysSetup\Hosts.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\ImageResizer.wxs"" ""$(ProjectDir)..\PowerToysSetup\ImageResizer.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\KeyboardManager.wxs"" ""$(ProjectDir)..\PowerToysSetup\KeyboardManager.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\MeasureTool.wxs"" ""$(ProjectDir)..\PowerToysSetup\MeasureTool.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\MouseUtils.wxs"" ""$(ProjectDir)..\PowerToysSetup\MouseUtils.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\PowerAccent.wxs"" ""$(ProjectDir)..\PowerToysSetup\PowerAccent.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\PowerRename.wxs"" ""$(ProjectDir)..\PowerToysSetup\PowerRename.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\Product.wxs"" ""$(ProjectDir)..\PowerToysSetup\Product.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\RegistryPreview.wxs"" ""$(ProjectDir)..\PowerToysSetup\RegistryPreview.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\Resources.wxs"" ""$(ProjectDir)..\PowerToysSetup\Resources.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\Run.wxs"" ""$(ProjectDir)..\PowerToysSetup\Run.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\Settings.wxs"" ""$(ProjectDir)..\PowerToysSetup\Settings.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\ShortcutGuide.wxs"" ""$(ProjectDir)..\PowerToysSetup\ShortcutGuide.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\TextExtractor.wxs"" ""$(ProjectDir)..\PowerToysSetup\TextExtractor.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\Tools.wxs"" ""$(ProjectDir)..\PowerToysSetup\Tools.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\VideoConference.wxs"" ""$(ProjectDir)..\PowerToysSetup\VideoConference.wxs.bk""""
call cmd /C "copy ""$(ProjectDir)..\PowerToysSetup\WinAppSDK.wxs"" ""$(ProjectDir)..\PowerToysSetup\WinAppSDK.wxs.bk""""
2023-01-27 23:08:15 +08:00
call powershell.exe -NonInteractive -executionpolicy Unrestricted -File parseRuntimes.ps1 -runtimedepsjsonpath "$(ProjectDir)..\..\$(Platform)\$(Configuration)\Settings\PowerToys.Settings.deps.json" -wpfdepsjsonpath "$(ProjectDir)..\..\$(Platform)\$(Configuration)\modules\ColorPicker\PowerToys.ColorPickerUI.deps.json" -depsfileslistspath "$(ProjectDir)DepsFilesLists.h" -productwxspath "$(ProjectDir)..\PowerToysSetup\Core.wxs"
2023-03-31 18:23:57 +08:00
if not "$(PerUser)" == "true" call powershell.exe -NonInteractive -executionpolicy Unrestricted -File ..\PowerToysSetup\generateAllFileComponents.ps1 -platform $(Platform)
if "$(PerUser)" == "true" call powershell.exe -NonInteractive -executionpolicy Unrestricted -File ..\PowerToysSetup\generateAllFileComponents.ps1 -platform $(Platform) -installscopeperuser $(PerUser)
2023-01-12 22:25:36 +08:00
</Command>
<Message > Backing up original files and populating .NET and WPF Runtime dependencies </Message>
</PreBuildEvent>
</ItemDefinitionGroup>
<PropertyGroup Condition= "'$(RunBuildEvents)'=='false'" >
<PreBuildEventUseInBuild > false</PreBuildEventUseInBuild>
<PostBuildEventUseInBuild > false</PostBuildEventUseInBuild>
</PropertyGroup>
2020-12-15 20:16:09 +08:00
<ItemDefinitionGroup >
<ClCompile >
2022-05-30 17:38:36 +08:00
<AdditionalIncludeDirectories > inc;..\..\src\;..\..\src\common\Telemetry;telemetry;$(WixSdkPath)VS2017\inc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
2021-09-21 20:15:59 +08:00
<AdditionalOptions > /await /Zc:twoPhase- /Wv:18 %(AdditionalOptions)</AdditionalOptions>
2022-04-21 22:55:02 +08:00
<WarningLevel > Level4</WarningLevel>
<DebugInformationFormat > ProgramDatabase</DebugInformationFormat>
2020-12-15 20:16:09 +08:00
</ClCompile>
<Link >
2022-01-06 02:28:09 +08:00
<AdditionalDependencies > WindowsApp.lib;Newdev.lib;Crypt32.lib;msi.lib;wcautil.lib;Psapi.lib;Pathcch.lib;comsupp.lib;taskschd.lib;Secur32.lib;msi.lib;dutil.lib;wcautil.lib;Version.lib;Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
2022-04-21 22:55:02 +08:00
<ModuleDefinitionFile > CustomAction.def</ModuleDefinitionFile>
2020-12-15 20:16:09 +08:00
</Link>
</ItemDefinitionGroup>
2022-05-30 17:38:36 +08:00
<ItemDefinitionGroup >
2022-04-21 22:55:02 +08:00
<ClCompile >
<PreprocessorDefinitions > WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link >
2022-05-30 17:38:36 +08:00
<AdditionalLibraryDirectories > $(WixSdkPath)VS2017\lib\$(Platform);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
2022-04-21 22:55:02 +08:00
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition= "'$(Configuration)'=='Debug'" >
2019-09-05 00:26:26 +08:00
<ClCompile >
<Optimization > Disabled</Optimization>
2022-04-21 22:55:02 +08:00
<PreprocessorDefinitions > _DEBUG;_WINDOWS;_USRDLL;CUSTOMACTIONTEST_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
2019-09-05 00:26:26 +08:00
<BasicRuntimeChecks > EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary > MultiThreadedDebug</RuntimeLibrary>
</ClCompile>
<Link >
<GenerateDebugInformation > true</GenerateDebugInformation>
<SubSystem > Windows</SubSystem>
<UACExecutionLevel > HighestAvailable</UACExecutionLevel>
</Link>
</ItemDefinitionGroup>
2022-04-21 22:55:02 +08:00
<ItemDefinitionGroup Condition= "'$(Configuration)'=='Release'" >
2019-09-05 00:26:26 +08:00
<ClCompile >
<Optimization > MaxSpeed</Optimization>
<IntrinsicFunctions > true</IntrinsicFunctions>
2022-04-21 22:55:02 +08:00
<PreprocessorDefinitions > NDEBUG;_WINDOWS;_USRDLL;CUSTOMACTIONTEST_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
2019-09-05 00:26:26 +08:00
<RuntimeLibrary > MultiThreaded</RuntimeLibrary>
<FunctionLevelLinking > true</FunctionLevelLinking>
</ClCompile>
<Link >
<GenerateDebugInformation > true</GenerateDebugInformation>
<SubSystem > Windows</SubSystem>
<OptimizeReferences > true</OptimizeReferences>
<EnableCOMDATFolding > true</EnableCOMDATFolding>
<UACExecutionLevel > HighestAvailable</UACExecutionLevel>
</Link>
</ItemDefinitionGroup>
2020-07-28 00:53:29 +08:00
<ItemDefinitionGroup Condition= "'$(CIBuild)'!='true'" >
2020-05-25 15:59:05 +08:00
<ClCompile >
<PrecompiledHeader > Use</PrecompiledHeader>
<PrecompiledHeaderFile > stdafx.h</PrecompiledHeaderFile>
</ClCompile>
2020-07-28 00:53:29 +08:00
</ItemDefinitionGroup>
2019-09-05 00:26:26 +08:00
<ItemGroup >
<ClCompile Include= "CustomAction.cpp" />
<ClCompile Include= "stdafx.cpp" >
2020-05-25 15:59:05 +08:00
<PrecompiledHeader Condition= "'$(CIBuild)'!='true'" > Create</PrecompiledHeader>
2019-09-05 00:26:26 +08:00
</ClCompile>
</ItemGroup>
<ItemGroup >
<None Include= "CustomAction.def" />
2019-10-10 03:21:21 +08:00
<None Include= "packages.config" />
2019-09-05 00:26:26 +08:00
</ItemGroup>
<ItemGroup >
2022-12-14 20:37:23 +08:00
<ClInclude Include= "DepsFilesLists.h" />
2022-01-06 02:28:09 +08:00
<ClInclude Include= "RcResource.h" />
2021-09-21 20:15:59 +08:00
<ClInclude Include= "resource.h" />
2019-09-05 00:26:26 +08:00
<ClInclude Include= "stdafx.h" />
<ClInclude Include= "Telemetry\ProjectTelemetry.h" />
<ClInclude Include= "Telemetry\TraceLoggingDefines.h" />
</ItemGroup>
2021-09-21 20:15:59 +08:00
<ItemGroup >
<ResourceCompile Include= "Resource.rc" />
</ItemGroup>
2021-11-10 03:48:07 +08:00
<ItemGroup >
<ProjectReference Include= "..\..\src\common\logger\logger.vcxproj" >
<Project > {d9b8fc84-322a-4f9f-bbb9-20915c47ddfd}</Project>
</ProjectReference>
</ItemGroup>
2019-09-05 00:26:26 +08:00
<Import Project= "$(VCTargetsPath)\Microsoft.Cpp.targets" />
2022-07-01 04:10:14 +08:00
<ImportGroup Label= "ExtensionTargets" >
2022-10-12 16:19:01 +08:00
<Import Project= "..\packages\Microsoft.Windows.CppWinRT.2.0.220929.3\build\native\Microsoft.Windows.CppWinRT.targets" Condition= "Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.220929.3\build\native\Microsoft.Windows.CppWinRT.targets')" />
2022-07-01 04:10:14 +08:00
</ImportGroup>
<Target Name= "EnsureNuGetPackageBuildImports" BeforeTargets= "PrepareForBuild" >
<PropertyGroup >
<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>
</PropertyGroup>
2022-10-12 16:19:01 +08:00
<Error Condition= "!Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.220929.3\build\native\Microsoft.Windows.CppWinRT.props')" Text= "$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.CppWinRT.2.0.220929.3\build\native\Microsoft.Windows.CppWinRT.props'))" />
<Error Condition= "!Exists('..\packages\Microsoft.Windows.CppWinRT.2.0.220929.3\build\native\Microsoft.Windows.CppWinRT.targets')" Text= "$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Windows.CppWinRT.2.0.220929.3\build\native\Microsoft.Windows.CppWinRT.targets'))" />
2022-07-01 04:10:14 +08:00
</Target>
2021-09-21 20:15:59 +08:00
</Project>