mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-04 15:25:41 +08:00
Add qdbm
This commit is contained in:
@@ -10,3 +10,5 @@ qdbm:
|
||||
license: 'GPL-2.0-only OR LGPL-2.1-only'
|
||||
static-libs@unix:
|
||||
- libqdbm.a
|
||||
static-libs@windows:
|
||||
- qdbm_a.lib
|
||||
|
||||
@@ -23,4 +23,15 @@ class qdbm
|
||||
$ac->make(SystemTarget::getTargetOS() === 'Darwin' ? 'mac' : '');
|
||||
$lib->patchPkgconfPrefix(['qdbm.pc']);
|
||||
}
|
||||
|
||||
#[BuildFor('Windows')]
|
||||
public function buildWin(LibraryPackage $lib): void
|
||||
{
|
||||
cmd()->cd($lib->getSourceDir())
|
||||
->exec('nmake /f VCMakefile');
|
||||
FileSystem::createDir($lib->getLibDir());
|
||||
FileSystem::createDir($lib->getIncludeDir());
|
||||
FileSystem::copy("{$lib->getSourceDir()}\\qdbm_a.lib", "{$lib->getLibDir()}\\qdbm_a.lib");
|
||||
FileSystem::copy("{$lib->getSourceDir()}\\depot.h", "{$lib->getIncludeDir()}\\depot.h");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user