Commit graph

71 commits

Author SHA1 Message Date
Marc Durdin
0d27ac91f7 maint(mac): use mac_ prefix for functions in mac.inc.sh
* Also renames resources/environment.sh to resources/build/mac/xcode-environment.inc.sh.
* Adds a few more exclusions to linux/scripts/dist.sh

Fixes: #14478
Test-bot: skip
Build-bot: build
2025-08-20 05:40:32 +02:00
Marc Durdin
f03be501a6 maint(common): reorganize mac/ios build script includes
Move mac-specific build scripts and functions into our established
patterns for scripts under resources/build:

* new mac/mac.inc.sh for mac-specific functions, from mac-utils.inc.sh,
  utils.inc.sh, builder-basic.inc.sh
* move other mac-specific scripts into mac/

Relates-to: #14065
Build-bot: build
Test-bot: skip
2025-08-05 12:57:32 +10:00
Marc Durdin
f394245636 maint(common): consolidate builder scripts
Clarifies the confusing builder.inc.sh / build-utils.sh distinction by
giving the scripts more appropriate names. Most build scripts should use
builder-full.inc.sh; some helper scripts can use builder-basic.inc.sh.
Documented in resources/build/README.md.

Renames:
* resources/build/builder.inc.sh to resources/build/builder-full.inc.sh
* resources/build/build-utils.sh to resources/build/builder-basic.inc.sh

Other changes:
* Moves Android-specific functions out of builder-basic.inc.sh and into
  android/build.sh.
* Renames functions in builder-basic.inc.sh

More functions may be moved from builder-basic.inc.sh into utils.inc.sh
or other scripts in the future.

Fixes: #14065
Build-bot: build all
Test-bot: skip
2025-08-02 08:11:24 +10:00
Marc Durdin
65158a0526 maint(common): rename shellHelperFunctions.sh to utils.inc.sh
Adds documentation for various functions, removes unused functions (a
couple of simple, very lightly used functions were unDRYed; these could
go back the other way across all shell scripts if necessary). TODO items
noted for follow-up refactoring.

Fixes: #14275
Relates-to: #14269
Build-bot: build all
Test-bot: skip
2025-08-02 06:58:40 +10:00
Shawn Schantz
f80393d0ac chore(ios): increase version number to 15.6
includes firstvoices and sample projects this time
2025-02-13 11:01:49 +07:00
Marc Durdin
c99aecacde fix(ios): remove '--debug' from build declaration
The '--debug' flag should not be specified as a parameter in the
builder_describe call.
2024-03-11 12:02:57 -05:00
jahorton
585f3b6428 chore(ios): minor cleanup 2024-03-06 14:02:03 +07:00
jahorton
39c0cf6c64 fix(ios): sample build script --debug detection 2024-03-06 10:07:43 +07:00
sgschantz
a23644c0d8 remove more logging remnants 2024-01-20 09:32:04 +07:00
sgschantz
1f88c6f438 remove obsolete log reference 2024-01-20 08:41:00 +07:00
sgschantz
a61fb78860 remove XCGLogger from sample projects, correct subsystem names 2024-01-19 22:51:20 +07:00
sgschantz
5a9f91d796 add ZIPFoundation to sample projects 2023-11-15 16:27:53 +07:00
jahorton
0341a4a3d1 chore(ios): minor build-script cleanup 2023-07-06 12:15:04 +07:00
Joshua A. Horton
6b5228788d fix(ios): sample apps support for parent script option 2023-07-04 08:16:02 +07:00
Joshua A. Horton
0745407f6c fix(ios): sample build issue 2023-07-03 09:43:55 +07:00
Joshua A. Horton
b65a80f6f9 fix(ios): lots more fixes per PR review 2023-07-03 09:01:23 +07:00
Joshua A. Horton
bd333eb2c0 fix(ios): inverted condition for disabling code signing in samples 2023-06-27 12:15:44 +07:00
Joshua A. Horton
489c55d988 fix(ios): forgot to adjust include paths for build-utils.sh 2023-06-27 10:50:14 +07:00
Joshua A. Horton
90a08f1d55 change(ios): mass rework of ios-related scripts 2023-06-27 10:33:37 +07:00
Marc Durdin
6c5b27365a chore(mac): use mac cp for -R ops
Because we don't know if mac BSD cp or GNU cp will be first on the path,
where there is ambiguity (e.g. with -R flag), we will use the macOS cp
command in /bin to ensure that we have consistent results. The
alternative would be to fixup each instance of the cp parameters so that
they work consistently with either cp command, but given these scripts
can run only on macOS, that seems unnecessary.

