Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PBXShellBuildPhase #113

Merged
merged 3 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion kin/grammar/PBXProj.g4
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ objects
pbx_reference_proxy_section?
pbx_resources_build_phase_section?
pbx_shell_script_build_phase_section?
pbx_shell_build_phase_section?
pbx_sources_build_phase_section?
pbx_target_dependency_section?
pbx_variant_group_section?
Expand Down Expand Up @@ -124,6 +125,10 @@ pbx_shell_script_build_phase_section
: (pbx_shell_script_build_phase)+
;

pbx_shell_build_phase_section
: (pbx_shell_build_phase)+
;

pbx_sources_build_phase_section
: (pbx_sources_build_phase)+
;
Expand Down Expand Up @@ -360,6 +365,22 @@ pbx_shell_script_build_phase
'}' ';'
;

pbx_shell_build_phase
: REFERENCE '=' '{'
isa_pbx_shell_build_phase
build_action_mask
files
input_file_list_paths
input_paths
name
output_file_list_paths
output_paths
run_only_for_deployment_postprocessing
shell_path
shell
'}' ';'
;

pbx_sources_build_phase
: REFERENCE '=' '{'
isa_pbx_sources_build_phase
Expand Down Expand Up @@ -499,6 +520,10 @@ isa_pbx_shell_script_build_phase
: ISA '=' PBX_SHELL_SCRIPT_BUILD_PHASE ';'
;

isa_pbx_shell_build_phase
: ISA '=' PBX_SHELL_BUILD_PHASE ';'
;

isa_pbx_sources_build_phase
: ISA '=' PBX_SOURCES_BUILD_PHASE ';'
;
Expand Down Expand Up @@ -866,7 +891,11 @@ output_paths
;

shell_path
: SHELL_PATH '=' NON_QUOTED_STRING ';'
: SHELL_PATH '=' any_string ';'
;

shell
: SHELL '=' QUOTED_STRING ';'
;

shell_script
Expand Down Expand Up @@ -1080,6 +1109,7 @@ any_token
| OUTPUT_FILE_LIST_PATHS
| OUTPUT_PATHS
| SHELL_PATH
| SHELL
| SHELL_SCRIPT
| SHOW_ENV_VARS_IN_LOG
| TARGET
Expand Down Expand Up @@ -1131,6 +1161,7 @@ PBX_PROJECT: 'PBXProject';
PBX_REFERENCE_PROXY: 'PBXReferenceProxy';
PBX_RESOURCES_BUILD_PHASE: 'PBXResourcesBuildPhase' | 'PBXRezBuildPhase';
PBX_SHELL_SCRIPT_BUILD_PHASE: 'PBXShellScriptBuildPhase';
PBX_SHELL_BUILD_PHASE: 'PBXShellBuildPhase';
PBX_SOURCES_BUILD_PHASE: 'PBXSourcesBuildPhase';
PBX_TARGET_DEPENDENCY: 'PBXTargetDependency';
PBX_VARIANT_GROUP: 'PBXVariantGroup';
Expand Down Expand Up @@ -1214,6 +1245,7 @@ INPUT_PATHS : 'inputPaths';
OUTPUT_FILE_LIST_PATHS : 'outputFileListPaths';
OUTPUT_PATHS : 'outputPaths';
SHELL_PATH : 'shellPath';
SHELL : 'shell';
SHELL_SCRIPT : 'shellScript';
SHOW_ENV_VARS_IN_LOG : 'showEnvVarsInLog';
TARGET : 'target';
Expand Down
Loading