]> git.saurik.com Git - wxWidgets.git/blobdiff - build/bakefiles/common_contrib.bkl
fix the problem with parsing HTML comments (closes bug 1116708; based on patch 1168583)
[wxWidgets.git] / build / bakefiles / common_contrib.bkl
index 9ef11665050b8848c149f20f053496d8a49e54f4..4c95e7d2ad0734cd14eb6ec5aa226fa7a0cf77dc 100644 (file)
@@ -1,9 +1,13 @@
 <?xml version="1.0" ?>
+<!-- $Id$ -->
+
 <makefile>
     
-    <include file="common.bkl"/>
+    <if cond="not isdefined('file_common_samples_included')">
+        <include file="common.bkl"/>
+    </if>
     
-    <set var="CONTRIB_HDR_DIR">$(SRCDIR)/../../include</set>
+    <set var="CONTRIB_HDR_DIR" overwrite="0">$(SRCDIR)/../../include</set>
     
     <!-- =============================================================== -->
     <!--                      Contrib lib helpers:                       -->
         <include>$(CONTRIB_HDR_DIR)</include>
     </template>
     
+    <if cond="isdefined('file_common_samples_included')">
+        <template id="wx_contrib_sample" template="wx_sample">
+            <include>$(CONTRIB_HDR_DIR)</include>
+        </template>
+        <template id="wx_contrib_util" template="wx_util">
+            <include>$(CONTRIB_HDR_DIR)</include>
+        </template>
+    </if>
+    
     <template id="wx_contrib_dll"
               template="wx_dll_b" template_append="wx_append">
         <include>$(CONTRIB_HDR_DIR)</include>
-        <!-- Always link against the wxWin library in monolithic build: -->
-        <sys-lib>$(WXLIB_MONO)</sys-lib>
     </template>
-
+    
     <template id="wx_contrib_headers">
         <srcdir>$(CONTRIB_HDR_DIR)</srcdir>
+        <install-to>$(INCLUDEDIR)/wx-$(WX_RELEASE)$(WX_FLAVOUR)</install-to>
     </template>
-    
+
+    <!-- Link against one contrib library. Value must be literal! -->
+    <define-tag name="contrib-lib" rules="exe,dll,module">
+        <sys-lib>$(wxwin.libToLink(value))</sys-lib>
+        <ldlibs>$(wxwin.extraLdflags(value))</ldlibs>
+        <if cond="IS_MSVC_PRJ=='1' and MONOLITHIC=='0'">
+            <depends-on-dsp>
+                $(wxwin.makeContribDspDependency(value))
+            </depends-on-dsp>
+        </if>
+    </define-tag>
+
 </makefile>