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
19
'WIN32_THREADS', # use Win32 thread API
22
env.Append(CPPPATH = [
40
for s in mapi_sources:
41
o = env.SharedObject(s[:-2], '../mapi/' + s)
42
glapi_sources.append(o)
47
if gcc and env['machine'] == 'x86':
48
env.Append(CPPDEFINES = [
57
elif gcc and env['machine'] == 'x86_64':
58
env.Append(CPPDEFINES = [
64
elif gcc and env['machine'] == 'ppc':
65
env.Append(CPPDEFINES = [
71
elif gcc and env['machine'] == 'sparc':
78
glapi = env.ConvenienceLibrary(
80
source = glapi_sources,