-
Notifications
You must be signed in to change notification settings - Fork 808
meta-oe: fbida: switch to git and meson, update to newer SRC_REV #676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
34 changes: 0 additions & 34 deletions
34
meta-oe/recipes-graphics/fbida/files/0001-Avoid-using-host-path.patch
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
meta-oe/recipes-graphics/fbida/files/0001-meson.build-install-fbgs-shell-script.patch
This file contains hidden or 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,26 @@ | ||
| From f9c455e81ad4d870c8ae20b9af8598139231ad26 Mon Sep 17 00:00:00 2001 | ||
| From: "Meyer, Wolfgang" <[email protected]> | ||
| Date: Fri, 9 Sep 2022 09:32:22 +0200 | ||
| Subject: [PATCH] meson.build: install fbgs shell script | ||
|
|
||
| --- | ||
| meson.build | 3 +++ | ||
| 1 file changed, 3 insertions(+) | ||
|
|
||
| diff --git a/meson.build b/meson.build | ||
| index cbed982..2129896 100644 | ||
| --- a/meson.build | ||
| +++ b/meson.build | ||
| @@ -124,6 +124,9 @@ executable('fbpdf', | ||
| sources : fbpdf_srcs, | ||
| dependencies : fbpdf_deps, | ||
| install : true) | ||
| +install_data('fbgs', | ||
| + install_dir : get_option('bindir'), | ||
| + install_mode : 'rwxr--r--') | ||
|
|
||
| # build kbdtest | ||
| executable('kbdtest', | ||
| -- | ||
| 2.37.3 | ||
|
|
||
123 changes: 123 additions & 0 deletions
123
...ipes-graphics/fbida/files/0002-meson.build-add-features-options-for-png-gif-tiff-we.patch
This file contains hidden or 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,123 @@ | ||
| From fa60c06cadd6acd8abede91e75254e7250a087a3 Mon Sep 17 00:00:00 2001 | ||
| From: "Meyer, Wolfgang" <[email protected]> | ||
| Date: Fri, 16 Sep 2022 13:40:25 +0200 | ||
| Subject: [PATCH] meson.build: add features options for png, gif, tiff, webp, | ||
| and motif | ||
|
|
||
rohieb marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| --- | ||
| meson.build | 41 +++++++++++++++++++++++++++-------------- | ||
| meson_options.txt | 5 +++++ | ||
| selections.c | 4 ++++ | ||
| 3 files changed, 36 insertions(+), 14 deletions(-) | ||
| create mode 100644 meson_options.txt | ||
|
|
||
| diff --git a/meson.build b/meson.build | ||
| index cbed982..e66ee48 100644 | ||
| --- a/meson.build | ||
| +++ b/meson.build | ||
| @@ -21,9 +21,9 @@ drm_dep = dependency('libdrm') | ||
| gbm_dep = dependency('gbm') | ||
| epoxy_dep = dependency('epoxy') | ||
| exif_dep = dependency('libexif') | ||
| -png_dep = dependency('libpng') | ||
| -tiff_dep = dependency('libtiff-4') | ||
| -webp_dep = dependency('libwebp', required : false) | ||
| +png_dep = dependency('libpng', required: get_option('png')) | ||
| +tiff_dep = dependency('libtiff-4', required: get_option('tiff')) | ||
| +webp_dep = dependency('libwebp', required : get_option('webp')) | ||
| udev_dep = dependency('libudev') | ||
| input_dep = dependency('libinput') | ||
|
|
||
| @@ -32,20 +32,20 @@ cc = meson.get_compiler('c') | ||
| jpeg_dep = cc.find_library('jpeg') | ||
| math_dep = cc.find_library('m', required : false) | ||
| pcd_dep = cc.find_library('pcd', required : false) | ||
| -gif_dep = cc.find_library('gif', required : false) | ||
| +gif_dep = cc.find_library('gif', required: get_option('gif')) | ||
|
|
||
| # motif + x11 libs | ||
| -motif_dep = cc.find_library('Xm', required : false) | ||
| -xpm_dep = cc.find_library('Xpm', required : false) | ||
| -xt_dep = cc.find_library('Xt', required : false) | ||
| -xext_dep = cc.find_library('Xext', required : false) | ||
| -x11_dep = cc.find_library('X11', required : false) | ||
| +motif_dep = cc.find_library('Xm', required : get_option('motif')) | ||
| +xpm_dep = cc.find_library('Xpm', required : get_option('motif')) | ||
| +xt_dep = cc.find_library('Xt', required : get_option('motif')) | ||
| +xext_dep = cc.find_library('Xext', required : get_option('motif')) | ||
| +x11_dep = cc.find_library('X11', required : get_option('motif')) | ||
|
|
||
| # image formats | ||
| read_srcs = [ 'readers.c', 'rd/read-ppm.c', 'rd/read-bmp.c', | ||
| - 'rd/read-jpeg.c', 'rd/read-png.c', 'rd/read-tiff.c' ] | ||
| + 'rd/read-jpeg.c' ] | ||
| write_srcs = [ 'writers.c', 'wr/write-ppm.c', 'wr/write-ps.c', | ||
| - 'wr/write-jpeg.c', 'wr/write-png.c', 'wr/write-tiff.c' ] | ||
| + 'wr/write-jpeg.c' ] | ||
| image_deps = [ jpeg_dep, png_dep, tiff_dep, | ||
| pcd_dep, gif_dep, webp_dep ] | ||
|
|
||
| @@ -53,11 +53,21 @@ if pcd_dep.found() | ||
| read_srcs += 'rd/read-pcd.c' | ||
| config.set('HAVE_LIBPCD', true) | ||
| endif | ||
| -if gif_dep.found() | ||
| +if get_option('png').enabled() | ||
| + read_srcs += 'rd/read-png.c' | ||
| + write_srcs += 'wr/write-png.c' | ||
| + config.set('HAVE_LIBPNG', true) | ||
| +endif | ||
| +if get_option('tiff').enabled() | ||
| + read_srcs += 'rd/read-tiff.c' | ||
| + write_srcs += 'wr/write-tiff.c' | ||
| + config.set('HAVE_LIBTIFF', true) | ||
| +endif | ||
| +if get_option('gif').enabled() | ||
| read_srcs += 'rd/read-gif.c' | ||
| config.set('HAVE_LIBGIF', true) | ||
| endif | ||
| -if webp_dep.found() | ||
| +if get_option('webp').enabled() | ||
| read_srcs += 'rd/read-webp.c' | ||
| config.set('HAVE_LIBWEBP', true) | ||
| endif | ||
| @@ -153,7 +166,7 @@ ida_srcs = [ 'ida.c', 'man.c', 'hex.c', 'x11.c', 'viewer.c', | ||
| ida_deps = [ pixman_dep, exif_dep, image_deps, math_dep, | ||
| motif_dep, xpm_dep, xt_dep, xext_dep, x11_dep ] | ||
|
|
||
| -if motif_dep.found() | ||
| +if get_option('motif').enabled() | ||
| executable('ida', | ||
| sources : ida_srcs, | ||
| dependencies : ida_deps, | ||
| diff --git a/meson_options.txt b/meson_options.txt | ||
| new file mode 100644 | ||
| index 0000000..ce37188 | ||
| --- /dev/null | ||
| +++ b/meson_options.txt | ||
| @@ -0,0 +1,5 @@ | ||
| +option('gif', type: 'feature', value : 'enabled') | ||
| +option('png', type: 'feature', value : 'enabled') | ||
| +option('tiff', type: 'feature', value : 'enabled') | ||
| +option('webp', type: 'feature', value : 'disabled') | ||
| +option('motif', type: 'feature', value : 'disabled') | ||
| diff --git a/selections.c b/selections.c | ||
| index 7b16264..ccdc686 100644 | ||
| --- a/selections.c | ||
| +++ b/selections.c | ||
| @@ -609,8 +609,12 @@ void ipc_init() | ||
| #ifdef HAVE_LIBGIF | ||
| targets[ntargets++] = MIME_IMAGE_GIF; | ||
| #endif | ||
| +#ifdef HAVE_LIBPNG | ||
| targets[ntargets++] = MIME_IMAGE_PNG; | ||
| +#endif | ||
| +#ifdef HAVE_LIBTIFF | ||
| targets[ntargets++] = MIME_IMAGE_TIFF; | ||
| +#endif | ||
| targets[ntargets++] = XA_PIXMAP; | ||
| targets[ntargets++] = XA_STRING; | ||
|
|
||
| -- | ||
| 2.37.3 | ||
|
|
||
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.