meson: use wrap files for fcft/tllist subprojects

See: https://mesonbuild.com/Wrap-dependency-system-manual.html
This commit is contained in:
Craig Barnes 2020-12-19 22:43:09 +00:00
parent 2a82096749
commit 013cca646d
9 changed files with 20 additions and 41 deletions

View file

@ -24,8 +24,6 @@ packages:
sources: sources:
- https://codeberg.org/dnkl/foot - https://codeberg.org/dnkl/foot
- https://codeberg.org/dnkl/tllist
- https://codeberg.org/dnkl/fcft
# triggers: # triggers:
# - action: email # - action: email
@ -33,10 +31,6 @@ sources:
# to: <committer> # to: <committer>
tasks: tasks:
- subprojects: |
mkdir foot/subprojects
ln -s ../../tllist foot/subprojects/tllist
ln -s ../../fcft foot/subprojects/fcft
- debug: | - debug: |
mkdir -p bld/debug mkdir -p bld/debug
meson --buildtype=debug -Dfcft:text-shaping=enabled -Dfcft:test-text-shaping=true foot bld/debug meson --buildtype=debug -Dfcft:text-shaping=enabled -Dfcft:test-text-shaping=true foot bld/debug

View file

@ -23,8 +23,6 @@ packages:
sources: sources:
- https://codeberg.org/dnkl/foot - https://codeberg.org/dnkl/foot
- https://codeberg.org/dnkl/tllist
- https://codeberg.org/dnkl/fcft
# triggers: # triggers:
# - action: email # - action: email
@ -32,10 +30,6 @@ sources:
# to: <committer> # to: <committer>
tasks: tasks:
- subprojects: |
mkdir foot/subprojects
ln -s ../../tllist foot/subprojects/tllist
ln -s ../../fcft foot/subprojects/fcft
- debug: | - debug: |
mkdir -p bld/debug mkdir -p bld/debug
meson --buildtype=debug -Dfcft:text-shaping=enabled -Dfcft:test-text-shaping=true foot bld/debug meson --buildtype=debug -Dfcft:text-shaping=enabled -Dfcft:test-text-shaping=true foot bld/debug

View file

@ -18,8 +18,6 @@ packages:
sources: sources:
- https://codeberg.org/dnkl/foot - https://codeberg.org/dnkl/foot
- https://codeberg.org/dnkl/tllist
- https://codeberg.org/dnkl/fcft
# triggers: # triggers:
# - action: email # - action: email
@ -27,10 +25,6 @@ sources:
# to: <committer> # to: <committer>
tasks: tasks:
- subprojects: |
mkdir foot/subprojects
ln -s ../../tllist foot/subprojects/tllist
ln -s ../../fcft foot/subprojects/fcft
- debug: | - debug: |
mkdir -p bld/debug mkdir -p bld/debug
meson --buildtype=debug -Dfcft:text-shaping=enabled -Dfcft:test-text-shaping=true foot bld/debug meson --buildtype=debug -Dfcft:text-shaping=enabled -Dfcft:test-text-shaping=true foot bld/debug

2
.gitignore vendored
View file

@ -1,4 +1,4 @@
/bld/ /bld/
/pkg/ /pkg/
/src/ /src/
/subprojects/ /subprojects/*/

View file

@ -13,10 +13,6 @@ before_script:
- apk add git - apk add git
- apk add check-dev - apk add check-dev
- apk add ttf-hack font-noto-emoji - apk add ttf-hack font-noto-emoji
- mkdir -p subprojects && cd subprojects
- git clone https://codeberg.org/dnkl/tllist.git
- git clone https://codeberg.org/dnkl/fcft.git
- cd ..
debug-x64: debug-x64:
image: alpine:edge image: alpine:edge

View file

@ -20,14 +20,24 @@
## Unreleased ## Unreleased
### Added ### Added
### Changed ### Changed
* The fcft and tllist library subprojects are now handled via Meson
[wrap files](https://mesonbuild.com/Wrap-dependency-system-manual.html)
instead of needing to be manually cloned.
### Deprecated ### Deprecated
### Removed ### Removed
### Fixed ### Fixed
### Security ### Security
### Contributors ### Contributors
* [craigbarnes](https://codeberg.org/craigbarnes)
## 1.6.0 ## 1.6.0

View file

@ -26,15 +26,12 @@ foot makes use of a couple of libraries I have developed:
[tllist](https://codeberg.org/dnkl/tllist) and [tllist](https://codeberg.org/dnkl/tllist) and
[fcft](https://codeberg.org/dnkl/fcft). As such, they will most likely [fcft](https://codeberg.org/dnkl/fcft). As such, they will most likely
not have been installed already. You can either install them as system not have been installed already. You can either install them as system
libraries, or you can build them as _subprojects_ in foot. libraries or build them as _subprojects_ in foot.
When building foot, they will first be searched for as system When building foot, they will first be searched for as system
libraries. If **found**, foot will link dynamically against them. libraries. If **found**, foot will link dynamically against them.
If **not** found, meson will attempt to download and build them as
If **not** found, they will be searched for as subprojects. In this subprojects.
case you need to create the `subprojects` directory and clone
https://codeberg.org/dnkl/fcft.git and
https://codeberg.org/dnkl/tllist.git (see [Other](#other) below).
## Requirements ## Requirements
@ -114,18 +111,6 @@ be interested in the compiler flags used there.
### Setup ### Setup
If you have not installed [tllist](https://codeberg.org/dnkl/tllist)
and [fcft](https://codeberg.org/dnkl/fcft) as system libraries, clone
them into the `subprojects` directory:
```sh
mkdir -p subprojects
pushd subprojects
git clone https://codeberg.org/dnkl/tllist.git
git clone https://codeberg.org/dnkl/fcft.git
popd
```
To build, first, create a build directory, and switch to it: To build, first, create a build directory, and switch to it:
```sh ```sh
mkdir -p bld/release && cd bld/release mkdir -p bld/release && cd bld/release

3
subprojects/fcft.wrap Normal file
View file

@ -0,0 +1,3 @@
[wrap-git]
url = https://codeberg.org/dnkl/fcft.git
revision = master

3
subprojects/tllist.wrap Normal file
View file

@ -0,0 +1,3 @@
[wrap-git]
url = https://codeberg.org/dnkl/tllist.git
revision = master