Build xapian using meson build system.
This commit is contained in:
parent
8648e8bc27
commit
f9b890c58d
|
@ -1,4 +1,8 @@
|
||||||
from .base import Dependency, ReleaseDownload, MakeBuilder
|
from .base import (
|
||||||
|
Dependency,
|
||||||
|
ReleaseDownload,
|
||||||
|
MakeBuilder, MesonBuilder
|
||||||
|
)
|
||||||
|
|
||||||
from kiwixbuild.utils import Remotefile
|
from kiwixbuild.utils import Remotefile
|
||||||
from kiwixbuild._global import neutralEnv
|
from kiwixbuild._global import neutralEnv
|
||||||
|
@ -8,22 +12,32 @@ class Xapian(Dependency):
|
||||||
name = "xapian-core"
|
name = "xapian-core"
|
||||||
|
|
||||||
class Source(ReleaseDownload):
|
class Source(ReleaseDownload):
|
||||||
archive = Remotefile(
|
src_archive = Remotefile(
|
||||||
"xapian-core-1.4.23.tar.xz",
|
"xapian-core-1.4.23.tar.xz",
|
||||||
"30d3518172084f310dab86d262b512718a7f9a13635aaa1a188e61dc26b2288c",
|
"30d3518172084f310dab86d262b512718a7f9a13635aaa1a188e61dc26b2288c"
|
||||||
)
|
)
|
||||||
|
meson_patch = Remotefile(
|
||||||
|
"xapian-core-1.4.23-1_patch.zip",
|
||||||
|
"",
|
||||||
|
"https://public.kymeria.fr/KIWIX/xapian-core-1.4.23-1_patch.zip"
|
||||||
|
)
|
||||||
|
archives = [src_archive, meson_patch]
|
||||||
|
|
||||||
class Builder(MakeBuilder):
|
# class Builder(MakeBuilder):
|
||||||
|
# configure_options = [
|
||||||
|
# "--disable-sse",
|
||||||
|
# "--disable-backend-chert",
|
||||||
|
# "--disable-backend-remote",
|
||||||
|
# "--disable-documentation"]
|
||||||
|
# configure_env = {'_format_LDFLAGS': "{env.LDFLAGS} -L{buildEnv.install_dir}/{buildEnv.libprefix}",
|
||||||
|
# '_format_CXXFLAGS': "{env.CXXFLAGS} -I{buildEnv.install_dir}/include"}
|
||||||
|
|
||||||
|
class Builder(MesonBuilder):
|
||||||
configure_options = [
|
configure_options = [
|
||||||
"--disable-sse",
|
"-Denable-sse=false",
|
||||||
"--disable-backend-chert",
|
"-Denable-backend-chert=false",
|
||||||
"--disable-backend-remote",
|
"-Denable-backend-remote=false"
|
||||||
"--disable-documentation",
|
|
||||||
]
|
]
|
||||||
configure_env = {
|
|
||||||
"_format_LDFLAGS": "{env.LDFLAGS} -L{buildEnv.install_dir}/{buildEnv.libprefix}",
|
|
||||||
"_format_CXXFLAGS": "{env.CXXFLAGS} -O3 -I{buildEnv.install_dir}/include",
|
|
||||||
}
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_dependencies(cls, configInfo, allDeps):
|
def get_dependencies(cls, configInfo, allDeps):
|
||||||
|
|
Loading…
Reference in New Issue