aedi: add ericw-tools target, version 0.18.1

This commit is contained in:
alexey.lysiuk 2024-01-11 15:52:17 +02:00
parent 1a1f1debf1
commit ff433eb0a4
3 changed files with 23 additions and 0 deletions

View file

@ -126,6 +126,7 @@ def targets():
AutoconfTarget(), AutoconfTarget(),
AutomakeTarget(), AutomakeTarget(),
DzipTarget(), DzipTarget(),
EricWToolsTarget(),
GlslangTarget(), GlslangTarget(),
M4Target(), M4Target(),
P7ZipTarget(), P7ZipTarget(),

View file

@ -57,6 +57,17 @@ class DzipTarget(base.CMakeStaticDependencyTarget):
'9f057e35ef5ddda1a0911b8f877a41b2934669377cb053b45364ddb72716b520') '9f057e35ef5ddda1a0911b8f877a41b2934669377cb053b45364ddb72716b520')
class EricWToolsTarget(base.CMakeStaticDependencyTarget):
def __init__(self, name='ericw-tools'):
super().__init__(name)
def prepare_source(self, state: BuildState):
state.download_source(
'https://github.com/ericwa/ericw-tools/archive/refs/tags/v0.18.1.tar.gz',
'97790e742d4c06f2e4285d96ada597bb3c95a2623b8c5e67a14753d9735d4564',
patches='ericw-tools-hardcode-version')
class GlslangTarget(base.CMakeStaticDependencyTarget): class GlslangTarget(base.CMakeStaticDependencyTarget):
# Build with --os-version-x64=10.15 command line option # Build with --os-version-x64=10.15 command line option

View file

@ -0,0 +1,11 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -108,7 +108,7 @@
set(CMAKE_C_STANDARD 99)
endif ()
-add_definitions(-DERICWTOOLS_VERSION=${GIT_DESCRIBE})
+add_definitions(-DERICWTOOLS_VERSION=v0.18.1)
if (MSVC)
add_definitions("/DWIN32")