]> granicus.if.org Git - php/commitdiff
- quick fix for ICU dlls (better fix with n level deps will be done later)
authorPierre Joye <pajoye@php.net>
Wed, 20 Aug 2008 20:09:13 +0000 (20:09 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 20 Aug 2008 20:09:13 +0000 (20:09 +0000)
win32/build/mkdist.php

index cf30bfcb9a40c8d1a7849b7b71fde5d1a9589baf..ccb786c92747061638f80fddc594ed9c7a46d717 100644 (file)
@@ -294,6 +294,25 @@ foreach ($extra_dll_deps as $dll) {
        }
        copy($dll, "$dist_dir/" . basename($dll));
 }
+
+$ICU_DLLS = array(
+       'icudt36.dll',
+       'icuin36.dll',
+       'icuio36.dll',
+       'icule36.dll',
+       'iculx36.dll',
+       'icutu36.dll',
+       'icuuc36.dll'
+);
+foreach ($ICU_DLLS as $dll) {
+       $tdll = '../deps/bin/' . basename($dll);
+       if (!file_exists($tdll)) {
+               echo "WARNING: distro depends on $dll, but could not find it on your system\n";
+               continue;
+       }
+       copy($tdll, "$dist_dir/" . basename($dll));
+}
+
 /* and those for pecl */
 foreach ($pecl_dll_deps as $dll) {
        if (in_array($dll, $extra_dll_deps)) {