summaryrefslogtreecommitdiffstats
path: root/src/glut/glx/SConscript
blob: 99b3bb7df64a7f811d2bbe61c4033c59efcf7a44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Import('*')

env = env.Clone()

if env['platform'] != 'windows':
    Return()

target = 'glut32'

env.Replace(CPPDEFINES = [
    'BUILD_GLUT32', 
    'GLUT_BUILDING_LIB', 
    'MESA', 
    '_DLL',
    'NDEBUG',
    'GLUT_NO_WARNING_DISABLE',
])

env.AppendUnique(CPPPATH = [
    '#/include',
])

env.PrependUnique(LIBS = [
    'winmm', 
    'gdi32', 
    'user32', 
    'opengl32', 
    'glu32',
])

sources = [
    'glut_bitmap.c',
    'glut_bwidth.c',
    'glut_cindex.c',
    'glut_cmap.c',
    'glut_cursor.c',
    'glut_dials.c',
    'glut_dstr.c',
    'glut_event.c',
    'glut_ext.c',
    'glut_fcb.c',
    'glut_fullscrn.c',
    'glut_gamemode.c',
    'glut_get.c',
    'glut_init.c',
    'glut_input.c',
    'glut_joy.c',
    'glut_key.c',
    'glut_keyctrl.c',
    'glut_keyup.c',
    'glut_mesa.c',
    'glut_modifier.c',
    'glut_overlay.c',
    'glut_shapes.c',
    'glut_space.c',
    'glut_stroke.c',
    'glut_swap.c',
    'glut_swidth.c',
    'glut_tablet.c',
    'glut_teapot.c',
    'glut_util.c',
    'glut_vidresize.c',
    'glut_warp.c',
    'glut_win.c',
    'glut_winmisc.c',

    'win32_glx.c',
    'win32_menu.c',
    'win32_util.c',
    'win32_winproc.c',
    'win32_x11.c',
    
    'glut_8x13.c',
    'glut_9x15.c',
    'glut_hel10.c',
    'glut_hel12.c',
    'glut_hel18.c',
    'glut_mroman.c',
    'glut_roman.c',
    'glut_tr10.c',
    'glut_tr24.c',

    'glut.def',
]

env.SharedLibrary(
    target = target,
    source = sources,
)