mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
Merge branch 'gtk3' of git://github.com/swt2c/Phoenix into gtk3
This commit is contained in:
7
wscript
7
wscript
@@ -46,6 +46,8 @@ def options(opt):
|
||||
help='One or more comma separated architecture names to be used for '
|
||||
'the Mac builds. Should be at least a subset of the architectures '
|
||||
'used by wxWidgets and Python')
|
||||
opt.add_option('--gtk3', dest='gtk3', action='store_true', default=False,
|
||||
help='On Linux build for gtk3 (default gtk2)')
|
||||
opt.add_option('--msvc_arch', dest='msvc_arch', default='x86', action='store',
|
||||
help='The architecture to target for MSVC builds. Supported values '
|
||||
'are: "x86" or "x64"')
|
||||
@@ -224,7 +226,10 @@ def configure(conf):
|
||||
# GTK2 port of wxWidgets. If we ever support other ports then
|
||||
# this code will need to be adjusted.
|
||||
if not isDarwin:
|
||||
gtkflags = os.popen('pkg-config gtk+-2.0 --cflags', 'r').read()[:-1]
|
||||
if conf.options.gtk3:
|
||||
gtkflags = os.popen('pkg-config gtk+-3.0 --cflags', 'r').read()[:-1]
|
||||
else:
|
||||
gtkflags = os.popen('pkg-config gtk+-2.0 --cflags', 'r').read()[:-1]
|
||||
conf.env.CFLAGS_WX += gtkflags.split()
|
||||
conf.env.CXXFLAGS_WX += gtkflags.split()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user