From f2f071129597b3a7f7387d433500e160a411605e Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 10 Dec 2020 11:38:11 +0200 Subject: [PATCH] build script: move ogg target into proper location --- build.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/build.py b/build.py index 179e3a88..6e1ed3cb 100755 --- a/build.py +++ b/build.py @@ -832,19 +832,6 @@ class NasmTarget(ConfigureMakeDependencyTarget): return os.path.exists(builder.source_path + 'nasm.txt') -class OggTarget(ConfigureMakeStaticDependencyTarget): - def __init__(self, name='ogg'): - super().__init__(name) - - def prepare_source(self, builder: 'Builder'): - builder.download_source( - 'https://downloads.xiph.org/releases/ogg/libogg-1.3.4.tar.gz', - 'fe5670640bd49e828d64d2879c31cb4dde9758681bb664f9bdbf159a01b0c76e') - - def detect(self, builder: 'Builder') -> bool: - return os.path.exists(builder.source_path + 'ogg.pc.in') - - class NinjaTarget(MakeTarget): def __init__(self, name='ninja'): super().__init__(name) @@ -867,6 +854,19 @@ class NinjaTarget(MakeTarget): shutil.copy(builder.build_path + self.name, dest_path) +class OggTarget(ConfigureMakeStaticDependencyTarget): + def __init__(self, name='ogg'): + super().__init__(name) + + def prepare_source(self, builder: 'Builder'): + builder.download_source( + 'https://downloads.xiph.org/releases/ogg/libogg-1.3.4.tar.gz', + 'fe5670640bd49e828d64d2879c31cb4dde9758681bb664f9bdbf159a01b0c76e') + + def detect(self, builder: 'Builder') -> bool: + return os.path.exists(builder.source_path + 'ogg.pc.in') + + class OpenALTarget(CMakeStaticDependencyTarget): def __init__(self, name='openal'): super().__init__(name)