2025-03-13 22:38:50 +01:00

26 lines
488 B
Python

import os
from SCons.Script import *
def available(env: Environment):
if os.name != 'posix':
return 'Fontconfig is only available on Linux.'
def versions(env: Environment, update: bool = False):
if os.name == 'posix':
return [(0, 0, 0)]
else:
return []
def dependencies(env: Environment, version) -> 'dict':
return {
'freetype': {}
}
def cook(env: Environment, version) -> dict:
return {
'LIBS': ['fontconfig']
}