]> git.saurik.com Git - wxWidgets.git/blobdiff - build/bakefiles/common_contrib.bkl
Add <contrib-lib> bakefile tag. Like <wx-lib> except that in VC++ '.dsw' files
[wxWidgets.git] / build / bakefiles / common_contrib.bkl
index 7ec2bd88760dd0465f37d6b3de48ea79f366d2a9..4c95e7d2ad0734cd14eb6ec5aa226fa7a0cf77dc 100644 (file)
     
     <template id="wx_contrib_headers">
         <srcdir>$(CONTRIB_HDR_DIR)</srcdir>
-        <install-to>$(INCLUDEDIR)/wx-$(WXVER_MAJOR).$(WXVER_MINOR)$(WX_FLAVOUR)</install-to>
+        <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>