mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
iphone example
This commit is contained in:
parent
5bad8c7d34
commit
488ce9218a
1
demos/mac_app/sources/dump_sbpl.c
Normal file
1
demos/mac_app/sources/dump_sbpl.c
Normal file
@ -0,0 +1 @@
|
||||
int main() {return 0; }
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user