2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-12-01 22:40:46 +01:00
waf/demos/xcode/wscript
2015-07-07 17:54:08 +02:00

45 lines
933 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()