Add option to enable G/YTK debug
This commit is contained in:
parent
d7b7923232
commit
85e361044b
5
wscript
5
wscript
@ -444,6 +444,9 @@ int main() { return 0; }''',
|
|||||||
if opt.gprofile:
|
if opt.gprofile:
|
||||||
debug_flags = [ flags_dict['gprofile'] ]
|
debug_flags = [ flags_dict['gprofile'] ]
|
||||||
|
|
||||||
|
if opt.gdebug:
|
||||||
|
debug_flags.append('-DG_ENABLE_DEBUG')
|
||||||
|
|
||||||
# OSX
|
# OSX
|
||||||
if platform == 'darwin':
|
if platform == 'darwin':
|
||||||
if re.search ("^13[.]", version) is not None:
|
if re.search ("^13[.]", version) is not None:
|
||||||
@ -885,6 +888,8 @@ def options(opt):
|
|||||||
help='Build a version suitable for distribution as a zero-cost binary')
|
help='Build a version suitable for distribution as a zero-cost binary')
|
||||||
opt.add_option('--profile', action='store_true', default=False, dest='profile',
|
opt.add_option('--profile', action='store_true', default=False, dest='profile',
|
||||||
help='Compile for use with profiling tools requiring a frame pointer')
|
help='Compile for use with profiling tools requiring a frame pointer')
|
||||||
|
opt.add_option('--gtk-debug', action='store_true', default=False, dest='gdebug',
|
||||||
|
help='Enable g/ytk debug mode (G_ENABLE_DEBUG)')
|
||||||
opt.add_option('--gprofile', action='store_true', default=False, dest='gprofile',
|
opt.add_option('--gprofile', action='store_true', default=False, dest='gprofile',
|
||||||
help='Compile for use with gprofile')
|
help='Compile for use with gprofile')
|
||||||
opt.add_option('--libjack', type='string', default="auto", dest='libjack_link',
|
opt.add_option('--libjack', type='string', default="auto", dest='libjack_link',
|
||||||
|
Loading…
Reference in New Issue
Block a user