diff options
author | Jose <jose@zeroc.com> | 2018-11-12 19:35:45 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2018-11-12 19:35:45 +0100 |
commit | b95173f375f9506ad56969eac0b41ae522bb1a59 (patch) | |
tree | db422c2b8dce24c67f23b6b9381dcefcb6515a5e /php | |
parent | Fix typo in package id (diff) | |
download | ice-b95173f375f9506ad56969eac0b41ae522bb1a59.tar.bz2 ice-b95173f375f9506ad56969eac0b41ae522bb1a59.tar.xz ice-b95173f375f9506ad56969eac0b41ae522bb1a59.zip |
Create separate NuGet packages for PHP 7.1 and PHP 7.2
Diffstat (limited to 'php')
-rw-r--r-- | php/msbuild/ice.proj | 16 | ||||
-rw-r--r-- | php/msbuild/zeroc.ice.php7.1.nuspec (renamed from php/msbuild/zeroc.ice.php.nuspec) | 4 | ||||
-rw-r--r-- | php/msbuild/zeroc.ice.php7.2.nuspec | 17 |
3 files changed, 28 insertions, 9 deletions
diff --git a/php/msbuild/ice.proj b/php/msbuild/ice.proj index 699edc9fe33..605e5315305 100644 --- a/php/msbuild/ice.proj +++ b/php/msbuild/ice.proj @@ -16,6 +16,7 @@ <CppConfiguration Condition="'$(Configuration)' == 'NTS-Release' or '$(Configuration)' == 'Release'">Release</CppConfiguration> <BuildWithPhpVersion Condition="'$(BuildWithPhpVersion)' == '' and '$(DefaultPlatformToolset)' == 'v141'">7.2</BuildWithPhpVersion> <BuildWithPhpVersion Condition="'$(BuildWithPhpVersion)' == '' and '$(DefaultPlatformToolset)' == 'v140'">7.1</BuildWithPhpVersion> + <PackageDirectory>zeroc.ice.php$(BuildWithPhpVersion)</PackageDirectory> </PropertyGroup> <Target Name="NuGetRestore" DependsOnTargets="GetNuGet"> @@ -134,18 +135,19 @@ </Target> <Target Name="NuGetPack" DependsOnTargets="BuildDist"> - <RemoveDir Directories="zeroc.ice.php" /> + <RemoveDir Directories="$(PackageDirectory)" /> - <Copy SourceFiles="zeroc.ice.php.nuspec" DestinationFolder="zeroc.ice.php" /> + <Copy SourceFiles="$(PackageDirectory).nuspec" DestinationFolder="$(PackageDirectory)" /> <MSBuild Projects="ice.nuget.targets" - Properties="PackageDirectory=zeroc.ice.php;Platform=x64;Configuration=Release;PlatformToolset=$(DefaultPlatformToolset)"/> + Properties="PackageDirectory=$(PackageDirectory);Platform=x64;Configuration=Release;PlatformToolset=$(DefaultPlatformToolset)"/> + <MSBuild Projects="ice.nuget.targets" - Properties="PackageDirectory=zeroc.ice.php;Platform=Win32;Configuration=Release;PlatformToolset=$(DefaultPlatformToolset)"/> + Properties="PackageDirectory=$(PackageDirectory);Platform=Win32;Configuration=Release;PlatformToolset=$(DefaultPlatformToolset)"/> - <Copy SourceFiles="$(MSBuildThisFileDirectory)..\..\ICE_LICENSE" DestinationFiles="zeroc.ice.php\ICE_LICENSE.txt" /> - <Copy SourceFiles="$(MSBuildThisFileDirectory)..\..\LICENSE" DestinationFiles="zeroc.ice.php\LICENSE.txt" /> + <Copy SourceFiles="$(MSBuildThisFileDirectory)..\..\ICE_LICENSE" DestinationFiles="$(PackageDirectory)\ICE_LICENSE.txt" /> + <Copy SourceFiles="$(MSBuildThisFileDirectory)..\..\LICENSE" DestinationFiles="$(PackageDirectory)\LICENSE.txt" /> - <Exec Command="$(NuGetExe) pack -NoPackageAnalysis -NonInteractive" WorkingDirectory="zeroc.ice.php"/> + <Exec Command="$(NuGetExe) pack -NoPackageAnalysis -NonInteractive" WorkingDirectory="$(PackageDirectory)"/> </Target> </Project> diff --git a/php/msbuild/zeroc.ice.php.nuspec b/php/msbuild/zeroc.ice.php7.1.nuspec index 22374611133..1abe33a1386 100644 --- a/php/msbuild/zeroc.ice.php.nuspec +++ b/php/msbuild/zeroc.ice.php7.1.nuspec @@ -1,8 +1,8 @@ <?xml version="1.0"?> <package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> <metadata> - <id>zeroc.ice.php</id> - <title>ZeroC Ice for PHP</title> + <id>zeroc.ice.php7.1</id> + <title>ZeroC Ice for PHP 7.1</title> <version>3.7.1</version> <authors>ZeroC</authors> <copyright>Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved</copyright> diff --git a/php/msbuild/zeroc.ice.php7.2.nuspec b/php/msbuild/zeroc.ice.php7.2.nuspec new file mode 100644 index 00000000000..7e5accdd3f1 --- /dev/null +++ b/php/msbuild/zeroc.ice.php7.2.nuspec @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> + <metadata> + <id>zeroc.ice.php7.2</id> + <title>ZeroC Ice for PHP 7.2</title> + <version>3.7.1</version> + <authors>ZeroC</authors> + <copyright>Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved</copyright> + <licenseUrl>https://raw.githubusercontent.com/zeroc-ice/ice/3.7/ICE_LICENSE</licenseUrl> + <projectUrl>https://github.com/zeroc-ice/ice</projectUrl> + <iconUrl>https://zeroc.com/images/logos/zeroc/zeroc_logo-64x64.png</iconUrl> + <requireLicenseAcceptance>false</requireLicenseAcceptance> + <description>Ice for PHP SDK. Ice is a comprehensive RPC framework that helps you network your software with minimal effort.</description> + <releaseNotes>https://doc.zeroc.com/display/Rel/Ice+3.7.1+Release+Notes</releaseNotes> + <tags>ice</tags> + </metadata> +</package> |