Skip to content

Commit b6f2714

Browse files
feat: ninja build for iOS (#174)
* feat: ninja build for ios * Sorted for readability Co-authored-by: Christian Clauss <[email protected]> * simplify Co-authored-by: Christian Clauss <[email protected]> Co-authored-by: Christian Clauss <[email protected]>
1 parent b847219 commit b6f2714

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pylib/gyp/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ def CopyTool(flavor, out_path, generator_flags={}):
470470
"os400": "flock",
471471
"solaris": "flock",
472472
"mac": "mac",
473+
"ios": "mac",
473474
"win": "win",
474475
}.get(flavor, None)
475476
if not prefix:

pylib/gyp/generator/ninja.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ def WriteTarget(self, spec, config_name, config, link_deps, compile_deps):
15831583
elif spec["type"] == "static_library":
15841584
self.target.binary = self.ComputeOutput(spec)
15851585
if (
1586-
self.flavor not in ("mac", "openbsd", "netbsd", "win")
1586+
self.flavor not in ("ios", "mac", "netbsd", "openbsd", "win")
15871587
and not self.is_standalone_static_library
15881588
):
15891589
self.ninja.build(
@@ -2496,7 +2496,7 @@ def GenerateOutputForConfig(target_list, target_dicts, data, params, config_name
24962496
),
24972497
)
24982498

2499-
if flavor != "mac" and flavor != "win":
2499+
if flavor not in ("ios", "mac", "win"):
25002500
master_ninja.rule(
25012501
"alink",
25022502
description="AR $out",

0 commit comments

Comments
 (0)