root/trunk/orca/gl/project.r

Revision 108, 2.0 kB (checked in by krobillard, 3 years ago)

Orca-GL should now build on Windows.

Line 
1REBOL []
2
3exe %gorca [
4    warn
5    debug
6    ;release
7    objdir %obj
8    opengl
9
10    include_from %.
11    include_from %..
12    include_from %../util
13    libs_from %.. %orca0
14
15    macx [
16        cflags {-DOR_BIG_ENDIAN}
17
18        include_from %../unix
19        include_from %glv/mac
20        sources [%glv/mac/glv.c]
21
22        include_from %../../../osrc/zlib
23        libs_from %../../../osrc/zlib [%z]
24
25        include_from %../../../osrc/libpng-1.2.8
26        libs_from %../../../osrc/libpng-1.2.8 [%png]
27
28        include_from %/usr/local/include/freetype2
29
30        lflags {-framework OpenAL}
31        ;lflags {-framework OpenGL}
32        ;lflags {-framework AGL}
33        ;lflags {-framework Carbon}
34
35        libs [%freetype %bz2]
36    ]
37    linux [
38        cflags {-DUSE_XF86VMODE}
39        cflags {-DNO_AUDIO}
40        include_from %../unix
41        include_from %glv/unix
42        sources [%glv/unix/glv.c]
43        ;libs_from %/usr/X11R6/lib64 [%X11 %Xxf86vm]
44        libs_from %/usr/X11R6/lib [%X11 %Xxf86vm]
45
46        include_from %/usr/include/freetype2
47
48        libs [%freetype %bz2 %png]
49        libs [%openal %vorbis]
50    ]
51    win32 [
52        lib-path: %"C:/cygwin/home/karl/osrc/"
53
54        include_from %glv/win32
55        sources [%glv/win32/glv.c]
56
57        include_from %../win32
58        sources_from %../win32 [%win32console.c]
59
60        include_from join lib-path %freetype2/include
61        libs_from join lib-path %freetype2/objs [%freetype]
62
63        include_from join lib-path %lpng128
64        include_from join lib-path %zlib
65        libs_from join lib-path %lpng128 [%libpng]
66        libs_from join lib-path %zlib [%zlib]
67
68        include_from %"C:/Program Files/OpenAL 1.1 SDK/include"
69        libs_from %"C:/Program Files/OpenAL 1.1 SDK/libs/Win32"
70            [%ALut %OpenAL32]
71    ]
72
73    sources [
74        %main.c
75        %gx.c
76        %res.c
77        %dlist.c
78        %../util/cbparse.c
79        %png_load.c
80        %png_save.c
81        %ttf_load.c
82        %audio.c
83        %joystick.c
84    ]
85]
Note: See TracBrowser for help on using the browser.