forked from apple/unityplugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupi_cli_argument_options.py
More file actions
73 lines (57 loc) · 2.33 KB
/
upi_cli_argument_options.py
File metadata and controls
73 lines (57 loc) · 2.33 KB
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
#! /usr/bin/env python3
# Requirements: python3
# Plug-in Identifiers (-p, --plugin-list)
# Selection identifiers for which plug-ins to perform build actions upon. Build script will ignore actions for unselected plug-ins.
class PluginID:
ACCESSIBILITY = "Accessibility"
CORE = "Core"
CORE_HAPTICS = "CoreHaptics"
GAME_CONTROLLER = "GameController"
GAME_KIT = "GameKit"
PHASE = "PHASE"
ALL = "all"
# Platform Identifiers (-m, --platforms)
# Selection identifiers for which platforms target when building.
class PlatformID:
IOS = "iOS"
TVOS = "tvOS"
MACOS = "macOS"
VISIONOS = "visionOS"
IOS_SIMULATOR = "iPhoneSimulator"
TVOS_SIMULATOR = "AppleTVSimulator"
VISIONOS_SIMULATOR = "VisionSimulator"
# Just simulator platforms: iOS-simulator, tvOS-simulator
SIMULATORS = "simulators"
# Just device platforms: iOS, tvOS, macOS
DEVICES = "devices"
# All supported devices and simulators - depends upon the platform SDKs installed on the machine running the script.
ALL = "all"
# Platform config identifiers (-bc, --build-config)
# Note: command argument '-d' (--debug) has been obsoleted.
class ConfigID:
RELEASE = "Release"
DEBUG = "Debug"
# Builds both Debug and Release libraries.
ALL = "all"
# Build Actions (-b, --build-action)
class BuildActionID:
# Builds each selected plug-in's native frameworks and moves them to associated Unity plug-in project folder hierarchy
BUILD = "build"
# Runs 'npm pack' on each selected plug-in and saves resulting package to the current output_path (See option: --output-path)
PACK = "pack"
# Skips all build actions. Used when only a clean action is desired.
NONE = "none"
# Performs all builds actions for each selected plug-in
ALL = "all"
# Clean Actions (-k, --clean-action)
class CleanActionID:
# Removes native libraries and associated .meta files from within the selected plug-in Unity projects (See option: --plugin-list)
NATIVE = "native"
# Removes packages for the selected plug-ins in the current output_path (See option: --output-path)
PACKAGES = "packages"
# Removes all output under test_output_path (See option: --test-output-path)
TESTS = "tests"
# Skips all clean actions.
NONE = "none"
# Performs all clean actions for the selected plug-ins
ALL = "all"