2015-06-24 19:32:46 +02:00
|
|
|
from waflib import Task, TaskGen
|
2015-06-26 21:42:02 +02:00
|
|
|
from waflib.extras import xcode
|
2015-06-24 19:32:46 +02:00
|
|
|
top = '.'
|
|
|
|
out = 'build'
|
2015-06-25 00:44:28 +02:00
|
|
|
APPNAME = 'Avocada'
|
|
|
|
VERSION = '1.0'
|
2015-06-24 19:32:46 +02:00
|
|
|
|
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)'
|
2015-06-24 19:32:46 +02:00
|
|
|
|
|
|
|
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')
|
|
|
|
},
|
2015-06-26 21:42:02 +02:00
|
|
|
target='MyLib',
|
2015-07-04 22:56:54 +02:00
|
|
|
target_type='framework'
|
2015-06-26 21:42:02 +02:00
|
|
|
)
|
2015-07-03 21:16:27 +02:00
|
|
|
|
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()
|
|
|
|
|
2015-07-03 21:16:27 +02:00
|
|
|
|