mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-22 07:40:36 +01:00
v2: attempt to fix Android build (Emil) v3: add missing include path Reviewed-by: Marek Olšák <marek.olsak@amd.com> (v1)
67 lines
1.2 KiB
Python
67 lines
1.2 KiB
Python
import common
|
|
|
|
Import('*')
|
|
|
|
SConscript([
|
|
'xmlpool',
|
|
])
|
|
|
|
from sys import executable as python_cmd
|
|
|
|
env = env.Clone()
|
|
|
|
env.MSVC2013Compat()
|
|
|
|
env.Prepend(CPPPATH = [
|
|
'#include',
|
|
xmlpool_options.dir.dir, # Dir to generated xmlpool/options.h
|
|
'#src',
|
|
'#src/mapi',
|
|
'#src/mesa',
|
|
'#src/gallium/include',
|
|
'#src/gallium/auxiliary',
|
|
'#src/util',
|
|
])
|
|
|
|
env.CodeGenerate(
|
|
target = 'format_srgb.c',
|
|
script = 'format_srgb.py',
|
|
source = [],
|
|
command = python_cmd + ' $SCRIPT > $TARGET'
|
|
)
|
|
|
|
# parse Makefile.sources
|
|
source_lists = env.ParseSourceList('Makefile.sources')
|
|
|
|
mesautil_sources = (
|
|
source_lists['MESA_UTIL_FILES'] +
|
|
source_lists['MESA_UTIL_GENERATED_FILES'] +
|
|
source_lists['XMLCONFIG_FILES']
|
|
)
|
|
|
|
mesautilenv = env.Clone()
|
|
|
|
mesautilenv.AppendUnique(LIBS = [
|
|
'expat',
|
|
])
|
|
|
|
mesautil = mesautilenv.ConvenienceLibrary(
|
|
target = 'mesautil',
|
|
source = mesautil_sources,
|
|
)
|
|
|
|
env.Alias('mesautil', mesautil)
|
|
Export('mesautil')
|
|
|
|
|
|
u_atomic_test = env.Program(
|
|
target = 'u_atomic_test',
|
|
source = ['u_atomic_test.c'],
|
|
)
|
|
env.UnitTest("u_atomic_test", u_atomic_test)
|
|
|
|
roundeven_test = env.Program(
|
|
target = 'roundeven_test',
|
|
source = ['roundeven_test.c'],
|
|
)
|
|
env.UnitTest("roundeven_test", roundeven_test)
|