diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-12-02 18:02:00 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-12-02 18:02:00 +0300 |
commit | c4d00405eba9a034b3087c882cafa5f813dbdc44 (patch) | |
tree | c71f32b1e255e2e20044cfbf8289e147b239cf00 /libcmark-gfm-extensions/libcmark-gfm-extensions/buildfile | |
parent | 067fed695fb90df65bde406ddb29150e03d6e60f (diff) |
Release version 0.29.0-a.1+5v0.29.0-a.1+5
Use switch in buildfile
Use variable block for targets with prerequisites
Diffstat (limited to 'libcmark-gfm-extensions/libcmark-gfm-extensions/buildfile')
-rw-r--r-- | libcmark-gfm-extensions/libcmark-gfm-extensions/buildfile | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/libcmark-gfm-extensions/libcmark-gfm-extensions/buildfile b/libcmark-gfm-extensions/libcmark-gfm-extensions/buildfile index 5229fd9..6f57397 100644 --- a/libcmark-gfm-extensions/libcmark-gfm-extensions/buildfile +++ b/libcmark-gfm-extensions/libcmark-gfm-extensions/buildfile @@ -6,41 +6,39 @@ import int_libs = libcmark-gfm%lib{cmark-gfm} lib{cmark-gfm-extensions}: {h c}{**} $int_libs -windows = ($c.target.class == 'windows') - -gcc = ($c.class == 'gcc') -msvc = ($c.class == 'msvc') - # Build options. # obja{*}: c.poptions += -DCMARK_GFM_EXTENSIONS_STATIC_BUILD objs{*}: c.poptions += -DCMARK_GFM_EXTENSIONS_SHARED_BUILD -if! $windows +if ($c.target.class != 'windows') c.coptions += -fvisibility=hidden else c.poptions += -DWIN32 -D_WINDOWS c.poptions =+ "-I$src_base" "-I$src_base/extensions" -if $msvc -{ - # Disable warnings that pop up with /W3. - # - c.coptions += /wd4311 -} -elif $gcc +switch $c.class { - c.coptions += -pedantic + case 'gcc' + { + c.coptions += -pedantic - # Disable warnings that pop up with -Wextra. Upstream doesn't seem to care - # about these and it is not easy to disable specific warnings in a way that - # works across compilers/version (some -Wno-* options are only recognized in - # newer versions). There are still some warnings left that appear for - # certain platforms/compilers. We pass them through but disable treating - # them as errors. - # - c.coptions += -Wno-extra -Wno-error + # Disable warnings that pop up with -Wextra. Upstream doesn't seem to care + # about these and it is not easy to disable specific warnings in a way + # that works across compilers/version (some -Wno-* options are only + # recognized in newer versions). There are still some warnings left that + # appear for certain platforms/compilers. We pass them through but disable + # treating them as errors. + # + c.coptions += -Wno-extra -Wno-error + } + case 'msvc' + { + # Disable warnings that pop up with /W3. + # + c.coptions += /wd4311 + } } # Export options. |