24 lines
456 B
Python
24 lines
456 B
Python
|
|
|
|
import os
|
|
from SCons.Script import *
|
|
|
|
|
|
def available(env: Environment):
|
|
if os.name != 'posix':
|
|
return 'Freetype 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 {}
|
|
|
|
def cook(env: Environment, version) -> dict:
|
|
return {
|
|
'LIBS': ['freetype']
|
|
}
|