]> git.saurik.com Git - wxWidgets.git/blobdiff - build/bakefiles/common_samples.bkl
compilation fix
[wxWidgets.git] / build / bakefiles / common_samples.bkl
index d293b934de299badda9c8270f35ec895873b0b81..4352f8bcc1b1d7d9a9e7b131630567501d174a6a 100644 (file)
@@ -1,8 +1,6 @@
 <?xml version="1.0" ?>
 <makefile>
     
-    <set var="BUILDING_LIB">0</set>
-
     <include file="common.bkl"/>
 
     
             </if>
         </set>
     </if>
+
+    <set var="DLLFLAG">
+        <if cond="SHARED=='1'">WXUSINGDLL</if>
+    </set>
     
     <template id="wx_sample" template="wx">
         <include>$(SRCDIR)</include>
         <!-- Always link against the wxWin library in monolithic build: -->
         <sys-lib>$(WXLIB_MONO)</sys-lib>
         <ldflags>$(SAMPLES_RPATH_FLAG)</ldflags>
+        <define>$(DLLFLAG)</define>
+        <app-type>gui</app-type>
 
         <mac-res cond="FORMAT=='autoconf'">$(MACOSX_RESOURCES)</mac-res>
     </template>