From d7e497727c37538069fc821a09bc70656417d76b Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 11 Jun 2024 16:01:14 +1000 Subject: [PATCH] More build fixes. --- src/ifcopenshell-python/Makefile | 8 ++++++-- src/ifcsverchok/Makefile | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/Makefile b/src/ifcopenshell-python/Makefile index b999afabef..120a7bf554 100644 --- a/src/ifcopenshell-python/Makefile +++ b/src/ifcopenshell-python/Makefile @@ -94,7 +94,9 @@ endif cd dist/working && wget $(IOS_URL) cd dist/working && unzip ifcopenshell-python* cp -r dist/working/ifcopenshell/ifcopenshell_wrapper.py dist/ifcopenshell/ -ifeq ($(PLATFORM), win) +ifeq ($(PLATFORM), win64) + cp -r dist/working/ifcopenshell/_ifcopenshell_wrapper.pyd dist/ifcopenshell/ +else ifeq ($(PLATFORM), win32) cp -r dist/working/ifcopenshell/_ifcopenshell_wrapper.pyd dist/ifcopenshell/ else cp -r dist/working/ifcopenshell/_ifcopenshell_wrapper.so dist/ifcopenshell/ @@ -117,7 +119,9 @@ endif cd dist/working && wget $(IOS_URL) cd dist/working && unzip ifcopenshell-python* cp -r dist/working/ifcopenshell/ifcopenshell_wrapper.py dist/ifcopenshell/ -ifeq ($(PLATFORM), win) +ifeq ($(PLATFORM), win64) + cp -r dist/working/ifcopenshell/_ifcopenshell_wrapper.pyd dist/ifcopenshell/ +else ifeq ($(PLATFORM), win32) cp -r dist/working/ifcopenshell/_ifcopenshell_wrapper.pyd dist/ifcopenshell/ else cp -r dist/working/ifcopenshell/_ifcopenshell_wrapper.so dist/ifcopenshell/ diff --git a/src/ifcsverchok/Makefile b/src/ifcsverchok/Makefile index 91f9a3c8e9..bc9dbcac8f 100644 --- a/src/ifcsverchok/Makefile +++ b/src/ifcsverchok/Makefile @@ -24,6 +24,11 @@ VERSION_MINOR:=$(shell cat '../../VERSION' | cut -d '.' -f 2) VERSION_PATCH:=$(shell cat '../../VERSION' | cut -d '.' -f 3) VERSION_DATE:=$(shell date '+%y%m%d') +SED:=sed -i +ifeq ($(UNAME_S),Darwin) +SED:=sed -i '' -e +endif + .PHONY: dist dist: rm -rf dist