]> git.saurik.com Git - wxWidgets.git/blame_incremental - build/bakefiles/opengl.bkl
moved compat content to formats, there will be more wx-specific formats
[wxWidgets.git] / build / bakefiles / opengl.bkl
... / ...
CommitLineData
1<?xml version="1.0" ?>
2<!-- $Id$ -->
3
4<makefile>
5
6 <!-- ================================================================= -->
7 <!-- OpenGL canvas library -->
8 <!-- ================================================================= -->
9
10 <set var="WXLIBGLDEP_CORE">
11 <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('core')))</if>
12 </set>
13 <set var="WXLIBGLDEP_BASE">
14 <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('base')))</if>
15 </set>
16
17 <dll id="gldll" template="wx_dll"
18 cond="SHARED=='1' and USE_GUI=='1' and USE_OPENGL=='1'">
19 <define>WXUSINGDLL</define>
20 <define>WXMAKINGDLL_GL</define>
21 <sources>$(OPENGL_SRC)</sources>
22 <msvc-headers>$(OPENGL_HDR)</msvc-headers>
23
24 <!-- link against base and core libs in multilib build: -->
25 <sys-lib>$(WXLIBGLDEP_CORE)</sys-lib>
26 <sys-lib>$(WXLIBGLDEP_BASE)</sys-lib>
27 <depends>basedll</depends>
28 <depends>coredll</depends>
29 <!-- link against the wxWin library in monolithic build: -->
30 <sys-lib>$(WXLIB_MONO)</sys-lib>
31
32 <if cond="FORMAT=='autoconf'">
33 <ldflags>$(EXTRALIBS_OPENGL)</ldflags>
34 </if>
35 <!-- system libraries on windows: -->
36 <if cond="FORMAT!='autoconf'">
37 <if cond="COMPILER=='wat' or COMPILER=='gcc'">
38 <sys-lib>opengl32</sys-lib>
39 <sys-lib>glu32</sys-lib>
40 </if>
41 </if>
42 </dll>
43
44 <lib id="gllib" template="wx_lib"
45 cond="SHARED=='0' and USE_GUI=='1' and USE_OPENGL=='1'">
46 <sources>$(OPENGL_SRC)</sources>
47 <msvc-headers>$(OPENGL_HDR)</msvc-headers>
48 </lib>
49
50</makefile>