Make r300 and amd build in scons.
This commit is contained in:
@@ -46,9 +46,9 @@ common.AddOptions(opts)
|
||||
opts.Add(ListOption('statetrackers', 'state trackers to build', default_statetrackers,
|
||||
['mesa', 'python']))
|
||||
opts.Add(ListOption('drivers', 'pipe drivers to build', default_drivers,
|
||||
['softpipe', 'failover', 'i915simple', 'i965simple', 'cell', 'trace']))
|
||||
['softpipe', 'failover', 'i915simple', 'i965simple', 'cell', 'trace', 'r300']))
|
||||
opts.Add(ListOption('winsys', 'winsys drivers to build', default_winsys,
|
||||
['xlib', 'intel', 'gdi']))
|
||||
['xlib', 'intel', 'gdi', 'amd']))
|
||||
|
||||
opts.Add(EnumOption('MSVS_VERSION', 'MS Visual C++ version', None, allowed_values=('7.1', '8.0', '9.0')))
|
||||
|
||||
|
17
src/gallium/drivers/r300/SConscript
Normal file
17
src/gallium/drivers/r300/SConscript
Normal file
@@ -0,0 +1,17 @@
|
||||
Import('*')
|
||||
|
||||
env = env.Clone()
|
||||
|
||||
r300 = env.ConvenienceLibrary(
|
||||
target = 'r300',
|
||||
source = [
|
||||
'r300_blit.c',
|
||||
'r300_clear.c',
|
||||
'r300_context.c',
|
||||
'r300_screen.c',
|
||||
'r300_state.c',
|
||||
'r300_surface.c',
|
||||
])
|
||||
|
||||
Export('r300')
|
||||
|
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "pipe/p_state.h"
|
||||
|
||||
#include "r300_context.h"
|
||||
#include "r300_cs.h"
|
||||
|
||||
/* Forward declarations. */
|
||||
|
29
src/gallium/winsys/drm/amd/SConscript
Normal file
29
src/gallium/winsys/drm/amd/SConscript
Normal file
@@ -0,0 +1,29 @@
|
||||
Import('*')
|
||||
|
||||
if 'mesa' in env['statetrackers']:
|
||||
|
||||
env = drienv.Clone()
|
||||
|
||||
DRIVER_SOURCES = [
|
||||
'amd_buffer.c',
|
||||
'amd_context.c',
|
||||
'amd_screen.c',
|
||||
'amd_winsys_softpipe.c',
|
||||
]
|
||||
|
||||
sources = \
|
||||
COMMON_GALLIUM_SOURCES + \
|
||||
DRIVER_SOURCES
|
||||
|
||||
drivers = [
|
||||
softpipe,
|
||||
r300
|
||||
]
|
||||
|
||||
# TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
|
||||
env.SharedLibrary(
|
||||
target ='amd_dri.so',
|
||||
source = sources,
|
||||
LIBS = drivers + mesa + auxiliaries + env['LIBS'],
|
||||
)
|
||||
|
Reference in New Issue
Block a user