mirror of
https://github.com/labwc/labwc.git
synced 2026-04-10 08:21:07 -04:00
[fixup] make xpm optional at build time (default disabled)
This commit is contained in:
parent
7366bdcef9
commit
24cbd2fc5c
4 changed files with 18 additions and 1 deletions
|
|
@ -106,6 +106,12 @@ else
|
|||
endif
|
||||
conf_data.set10('HAVE_RSVG', have_rsvg)
|
||||
|
||||
have_xpm = false
|
||||
if get_option('xpm').enabled()
|
||||
have_xpm = true
|
||||
endif
|
||||
conf_data.set10('HAVE_XPM', have_xpm)
|
||||
|
||||
have_libsfdo = sfdo_basedir.found() and sfdo_desktop.found() and sfdo_icon.found()
|
||||
conf_data.set10('HAVE_LIBSFDO', have_libsfdo)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
option('man-pages', type: 'feature', value: 'auto', description: 'Generate and install man pages')
|
||||
option('xwayland', type: 'feature', value: 'auto', description: 'Enable support for X11 applications')
|
||||
option('svg', type: 'feature', value: 'enabled', description: 'Enable svg window buttons')
|
||||
option('xpm', type: 'feature', value: 'disabled', description: 'Enable xpm window buttons')
|
||||
option('icon', type: 'feature', value: 'enabled', description: 'Enable window icons')
|
||||
option('nls', type: 'feature', value: 'auto', description: 'Enable native language support')
|
||||
option('static_analyzer', type: 'feature', value: 'disabled', description: 'Run gcc static analyzer')
|
||||
|
|
|
|||
|
|
@ -8,7 +8,10 @@
|
|||
#include "config.h"
|
||||
#include "icon-loader.h"
|
||||
#include "img/img-png.h"
|
||||
|
||||
#if HAVE_XPM
|
||||
#include "img/img-xpm.h"
|
||||
#endif
|
||||
|
||||
#if HAVE_RSVG
|
||||
#include "img/img-svg.h"
|
||||
|
|
@ -180,7 +183,9 @@ icon_loader_lookup(struct server *server, const char *app_id, int size, int scal
|
|||
#endif
|
||||
break;
|
||||
case SFDO_ICON_FILE_FORMAT_XPM:
|
||||
#if HAVE_XPM
|
||||
img_xpm_load(ctx.path, &icon_buffer);
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,14 @@
|
|||
labwc_sources += files(
|
||||
'img-png.c',
|
||||
'img-xbm.c',
|
||||
'img-xpm.c',
|
||||
)
|
||||
|
||||
if have_xpm
|
||||
labwc_sources += files(
|
||||
'img-xpm.c',
|
||||
)
|
||||
endif
|
||||
|
||||
if have_rsvg
|
||||
labwc_sources += files(
|
||||
'img-svg.c',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue