Skip to content

Commit

Permalink
Add support for PBXBuildStyle and PBXRezBuildPhase (#99)
Browse files Browse the repository at this point in the history
* Add test

* Add PBXBuildStyle

* Make projectRoot optional

* Make compatibilityVersion optional

* Allow alternate PBXRezBuildPhase
  • Loading branch information
dnicolson authored Feb 21, 2024
1 parent e831556 commit 8c81d4e
Show file tree
Hide file tree
Showing 2 changed files with 384 additions and 3 deletions.
24 changes: 21 additions & 3 deletions kin/grammar/PBXProj.g4
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ objects
: OBJECTS '=' '{'
pbx_aggregate_target_section?
pbx_build_file_section?
pbx_build_style_section?
pbx_container_item_proxy_section?
pbx_copy_files_build_phase_section?
pbx_file_reference_section
Expand Down Expand Up @@ -71,6 +72,10 @@ pbx_build_file_section
: (pbx_build_file)+
;

pbx_build_style_section
: (pbx_build_style)+
;

pbx_container_item_proxy_section
: (pbx_container_item_proxy)+
;
Expand Down Expand Up @@ -175,6 +180,14 @@ pbx_build_file
'}' ';'
;

pbx_build_style
: REFERENCE '=' '{'
isa_pbx_build_style
build_settings
name
'}' ';'
;

pbx_container_item_proxy
: REFERENCE '=' '{'
isa_pbx_container_item_proxy
Expand Down Expand Up @@ -288,7 +301,7 @@ pbx_project
isa_pbx_project
attributes?
build_configuration_list
compatibility_version
compatibility_version?
development_region?
has_scanned_for_encodings
known_regions?
Expand All @@ -297,7 +310,7 @@ pbx_project
product_ref_group?
project_dir_path
project_references?
project_root
project_root?
targets
'}' ';'
;
Expand Down Expand Up @@ -427,6 +440,10 @@ isa_pbx_build_file
: ISA '=' PBX_BUILD_FILE ';'
;

isa_pbx_build_style
: ISA '=' PBX_BUILD_STYLE ';'
;

isa_pbx_container_item_proxy
: ISA '=' PBX_CONTAINER_ITEM_PROXY ';'
;
Expand Down Expand Up @@ -1084,6 +1101,7 @@ SLASH: '/';
UNDERSCORE: '_';
PBX_AGGREGATE_TARGET: 'PBXAggregateTarget';
PBX_BUILD_FILE: 'PBXBuildFile';
PBX_BUILD_STYLE: 'PBXBuildStyle';
PBX_CONTAINER_ITEM_PROXY: 'PBXContainerItemProxy';
PBX_COPY_FILES_BUILD_PHASE: 'PBXCopyFilesBuildPhase';
PBX_FILE_REFERENCE: 'PBXFileReference';
Expand All @@ -1094,7 +1112,7 @@ PBX_NATIVE_TARGET: 'PBXNativeTarget';
PBX_LEGACY_TARGET: 'PBXLegacyTarget';
PBX_PROJECT: 'PBXProject';
PBX_REFERENCE_PROXY: 'PBXReferenceProxy';
PBX_RESOURCES_BUILD_PHASE: 'PBXResourcesBuildPhase';
PBX_RESOURCES_BUILD_PHASE: 'PBXResourcesBuildPhase' | 'PBXRezBuildPhase';
PBX_SHELL_SCRIPT_BUILD_PHASE: 'PBXShellScriptBuildPhase';
PBX_SOURCES_BUILD_PHASE: 'PBXSourcesBuildPhase';
PBX_TARGET_DEPENDENCY: 'PBXTargetDependency';
Expand Down
Loading

0 comments on commit 8c81d4e

Please sign in to comment.