prevent demos/mac_app from running on non-mac platforms

This commit is contained in:
Thomas Nagy 2012-08-04 02:41:22 +02:00
parent 77bfe54810
commit bb6c3702c0
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,8 @@ def options(opt):
def configure(conf):
conf.load('compiler_c')
if not conf.env.ARCH_ST:
conf.fatal('This example is for macs only')
conf.env.FRAMEWORK_COCOA = 'Cocoa'
conf.env.ARCH_COCOA = ['i386', 'x86_64']