Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrtj committed Sep 19, 2024
1 parent d4c18d0 commit 0ba309a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions alienfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use alienfile;
plugin 'PkgConfig' => 'libsecp256k1';

share {
my $is_win = $^O eq 'MSWin32';
my $run_tests = $ENV{ALIEN_LIBSECP256K1_RUN_TESTS};

start_url 'https://github.com/bitcoin-core/secp256k1/archive/refs/tags/v0.5.1.tar.gz';
Expand All @@ -12,12 +13,14 @@ share {
plugin Extract => 'tar.gz';

plugin 'Build::CMake';
plugin 'Gather::IsolateDynamic';
plugin 'Gather::IsolateDynamic'
unless $is_win;

build [
[
'%{cmake}',
@{meta->prop->{plugin_build_cmake}->{args}},
'-DSECP256K1_DISABLE_SHARED=ON',
'-DSECP256K1_DISABLE_SHARED=' . ($is_win ? 'OFF' : 'ON'),
'-DSECP256K1_VALGRIND=' . ($run_tests ? 'ON' : 'OFF'),
'-DSECP256K1_BUILD_TESTS=' . ($run_tests ? 'ON' : 'OFF'),
'-DSECP256K1_BUILD_EXHAUSTIVE_TESTS=' . ($run_tests ? 'ON' : 'OFF'),
Expand Down

0 comments on commit 0ba309a

Please sign in to comment.