mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
Initialize some variables that we'll be assigning to later, otherwise they won't get the debug flags and etc. (WAF bug?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
8
wscript
8
wscript
@@ -94,6 +94,10 @@ def configure(conf):
|
||||
|
||||
else:
|
||||
# Configuration stuff for non-Windows ports using wx-config
|
||||
conf.env.CFLAGS_WX = list()
|
||||
conf.env.CXXFLAGS_WX = list()
|
||||
conf.env.CFLAGS_WXPY = list()
|
||||
conf.env.CXXFLAGS_WXPY = list()
|
||||
|
||||
# Check wx-config exists and fetch some values from it
|
||||
conf.env.wx_config = conf.options.wx_config
|
||||
@@ -106,7 +110,7 @@ def configure(conf):
|
||||
args='--cxxflags --libs adv,core,net',
|
||||
uselib_store='WXADV', mandatory=True)
|
||||
|
||||
|
||||
|
||||
# NOTE: This assumes that if the platform is not win32 (from
|
||||
# the test above) and not darwin then we must be using the
|
||||
# GTK2 port of wxWidgets. If we ever support other ports then
|
||||
@@ -128,7 +132,7 @@ def configure(conf):
|
||||
# Add basic debug info for all builds
|
||||
conf.env.CFLAGS_WXPY.append('-g')
|
||||
conf.env.CXXFLAGS_WXPY.append('-g')
|
||||
|
||||
|
||||
# And if --debug is set turn on more detailed debug info and turn off optimization
|
||||
if conf.env.debug:
|
||||
conf.env.CFLAGS_WXPY.extend(['-ggdb', '-O0'])
|
||||
|
||||
Reference in New Issue
Block a user