i965g: Fix after context transfers
[mesa/mesa-lb.git] / src / glsl / SConscript
blob8e18626c4049d2b4ced0a0b31b2f7ef0a1cb9360
1 import common
3 Import('*')
5 env = env.Clone()
7 sources = [
8     'pp/sl_pp_context.c',
9     'pp/sl_pp_define.c',
10     'pp/sl_pp_dict.c',
11     'pp/sl_pp_error.c',
12     'pp/sl_pp_expression.c',
13     'pp/sl_pp_extension.c',
14     'pp/sl_pp_if.c',
15     'pp/sl_pp_line.c',
16     'pp/sl_pp_macro.c',
17     'pp/sl_pp_pragma.c',
18     'pp/sl_pp_process.c',
19     'pp/sl_pp_purify.c',
20     'pp/sl_pp_token.c',
21     'pp/sl_pp_token_util.c',
22     'pp/sl_pp_version.c',
23     'cl/sl_cl_parse.c',
26 glsl = env.ConvenienceLibrary(
27     target = 'glsl',
28     source = sources,
31 Export('glsl')
33 env = env.Clone()
35 if env['platform'] == 'windows':
36     env.PrependUnique(LIBS = [
37         'user32',
38     ])
40 env.Prepend(LIBS = [glsl])
42 env.Program(
43     target = 'purify',
44     source = ['apps/purify.c'],
47 env.Program(
48     target = 'tokenise',
49     source = ['apps/tokenise.c'],
52 env.Program(
53     target = 'version',
54     source = ['apps/version.c'],
57 env.Program(
58     target = 'process',
59     source = ['apps/process.c'],
62 glsl_compile = env.Program(
63     target = 'compile',
64     source = ['apps/compile.c'],
67 if env['platform'] == common.default_platform:
68     # Only export the GLSL compiler when building for the host platform
69     Export('glsl_compile')