-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test adding libsodium for crypto stuff
MESON LSP IS THE WORST THING IN THE UNIVERSE AFTER TOMATO JAM. I tried to nuke this thing already, and it is always back with its bugs where files are not saved, lines are trimmed and it makes reproducing errors a joke.
- Loading branch information
1 parent
03473c5
commit ad74fb3
Showing
5 changed files
with
96 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
At the moment the way `app` is designed is not really great in my opinion. | ||
It lacks the ability to properly describe information about it and its distribution. | ||
Also, it forces the distribution of an application in multiple files, which might not always be desirable. | ||
Even less so if the plan is to distribute them as single executables at some point. | ||
So... | ||
|
||
```xml | ||
<package circuit="vs.fltk" name="..." type="app" version=""> <!-- types can be app/lib/patch/data for now --> | ||
<i18n src="..." default="en-uk"> | ||
<!--This part is very limited and only related to the file itself. It is not i18n for the underlying app--> | ||
<entry tag="..." desc="..."> | ||
<locale lang="en" country="uk">...</locale> | ||
</entry> | ||
</i18n> | ||
|
||
<metadata> | ||
<authors> | ||
<entry src="..." covers="" excludes=""/> | ||
</authors> | ||
<licences> | ||
<entry src="..." covers="" excludes=""/> | ||
</licences> | ||
<changelog> | ||
<entry src="..." version=""/> | ||
</changelog> | ||
<links> | ||
<entry ref="..." label="..."> | ||
</links> | ||
<signature authority="..." value="..."/> | ||
<package-id>...</package-id> | ||
</metadata> | ||
|
||
<link-with> | ||
<entry src.object="" src.header=""/> | ||
</link-with> | ||
|
||
<policies> | ||
</policies> | ||
|
||
<deps> | ||
<dep name="" src="" version="" excludes="" signature=""/> <!--body is foldback--> | ||
<patch for="" src="" signature=""/> <!--body is foldback--> | ||
</deps> | ||
|
||
<entry src="..."> | ||
<!--Alternative if `src` fails or is not specified --> | ||
</entry> | ||
</package> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[wrap-git] | ||
url = https://github.com/jedisct1/libsodium | ||
revision = 1.0.20-RELEASE | ||
depth = 1 | ||
patch_directory = libsodium | ||
method = meson | ||
|
||
[provide] | ||
libsodium = libsodium_dep | ||
|
||
|
||
#[wrap-file] | ||
#source_url = https://download.libsodium.org/libsodium/releases/libsodium-1.0.20.tar.gz | ||
#source_filename = libsodium-1.0.20.tar.gz | ||
#source_hash = ebb65ef6ca439333c2bb41a0c1990587288da07f6c7fd07cb3a18cc18d30ce19 | ||
#patch_directory = libsodium | ||
#method = meson | ||
#lead_directory_missing = false# | ||
# | ||
#[provide] | ||
#libsodium = libsodium_dep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
project( | ||
'libsodium', | ||
'c', | ||
meson_version: '>=0.56.0', | ||
version: '1.0.20' | ||
) | ||
|
||
mod = import('unstable-external_project') | ||
|
||
p = mod.add_project( | ||
'configure', | ||
configure_options: [ | ||
'--prefix=@PREFIX@', | ||
'--libdir=@PREFIX@/@LIBDIR@', | ||
'--includedir=@PREFIX@/@INCLUDEDIR@', | ||
#'--enable-foo', | ||
], | ||
) | ||
|
||
libsodium_dep = p.dependency('libsodium') | ||
meson.override_dependency('libsodium', libsodium_dep) |