Skip to content

Commit

Permalink
Merge pull request #4728 from jakirkham/add_vs2008_runtime
Browse files Browse the repository at this point in the history
Add vs2008_runtime
  • Loading branch information
patricksnape authored Jan 5, 2018
2 parents 80d7c94 + cac0d86 commit ed9464a
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
21 changes: 21 additions & 0 deletions recipes/vs2008_runtime/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
if "%CI%" == "True" (
vcredist.exe /qb!
)

if "%ARCH%" == "32" (
set "ARCH_DIR=x86"
)

if "%ARCH%" == "64" (
set "ARCH_DIR=amd64"
)

cd C:\Windows\WinSxS\%ARCH_DIR%_microsoft.vc90.openmp_*_%PKG_VERSION%_*
xcopy *.dll %LIBRARY_BIN%
xcopy *.dll %PREFIX%

cd C:\Windows\WinSxS\%ARCH_DIR%_microsoft.vc90.crt_*_%PKG_VERSION%_*
xcopy *.dll %LIBRARY_BIN%
xcopy *.dll %PREFIX%

cd %SRC_DIR%
44 changes: 44 additions & 0 deletions recipes/vs2008_runtime/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package:
name: vs2008_runtime
version: "9.0.30729.6161"

source:
fn: vcredist.exe
# Downloads from https://www.microsoft.com/en-us/download/details.aspx?id=26368
url: https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x86.exe # [win32]
sha256: 6b3e4c51c6c0e5f68c8a72b497445af3dbf976394cbb62aa23569065c28deeb6 # [win32]
url: https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x64.exe # [win64]
sha256: b811f2c047a3e828517c234bd4aa4883e1ec591d88fad21289ae68a6915a6665 # [win64]

build:
number: 0
skip: true # [not win]
msvc_compiler: 9.0
script_env:
- CI

test:
commands:
{% set libs = [
"msvcm90",
"msvcp90",
"msvcr90",
"vcomp90"
] %}
{% for each_lib in libs %}
- if not exist "%PREFIX%\\{{ each_lib }}.dll" exit 1
- if not exist "%PREFIX%\\Library\\bin\\{{ each_lib }}.dll" exit 1
{% endfor %}

about:
home: http://www.microsoft.com
license: Proprietary
summary: Bundles of the MSVC 9 (VS 2008) runtime

extra:
recipe-maintainers:
- gillins
- isuruf
- mingwandroid
- msarahan
- patricksnape

0 comments on commit ed9464a

Please sign in to comment.