mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-06 00:05:42 +08:00
Fix libyaml patch slashes (#499)
* Fix libyaml patch slashes * Add tests for libyaml * Rename due to linux is case-sensitive
This commit is contained in:
@@ -351,12 +351,12 @@ class SourcePatcher
|
||||
|
||||
public static function patchLibYaml(string $name, string $target): bool
|
||||
{
|
||||
if (!file_exists("{$target}\\cmake\\config.h.in")) {
|
||||
FileSystem::createDir("{$target}\\cmake");
|
||||
copy(ROOT_DIR . '\src\globals\extra\libyaml_config.h.in', "{$target}\\cmake\\config.h.in");
|
||||
if (!file_exists("{$target}/cmake/config.h.in")) {
|
||||
FileSystem::createDir("{$target}/cmake");
|
||||
copy(ROOT_DIR . '/src/globals/extra/libyaml_config.h.in', "{$target}/cmake/config.h.in");
|
||||
}
|
||||
if (!file_exists("{$target}\\YamlConfig.cmake.in")) {
|
||||
copy(ROOT_DIR . '\src\globals\extra\libyaml_YamlConfig.cmake.in', "{$target}\\YamlConfig.cmake.in");
|
||||
if (!file_exists("{$target}/YamlConfig.cmake.in")) {
|
||||
copy(ROOT_DIR . '/src/globals/extra/libyaml_yamlConfig.cmake.in', "{$target}/yamlConfig.cmake.in");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user