waf/demos/xcode/wscript

46 lines
934 B
Python

from waflib import Task, TaskGen
from waflib.extras import xcode
top = '.'
out = 'build'
APPNAME = 'Avocada'
VERSION = '1.0'
def configure(conf):
conf.load('cxx')
conf.env.FRAMEWORK_VERSION = '1.0'
conf.env.CONFIG_NAME = 'Kuk'
conf.env.ARCHS = 'x86_64'
conf.env.MACOSX_DEPLOYMENT_TARGET = '10.9'
conf.env.SDKROOT = 'macosx10.9'
conf.env.PRODUCT_NAME = '$(TARGET_NAME)'
def build(bld):
bld.load('cxx')
tg = bld(
features='cxx',
source=bld.path.ant_glob('src/MyLib/*.cpp'),
includes='include',
group_files={
'Include': bld.path.ant_glob('include/MyLib/*.h')
},
target='MyLib',
target_type='framework'
)
tg2 = bld(
features='cxx',
source=bld.path.ant_glob('src/*.cpp|'),
includes=tg.includes,
target='MyApp',
target_type='app',
link_framework=['MyLib'],
use='MyLib Olle',
settings={"Debug": {"CONFIG_NAME": 'Debug'}}
)
# print tg2.env
# tg2.process_use()
# print bld.get_targets()