Skip to content

Commit

Permalink
Compile once, build multiple packages
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 15, 2024
1 parent e2dc6ac commit cd250d6
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 92 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#!/usr/bin/env bash

mkdir build_cli
cd build_cli
mkdir build
cd build

export CMAKE_ARGS="$CMAKE_ARGS -DWORKBENCH_BUILD_CLI=TRUE -DWORKBENCH_BUILD_GUI=FALSE"

### Identical between build_gui.sh and build_cli.sh
if [[ "$target_platform" == linux-* ]]; then
export CXX_FLAGS="$CXX_FLAGS -lGL -lGLU"
fi
Expand Down
23 changes: 0 additions & 23 deletions recipes/connectome-workbench/build_gui.sh

This file was deleted.

106 changes: 42 additions & 64 deletions recipes/connectome-workbench/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,96 +9,74 @@
{% set version = "2.0.0" %}

package:
name: {{ name }}-split
name: {{ name }}
version: {{ version }}

source:
url: https://github.com/Washington-University/workbench/archive/v{{ version }}.tar.gz
sha256: 2d5a2603a1acb4fabc2b66fab3a8257f05ccd1705cf7f39681be5ff86169dfcf
patches:
- patches/0001-Import-cstdint-into-libCZI.h.patch
- patches/0001-Allow-disabling-Desktop-or-CommandLine-builds.patch
- patches/0001-Fix-unsafe-narrowing.patch

build:
number: 0
skip: true # [osx or win]

requirements:
build:
- {{ compiler('cxx') }}
- {{ stdlib('c') }}
- cmake >=3.0
- ninja
- qwt
# OpenMP
- llvm-openmp # [osx]
- libgomp # [linux]
# libGL
- {{ cdt('mesa-libgl-devel') }} # [linux]
- {{ cdt('mesa-dri-drivers') }} # [linux]
- {{ cdt('libxdamage') }} # [linux]
- {{ cdt('libxxf86vm') }} # [linux]
- {{ cdt('libxext') }} # [linux]
host:
- qt
- openssl
- libzlib
- zlib
- freetype
- libglu # [linux]
- glew # [windows]
run:
- {{ name }}-gui
- {{ name }}-cli

outputs:
- name: {{ name }}-gui
script: build_gui.sh # [not win]
script: build_gui.bat # [win]
files:
include:
- wb_view
requirements:
build:
- {{ compiler('cxx') }}
- {{ stdlib('c') }}
- cmake >=3.0
- ninja
- qwt
# OpenMP
- llvm-openmp # [osx]
- libgomp # [linux]
# libGL
- {{ cdt('mesa-libgl-devel') }} # [linux]
- {{ cdt('mesa-dri-drivers') }} # [linux]
- {{ cdt('libxdamage') }} # [linux]
- {{ cdt('libxxf86vm') }} # [linux]
- {{ cdt('libxext') }} # [linux]
host:
- qt
- openssl
- libzlib
# - xorg-libxfixes # [linux]
- zlib
- freetype
- libglu # [linux]
- glew # [windows]
run:
- qt-main
- libgl # [linux]
- libglu # [linux]
test:
commands:
- wb_view -help
- name: {{ name }}-cli
script: build_cli.sh # [not win]
script: build_cli.bat # [win]
files:
include:
- wb_command
- wb_shortcuts
requirements:
build:
- {{ compiler('cxx') }}
- {{ stdlib('c') }}
- cmake >=3.0
- ninja
# OpenMP
- llvm-openmp # [osx]
- libgomp # [linux]
# libGL
- {{ cdt('mesa-libgl-devel') }} # [linux]
- {{ cdt('mesa-dri-drivers') }} # [linux]
- {{ cdt('libxdamage') }} # [linux]
- {{ cdt('libxxf86vm') }} # [linux]
- {{ cdt('libxext') }} # [linux]
host:
- qt
- openssl
- libzlib
# - xorg-libxfixes # [linux]
- zlib
- freetype
- libglu # [linux]
- glew # [windows]
run:
- qt-main
- libgl # [linux]
- libglu # [linux]
test:
commands:
- wb_command -version
- name: {{ name }}
requirements:
run:
- {{ pin_subpackage('connectome-workbench-cli', exact=True) }}
- {{ pin_subpackage('connectome-workbench-gui', exact=True) }}

test:
commands:
- wb_view -help
- wb_command -version
- wb_shortcuts -help

about:
home: https://www.humanconnectome.org/software/connectome-workbench
Expand Down

0 comments on commit cd250d6

Please sign in to comment.