This replaces the earlier change in 97c6331b5.
2023-04-09 07:05:44 +07:00
Marc Durdin
ce864ea923 chore: update standard script prolog to use builtin instead of dirname 2023-02-22 11:04:15 +07:00
Marc Durdin
463c7ff907 chore: remove greadlink from standard script prolog 2023-02-22 10:43:06 +07:00
sgschantz
5e9ae01afc explicitly disable bitcode in project 2023-01-18 08:44:01 +07:00
sgschantz
af874351bb explicitly disable bitcode in target 2023-01-17 16:13:11 +07:00
Marc Durdin
767927bf16 chore(common): use /usr/bin/env bash
Fixes up scripts (except under /linux) to use `#!/usr/bin/env bash`
instead of `#!/bin/bash` or `#!/bin/sh` so that we don't end up with
the ancient version of bash supplied with macOS.

This became urgent with this PR, because of bash-4.xisms in
build-utils.sh, for example on line 572:

```
if [[ -v _builder_params[$e] ]]; then
```
2022-07-25 14:59:37 +10:00
Marc Durdin
cc18058cfe chore(ios): rename run-xcodebuild to run_xcodebuild 2022-06-24 14:03:55 +10:00
Marc Durdin
291a5b67c2 chore(ios): include build-utils.sh for samples 2022-06-24 12:00:29 +10:00
Marc Durdin
0730098236 chore(ios): update ios/macos build scripts to log scripts
Adds run-xcodebuild function to wrap xcodebuild calls to keep logging
and error handling consistent. Currently used only by the iOS build; the
macOS build has a corresponding execBuildCommand function which does
pretty much the same thing (changing that would belong in a separate PR
I think and low priority.)
2022-06-24 11:37:46 +10:00
jahorton
a1fcaadd85 fix(ios/engine): engine migration must precede installs 2021-07-23 09:02:34 +07:00
Marc Durdin
5fac633fb6 fix(common): build script help param
When working on a new build script, I tripped over the `-?` question
mark help parameter here, as it needs to be escaped. Opted to fix all
the instances in our scripts, although AFAICT there would not have been
current bugs arising from this, as there were no conflicting one
character options lower in the case list.
2021-05-28 09:50:40 +10:00
jahorton
32bab3a248 change(ios): sets minimum iOS target version to 12 2021-05-27 13:57:05 +07:00
jahorton
83f6bad6b6 chore(ios): /usr/bin/env bash 2021-05-25 12:50:53 +07:00
jahorton
ceb4b07937 fix(ios/samples): framework linking 2021-05-25 09:45:25 +07:00
jahorton
14b6da9dbf fix(ios): KMSample2 build-link to dependencies 2021-05-24 15:26:09 +07:00
jahorton
282803cce8 fix(ios/samples): build stability, error propagation 2021-05-19 16:20:06 +07:00
jahorton
8e8b9e42b7 chore(ios): minor tidy-up 2021-05-19 12:28:25 +07:00
jahorton
dc14effdd0 chore(ios): samples integration, build stability 2021-05-19 11:54:10 +07:00
jahorton
007b3b6d45 chore(ios/samples): matching changes for KMSample2 2021-03-24 12:42:32 +07:00
jahorton
279d38192b fix(ios/samples): updates KMSample1 for v14 2021-03-24 12:31:29 +07:00
jahorton
cda3880aa6 fix(ios): Fixes in-app use of KMSample2 2020-02-11 11:07:39 +07:00
jahorton
2d2952f78a Ensures sample builds only build KMEI 2019-09-05 09:33:30 +07:00
jahorton
7fa563bc13 Better enforcement for sample -no-codesign flag 2019-09-05 09:02:43 +07:00
jahorton
6ee77c2897 Restores original sample group indentifier 2019-09-04 16:25:59 +07:00
jahorton
880def78b8 Fixes link for KMSample1 to Reachability.framework 2019-09-04 16:22:23 +07:00
jahorton
a1d4a9f44d Patches up KMSample2 2019-09-04 16:19:43 +07:00
jahorton
a0ddcb63f6 Fixes iOS Sample1 2019-09-04 14:29:08 +07:00
darcywong00
2bbadd4cf5 [iOS] Use BCP-47 codes for registering keyboards 2018-02-22 08:57:36 +07:00
Gabriel Wong
161a129407 Fix samples 2017-12-11 12:42:49 +07:00
Gabriel Wong
35c40be9a6 Use log directly instead of via kmLog 2017-12-07 14:37:24 +07:00
Gabriel Wong
41374ac9bf Embed required frameworks in demo and samples 2017-12-07 11:10:06 +07:00