Files
wxWidgets/samples/samples.props
T
PB eba106431a Allow running samples from MSVS in DLL configurations
Create file samples/samples.props which adds the DLL build directory
to MSVS PATH in <LocalDebuggerEnvironment> property.

Add file samples.props to all MSVS sample projects.
2024-11-16 18:35:41 +01:00

14 lines
892 B
XML

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
Add the folder where wxWidgets DLL were built to MSVS PATH so that a sample can be run
from MSVS in DLL builds.
HTML and OpenGL samples are stored one folder level deeper than all the others,
so their relative path to the DLLs needs one more level up.
-->
<PropertyGroup Condition="'$(Configuration)' == 'DLL Debug' or '$(Configuration)' == 'DLL Release'">
<_wxDLLPathRel>.\..\..</_wxDLLPathRel>
<_wxDLLPathRel Condition = "'$(MSBuildProjectDirectory.IndexOf(`\samples\html\`))' != '-1' or '$(MSBuildProjectDirectory.IndexOf(`\samples\opengl\`))' != '-1'">$(_wxDLLPathRel)\..</_wxDLLPathRel>
<LocalDebuggerEnvironment>PATH=$(_wxDLLPathRel)\lib\$(wxOutDirName);$(PATH)</LocalDebuggerEnvironment>
</PropertyGroup>
</Project>