1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/// The host operating system identifier used by the native builders.
///
/// The values match the `process.platform` strings Node reports, so the
/// host a plan is resolved against is named the same way on both sides
/// of the boundary.
pub const HOST_MACOS: &str = "macos";
pub const HOST_LINUX: &str = "linux";
pub const HOST_WINDOWS: &str = "windows";
/// The host operating system this binary was compiled for.
pub const HOST_OS: &str = if cfg! else if cfg! else if cfg! else ;
/// The host identifier used when the operating system has no native
/// builder in this repository.
pub const HOST_UNSUPPORTED: &str = "unsupported";
/// The host architecture this binary was compiled for.
pub const HOST_ARCH: &str = if cfg! else if cfg! else ;
/// The host architecture identifier used when the processor is not one
/// the native builders support.
pub const ARCH_UNSUPPORTED: &str = "unsupported";
/// The 64-bit ARM architecture identifier.
pub const ARCH_ARM64: &str = "arm64";
/// The 64-bit Intel architecture identifier.
pub const ARCH_X64: &str = "x64";
/// The environment variable carrying the web build output directory into
/// the native builders.
pub const ENV_WEB_DIST: &str = "EUV_WEB_DIST";
/// The environment variable selecting the native client build mode.
pub const ENV_NATIVE_MODE: &str = "EUV_NATIVE_MODE";
/// The native client build mode that produces release artifacts.
pub const NATIVE_MODE_RELEASE: &str = "release";
/// The relative path of the native client project inside the repository.
pub const NATIVE_PROJECT_RELATIVE_PATH: &str = "native/tauri";
/// The command that runs the per-platform native client builder.
pub const NODE_COMMAND: &str = "node";
/// The command that runs the Android build script.
pub const BASH_COMMAND: &str = "bash";
/// The project-relative path of the Android build script.
pub const ANDROID_BUILD_SCRIPT_PATH: &str = "scripts/build/build.sh";
/// The scripts-relative path of the per-platform native client builder.
pub const BUILD_CLIENT_SCRIPT_PATH: &str = "build/build-client.js";
/// The Android platform name used by the native builders.
pub const PLATFORM_ANDROID: &str = "android";
/// The macOS platform name used by the native builders.
pub const PLATFORM_MACOS: &str = "macos";
/// The Linux platform name used by the native builders.
pub const PLATFORM_LINUX: &str = "linux";
/// The Windows platform name used by the native builders.
pub const PLATFORM_WINDOWS: &str = "windows";
/// The iOS device platform name used by the native builders.
pub const PLATFORM_IOS: &str = "ios";
/// The iOS simulator platform name used by the native builders.
pub const PLATFORM_IOS_SIMULATOR: &str = "ios-simulator";
/// The argument that selects the native platforms to build.
pub const PLATFORMS_ARG: &str = "--platforms";
/// The argument that selects every host-compatible native deliverable.
pub const ALL_ARG: &str = "--all";
/// The argument that selects the native client project directory.
pub const NATIVE_PATH_ARG: &str = "--native-path";
/// The argument that prints the plan without building anything.
pub const PLAN_ARG: &str = "--plan";