mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-15 08:50:28 +01:00
tests/raw: Get it building with scons.
This commit is contained in:
parent
ddb0e18f6c
commit
b2e343daab
4 changed files with 8 additions and 5 deletions
|
|
@ -25,4 +25,4 @@ SConscript('targets/SConscript')
|
|||
|
||||
if platform != 'embedded':
|
||||
SConscript('tests/unit/SConscript')
|
||||
#SConscript('tests/raw/SConscript')
|
||||
SConscript('tests/raw/SConscript')
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ if env['platform'] != 'linux':
|
|||
|
||||
env = env.Clone()
|
||||
|
||||
env.Tool('x11')
|
||||
|
||||
env.Prepend(LIBS = [
|
||||
ws_xlib,
|
||||
trace,
|
||||
|
|
@ -40,12 +42,10 @@ env.Prepend(LIBS = [gallium])
|
|||
|
||||
# TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
|
||||
graw = env.SharedLibrary(
|
||||
target ='graw',
|
||||
target ='#lib/graw',
|
||||
source = sources,
|
||||
)
|
||||
|
||||
env.InstallSharedLibrary(graw, version=(1, 0))
|
||||
|
||||
graw = env.FindIxes(graw, 'SHLIBPREFIX', 'SHLIBSUFFIX')
|
||||
|
||||
Export('graw')
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
Import('*')
|
||||
|
||||
if 'graw-xlib' not in env['winsys']:
|
||||
Return()
|
||||
|
||||
env = env.Clone()
|
||||
|
||||
env.Prepend(LIBPATH = [graw.dir])
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ int main( int argc, char *argv[] )
|
|||
struct pipe_context *pipe;
|
||||
struct pipe_surface *surf;
|
||||
struct pipe_framebuffer_state fb;
|
||||
struct pipe_texture *tex, templat;
|
||||
struct pipe_resource *tex, templat;
|
||||
void *window = NULL;
|
||||
float clear_color[4] = {1,0,1,1};
|
||||
int i;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue