Skip to content

Commit

Permalink
Merge pull request #49 from jdblischak/move-capnproto-to-build
Browse files Browse the repository at this point in the history
  • Loading branch information
LehMaxence authored Oct 7, 2024
2 parents d0fb57a + ccfc6ce commit 58147b8
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/azure-pipelines-win.yml

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

10 changes: 5 additions & 5 deletions .ci_support/linux_64_.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
c_compiler:
- gcc
c_compiler_version:
- '12'
- '13'
c_stdlib:
- sysroot
c_stdlib_version:
- '2.12'
- '2.17'
cdt_name:
- cos6
- cos7
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- gxx
cxx_compiler_version:
- '12'
- '13'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
openssl:
Expand All @@ -28,4 +28,4 @@ zip_keys:
- - c_stdlib_version
- cdt_name
zlib:
- '1.2'
- '1'
6 changes: 3 additions & 3 deletions .ci_support/osx_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ MACOSX_SDK_VERSION:
c_compiler:
- clang
c_compiler_version:
- '16'
- '17'
c_stdlib:
- macosx_deployment_target
c_stdlib_version:
Expand All @@ -17,7 +17,7 @@ channel_targets:
cxx_compiler:
- clangxx
cxx_compiler_version:
- '16'
- '17'
macos_machine:
- x86_64-apple-darwin13.4.0
openssl:
Expand All @@ -28,4 +28,4 @@ zip_keys:
- - c_compiler_version
- cxx_compiler_version
zlib:
- '1.2'
- '1'
6 changes: 3 additions & 3 deletions .ci_support/osx_arm64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ MACOSX_SDK_VERSION:
c_compiler:
- clang
c_compiler_version:
- '16'
- '17'
c_stdlib:
- macosx_deployment_target
c_stdlib_version:
Expand All @@ -17,7 +17,7 @@ channel_targets:
cxx_compiler:
- clangxx
cxx_compiler_version:
- '16'
- '17'
macos_machine:
- arm64-apple-darwin20.0.0
openssl:
Expand All @@ -28,4 +28,4 @@ zip_keys:
- - c_compiler_version
- cxx_compiler_version
zlib:
- '1.2'
- '1'
2 changes: 1 addition & 1 deletion .ci_support/win_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ openssl:
target_platform:
- win-64
zlib:
- '1.2'
- '1'
8 changes: 8 additions & 0 deletions .scripts/build_steps.sh

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

9 changes: 8 additions & 1 deletion .scripts/run_osx_build.sh

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

9 changes: 7 additions & 2 deletions .scripts/run_win_build.bat

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

9 changes: 6 additions & 3 deletions build-locally.py

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

7 changes: 1 addition & 6 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@ HOST_ARCH=${CONDA_TOOLCHAIN_HOST%%-*}

configure_cmd=(./configure --enable-shared --prefix=$PREFIX)

# cross-compiling needs to use prebuilt capnp
# cross-compiling needs to use prebuilt capnproto
# https://github.com/capnproto/capnproto/issues/1815#issuecomment-1732327995
# We should install this using meta.yaml, but currently capnproto requires
# openSSL 1.1, which conflicts with some other dependencies, so we have to
# install it here with --no-deps.
# TODO: remove this when capnproto is updated to use openSSL 3.
if [[ "${BUILD_ARCH}" != "${HOST_ARCH}" ]]; then
mamba install --no-deps --yes capnproto
configure_cmd+=("--with-external-capnp")
fi

Expand Down
5 changes: 4 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ source:
- fix-msvc.diff

build:
number: 1
number: 2
run_exports:
# soname changes with every release
# https://abi-laboratory.pro/index.php?view=timeline&l=capnproto
Expand All @@ -30,6 +30,9 @@ requirements:
- automake # [unix]
- libtool # [unix]
- binutils # [unix]
# cross-compiling needs to use prebuilt capnproto
# https://github.com/capnproto/capnproto/issues/1815#issuecomment-1732327995
- capnproto # [build_platform != target_platform]
host:
- zlib
- openssl
Expand Down

0 comments on commit 58147b8

Please sign in to comment.