From c4d00405eba9a034b3087c882cafa5f813dbdc44 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 2 Dec 2019 18:02:00 +0300 Subject: Release version 0.29.0-a.1+5 Use switch in buildfile Use variable block for targets with prerequisites --- libcmark-gfm/libcmark-gfm/buildfile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'libcmark-gfm/libcmark-gfm/buildfile') diff --git a/libcmark-gfm/libcmark-gfm/buildfile b/libcmark-gfm/libcmark-gfm/buildfile index 0d80f53..ec95650 100644 --- a/libcmark-gfm/libcmark-gfm/buildfile +++ b/libcmark-gfm/libcmark-gfm/buildfile @@ -9,16 +9,11 @@ lib{cmark-gfm}: {h }{* -version} \ {h }{ version} \ src/{h inc c}{* -main} -windows = ($c.target.class == 'windows') - -gcc = ($c.class == 'gcc') - # No need to include the generated version header into the distribution since # it is installed under a different name and so the correct one will always # be picked up. # h{version}: src/in{cmark-gfm_version} $src_root/manifest -h{version}: { in.symbol = '@' @@ -33,7 +28,7 @@ h{version}: obja{*}: c.poptions += -DCMARK_GFM_STATIC_BUILD objs{*}: c.poptions += -DCMARK_GFM_SHARED_BUILD -if! $windows +if ($c.target.class != 'windows') c.coptions += -fvisibility=hidden else c.poptions += -DWIN32 -D_WINDOWS @@ -43,7 +38,7 @@ else # c.poptions =+ "-I$out_root" "-I$src_root" "-I$src_base" "-I$src_base/src" -if $gcc +if ($c.class == 'gcc') { c.coptions += -pedantic -- cgit v1.1