]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/ipc/ipc.bkl
Support using GetTextExtent() with empty string to get descent in wxOSX.
[wxWidgets.git] / samples / ipc / ipc.bkl
index 6d840e0300dc569675154fc98c81782f18daee81..5f6802540e8457134d5325e657e8deb9b26eeee4 100644 (file)
@@ -3,18 +3,45 @@
 
     <include file="../../build/bakefiles/common_samples.bkl"/>
 
-    <exe id="ipcclient" template="wx_sample" template_append="wx_append">
+    <if cond="FORMAT=='gnu'">
+        <!-- as we can't (easily) test for GUI, build them always -->
+        <set var="cond_build_gui">1</set>
+    </if>
+    <if cond="FORMAT!='gnu'">
+        <set var="cond_build_gui">USE_GUI=='1'</set>
+    </if>
+
+    <exe id="ipcclient" template="wx_sample" template_append="wx_append" cond="$(cond_build_gui)">
         <sources>client.cpp</sources>
+        <headers>client.h connection.h ipcsetup.h</headers>
         <wx-lib>core</wx-lib>
         <wx-lib>net</wx-lib>
         <wx-lib>base</wx-lib>
     </exe>
 
-    <exe id="ipcserver" template="wx_sample" template_append="wx_append">
+    <exe id="ipcserver" template="wx_sample" template_append="wx_append" cond="$(cond_build_gui)">
         <sources>server.cpp</sources>
+        <headers>server.h connection.h ipcsetup.h</headers>
         <wx-lib>core</wx-lib>
         <wx-lib>net</wx-lib>
         <wx-lib>base</wx-lib>
     </exe>
 
+    <!-- WinCE doesn't have console applications: -->
+    <if cond="FORMAT!='msevc4prj'">
+        <exe id="baseipcclient" template="wx_sample_console" template_append="wx_append_base">
+            <sources>baseclient.cpp</sources>
+            <headers>connection.h ipcsetup.h</headers>
+            <wx-lib>net</wx-lib>
+            <wx-lib>base</wx-lib>
+        </exe>
+
+        <exe id="baseipcserver" template="wx_sample_console" template_append="wx_append_base">
+            <sources>baseserver.cpp</sources>
+            <headers>connection.h ipcsetup.h</headers>
+            <wx-lib>net</wx-lib>
+            <wx-lib>base</wx-lib>
+        </exe>
+    </if>
+
 </makefile>