1 #######################################################################
7 if env['platform'] != 'winddk':
11 env.Append(CPPDEFINES = [
15 if env['platform'] == 'windows':
16 env.Append(CPPDEFINES = [
17 '_GDI32_', # prevent gl* being declared __declspec(dllimport) in MS headers
18 'BUILD_GL32', # declare gl* as __declspec(dllexport) in Mesa headers
21 env.Append(CPPDEFINES = ['_GLAPI_DLL_EXPORTS'])
23 # prevent _glapi_* from being declared __declspec(dllimport)
24 env.Append(CPPDEFINES = ['_GLAPI_NO_EXPORTS'])
26 env.Append(CPPPATH = [
45 for s in mapi_sources:
46 o = env.SharedObject(s[:-2], '../mapi/' + s)
47 glapi_sources.append(o)
52 if env['gcc'] and env['platform'] != 'windows':
53 if env['machine'] == 'x86':
54 env.Append(CPPDEFINES = [
60 elif env['machine'] == 'x86_64':
61 env.Append(CPPDEFINES = [
67 elif env['machine'] == 'sparc':
68 env.Append(CPPDEFINES = [
77 glapi = env.ConvenienceLibrary(
79 source = glapi_sources,