Commit ea606ee7 authored by Jose Fonseca's avatar Jose Fonseca

scons: Fix scons build.

parent f3cdcb83
......@@ -63,7 +63,7 @@ class SourceListParser(object):
self._error('not a variable definition')
if op_pos > 0:
if line[op_pos - 1] in [':', '+']:
if line[op_pos - 1] in [':', '+', '?']:
op_pos -= 1
else:
self._error('only =, :=, and += are supported')
......@@ -77,6 +77,9 @@ class SourceListParser(object):
self.symbol_table[sym] = val
elif op == '+=':
self.symbol_table[sym] += ' ' + val
elif op == '?=':
if sym not in self.symbol_table:
self.symbol_table[sym] = val
def _parse_line(self, line):
"""Parse a source list line."""
......
# shared source lists for Makefile, SConscript, and Android.mk
GLSL_SRCDIR ?= .
# libglcpp
LIBGLCPP_FILES = \
......
### Lists of source files, included by Makefiles
SRCDIR ?= .
# this is part of MAIN_FILES
MAIN_ES_FILES = \
$(SRCDIR)/main/api_exec_es1.c \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment