Skip to content

Commit 18f7925

Browse files
committed
[godot] Fix attempt for iOS patch
1 parent a394a95 commit 18f7925

File tree

4 files changed

+49
-5
lines changed

4 files changed

+49
-5
lines changed

spine-godot/build/setup.sh

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,23 @@ if [ "$branch" = "4.3-stable" ]; then
7171
fi
7272

7373
# Apply iOS Vulkan fix for C++ module imports in extern "C" blocks
74-
# This fixes compilation errors with newer Xcode versions
75-
pushd godot
76-
if [ -f ../build/ios-vulkan-fix.patch ]; then
77-
git apply ../build/ios-vulkan-fix.patch
74+
# This fixes compilation errors with newer Xcode versions on Godot 4.x
75+
if [[ "$branch" == 4* ]]; then
76+
pushd godot
77+
if [ -f platform/ios/detect.py ]; then
78+
# Check if the fix is already applied
79+
if ! grep -q "Wno-error=module-import-in-extern-c" platform/ios/detect.py; then
80+
# Insert the fix after the -Wno-ambiguous-macro line
81+
sed -i.bak '/Wno-ambiguous-macro/a\
82+
\
83+
# Fix for C++ module imports in extern "C" blocks in Vulkan headers\
84+
env.Append(CCFLAGS=["-Wno-error=module-import-in-extern-c"])
85+
' platform/ios/detect.py && rm platform/ios/detect.py.bak
86+
echo "Applied iOS Vulkan fix to platform/ios/detect.py"
87+
fi
88+
fi
89+
popd
7890
fi
79-
popd
8091

8192
popd
8293

spine-libgdx/spine-libgdx-tests/.project

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,15 @@
1414
<natures>
1515
<nature>org.eclipse.jdt.core.javanature</nature>
1616
</natures>
17+
<filteredResources>
18+
<filter>
19+
<id>1763543634399</id>
20+
<name></name>
21+
<type>30</type>
22+
<matcher>
23+
<id>org.eclipse.core.resources.regexFilterMatcher</id>
24+
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
25+
</matcher>
26+
</filter>
27+
</filteredResources>
1728
</projectDescription>

spine-libgdx/spine-libgdx/.project

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,15 @@
1414
<natures>
1515
<nature>org.eclipse.jdt.core.javanature</nature>
1616
</natures>
17+
<filteredResources>
18+
<filter>
19+
<id>1763543634394</id>
20+
<name></name>
21+
<type>30</type>
22+
<matcher>
23+
<id>org.eclipse.core.resources.regexFilterMatcher</id>
24+
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
25+
</matcher>
26+
</filter>
27+
</filteredResources>
1728
</projectDescription>

spine-libgdx/spine-skeletonviewer/.project

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,15 @@
1414
<natures>
1515
<nature>org.eclipse.jdt.core.javanature</nature>
1616
</natures>
17+
<filteredResources>
18+
<filter>
19+
<id>1763543634400</id>
20+
<name></name>
21+
<type>30</type>
22+
<matcher>
23+
<id>org.eclipse.core.resources.regexFilterMatcher</id>
24+
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
25+
</matcher>
26+
</filter>
27+
</filteredResources>
1728
</projectDescription>

0 commit comments

Comments
 (0)