2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 09:57:15 +01:00

iphone example

This commit is contained in:
Thomas Nagy 2012-06-16 02:16:18 +02:00
parent 5bad8c7d34
commit 488ce9218a
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1 @@
int main() {return 0; }

View File

@ -33,6 +33,21 @@ def build(bld):
install_path = '${PREFIX}',
)
return
# obscure iphone stuff
bld.env.LIPO = '/usr/bin/lipo'
ARCH = {'arm6':'arm6', 'cocoa': ['i386', 'x64']}
for arch, val in ARCH.items():
bld.env.ARCH = val
bld(source='sources/dump_sbpl.c', target='%s/dump_sbpl' % arch, features='c cprogram')
bld(rule='touch ${TGT} # ${LIPO} -create ${SRC} -output ${TGT}',
shell = True,
target = 'dump_sbpl.app/dump_sbpl',
source = ['%s/dump_sbpl' % x for x in ARCH.keys()]
)
from waflib import TaskGen
@TaskGen.extension('.m')
def m_hook(self, node):