diff --git a/ci_config.json b/ci_config.json index 8ef616fe8..18c6717be 100644 --- a/ci_config.json +++ b/ci_config.json @@ -736,6 +736,11 @@ ], "skip_tests": true }, + "monocypher": { + "build_on": { + "windows": false + } + }, "mpdecimal": { "build_options": [ "mpdecimal:examples=true", diff --git a/releases.json b/releases.json index d23f7ef28..6554e49f0 100644 --- a/releases.json +++ b/releases.json @@ -2424,6 +2424,14 @@ "1.0-2" ] }, + "monocypher": { + "dependency_names": [ + "monocypher" + ], + "versions": [ + "4.0.2-1" + ] + }, "mpdecimal": { "dependency_names": [ "mpdec", diff --git a/subprojects/monocypher.wrap b/subprojects/monocypher.wrap new file mode 100644 index 000000000..0c7dc4c7d --- /dev/null +++ b/subprojects/monocypher.wrap @@ -0,0 +1,9 @@ +[wrap-file] +source_url = https://github.com/LoupVaillant/Monocypher/releases/download/4.0.2/monocypher-4.0.2.tar.gz +directory = monocypher-4.0.2 +source_filename = monocypher-4.0.2.tar.gz +source_hash = 38d07179738c0c90677dba3ceb7a7b8496bcfea758ba1a53e803fed30ae0879c +patch_directory = monocypher + +[provide] +monocypher = monocypher_dep diff --git a/subprojects/packagefiles/monocypher/meson.build b/subprojects/packagefiles/monocypher/meson.build new file mode 100644 index 000000000..4291c876e --- /dev/null +++ b/subprojects/packagefiles/monocypher/meson.build @@ -0,0 +1,30 @@ +project( + 'monocypher', 'c', + version: '4.0.2', + license: 'CC0-1.0' +) + +monocypher_lib = library( + 'monocypher', [ + 'src/monocypher.c', + 'src/optional/monocypher-ed25519.c', + ], + include_directories: ['src', 'src/optional'], + install: true, +) + +monocypher_dep = declare_dependency( + include_directories: ['src', 'src/optional'], + link_with: monocypher_lib, +) + +monocypher_test = executable( + 'monocypher_test', [ + 'tests/test.c', + 'tests/utils.c', + ], + include_directories: ['tests'], + dependencies: monocypher_dep, +) + +test('monocypher', monocypher_test)