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

45 lines
933 B
Plaintext
Raw Normal View History

from waflib import Task, TaskGen
from waflib.extras import xcode
top = '.'
out = 'build'
APPNAME = 'Avocada'
VERSION = '1.0'
2015-07-04 22:56:54 +02:00
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):
2015-07-07 12:17:43 +02:00
bld.load('cxx')
2015-07-03 23:41:05 +02:00
tg = bld(
2015-07-07 12:17:43 +02:00
features='cxx',
2015-07-05 15:53:59 +02:00
source=bld.path.ant_glob('src/MyLib/*.cpp'),
includes='include',
group_files={
'Include': bld.path.ant_glob('include/MyLib/*.h')
},
target='MyLib',
2015-07-04 22:56:54 +02:00
target_type='framework'
)
2015-07-07 12:17:43 +02:00
tg2 = bld(
features='cxx',
2015-07-04 12:11:10 +02:00
source=bld.path.ant_glob('src/*.cpp|'),
2015-07-03 23:41:05 +02:00
includes=tg.includes,
target='MyApp',
2015-07-04 22:56:54 +02:00
target_type='app',
2015-07-03 23:41:05 +02:00
link_framework=['MyLib'],
2015-07-07 12:17:43 +02:00
use='MyLib Olle',
2015-07-03 23:41:05 +02:00
settings={"Debug": {"CONFIG_NAME": 'Debug'}}
)
2015-07-07 12:17:43 +02:00
# print tg2.env
# tg2.process_use()
# print bld.get_targets()