diff --git a/extension/BuildPhpExtension/patches/raphf.ps1 b/extension/BuildPhpExtension/patches/raphf.ps1 new file mode 100644 index 0000000..1bc11f2 --- /dev/null +++ b/extension/BuildPhpExtension/patches/raphf.ps1 @@ -0,0 +1,10 @@ +$fn = @" +ARG_ENABLE("raphf", "for raphf support", "no"); + +base_dir = get_define('BUILD_DIR'); +WScript.Echo("Creating " + base_dir + "\\src" + "..."); +FSO.CreateFolder(base_dir+"\\src"); +"@ + +(Get-Content config.w32) | ForEach-Object { $_.Replace('ARG_ENABLE("raphf", "for raphf support", "no");', $fn) } | Set-Content config.w32 +(Get-Content config.w32) | ForEach-Object { $_.Replace('ADD_SOURCES', '//ADD_SOURCES') } | Set-Content config.w32 \ No newline at end of file