]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/ipc/ipc.bkl
GTK+'s native controls usually have a bigger line height
[wxWidgets.git] / samples / ipc / ipc.bkl
index b852b3a01a9776eb614ef4117c0bd655b16d5f47..ee919ecde51d54ca3f3e9d69e1f459f8c7a9dade 100644 (file)
@@ -3,10 +3,41 @@
 
     <include file="../../build/bakefiles/common_samples.bkl"/>
 
 
     <include file="../../build/bakefiles/common_samples.bkl"/>
 
-    <exe id="ipc" template="wx_sample" template_append="wx_append">
-        <sources>ipc.cpp</sources>
+    <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>
+        <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" cond="$(cond_build_gui)">
+        <sources>server.cpp</sources>
         <wx-lib>core</wx-lib>
         <wx-lib>core</wx-lib>
-        <win32-res>ipc.rc</win32-res>
+        <wx-lib>net</wx-lib>
+        <wx-lib>base</wx-lib>
     </exe>
 
     </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>
+            <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>
+            <wx-lib>net</wx-lib>
+            <wx-lib>base</wx-lib>
+        </exe>
+    </if>
+
 </makefile>
 </makefile>