Skip to content
Snippets Groups Projects
Verified Commit 853e3b80 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Cleanup blurhash for usage as subproject

parent 1af9d163
No related branches found
No related tags found
No related merge requests found
[submodule "subprojects/doctest"]
path = subprojects/doctest
url = https://github.com/onqtam/doctest.git
......@@ -4,16 +4,19 @@ project('blurhash', 'cpp',
lib = static_library('blurhash',
'blurhash.cpp',
include_directories: '.',
install : true)
doctest_dep = dependency('doctest', fallback : ['doctest', 'doctest_dep'])
if get_option('tests')
doctest_dep = dependency('doctest', required: true, fallback : ['onqtam-doctest', 'doctest_dep'])
tests = executable('blurhash-tests',
'blurhash.cpp',
cpp_args : '-DDOCTEST_CONFIG_IMPLEMENT_WITH_MAIN',
dependencies: doctest_dep,
install : false)
test('blurhash-tests', tests)
tests = executable('blurhash-tests',
'blurhash.cpp',
cpp_args : '-DDOCTEST_CONFIG_IMPLEMENT_WITH_MAIN',
dependencies: doctest_dep,
install : false)
test('blurhash-tests', tests)
endif
bench = executable('blurhash-decode-bench', 'blurhash-decode-bench.cpp', link_with: lib, install: false)
benchmark('blurhash-decode-bench', bench, timeout: 60, should_fail: true)
......@@ -30,3 +33,6 @@ pkg.generate(libraries : [lib],
name : meson.project_name(),
filebase : meson.project_name(),
description : 'C++ blurhash encoder/decoder')
blurhash_dep = declare_dependency(link_with: lib, include_directories: '.')
meson.override_dependency('blurhash', blurhash_dep)
option('tests', type : 'boolean', value : false, description : 'Build the tests')
Subproject commit a82821424d4826bfa891b4afef6767f447012774
[wrap-file]
directory = doctest-2.4.6
source_url = https://github.com/onqtam/doctest/archive/2.4.6.zip
source_filename = doctest-2.4.6.zip
source_hash = 93b2bf5804730889574a4506c8dac9a24126d035ed840dbf2893358ed093b048
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment