Skip to content

Commit

Permalink
enhanced target platform checks in nuckage packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
vrogier committed Apr 21, 2020
1 parent 8917ce0 commit 8587fbe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions nuget/ocilib.props
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemDefinitionGroup Condition="'$(CharacterSet)' == 'Unicode' and ('$(Platform)' == 'Win32' or '$(Platform)' == 'x86')">
<ItemDefinitionGroup Condition="'$(CharacterSet)' == 'Unicode' and '$(PlatformTarget)' == 'x86'">
<ClCompile>
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>OCI_API=__stdcall;OCI_CHARSET_WIDE;OCI_IMPORT_RUNTIME;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(CharacterSet)' == 'Unicode' and ('$(Platform)' == 'Win64' or '$(Platform)' == 'x64')">
<ItemDefinitionGroup Condition="'$(CharacterSet)' == 'Unicode' and '$(PlatformTarget)' == 'x64'">
<ClCompile>
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>OCI_API=__stdcall;OCI_CHARSET_WIDE;OCI_IMPORT_RUNTIME;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(CharacterSet)' == 'MultiByte' and ('$(Platform)' == 'Win32' or '$(Platform)' == 'x86')">
<ItemDefinitionGroup Condition="'$(CharacterSet)' == 'MultiByte' and '$(PlatformTarget)' == 'x86'">
<ClCompile>
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>OCI_API=__stdcall;OCI_CHARSET_ANSI;OCI_IMPORT_RUNTIME;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(CharacterSet)' == 'MultiByte' and ('$(Platform)' == 'Win64' or '$(Platform)' == 'x64')">
<ItemDefinitionGroup Condition="'$(CharacterSet)' == 'MultiByte' and '$(PlatformTarget)' == 'x64'">
<ClCompile>
<AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>OCI_API=__stdcall;OCI_CHARSET_ANSI;OCI_IMPORT_RUNTIME;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(CharacterSet)' == 'Unicode' and ('$(Platform)' == 'Win32' or '$(Platform)' == 'x86')">
<ItemDefinitionGroup Condition="'$(CharacterSet)' == 'Unicode' and '$(PlatformTarget)' == 'x86'">
<Link>
<AdditionalDependencies>ocilibw.lib;$(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>$(MSBuildThisFileDirectory)\lib\x86;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(CharacterSet)' == 'Unicode' and ('$(Platform)' == 'Win64' or '$(Platform)' == 'x64')">
<ItemDefinitionGroup Condition="'$(CharacterSet)' == 'Unicode' and '$(PlatformTarget)' == 'x64'">
<Link>
<AdditionalDependencies>ocilibw.lib;$(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>$(MSBuildThisFileDirectory)\lib\x64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(CharacterSet)' == 'MultiByte' and ('$(Platform)' == 'Win32' or '$(Platform)' == 'x86')">
<ItemDefinitionGroup Condition="'$(CharacterSet)' == 'MultiByte' and '$(PlatformTarget)' == 'x86'">
<Link>
<AdditionalDependencies>ociliba.lib;$(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>$(MSBuildThisFileDirectory)\lib\x86;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(CharacterSet)' == 'MultiByte' and ('$(Platform)' == 'Win64' or '$(Platform)' == 'x64')">
<ItemDefinitionGroup Condition="'$(CharacterSet)' == 'MultiByte' and '$(PlatformTarget)' == 'x64'">
<Link>
<AdditionalDependencies>ociliba.lib;$(AdditionalDependencies)</AdditionalDependencies>
<AdditionalLibraryDirectories>$(MSBuildThisFileDirectory)\lib\x64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
Expand Down
8 changes: 4 additions & 4 deletions nuget/ocilib.targets
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="Ocilib_Copy_Dll_Wide_x86" BeforeTargets="PostBuildEvent;PrepareForRun" Condition="'$(CharacterSet)' == 'Unicode' and ('$(Platform)' == 'Win32' or '$(Platform)' == 'x86')">
<Target Name="Ocilib_Copy_Dll_Wide_x86" BeforeTargets="PostBuildEvent;PrepareForRun" Condition="'$(CharacterSet)' == 'Unicode' and '$(PlatformTarget)' == 'x86'">
<ItemGroup>
<BinFiles Include="$(MSBuildThisFileDirectory)\bin\x86\ocilibw.dll" />
<BinFiles Include="$(MSBuildThisFileDirectory)\bin\x86\ocilibw.pdb" />
</ItemGroup>
<Copy SourceFiles="@(BinFiles)" DestinationFolder="$(OutDir)" />
</Target>
<Target Name="Ocilib_Copy_Dll_Wide_x64" BeforeTargets="PostBuildEvent;PrepareForRun" Condition="'$(CharacterSet)' == 'Unicode' and ('$(Platform)' == 'Win64' or '$(Platform)' == 'x64')">
<Target Name="Ocilib_Copy_Dll_Wide_x64" BeforeTargets="PostBuildEvent;PrepareForRun" Condition="'$(CharacterSet)' == 'Unicode' and '$(PlatformTarget)' == 'x64'">
<ItemGroup>
<BinFiles Include="$(MSBuildThisFileDirectory)\bin\x64\ocilibw.dll" />
<BinFiles Include="$(MSBuildThisFileDirectory)\bin\x64\ocilibw.pdb" />
</ItemGroup>
<Copy SourceFiles="@(BinFiles)" DestinationFolder="$(OutDir)" />
</Target>
<Target Name="Ocilib_Copy_Dll_Ansi_x86" BeforeTargets="PostBuildEvent;PrepareForRun" Condition="'$(CharacterSet)' == 'MultiByte' and ('$(Platform)' == 'Win32' or '$(Platform)' == 'x86')">
<Target Name="Ocilib_Copy_Dll_Ansi_x86" BeforeTargets="PostBuildEvent;PrepareForRun" Condition="'$(CharacterSet)' == 'MultiByte' and '$(PlatformTarget)' == 'x86'">
<ItemGroup>
<BinFiles Include="$(MSBuildThisFileDirectory)\bin\x86\ociliba.dll" />
<BinFiles Include="$(MSBuildThisFileDirectory)\bin\x86\ociliba.pdb" />
</ItemGroup>
<Copy SourceFiles="@(BinFiles)" DestinationFolder="$(OutDir)" />
</Target>
<Target Name="Ocilib_Copy_Dll_Ansi_x64" BeforeTargets="PostBuildEvent;PrepareForRun" Condition="'$(CharacterSet)' == 'MultiByte' and ('$(Platform)' == 'Win64' or '$(Platform)' == 'x64')">
<Target Name="Ocilib_Copy_Dll_Ansi_x64" BeforeTargets="PostBuildEvent;PrepareForRun" Condition="'$(CharacterSet)' == 'MultiByte' and '$(PlatformTarget)' == 'x64'">
<ItemGroup>
<BinFiles Include="$(MSBuildThisFileDirectory)\bin\x64\ociliba.dll" />
<BinFiles Include="$(MSBuildThisFileDirectory)\bin\x64\ociliba.pdb" />
Expand Down

0 comments on commit 8587fbe

Please sign in to comment.