Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Windows IDL targets #205

Merged
merged 1 commit into from
Oct 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 16 additions & 21 deletions Native/OpenDDSharp.IdlGenerator.targets
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
<IsLinux Condition="$([MSBuild]::IsOSPlatform('Linux'))">true</IsLinux>
<IsOSX Condition="$([MSBuild]::IsOSPlatform('OSX'))">true</IsOSX>
</PropertyGroup>

<PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-x64' Or '$(Platform)'=='x64'">
<PlatformFolder>x64</PlatformFolder>
</PropertyGroup>
<PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-x86' Or '$(Platform)'=='x86'">
<PlatformFolder>x86</PlatformFolder>
</PropertyGroup>

<PropertyGroup>
<DefineConstants Condition="'$(IsWindows)'=='true'">$(DefineConstants);Windows</DefineConstants>
</PropertyGroup>
Expand All @@ -18,30 +26,17 @@
</PropertyGroup>

<!--Custom OpenDDS and ACE/TAO variables-->
<PropertyGroup Label="OpenDDS Home" Condition="'$(IsWindows)'=='true' And '$(RuntimeIdentifier)'=='win-x86'">
<DDS_ROOT>$(MSBuildThisFileDirectory)..\tools\DDS_x86</DDS_ROOT>
</PropertyGroup>
<PropertyGroup Label="ACE Home" Condition="'$(IsWindows)'=='true' And '$(RuntimeIdentifier)'=='win-x86'">
<ACE_ROOT>$(MSBuildThisFileDirectory)..\tools\ACE_x86</ACE_ROOT>
</PropertyGroup>
<PropertyGroup Label="TAO Home" Condition="'$(IsWindows)'=='true' And '$(RuntimeIdentifier)'=='win-x86'">
<TAO_ROOT>$(MSBuildThisFileDirectory)..\tools\ACE_x86\TAO</TAO_ROOT>
</PropertyGroup>
<PropertyGroup Label="Rapid JSON Home" Condition="'$(IsWindows)'=='true' And '$(RuntimeIdentifier)'=='win-x86'">
<RAPIDJSON_ROOT>$(MSBuildThisFileDirectory)..\tools\DDS_x86\tools\rapidjson</RAPIDJSON_ROOT>
</PropertyGroup>

<PropertyGroup Label="OpenDDS Home" Condition="'$(IsWindows)'=='true' And '$(RuntimeIdentifier)'=='win-x64'">
<DDS_ROOT>$(MSBuildThisFileDirectory)..\tools\DDS_x64</DDS_ROOT>
<PropertyGroup Label="OpenDDS Home" Condition="'$(IsWindows)'=='true'">
<DDS_ROOT>$(MSBuildThisFileDirectory)..\tools\DDS_$(PlatformFolder)</DDS_ROOT>
</PropertyGroup>
<PropertyGroup Label="ACE Home" Condition="'$(IsWindows)'=='true' And '$(RuntimeIdentifier)'=='win-x64'">
<ACE_ROOT>$(MSBuildThisFileDirectory)..\tools\ACE_x64</ACE_ROOT>
<PropertyGroup Label="ACE Home" Condition="'$(IsWindows)'=='true'">
<ACE_ROOT>$(MSBuildThisFileDirectory)..\tools\ACE_$(PlatformFolder)</ACE_ROOT>
</PropertyGroup>
<PropertyGroup Label="TAO Home" Condition="'$(IsWindows)'=='true' And '$(RuntimeIdentifier)'=='win-x64'">
<TAO_ROOT>$(MSBuildThisFileDirectory)..\tools\ACE_x64\TAO</TAO_ROOT>
<PropertyGroup Label="TAO Home" Condition="'$(IsWindows)'=='true'">
<TAO_ROOT>$(MSBuildThisFileDirectory)..\tools\ACE_$(PlatformFolder)\TAO</TAO_ROOT>
</PropertyGroup>
<PropertyGroup Label="Rapid JSON Home" Condition="'$(IsWindows)'=='true' And '$(RuntimeIdentifier)'=='win-x64'">
<RAPIDJSON_ROOT>$(MSBuildThisFileDirectory)..\tools\DDS_x64\tools\rapidjson</RAPIDJSON_ROOT>
<PropertyGroup Label="Rapid JSON Home" Condition="'$(IsWindows)'=='true'">
<RAPIDJSON_ROOT>$(MSBuildThisFileDirectory)..\tools\DDS_$(PlatformFolder)\tools\rapidjson</RAPIDJSON_ROOT>
</PropertyGroup>

<PropertyGroup Label="OpenDDS Home" Condition="'$(IsLinux)'=='true'">
Expand Down
Loading