summaryrefslogtreecommitdiffstats
path: root/media/libaom/cmakeparser.py
diff options
context:
space:
mode:
authortrav90 <travawine@palemoon.org>2018-10-19 23:03:09 -0500
committertrav90 <travawine@palemoon.org>2018-10-19 23:03:09 -0500
commit41fbdea457bf50c0a43e1c27c5cbf7f0a3a9eb33 (patch)
tree0fe88d6dc5c68da6bfe4a4c40159873f8fd5f669 /media/libaom/cmakeparser.py
parentba5a1ea60f21da69eb50c28e9fb4e034765e0c62 (diff)
downloadUXP-41fbdea457bf50c0a43e1c27c5cbf7f0a3a9eb33.tar
UXP-41fbdea457bf50c0a43e1c27c5cbf7f0a3a9eb33.tar.gz
UXP-41fbdea457bf50c0a43e1c27c5cbf7f0a3a9eb33.tar.lz
UXP-41fbdea457bf50c0a43e1c27c5cbf7f0a3a9eb33.tar.xz
UXP-41fbdea457bf50c0a43e1c27c5cbf7f0a3a9eb33.zip
Update libaom vendor scripts to account for upstream changes
Diffstat (limited to 'media/libaom/cmakeparser.py')
-rw-r--r--media/libaom/cmakeparser.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/media/libaom/cmakeparser.py b/media/libaom/cmakeparser.py
index 9a2ee4b85..cb2686a61 100644
--- a/media/libaom/cmakeparser.py
+++ b/media/libaom/cmakeparser.py
@@ -161,6 +161,21 @@ def evaluate(variables, cache_variables, parsed):
cache_variables.append(variable)
except ValueError:
variables[variable] = ' '.join(values)
+ # we need to emulate the behavior of these function calls
+ # because we don't support interpreting them directly
+ # see bug 1492292
+ elif command in ['set_aom_config_var', 'set_aom_detect_var']:
+ variable = arguments[0]
+ value = arguments[1]
+ if variable not in variables:
+ variables[variable] = value
+ cache_variables.append(variable)
+ elif command == 'set_aom_option_var':
+ # option vars cannot go into cache_variables
+ variable = arguments[0]
+ value = arguments[2]
+ if variable not in variables:
+ variables[variable] = value
elif command == 'add_asm_library':
try:
sources.extend(variables[arguments[1]].split(' '))