Skip to content

Commit

Permalink
Occt7.8.1, vtk9.3.0 (#89)
Browse files Browse the repository at this point in the history
* simplified run dependencies

* MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.2, and conda-forge-pinning 2024.07.10.17.49.47

* +=1

* use occt7.8.1 branch

* disable netgen

* simplifications

* Rebuild for occt 7.8.1

* MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.2, and conda-forge-pinning 2024.07.14.16.05.21

* enable netgen

* remove unused med cmake specification

* vtk-base, debug builds

* MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.37.0, and conda-forge-pinning 2024.07.17.12.11.55

* depend on package vtk, otherwise it's not listed in ci_support files

* MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.37.1, and conda-forge-pinning 2024.07.17.19.24.35

* use release

* update sha256sum

* remove unnecessary dependencies

* update sha256 sum

* update path to LICENSE.txt

* Update sha256sum

* update test commands

* cross compile for linux_aarch64 and ppc64

* MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.37.1, and conda-forge-pinning 2024.07.18.19.29.01

* further simplifications

* ninja -C build

* changed location of test-files

* Update run_test.bat

---------

Co-authored-by: regro-cf-autotick-bot <[email protected]>
  • Loading branch information
looooo and regro-cf-autotick-bot authored Jul 19, 2024
1 parent 6b1f91e commit 087a77a
Show file tree
Hide file tree
Showing 15 changed files with 72 additions and 109 deletions.
4 changes: 2 additions & 2 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions .ci_support/linux_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ docker_image:
libboost_devel:
- '1.84'
occt:
- 7.7.2
- 7.8.1
pin_run_as_build:
occt:
max_pin: x.x
Expand All @@ -34,5 +34,3 @@ zip_keys:
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
zlib:
- '1'
6 changes: 2 additions & 4 deletions .ci_support/linux_aarch64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ cxx_compiler:
cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-aarch64
- quay.io/condaforge/linux-anvil-cos7-x86_64
libboost_devel:
- '1.84'
occt:
- 7.7.2
- 7.8.1
pin_run_as_build:
occt:
max_pin: x.x
Expand All @@ -38,5 +38,3 @@ zip_keys:
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
zlib:
- '1'
6 changes: 2 additions & 4 deletions .ci_support/linux_ppc64le_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ cxx_compiler:
cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-ppc64le
- quay.io/condaforge/linux-anvil-cos7-x86_64
libboost_devel:
- '1.84'
occt:
- 7.7.2
- 7.8.1
pin_run_as_build:
occt:
max_pin: x.x
Expand All @@ -34,5 +34,3 @@ zip_keys:
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
zlib:
- '1'
8 changes: 8 additions & 0 deletions .ci_support/migrations/occt781.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
__migrator:
build_number: 1
commit_message: Rebuild for occt 7.8.1
kind: version
migration_number: 1
migrator_ts: 1714946042.220433
occt:
- 7.8.1
4 changes: 1 addition & 3 deletions .ci_support/osx_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ libboost_devel:
macos_machine:
- x86_64-apple-darwin13.4.0
occt:
- 7.7.2
- 7.8.1
pin_run_as_build:
occt:
max_pin: x.x
Expand All @@ -34,5 +34,3 @@ vtk:
zip_keys:
- - c_compiler_version
- cxx_compiler_version
zlib:
- '1'
4 changes: 1 addition & 3 deletions .ci_support/osx_arm64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ libboost_devel:
macos_machine:
- arm64-apple-darwin20.0.0
occt:
- 7.7.2
- 7.8.1
pin_run_as_build:
occt:
max_pin: x.x
Expand All @@ -34,5 +34,3 @@ vtk:
zip_keys:
- - c_compiler_version
- cxx_compiler_version
zlib:
- '1'
4 changes: 1 addition & 3 deletions .ci_support/win_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ cxx_compiler:
libboost_devel:
- '1.84'
occt:
- 7.7.2
- 7.8.1
pin_run_as_build:
occt:
max_pin: x.x
target_platform:
- win-64
vtk:
- 9.3.0
zlib:
- '1'
10 changes: 8 additions & 2 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions conda-forge.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
build_platform:
osx_arm64: osx_64
linux_aarch64: linux_64
linux_ppc64le: linux_64
conda_build:
pkg_format: '2'
conda_forge_output_validation: true
Expand Down
30 changes: 11 additions & 19 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
git clone https://github.com/realthunder/SMESH.git
cd SMESH
git checkout patch-4
git submodule update --init --recursive
python prepare.py

mkdir build
cd build

cmake -G "Ninja" ^
-D CMAKE_BUILD_TYPE=Release ^
-D CMAKE_INSTALL_PREFIX:FILEPATH="%LIBRARY_PREFIX%" ^
-D CMAKE_PREFIX_PATH:FILEPATH="%LIBRARY_PREFIX%" ^
-D CMAKE_SYSTEM_PREFIX_PATH:FILEPATH="%LIBRARY_PREFIX%" ^
-D PTHREAD_INCLUDE_DIRS:FILEPATH="%LIBRARY_PREFIX%/include" ^
-D PTHREAD_LIB_DIRS:FILEPATH="%LIBRARY_PREFIX%/lib" ^
-D Boost_NO_BOOST_CMAKE:BOOL=ON ^
-D ENABLE_LIB_NAMING:BOOL=OFF ^
..
-B build -S . ^
-D CMAKE_BUILD_TYPE=Release ^
-D CMAKE_INSTALL_PREFIX:FILEPATH="%LIBRARY_PREFIX%" ^
-D CMAKE_PREFIX_PATH:FILEPATH="%LIBRARY_PREFIX%" ^
-D CMAKE_SYSTEM_PREFIX_PATH:FILEPATH="%LIBRARY_PREFIX%" ^
-D PTHREAD_INCLUDE_DIRS:FILEPATH="%LIBRARY_PREFIX%/include" ^
-D PTHREAD_LIB_DIRS:FILEPATH="%LIBRARY_PREFIX%/lib" ^
-D ENABLE_NETGEN:BOOL=ON ^
-D Boost_NO_BOOST_CMAKE:BOOL=ON ^
-D ENABLE_LIB_NAMING:BOOL=OFF

if errorlevel 1 exit 1
ninja install
ninja -C build install
if errorlevel 1 exit 1
19 changes: 4 additions & 15 deletions recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
git clone https://github.com/realthunder/SMESH.git
cd SMESH
git checkout patch-4
git submodule update --init --recursive
python prepare.py

mkdir build
cd build

cmake -G "Ninja" \
-D CMAKE_BUILD_TYPE:STRING="Release" \
-B build -S . \
-D CMAKE_BUILD_TYPE:STRING=$BUILD_TYPE \
-D CMAKE_INSTALL_PREFIX:FILEPATH=$PREFIX \
-D CMAKE_PREFIX_PATH:FILEPATH=$PREFIX \
-D Boost_NO_BOOST_CMAKE:BOOL=ON \
-D ENABLE_MED:BOOL=OFF \
-D ENABLE_NETGEN:BOOL=ON \
-D CMAKE_CXX_STANDARD=14 \
..
-D ENABLE_NETGEN:BOOL=ON

ninja install
ninja -C build install
30 changes: 11 additions & 19 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
{% set name = "smesh" %}
{% set version = "9.9.0.0" %}
{% set sha256 = "bd5bddd509e5120bdd56178c37471984062e8abd36465389d64fb6e1b811a1d4" %}
{% set build_number = 12 %}
{% set build_number = build_number + 500 %} # [FEATURE_DEBUG]

package:
name: {{ name }}
version: {{ version }}

# source:
# fn: {{ name }}_{{ version }}.tar.gz
# url: https://github.com/LaughlinResearch/SMESH/archive/v{{ version }}.tar.gz
# sha256: {{ sha256 }}
# patches:
# - osx-vtk.patch # [osx]
# - linker.patch # [win]
source:
fn: {{ name }}_{{ version }}.tar.gz
url: https://github.com/looooo/SMESH/releases/download/occt7.8.1/SMESH_occt7.8.1.tar.gz
sha256: 876390cf80a3918199949a574b5e091dd705e3e425d2323903989639450bb07a

build:
number: 11
number: {{ build_number }}
run_exports:
- {{ pin_subpackage('smesh', max_pin='x.x.x') }}

Expand All @@ -29,26 +27,20 @@ requirements:
- {{ cdt('libxext-devel') }} # [linux]
- ninja
- cmake
- git
- python-patch
- python
host:
- vtk
- libboost-devel
- occt
- zlib
- libboost-devel
- libzlib
- pthreads-win32 # [win]
# - libmed
run:
- vtk
- {{ pin_compatible('occt', max_pin='x.x.x') }}
- zlib
- pthreads-win32 # [win]
# - libmed

test:
source_files:
- SMESH/test
- test
requires:
- {{ compiler('cxx') }}
- {{ compiler('c') }}
Expand All @@ -69,7 +61,7 @@ about:
home: https://github.com/LaughlinResearch/SMESH
license: LGPL-2.1-or-later
license_family: LGPL
license_file: SMESH/LICENSE.txt
license_file: LICENSE.txt
summary: A complete MESH framework based on the OCCT library.
description: Standalone version of the meshing library from the Salome Platform.

Expand Down
28 changes: 11 additions & 17 deletions recipe/run_test.bat
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
cd SMESH/test
mkdir build
cd build

cmake -G "Ninja" ^
-D CMAKE_BUILD_TYPE=Release ^
-D CMAKE_PREFIX_PATH:FILEPATH="%LIBRARY_PREFIX%" ^
-D CMAKE_SYSTEM_PREFIX_PATH:FILEPATH="%LIBRARY_PREFIX%" ^
-D PTHREAD_INCLUDE_DIRS:FILEPATH="%LIBRARY_PREFIX%/include" ^
-D PTHREAD_LIB_DIRS:FILEPATH="%LIBRARY_PREFIX%/lib" ^
..
-B test/build -S test/. ^
-D CMAKE_BUILD_TYPE=Release ^
-D CMAKE_PREFIX_PATH:FILEPATH="%LIBRARY_PREFIX%" ^
-D CMAKE_SYSTEM_PREFIX_PATH:FILEPATH="%LIBRARY_PREFIX%" ^
-D PTHREAD_INCLUDE_DIRS:FILEPATH="%LIBRARY_PREFIX%/include" ^
-D PTHREAD_LIB_DIRS:FILEPATH="%LIBRARY_PREFIX%/lib" ^

if errorlevel 1 exit 1
ninja install
ninja -C test/build install
if errorlevel 1 exit 1

cd ..
cd tests
test_Catch.exe
test_StdMeshers.exe
test_NETGENPlugin.exe
test_MEFISTO2.exe
test/tests/test_Catch.exe
test/tests/test_StdMeshers.exe
test/tests/test_NETGENPlugin.exe
test/tests/test_MEFISTO2.exe
22 changes: 7 additions & 15 deletions recipe/run_test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
cd SMESH/test
mkdir build
cd build

if [[ $target_platform == linux-aarch64 ]]; then
echo "tests are not yet working"
exit 0
Expand All @@ -18,19 +14,15 @@ if [[ ${HOST} =~ .*linux.* ]]; then
fi

cmake -G "Ninja" \
-B test/build -S test/. \
-D CMAKE_BUILD_TYPE:STRING="Release" \
${CMAKE_PLATFORM_FLAGS[@]} \
-D CMAKE_INSTALL_PREFIX:FILEPATH=$PREFIX \
-D CMAKE_PREFIX_PATH:FILEPATH=$PREFIX \
..

ninja install

cd ..
cd tests
-D CMAKE_PREFIX_PATH:FILEPATH=$PREFIX

ninja -C test/build install

./test_Catch
./test_StdMeshers
./test_NETGENPlugin
./test_MEFISTO2
./test/tests/test_Catch
./test/tests/test_StdMeshers
./test/tests/test_NETGENPlugin
./test/tests/test_MEFISTO2

0 comments on commit 087a77a

Please sign in to comment.