Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Commit 7ae685d

Browse files
committed
Nix build: py39, boost1.71, no py34 on macos, boost url, no dae validator build
1 parent ef8b3d6 commit 7ae685d

File tree

2 files changed

+41
-5
lines changed

2 files changed

+41
-5
lines changed

nix/build-all.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@
7979
logger.addHandler(ch)
8080

8181
PROJECT_NAME="IfcOpenShell"
82-
PYTHON_VERSIONS=["2.7.16", "3.2.6", "3.3.6", "3.4.6", "3.5.3", "3.6.2", "3.7.3", "3.8.2"]
82+
PYTHON_VERSIONS=["2.7.16", "3.2.6", "3.3.6", "3.4.6", "3.5.3", "3.6.2", "3.7.3", "3.8.6", "3.9.1"]
8383
JSON_VERSION="v3.6.1"
8484
OCE_VERSION="0.18"
8585
# OCCT_VERSION="7.1.0"
8686
# OCCT_HASH="89aebde"
8787
# OCCT_VERSION="7.2.0"
8888
# OCCT_HASH="88af392"
8989
OCCT_VERSION="7.3.0p3"
90-
BOOST_VERSION="1.59.0"
90+
BOOST_VERSION="1.71.0"
9191
#PCRE_VERSION="8.39"
9292
PCRE_VERSION="8.41"
9393
#LIBXML2_VERSION="2.9.3"
@@ -157,6 +157,13 @@ def to_pystring(x):
157157
if get_os() == "Darwin":
158158
# C++11 features used in OCCT 7+ need a more recent stdlib
159159
TOOLSET = "10.9" if USE_OCCT else "10.6"
160+
161+
# python 3.4 doesn't seem to build anymore on recent versions of clang
162+
if get_os() == "Darwin":
163+
try:
164+
PYTHON_VERSIONS.remove("3.4.6")
165+
except ValueError as e:
166+
pass
160167

161168
try:
162169
IFCOS_NUM_BUILD_PROCS = os.environ["IFCOS_NUM_BUILD_PROCS"]
@@ -303,7 +310,7 @@ def run(cmds, cwd=None):
303310
BOOST_VERSION_UNDERSCORE=BOOST_VERSION.replace(".", "_")
304311

305312
OCE_LOCATION="https://github.com/tpaviot/oce/archive/OCE-%s.tar.gz" % (OCE_VERSION,)
306-
BOOST_LOCATION="http://downloads.sourceforge.net/project/boost/boost/%s/boost_%s.tar.bz2" % (BOOST_VERSION, BOOST_VERSION_UNDERSCORE)
313+
BOOST_LOCATION="https://dl.bintray.com/boostorg/release/%s/source/" % (BOOST_VERSION,)
307314

308315
# Helper functions
309316

@@ -580,7 +587,7 @@ def build_dependency(name, mode, build_tool_args, download_url, download_name, d
580587
download_url="https://github.com/KhronosGroup/OpenCOLLADA.git",
581588
download_name="OpenCOLLADA",
582589
download_tool=download_tool_git,
583-
patch="./patches/opencollada/pr622.patch",
590+
patch="./patches/opencollada/pr622_and_disable_subdirs.patch",
584591
revision=OPENCOLLADA_VERSION
585592
)
586593

@@ -644,7 +651,7 @@ def PYTHON_VERSION_CONFS():
644651
list(map(str_concat("cxxflags"), CXXFLAGS.strip().split(' '))) + \
645652
list(map(str_concat("linkflags"), LDFLAGS.strip().split(' '))) + \
646653
["stage", "-s", "NO_BZIP2=1"],
647-
download_url="http://downloads.sourceforge.net/project/boost/boost/{BOOST_VERSION}/".format(**locals()),
654+
download_url=BOOST_LOCATION,
648655
download_name="boost_{BOOST_VERSION_UNDERSCORE}.tar.bz2".format(**locals())
649656
)
650657

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index 95abbe21..293c951c 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -284,10 +284,10 @@ add_subdirectory(COLLADASaxFrameworkLoader)
6+
add_subdirectory(COLLADAStreamWriter)
7+
8+
# building COLLADAValidator app
9+
-add_subdirectory(COLLADAValidator)
10+
+# add_subdirectory(COLLADAValidator)
11+
12+
# DAE validator app
13+
-add_subdirectory(DAEValidator)
14+
+# add_subdirectory(DAEValidator)
15+
16+
# Library export
17+
install(EXPORT LibraryExport DESTINATION ${OPENCOLLADA_INST_CMAKECONFIG} FILE OpenCOLLADATargets.cmake)
18+
diff --git a/GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp b/GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp
19+
index 1f9a3eef..dd6f5c59 100644
20+
--- a/GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp
21+
+++ b/GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp
22+
@@ -10,6 +10,7 @@
23+
24+
#include "GeneratedSaxParserUtils.h"
25+
#include <math.h>
26+
+#include <cmath>
27+
#include <memory>
28+
#include <string.h>
29+
#include <limits>

0 commit comments

Comments
 (0)