Skip to content

Commit d36612a

Browse files
committed
Build using the .xcworkspace to let xcodebuild find the WTF.a dependency automatically
1 parent 9fa1244 commit d36612a

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

make.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,11 @@ class PebbleKitiOSException (Exception):
2121
def build(out, derived_data_path):
2222
outdir = out if out else tempfile.mkdtemp()
2323

24-
wtf = FrameworkBuild("WTF/WTF.xcodeproj",
25-
"WTF iOS", "Production", outdir, name="wtf",
26-
derived_data_path=derived_data_path)
27-
wtf.build()
28-
29-
jsc = FrameworkBuild("JavaScriptCore/JavaScriptCore.xcodeproj",
30-
"JavaScriptCore iOS", "Production", outdir,
24+
jsc = FrameworkBuild(workspace="JavaScriptCore-iOS.xcworkspace",
25+
scheme="JavaScriptCore-iOS",
3126
name="JavaScriptCore",
27+
conf="Production",
28+
outdir=outdir,
3229
derived_data_path=derived_data_path)
3330
jsc.build()
3431

xcodebuild.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ def public_headers_path(self):
118118

119119

120120
class FrameworkBuild(object):
121-
def __init__(self, project, scheme=None, conf="Release", outdir=None,
122-
name=None, derived_data_path=None):
121+
def __init__(self, project=None, workspace=None, scheme=None,
122+
conf="Release", outdir=None, name=None,
123+
derived_data_path=None):
123124
self.scheme = scheme
124125
self.name = name
125126
self.devicebuild = XcodeBuild(project,

0 commit comments

Comments
 (0)