added 'wxgui' template to make writing makefiles for gui apps a bit easier
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -76,8 +76,7 @@ minimal.bkl
|
|||||||
|
|
||||||
<include file="presets/wx.bkl"/>
|
<include file="presets/wx.bkl"/>
|
||||||
|
|
||||||
<exe id="minimal" template="wx">
|
<exe id="minimal" template="wxgui">
|
||||||
<app-type>gui</app-type>
|
|
||||||
<debug-info>on</debug-info>
|
<debug-info>on</debug-info>
|
||||||
<runtime-libs>dynamic</runtime-libs>
|
<runtime-libs>dynamic</runtime-libs>
|
||||||
|
|
||||||
@@ -217,8 +216,12 @@ In order to build the software in debug mode.
|
|||||||
To simplify the building of wxWidgets-based projects, wxWidgets contains a
|
To simplify the building of wxWidgets-based projects, wxWidgets contains a
|
||||||
set of Bakefiles that automatically configure your build system to be
|
set of Bakefiles that automatically configure your build system to be
|
||||||
compatible with wxWidgets. As you'll notice in the sample above, the sample
|
compatible with wxWidgets. As you'll notice in the sample above, the sample
|
||||||
project uses the wx template. Once you've included the template, your software
|
project uses the "wxgui" template. Once you've included the template, your software
|
||||||
will now build with wxWidgets support.
|
will now build as a GUI application with wxWidgets support.
|
||||||
|
|
||||||
|
There's also "wxconsole" template for building console-based wxWidgets applications
|
||||||
|
and "wx" template that doesn't specify application type (GUI or console) and can be
|
||||||
|
used e.g. for building libraries that use wxWidgets.
|
||||||
|
|
||||||
But since the wx presets don't exist in the Bakefile presets subfolder,
|
But since the wx presets don't exist in the Bakefile presets subfolder,
|
||||||
Bakefile needs to know where to find these presets. The "-I" command adds the
|
Bakefile needs to know where to find these presets. The "-I" command adds the
|
||||||
|
@@ -321,10 +321,14 @@
|
|||||||
<debug-info>$(_DEBUGINFO)</debug-info>
|
<debug-info>$(_DEBUGINFO)</debug-info>
|
||||||
</if>
|
</if>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<!-- Template for building wx-based GUI applications -->
|
||||||
|
<template id="wxgui" template="wx">
|
||||||
|
<app-type>gui</app-type>
|
||||||
|
</template>
|
||||||
|
|
||||||
<!-- Template for building wx-based console applications -->
|
<!-- Template for building wx-based console applications -->
|
||||||
<template id="wxconsole" template="wx">
|
<template id="wxconsole" template="wx">
|
||||||
<define>wxUSE_GUI=0</define>
|
|
||||||
<app-type>console</app-type>
|
<app-type>console</app-type>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@@ -5,8 +5,7 @@
|
|||||||
|
|
||||||
<include file="presets/wx.bkl"/>
|
<include file="presets/wx.bkl"/>
|
||||||
|
|
||||||
<exe id="minimal" template="wx">
|
<exe id="minimal" template="wxgui">
|
||||||
<app-type>gui</app-type>
|
|
||||||
|
|
||||||
<!-- this sample builds always in debug mode; if you have
|
<!-- this sample builds always in debug mode; if you have
|
||||||
compiled wxWidgets in release mode, you'll get link errors! -->
|
compiled wxWidgets in release mode, you'll get link errors! -->
|
||||||
|
Reference in New Issue
Block a user