mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 18:07:12 +01:00
Merge pull request #1770 from mimon/xcode6-updates-july
Updated docs for xcode6 tool. Also, xcode6 tool tested in XCode 7
This commit is contained in:
commit
445c0214ff
@ -7,32 +7,36 @@ VERSION = '1.0'
|
|||||||
"""
|
"""
|
||||||
This demo will create an XCode project containing
|
This demo will create an XCode project containing
|
||||||
an App bundle target, a dynamic library target,
|
an App bundle target, a dynamic library target,
|
||||||
a static library target and an executable target
|
a static library target and an executable target.
|
||||||
|
The generated XCode project can then be opened
|
||||||
|
and XCode can build those targets.
|
||||||
|
Tested in XCode 6 & 7.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def configure(conf):
|
def configure(conf):
|
||||||
|
|
||||||
conf.env.FRAMEWORK_VERSION = '1.0'
|
conf.env.FRAMEWORK_VERSION = '1.0'
|
||||||
conf.env.ARCHS = 'x86_64'
|
conf.env.ARCHS = 'x86_64'
|
||||||
conf.env.MACOSX_DEPLOYMENT_TARGET = '10.9'
|
conf.env.INSTALL_PATH = '/my/install/path'
|
||||||
conf.env.SDKROOT = 'macosx10.9'
|
|
||||||
|
|
||||||
|
# This must be called at the end of configure()
|
||||||
conf.load('xcode6')
|
conf.load('xcode6')
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
|
bld.load('xcode6')
|
||||||
tg = bld.framework(
|
tg = bld.framework(
|
||||||
includes='include',
|
includes='include',
|
||||||
|
|
||||||
# Specify source files.
|
# Specify source files.
|
||||||
|
# This will become the groups (folders) inside XCode.
|
||||||
# Give a dictionary to group by name. Use a list to add everything in one
|
# Give a dictionary to group by name. Use a list to add everything in one
|
||||||
source_files={
|
source_files={
|
||||||
'MyLibSource': bld.path.ant_glob('src/MyLib/*.cpp|*.m|*.mm'),
|
'MyLibSource': bld.path.ant_glob('src/MyLib/*.cpp|*.m|*.mm'),
|
||||||
'Include': bld.path.ant_glob(incl=['include/MyLib/*.h', 'include'], dir=True)
|
'Include': bld.path.ant_glob(incl=['include/MyLib/*.h', 'include'], dir=True)
|
||||||
},
|
},
|
||||||
|
|
||||||
# export_headers will put the files in the Header
|
# export_headers will put the files in the
|
||||||
# buildphase in Xcode - i.e ship them with your .framework
|
# 'Header Build Phase' in Xcode - i.e tell XCode to ship them with your .framework
|
||||||
export_headers=bld.path.ant_glob(incl=['include/MyLib/*.h', 'include/MyLib/SupportLib'], dir=True),
|
export_headers=bld.path.ant_glob(incl=['include/MyLib/*.h', 'include/MyLib/SupportLib'], dir=True),
|
||||||
target='MyLib',
|
target='MyLib',
|
||||||
install='~/Library/Frameworks'
|
install='~/Library/Frameworks'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#! /usr/bin/env python
|
#! /usr/bin/env python
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
# XCode 3/XCode 4 generator for Waf
|
# XCode 3/XCode 4/XCode 6/Xcode 7 generator for Waf
|
||||||
# Based on work by Nicolas Mercier 2011
|
# Based on work by Nicolas Mercier 2011
|
||||||
# Extended by Simon Warg 2015, https://github.com/mimon
|
# Extended by Simon Warg 2015, https://github.com/mimon
|
||||||
# XCode project file format based on http://www.monobjc.net/xcode-project-file-format.html
|
# XCode project file format based on http://www.monobjc.net/xcode-project-file-format.html
|
||||||
@ -48,7 +48,9 @@ def build(bld):
|
|||||||
|
|
||||||
# You can also make bld.dylib, bld.app, bld.stlib ...
|
# You can also make bld.dylib, bld.app, bld.stlib ...
|
||||||
|
|
||||||
$ waf configure xcode6
|
# To generate your XCode project, open the folder with the wscript
|
||||||
|
# in your terminal and run the following:
|
||||||
|
# $ waf configure xcode6
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# TODO: support iOS projects
|
# TODO: support iOS projects
|
||||||
|
Loading…
Reference in New Issue
Block a user