meson.build 765 Bytes
Newer Older
1
if libavutil_dep.found() or gcrypt_dep.found()
2 3 4 5 6
  crypto_md5 = static_library(
    'crypto_md5',
    'MD5.cxx',
    include_directories: inc,
    dependencies: [
7
      libavutil_dep,
8 9 10 11 12 13 14 15 16 17 18 19
      gcrypt_dep,
    ],
  )

  crypto_md5_dep = declare_dependency(
    link_with: crypto_md5,
  )
else
  crypto_md5_dep = dependency('', required: false)
endif

conf.set('HAVE_MD5', crypto_md5_dep.found())
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38

if libavutil_dep.found()
  crypto_base64 = static_library(
    'crypto_base64',
    'Base64.cxx',
    include_directories: inc,
    dependencies: [
      libavutil_dep,
    ],
  )

  crypto_base64_dep = declare_dependency(
    link_with: crypto_base64,
  )
else
  crypto_base64_dep = dependency('', required: false)
endif

conf.set('HAVE_BASE64', crypto_base64_dep.found())