• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import os
2
3Import('*')
4
5env = env.Clone()
6
7env.Append(CPPPATH = [
8    '#src/mapi',
9    '#src/mesa',
10    '.',
11])
12
13if env['platform'] == 'windows':
14    env.AppendUnique(CPPDEFINES = [
15        'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers
16        'WIN32_LEAN_AND_MEAN', # http://msdn2.microsoft.com/en-us/library/6dwk3a1z.aspx
17    ])
18    if not env['gles']:
19        # prevent _glapi_* from being declared __declspec(dllimport)
20        env.Append(CPPDEFINES = ['_GLAPI_NO_EXPORTS'])
21
22st_osmesa = env.ConvenienceLibrary(
23    target ='st_osmesa',
24    source = env.ParseSourceList('Makefile.sources', 'C_SOURCES'),
25)
26Export('st_osmesa')
27