forked from gd-avif/gd-avif
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSCsub
More file actions
31 lines (23 loc) · 837 Bytes
/
SCsub
File metadata and controls
31 lines (23 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!python
Import("env")
Import("env_modules")
env_avif = env_modules.Clone()
# Minimum target platform versions.
if "ios_min_version" not in env_avif:
env_avif["ios_min_version"] = "11.0"
if "macos_deployment_target" not in env_avif:
env_avif["macos_deployment_target"] = "11.0"
if "android_api_level" not in env_avif:
env_avif["android_api_level"] = "21"
# Dependencies
for tool in ["cmake", "aom", "avif"]:
env_avif.Tool(tool, toolpath=["tools"])
# Make our dependencies
aom = env_avif.BuildAOM()
avif = env_avif.BuildLibAvif(aom)
module_obj = []
env_avif.add_source_files(module_obj, "*.cpp")
env.modules_sources += module_obj
env.Append(LIBS=env_avif["AVIF_LIBS"] + env_avif["AOM_LIBS"])
# Needed to force rebuilding the module files when the thirdparty library is updated.
env.Depends(module_obj, aom + avif)