Skip to content

Commit

Permalink
Include BUILD files in Xcode's Project navigator (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsim authored Apr 15, 2022
1 parent 349cc7e commit c5f70a4
Show file tree
Hide file tree
Showing 15 changed files with 122 additions and 10 deletions.
18 changes: 18 additions & 0 deletions examples/ios_app/test/fixtures/project.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@
163F2C8DEF5CD811826145FD /* ExampleObjcTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ExampleObjcTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
1971CA49644537C181D152F9 /* TestingUtils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestingUtils.swift; sourceTree = "<group>"; };
1F24BE1ED66E73DF86D94C30 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
2089F161F005F94A7715179F /* BUILD */ = {isa = PBXFileReference; explicitFileType = text.script.python; path = BUILD; sourceTree = "<group>"; };
2668B72F031658C7424A69C7 /* Greeting.swift.stencil */ = {isa = PBXFileReference; path = Greeting.swift.stencil; sourceTree = "<group>"; };
332DA7D905FE78395F8B49AB /* ExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
37E1ED3F12607BB25B281B60 /* Utils.swift.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = Utils.swift.modulemap; sourceTree = "<group>"; };
Expand All @@ -252,13 +253,20 @@
3FC1732AF7F1647C2CCBBCB8 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
4B4FA9C70425835BED3D18FF /* libTestingUtils.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libTestingUtils.a; sourceTree = BUILT_PRODUCTS_DIR; };
581AF7D39E2B147BB97B9BBD /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
59857C336D9E5B6105B95850 /* BUILD */ = {isa = PBXFileReference; explicitFileType = text.script.python; path = BUILD; sourceTree = "<group>"; };
5C2EF0755376A4732F5170B8 /* BUILD */ = {isa = PBXFileReference; explicitFileType = text.script.python; path = BUILD; sourceTree = "<group>"; };
5CF0936F52DDFE5E40C40C4E /* Answer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Answer.swift; sourceTree = "<group>"; };
5FC699D9C0C4FE223AAEA1E5 /* BUILD */ = {isa = PBXFileReference; explicitFileType = text.script.python; path = BUILD; sourceTree = "<group>"; };
60D06A659C114CE403EAD6BF /* ExternalResources.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ExternalResources.bundle; sourceTree = BUILT_PRODUCTS_DIR; };
64179CB2BEC1B454E719159D /* BUILD */ = {isa = PBXFileReference; explicitFileType = text.script.python; path = BUILD; sourceTree = "<group>"; };
68EB39D379DB575C1992811C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
7126B3B29F2941E2615E8B45 /* Utils.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Utils.h; sourceTree = "<group>"; };
7336BDEC622733D8911931FB /* BUILD */ = {isa = PBXFileReference; explicitFileType = text.script.python; path = BUILD; sourceTree = "<group>"; };
7458A79A895427FF2B5EF451 /* Answers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Answers.h; sourceTree = "<group>"; };
772995ACCC05420BD8295F13 /* libCoreUtilsObjC.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libCoreUtilsObjC.a; sourceTree = BUILT_PRODUCTS_DIR; };
7EA93898F56266968477DD1C /* BUILD */ = {isa = PBXFileReference; explicitFileType = text.script.python; path = BUILD; sourceTree = "<group>"; };
7EC6E4D4A0027B9BAE7E7354 /* CoreUtilsObjC.swift.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = CoreUtilsObjC.swift.modulemap; sourceTree = "<group>"; };
8379A4DB9A74BF3CB5DAB4DB /* BUILD */ = {isa = PBXFileReference; explicitFileType = text.script.python; path = BUILD; sourceTree = "<group>"; };
89CDB7756652C04CE3307460 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
96457EE4FDB089F9B6CA30D8 /* libUtils.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libUtils.a; sourceTree = BUILT_PRODUCTS_DIR; };
999DBB36F96D952774C90966 /* nested */ = {isa = PBXFileReference; lastKnownFileType = folder; path = nested; sourceTree = "<group>"; };
Expand All @@ -280,6 +288,7 @@
DDD5A69CC7A6E820FCB0BDF0 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
E105C37BE4F462559F7A205B /* CoreUtils.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CoreUtils.pch; sourceTree = "<group>"; };
E3E108E23CCBE7C70549E7AF /* TestingUtils.swift.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = TestingUtils.swift.modulemap; sourceTree = "<group>"; };
EF0BD64E901EB1FBD2F0F10E /* BUILD */ = {isa = PBXFileReference; explicitFileType = text.script.python; path = BUILD; sourceTree = "<group>"; };
EFF54836943E040ACDFCB9FD /* ExampleFramework.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = ExampleFramework.framework; sourceTree = "<group>"; };
F3BF0391D88320751FD37784 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/Localizable.strings; sourceTree = "<group>"; };
F3EE8A1F985D59D79066BF9C /* DefaultTestBundle.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = DefaultTestBundle.plist; sourceTree = "<group>"; };
Expand Down Expand Up @@ -338,6 +347,7 @@
2EDB795AE7B85C2164303DA7 /* Utils */ = {
isa = PBXGroup;
children = (
64179CB2BEC1B454E719159D /* BUILD */,
0A3D8CEF43CF91B1E874B99B /* Foo.h */,
A728BC96D2EE56D3A20F5D75 /* Foo.m */,
7126B3B29F2941E2615E8B45 /* Utils.h */,
Expand Down Expand Up @@ -426,6 +436,7 @@
999DBB36F96D952774C90966 /* nested */,
47598B7A84CFE12125B70720 /* PreviewContent */,
0E848F62EC3EA16CB8AADB58 /* Assets.xcassets */,
5C2EF0755376A4732F5170B8 /* BUILD */,
DDD5A69CC7A6E820FCB0BDF0 /* ContentView.swift */,
D699DE3520D61FDC19A909EF /* ExampleApp.swift */,
D1F93F75DA88677B3EB84499 /* Info.plist */,
Expand Down Expand Up @@ -469,6 +480,7 @@
79318B470B9CC13B30516691 /* ExampleObjcTests */ = {
isa = PBXGroup;
children = (
7336BDEC622733D8911931FB /* BUILD */,
A0B3DE95D17EDB4EEF586E35 /* ExampleObjcTests.m */,
);
path = ExampleObjcTests;
Expand All @@ -479,6 +491,7 @@
children = (
0D405A0225F82F8E821A1A89 /* nested */,
C3C4594509740C3A3C0835CC /* Assets.xcassets */,
7EA93898F56266968477DD1C /* BUILD */,
68EB39D379DB575C1992811C /* Info.plist */,
);
path = ExampleResources;
Expand All @@ -500,6 +513,7 @@
children = (
47E17F6EE7635213AF42FFCE /* CoreUtils */,
AD316B4515635DE6DE64F1C1 /* Answers.m */,
8379A4DB9A74BF3CB5DAB4DB /* BUILD */,
);
path = CoreUtilsObjC;
sourceTree = "<group>";
Expand Down Expand Up @@ -542,6 +556,7 @@
BAF0E3E8914C1F0BED0421C4 /* ExampleTests */ = {
isa = PBXGroup;
children = (
EF0BD64E901EB1FBD2F0F10E /* BUILD */,
0BE58C589847257693979C11 /* ExampleTests.swift */,
);
path = ExampleTests;
Expand All @@ -550,6 +565,7 @@
BE5C020511A0C620C6F4F2A5 /* ExampleUITests */ = {
isa = PBXGroup;
children = (
59857C336D9E5B6105B95850 /* BUILD */,
3F6A7C1EE8BAE7058EFC5B0C /* ExampleUITests.swift */,
B582794DF84A93AA718FB7A0 /* ExampleUITestsLaunchTests.swift */,
);
Expand All @@ -574,6 +590,7 @@
C87AC5A69C9451F5FFF4EBB9 /* third_party */ = {
isa = PBXGroup;
children = (
5FC699D9C0C4FE223AAEA1E5 /* BUILD */,
EFF54836943E040ACDFCB9FD /* ExampleFramework.framework */,
);
path = third_party;
Expand All @@ -591,6 +608,7 @@
isa = PBXGroup;
children = (
BB5454138C3DB7B7F7E1308A /* Answer.swift.stencil */,
2089F161F005F94A7715179F /* BUILD */,
2668B72F031658C7424A69C7 /* Greeting.swift.stencil */,
);
path = TestingUtils;
Expand Down
9 changes: 9 additions & 0 deletions examples/ios_app/test/fixtures/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"VALIDATE_WORKSPACE": false
},
"extra_files": [
"third_party/BUILD",
"third_party/ExampleFramework.framework/ExampleFramework",
"third_party/ExampleFramework.framework/Headers/Bar.h",
"third_party/ExampleFramework.framework/Headers/ExampleFramework.h",
Expand Down Expand Up @@ -104,7 +105,11 @@
"_": "examples_ios_app_external/ExternalFramework.framework/_CodeSignature/CodeResources",
"t": "e"
},
"CoreUtilsObjC/BUILD",
"Utils/BUILD",
"ExampleResources/BUILD",
"ExampleResources/Info.plist",
"Example/BUILD",
{
"_": "ios-x86_64-min15.0-applebin_ios-ios_x86_64-fastbuild-ST-d3e756bfe7fd/bin/CoreUtilsObjC/CoreUtilsObjC.swift.modulemap",
"t": "g"
Expand All @@ -126,6 +131,7 @@
"_": "applebin_ios-ios_x86_64-fastbuild-ST-d3e756bfe7fd/bin/Example/Example-intermediates/Info.plist",
"t": "g"
},
"TestingUtils/BUILD",
"TestingUtils/Greeting.swift.stencil",
"TestingUtils/Answer.swift.stencil",
{
Expand All @@ -136,6 +142,7 @@
"_": "ios-x86_64-min15.0-applebin_ios-ios_x86_64-fastbuild-ST-d3e756bfe7fd/bin/TestingUtils/Answer.swift",
"t": "g"
},
"ExampleTests/BUILD",
{
"_": "ios-x86_64-min15.0-applebin_ios-ios_x86_64-fastbuild-ST-d3e756bfe7fd/bin/TestingUtils/TestingUtils.swift.modulemap",
"t": "g"
Expand All @@ -148,6 +155,7 @@
"_": "applebin_ios-ios_x86_64-fastbuild-ST-d3e756bfe7fd/bin/ExampleTests/ExampleTests.__internal__.__test_bundle-intermediates/Info.plist",
"t": "g"
},
"ExampleObjcTests/BUILD",
{
"_": "applebin_ios-ios_x86_64-fastbuild-ST-d3e756bfe7fd/bin/ExampleObjcTests/ExampleObjcTests.__internal__.__test_bundle-intermediates/Info.plist",
"t": "g"
Expand All @@ -156,6 +164,7 @@
"_": "examples_ios_app_external/Info.plist",
"t": "e"
},
"ExampleUITests/BUILD",
{
"_": "applebin_ios-ios_x86_64-fastbuild-ST-d3e756bfe7fd/bin/ExampleUITests/ExampleUITests.__internal__.__test_bundle-intermediates/Info.plist",
"t": "g"
Expand Down
6 changes: 6 additions & 0 deletions test/fixtures/cc/project.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,16 @@
0ABD91F55693E360A651C6BD /* lib.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = lib.h; sourceTree = "<group>"; };
1704EC3DF20D136B9D2B8C0D /* liblib_impl.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = liblib_impl.a; sourceTree = BUILT_PRODUCTS_DIR; };
2C91EE0C5078D0455B44BD9D /* main.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = main.c; sourceTree = "<group>"; };
331339B572FFA72C8183613F /* BUILD */ = {isa = PBXFileReference; explicitFileType = text.script.python; path = BUILD; sourceTree = "<group>"; };
400DE358C1FF40F47EEFAAB4 /* lib.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = lib.h; sourceTree = "<group>"; };
76BA269B4C781557323B9158 /* lib.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = lib.c; sourceTree = "<group>"; };
7CE856EC2CE9B541065D14B0 /* lib.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = lib.c; sourceTree = "<group>"; };
8B3835D8961F2C3B473C82D3 /* private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = private.h; sourceTree = "<group>"; };
9822ABE2DFD4A944DA5E1BEA /* liblib_impl.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = liblib_impl.a; sourceTree = BUILT_PRODUCTS_DIR; };
CFF7BA3A459E8DCA60639ACB /* BUILD */ = {isa = PBXFileReference; explicitFileType = text.script.python; path = BUILD; sourceTree = "<group>"; };
E37C21ED6BACCA0E92024F54 /* tool */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = tool; sourceTree = BUILT_PRODUCTS_DIR; };
E5DBCA6246E5D97D2680F536 /* private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = private.h; sourceTree = "<group>"; };
E72BA59E290214B27C7883B7 /* BUILD */ = {isa = PBXFileReference; explicitFileType = text.script.python; path = BUILD; sourceTree = "<group>"; };
FF560C97B07466CBFC0F584D /* lib.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = lib.h; sourceTree = "<group>"; };
/* End PBXFileReference section */

Expand Down Expand Up @@ -155,6 +158,7 @@
8BD2691875952E20FF5B093C /* lib2 */ = {
isa = PBXGroup;
children = (
CFF7BA3A459E8DCA60639ACB /* BUILD */,
7CE856EC2CE9B541065D14B0 /* lib.c */,
400DE358C1FF40F47EEFAAB4 /* lib.h */,
);
Expand Down Expand Up @@ -192,6 +196,7 @@
isa = PBXGroup;
children = (
02BE1CA8C2ED161B5A7D3776 /* private */,
E72BA59E290214B27C7883B7 /* BUILD */,
76BA269B4C781557323B9158 /* lib.c */,
0ABD91F55693E360A651C6BD /* lib.h */,
);
Expand All @@ -201,6 +206,7 @@
EB49D51CC78041C661754D39 /* tool */ = {
isa = PBXGroup;
children = (
331339B572FFA72C8183613F /* BUILD */,
2C91EE0C5078D0455B44BD9D /* main.c */,
);
path = tool;
Expand Down
5 changes: 4 additions & 1 deletion test/fixtures/cc/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
"VALIDATE_WORKSPACE": false
},
"extra_files": [
"examples/cc/lib/BUILD",
"examples/cc/lib/lib.h",
"examples/cc/lib2/BUILD",
{
"_": "examples_cc_external/lib.h",
"t": "e"
}
},
"examples/cc/tool/BUILD"
],
"invalid_target_merges": [],
"label": "//test/fixtures/cc:xcodeproj",
Expand Down
6 changes: 6 additions & 0 deletions test/fixtures/command_line/project.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
096DFCF3F9FB0E6FB2D0076E /* liblib_swift.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = liblib_swift.a; sourceTree = BUILT_PRODUCTS_DIR; };
1704EC3DF20D136B9D2B8C0D /* liblib_impl.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = liblib_impl.a; sourceTree = BUILT_PRODUCTS_DIR; };
2AF6661F10745F2CD844AB81 /* SwiftGreetingsTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftGreetingsTests.swift; sourceTree = "<group>"; };
41C8C3646245DAD8013AC406 /* BUILD */ = {isa = PBXFileReference; explicitFileType = text.script.python; path = BUILD; sourceTree = "<group>"; };
420640E047E255BBD38D0F92 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
4EADE140455A0D9F51FEA180 /* liblib_swift.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = liblib_swift.a; sourceTree = BUILT_PRODUCTS_DIR; };
5505DE78F452D084BAFFE1FF /* LibSwiftTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LibSwiftTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
Expand All @@ -142,7 +143,9 @@
9822ABE2DFD4A944DA5E1BEA /* liblib_impl.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = liblib_impl.a; sourceTree = BUILT_PRODUCTS_DIR; };
A7FEC277C4E8ADC5127B637A /* lib.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = lib.m; sourceTree = "<group>"; };
B5511E6B7C59A1600AEF50FA /* private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = private.h; sourceTree = "<group>"; };
C5FB992B643EADCB3741DB97 /* BUILD */ = {isa = PBXFileReference; explicitFileType = text.script.python; path = BUILD; sourceTree = "<group>"; };
E37C21ED6BACCA0E92024F54 /* tool */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = tool; sourceTree = BUILT_PRODUCTS_DIR; };
F0A9BD13984AFD5D318D7D24 /* BUILD */ = {isa = PBXFileReference; explicitFileType = text.script.python; path = BUILD; sourceTree = "<group>"; };
F3EE8A1F985D59D79066BF9C /* DefaultTestBundle.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = DefaultTestBundle.plist; sourceTree = "<group>"; };
F6C0CEC245D91B7D529B8CD6 /* lib_impl.swift.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = lib_impl.swift.modulemap; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand All @@ -151,6 +154,7 @@
0CDF69186E00FC09E69A79AB /* tool */ = {
isa = PBXGroup;
children = (
41C8C3646245DAD8013AC406 /* BUILD */,
8A31C23069C201151EDADE24 /* Info.plist */,
97093D4A77C09BF21048172D /* main.m */,
);
Expand All @@ -168,6 +172,7 @@
116B66A585EB9224AC1E5B50 /* Tests */ = {
isa = PBXGroup;
children = (
C5FB992B643EADCB3741DB97 /* BUILD */,
2AF6661F10745F2CD844AB81 /* SwiftGreetingsTests.swift */,
);
path = Tests;
Expand Down Expand Up @@ -339,6 +344,7 @@
isa = PBXGroup;
children = (
21603E9396A799CBC290553D /* dir with space */,
F0A9BD13984AFD5D318D7D24 /* BUILD */,
A7FEC277C4E8ADC5127B637A /* lib.m */,
600865D85986BF1EAC59E70F /* lib.swift */,
B5511E6B7C59A1600AEF50FA /* private.h */,
Expand Down
3 changes: 3 additions & 0 deletions test/fixtures/command_line/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@
"VALIDATE_WORKSPACE": false
},
"extra_files": [
"examples/command_line/lib/BUILD",
{
"_": "macos-x86_64-min12.0-applebin_macos-darwin_x86_64-fastbuild-ST-f2aadcfcab57/bin/examples/command_line/lib/lib_impl.swift.modulemap",
"t": "g"
},
"examples/command_line/lib/dir with space/lib.h",
"examples/command_line/tool/BUILD",
"examples/command_line/tool/Info.plist",
{
"_": "macos-x86_64-min11.0-applebin_macos-darwin_x86_64-fastbuild-ST-8946c8252059/bin/examples/command_line/lib/lib_impl.swift.modulemap",
"t": "g"
},
"examples/command_line/Tests/BUILD",
{
"_": "macos-x86_64-min11.0-applebin_macos-darwin_x86_64-fastbuild-ST-8946c8252059/bin/examples/command_line/lib/lib_swift.swift.modulemap",
"t": "g"
Expand Down
Loading

0 comments on commit c5f70a4

Please sign in to comment.