Skip to content

Commit

Permalink
Build using the .xcworkspace to let xcodebuild find the WTF.a depende…
Browse files Browse the repository at this point in the history
…ncy automatically
  • Loading branch information
martijnthe committed Jan 17, 2014
1 parent 9fa1244 commit d36612a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
11 changes: 4 additions & 7 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,11 @@ class PebbleKitiOSException (Exception):
def build(out, derived_data_path):
outdir = out if out else tempfile.mkdtemp()

wtf = FrameworkBuild("WTF/WTF.xcodeproj",
"WTF iOS", "Production", outdir, name="wtf",
derived_data_path=derived_data_path)
wtf.build()

jsc = FrameworkBuild("JavaScriptCore/JavaScriptCore.xcodeproj",
"JavaScriptCore iOS", "Production", outdir,
jsc = FrameworkBuild(workspace="JavaScriptCore-iOS.xcworkspace",
scheme="JavaScriptCore-iOS",
name="JavaScriptCore",
conf="Production",
outdir=outdir,
derived_data_path=derived_data_path)
jsc.build()

Expand Down
5 changes: 3 additions & 2 deletions xcodebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ def public_headers_path(self):


class FrameworkBuild(object):
def __init__(self, project, scheme=None, conf="Release", outdir=None,
name=None, derived_data_path=None):
def __init__(self, project=None, workspace=None, scheme=None,
conf="Release", outdir=None, name=None,
derived_data_path=None):
self.scheme = scheme
self.name = name
self.devicebuild = XcodeBuild(project,
Expand Down

0 comments on commit d36612a

Please sign in to comment.