Skip to content

Commit 3d418d3

Browse files
committed
Fix .so wrappers copy
[skip windows] [skip osx]
1 parent 9b878d7 commit 3d418d3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

unix/gdal-makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,12 @@ build_%:
183183
@echo "$(TO) $(LW) was built successfully!"
184184

185185
# Persist C# bindings generated by GDAL build (from cmake temp) into install layer
186-
# We need only C# sources and .so wrappers
186+
# We need only C# sources and .so wrappers from gdal, ogr, osr, const directories
187187
@if [ "$(LW)" = "gdal" ]; then \
188188
mkdir -p $(GDAL_BUILD)/swig/csharp; \
189-
cd $(GDAL_CMAKE_TMP)/swig/csharp && find . -type f \( -name "*.so" -o -name "*.cs" \) -exec sh -c 'mkdir -p "$(GDAL_BUILD)/swig/csharp/$$(dirname "{}")" && cp -v "{}" "$(GDAL_BUILD)/swig/csharp/{}"' \; ; \
189+
cd $(GDAL_CMAKE_TMP)/swig/csharp && \
190+
find gdal ogr osr const -type f \( -name "*.so" -o -name "*.cs" \) ! -path "*/bin/*" ! -path "*/obj/*" \
191+
-exec sh -c 'mkdir -p "$(GDAL_BUILD)/swig/csharp/$$(dirname "{}")" && cp -v "{}" "$(GDAL_BUILD)/swig/csharp/{}"' \; ; \
190192
fi;
191193

192194

0 commit comments

Comments
 (0)