[Mesa-dev] Revamping how to specify targets to build with scons

Xavier Chantry chantry.xavier at gmail.com
Mon Nov 1 12:57:58 PDT 2010


On Mon, Nov 1, 2010 at 2:34 PM, José Fonseca <jfonseca at vmware.com> wrote:
> I've just pushed a long time requested improvement to scons build
> system.
>
> Now is simply a matter of naming what to build. For example:
>
>  scons libgl-xlib
>
>  scons libgl-gdi
>
>  scons graw-progs
>
>  scons llvmpipe
>
> and so on. And there is still the possibility of scepcified subdirs,
> e.g.
>
>  scons src/gallium/drivers
>
> If nothing is specified then everything will be build.
>
> There might be some rough corners over the next days. Please bare with
> me.
>

I've been looking at various SConscript files and I have to admit I am
a bit lost :)

For example, it seems the radeon scripts are always executed, no
matter what arguments I give to scons.

I suppose that's part of the rough corners, but I wonder how driver
selection will be made.

$ scons
scons: Reading SConscript files ...
scons: Found LLVM version 2.8
Checking for C header file udis86.h... no
Package libdrm_radeon was not found in the pkg-config search path.
Perhaps you should add the directory containing `libdrm_radeon.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libdrm_radeon' found
warning: not building r600
Checking for C header file X11/extensions/dpmsconst.h... yes
Package libdrm_radeon was not found in the pkg-config search path.
Perhaps you should add the directory containing `libdrm_radeon.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libdrm_radeon' found
OSError: 'pkg-config --cflags libdrm_radeon' exited 1:
  File "/home/xavier/app/mesa/SConstruct", line 131:
    duplicate = 0 # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 614:
    return method(*args, **kw)
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 551:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/home/xavier/app/mesa/src/SConscript", line 16:
    SConscript('gallium/SConscript')
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 614:
    return method(*args, **kw)
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 551:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/home/xavier/app/mesa/src/gallium/SConscript", line 66:
    SConscript('winsys/SConscript')
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 614:
    return method(*args, **kw)
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 551:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/home/xavier/app/mesa/src/gallium/winsys/SConscript", line 34:
    'radeon/drm/SConscript',
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 614:
    return method(*args, **kw)
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 551:
    return _SConscript(self.fs, *files, **subst_kw)
  File "/usr/lib/python2.7/site-packages/SCons/Script/SConscript.py", line 260:
    exec _file_ in call_stack[-1].globals
  File "/home/xavier/app/mesa/src/gallium/winsys/radeon/drm/SConscript",
line 11:
    env.ParseConfig('pkg-config --cflags libdrm_radeon')
  File "/usr/lib/python2.7/site-packages/SCons/Environment.py", line 1460:
    return function(self, self.backtick(command))
  File "/usr/lib/python2.7/site-packages/SCons/Environment.py", line 593:
    raise OSError("'%s' exited %d" % (command, status))


More information about the mesa-dev mailing list