File tree Expand file tree Collapse file tree 3 files changed +51
-6
lines changed Expand file tree Collapse file tree 3 files changed +51
-6
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # # START STANDARD BUILD SCRIPT INCLUDE
3
+ # adjust relative paths as necessary
4
+ THIS_SCRIPT=" $( readlink -f " ${BASH_SOURCE[0]} " ) "
5
+ . " ${THIS_SCRIPT%/* } /resources/build/builder.inc.sh"
6
+ # # END STANDARD BUILD SCRIPT INCLUDE
7
+
8
+ builder_describe " Keyman -- all projects" \
9
+ " :common" \
10
+ " :core" \
11
+ " :android" \
12
+ " :ios" \
13
+ " :linux" \
14
+ " :mac" \
15
+ " :web" \
16
+ " :windows" \
17
+ " :developer" \
18
+ clean \
19
+ configure \
20
+ build \
21
+ test \
22
+ install \
23
+ publish
24
+
25
+ builder_describe_platform \
26
+ :android android-studio \
27
+ :ios mac \
28
+ :linux linux \
29
+ :mac mac \
30
+ :windows win
31
+
32
+ builder_parse " $@ "
33
+
34
+ # -------------------------------------------------------------------------------------------------------------------
35
+
36
+ builder_run_child_actions clean configure build test publish install
Original file line number Diff line number Diff line change @@ -586,12 +586,13 @@ Multiple targets can be listed. Each target must be followed by a comma
586
586
separated list of platforms. The currently supported platforms are:
587
587
588
588
Operating System platforms:
589
- * ` win ` : Windows
590
- * ` mac ` : macOS
591
- * ` linux ` : Linux
589
+ * ` win ` : Windows
590
+ * ` mac ` : macOS
591
+ * ` linux ` : Linux
592
592
593
593
Development tooling platforms:
594
- * ` delphi ` : (On Windows only, Delphi is installed)
594
+ * ` delphi ` : Delphi is installed (Windows only)
595
+ * ` android-studio ` : Android Studio is installed (` $ANDROID_HOME ` variable)
595
596
596
597
Targets not specified will be built on all platforms.
597
598
Original file line number Diff line number Diff line change @@ -1945,12 +1945,13 @@ _builder_has_function_been_called() {
1945
1945
# linux Linux
1946
1946
#
1947
1947
# Development tooling platforms:
1948
- # delphi (On Windows only, Delphi is installed)
1948
+ # delphi Delphi is installed (on Windows only)
1949
+ # android Android Studio is installed
1949
1950
#
1950
1951
builder_describe_platform () {
1951
1952
1952
1953
local builder_platforms=(linux mac win)
1953
- local builder_tools=(delphi)
1954
+ local builder_tools=(android-studio delphi)
1954
1955
1955
1956
# --- Detect platform ---
1956
1957
@@ -1978,6 +1979,13 @@ builder_describe_platform() {
1978
1979
fi
1979
1980
fi
1980
1981
1982
+ # Detect Android Studio based on ANDROID_HOME environment variable
1983
+ if [[ ! -z ${ANDROID_HOME+x} ]]; then
1984
+ builder_installed_tools+=(android-studio)
1985
+ fi
1986
+
1987
+ # --- Overrides ---
1988
+
1981
1989
# For testing, we can override the current platform
1982
1990
if [[ ! -z " ${BUILDER_PLATFORM_OVERRIDE+x} " ]]; then
1983
1991
builder_warn " BUILDER_PLATFORM_OVERRIDE variable found. Overriding detected platform '$builder_platform ' with '$BUILDER_PLATFORM_OVERRIDE '"
You can’t perform that action at this time.
0 commit comments