Skip to content

Commit d7e4977

Browse files
committed
More build fixes.
1 parent d4dc9af commit d7e4977

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

src/ifcopenshell-python/Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ endif
9494
cd dist/working && wget $(IOS_URL)
9595
cd dist/working && unzip ifcopenshell-python*
9696
cp -r dist/working/ifcopenshell/ifcopenshell_wrapper.py dist/ifcopenshell/
97-
ifeq ($(PLATFORM), win)
97+
ifeq ($(PLATFORM), win64)
98+
cp -r dist/working/ifcopenshell/_ifcopenshell_wrapper.pyd dist/ifcopenshell/
99+
else ifeq ($(PLATFORM), win32)
98100
cp -r dist/working/ifcopenshell/_ifcopenshell_wrapper.pyd dist/ifcopenshell/
99101
else
100102
cp -r dist/working/ifcopenshell/_ifcopenshell_wrapper.so dist/ifcopenshell/
@@ -117,7 +119,9 @@ endif
117119
cd dist/working && wget $(IOS_URL)
118120
cd dist/working && unzip ifcopenshell-python*
119121
cp -r dist/working/ifcopenshell/ifcopenshell_wrapper.py dist/ifcopenshell/
120-
ifeq ($(PLATFORM), win)
122+
ifeq ($(PLATFORM), win64)
123+
cp -r dist/working/ifcopenshell/_ifcopenshell_wrapper.pyd dist/ifcopenshell/
124+
else ifeq ($(PLATFORM), win32)
121125
cp -r dist/working/ifcopenshell/_ifcopenshell_wrapper.pyd dist/ifcopenshell/
122126
else
123127
cp -r dist/working/ifcopenshell/_ifcopenshell_wrapper.so dist/ifcopenshell/

src/ifcsverchok/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ VERSION_MINOR:=$(shell cat '../../VERSION' | cut -d '.' -f 2)
2424
VERSION_PATCH:=$(shell cat '../../VERSION' | cut -d '.' -f 3)
2525
VERSION_DATE:=$(shell date '+%y%m%d')
2626

27+
SED:=sed -i
28+
ifeq ($(UNAME_S),Darwin)
29+
SED:=sed -i '' -e
30+
endif
31+
2732
.PHONY: dist
2833
dist:
2934
rm -rf dist

0 commit comments

Comments
 (0)