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 env['gcc'] and env['platform'] != 'windows':
48 if env['machine'] == 'x86':
49 env.Append(CPPDEFINES = [
58 elif env['machine'] == 'x86_64':
59 env.Append(CPPDEFINES = [
65 elif env['machine'] == 'ppc':
66 env.Append(CPPDEFINES = [
72 elif env['machine'] == 'sparc':
79 glapi = env.ConvenienceLibrary(
81 source = glapi_sources,