I'm trying to convert an existing C# to premake. I'm using premake5 alpha 6. In my C# project, there are "When conditions" that set the reference include depending on the build configuration if it's release|x86, Debug|x86..etc. How do I set the When Condition= in premake?
In my existing project file:
<When Condition=" ('$(Configuration)|$(Platform)' == 'Release|AnyCPU' Or ('$(Configuration)|$(Platform)' == 'Release|x86') ">
<ItemGroup>
<Reference Include="Project_v100">
<HintPath>..\..\bin\x86\Project_v100.dll</HintPath>
</Reference>
</ItemGroup>
</When>
I know that if i do this in premake the result will be something like the below.
In Premake:
links "Project_v100.dll"
In project file:
<Reference Include="Project_v100">
<HintPath>..\..\bin\x86\Project_v100.dll</HintPath>
<Private>False</Private>
</Reference>