Bug 1882679 - Add a skeleton app for iOS. r=firefox-build-system-reviewers,ahochheiden

Differential Revision: https://phabricator.services.mozilla.com/D203072
This commit is contained in:
Mike Hommey 2024-03-01 19:31:15 +00:00
parent e1b7188a72
commit 7f59d6be5b
4 changed files with 38 additions and 0 deletions

View File

@ -745,6 +745,8 @@ def real_target(value, host, shell, project, application):
else ("arm", "androideabi")
)
return split_triplet(f"{target_cpu}-unknown-linux-{target_system}")
if project == "mobile/ios":
return split_triplet("aarch64-apple-ios")
return host
# If --target was only given a cpu arch, expand it with the
# non-cpu part of the host. For mobile/android, expand it with
@ -755,6 +757,8 @@ def real_target(value, host, shell, project, application):
rest = "unknown-linux-android"
if target.startswith("arm"):
rest += "eabi"
elif project == "mobile/ios":
rest = "apple-ios"
else:
cpu, rest = host.alias.split("-", 1)
target = "-".join((target, rest))

10
mobile/ios/app.mozbuild Normal file
View File

@ -0,0 +1,10 @@
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
include("/toolkit/toolkit.mozbuild")
DIRS += [
"/mobile/ios",
]

8
mobile/ios/moz.build Normal file
View File

@ -0,0 +1,8 @@
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
with Files("**"):
BUG_COMPONENT = ("Core", "General")

16
mobile/ios/moz.configure Normal file
View File

@ -0,0 +1,16 @@
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
imply_option("MOZ_PLACES", True)
@depends(target)
def check_target(target):
if target.os != "iOS":
die("Cannot build mobile/ios with a target other than an iOS one")
include("../../toolkit/moz.configure")