mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 17:40:11 +01:00
scons: Update for xmlpool/options.h generation.
This commit is contained in:
parent
6bca283ad5
commit
a3dd1ff45f
5 changed files with 20 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ env.Append(CPPPATH = [
|
|||
'#/src/mesa',
|
||||
'#/src/gallium/state_trackers/dri/common',
|
||||
'#/src/mesa/drivers/dri/common',
|
||||
xmlpool_options.dir.dir, # Dir to generated xmlpool/options.h
|
||||
])
|
||||
|
||||
sources = [
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ env.Append(CPPPATH = [
|
|||
'#/src/mesa',
|
||||
'#/src/gallium/state_trackers/dri/common',
|
||||
'#/src/mesa/drivers/dri/common',
|
||||
xmlpool_options.dir.dir, # Dir to generated xmlpool/options.h
|
||||
])
|
||||
|
||||
env.Append(CPPDEFINES = [('__NOT_HAVE_DRM_H', '1')])
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ drienv = env.Clone()
|
|||
|
||||
drienv.Replace(CPPPATH = [
|
||||
'#src/mesa/drivers/dri/common',
|
||||
xmlpool_options.dir.dir, # Dir to generated xmlpool/options.h
|
||||
'#include',
|
||||
'#include/GL/internal',
|
||||
'#src/mapi',
|
||||
|
|
|
|||
|
|
@ -5,5 +5,8 @@ SConscript('osmesa/SConscript')
|
|||
if env['x11']:
|
||||
SConscript('x11/SConscript')
|
||||
|
||||
if env['drm']:
|
||||
SConscript('dri/common/xmlpool/SConscript')
|
||||
|
||||
if env['platform'] == 'windows':
|
||||
SConscript('windows/gdi/SConscript')
|
||||
|
|
|
|||
14
src/mesa/drivers/dri/common/xmlpool/SConscript
Normal file
14
src/mesa/drivers/dri/common/xmlpool/SConscript
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
Import('*')
|
||||
|
||||
from sys import executable as python_cmd
|
||||
|
||||
LOCALEDIR = env.Dir('.').srcnode().abspath
|
||||
|
||||
xmlpool_options, = env.CodeGenerate(
|
||||
target = 'options.h',
|
||||
script = 'gen_xmlpool.py',
|
||||
source = ['t_options.h'],
|
||||
command = python_cmd + ' $SCRIPT $SOURCE ' + LOCALEDIR + ' > $TARGET'
|
||||
)
|
||||
|
||||
Export('xmlpool_options')
|
||||
Loading…
Add table
Reference in a new issue