2016-11-24 18:54:51 +03:00
|
|
|
srcs_libshared = [
|
|
|
|
'config-parser.c',
|
|
|
|
'option-parser.c',
|
2020-07-09 13:20:19 +03:00
|
|
|
'signal.c',
|
2016-11-24 18:54:51 +03:00
|
|
|
'file-util.c',
|
|
|
|
'os-compatibility.c',
|
2022-07-12 15:15:23 +03:00
|
|
|
'process-util.c',
|
2022-04-13 18:27:55 +03:00
|
|
|
'hash.c',
|
2016-11-24 18:54:51 +03:00
|
|
|
]
|
2023-05-18 10:17:17 +03:00
|
|
|
deps_libshared = [dep_wayland_client, dep_wayland_server,
|
|
|
|
dep_pixman, deps_for_libweston_users]
|
2016-11-24 18:54:51 +03:00
|
|
|
|
|
|
|
lib_libshared = static_library(
|
|
|
|
'shared',
|
|
|
|
srcs_libshared,
|
2019-04-05 17:09:28 +03:00
|
|
|
include_directories: common_inc,
|
2016-11-24 18:54:51 +03:00
|
|
|
dependencies: deps_libshared,
|
2019-02-06 17:42:09 +03:00
|
|
|
pic: true,
|
2016-11-24 18:54:51 +03:00
|
|
|
install: false
|
|
|
|
)
|
|
|
|
dep_libshared = declare_dependency(
|
|
|
|
link_with: lib_libshared,
|
2019-04-04 13:47:40 +03:00
|
|
|
include_directories: public_inc,
|
2016-11-24 18:54:51 +03:00
|
|
|
dependencies: deps_libshared
|
|
|
|
)
|
|
|
|
|
2021-07-27 12:55:58 +03:00
|
|
|
xcb_dep = dependency('xcb', required: false)
|
|
|
|
|
|
|
|
xcb_xwayland_srcs = [
|
|
|
|
'xcb-xwayland.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
lib_xcb_xwayland = static_library(
|
|
|
|
'xcb-xwayland',
|
|
|
|
xcb_xwayland_srcs,
|
|
|
|
include_directories: common_inc,
|
|
|
|
dependencies: [ xcb_dep ],
|
|
|
|
install: false,
|
|
|
|
build_by_default: false,
|
|
|
|
)
|
|
|
|
|
|
|
|
dep_xcb_xwayland = declare_dependency(
|
|
|
|
link_with: lib_xcb_xwayland,
|
|
|
|
include_directories: public_inc,
|
|
|
|
)
|
|
|
|
|
2016-11-24 18:54:51 +03:00
|
|
|
srcs_cairo_shared = [
|
|
|
|
'image-loader.c',
|
|
|
|
'cairo-util.c',
|
|
|
|
'frame.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
deps_cairo_shared = [
|
|
|
|
dep_libshared,
|
|
|
|
dependency('cairo'),
|
|
|
|
dependency('libpng'),
|
|
|
|
dep_pixman,
|
|
|
|
dep_libm,
|
|
|
|
]
|
|
|
|
|
|
|
|
dep_pango = dependency('pango', required: false)
|
|
|
|
dep_pangocairo = dependency('pangocairo', required: false)
|
2022-06-24 14:47:47 +03:00
|
|
|
dep_fontconfig = dependency('fontconfig', required: false)
|
2016-11-24 18:54:51 +03:00
|
|
|
dep_glib = dependency('glib-2.0', version: '>= 2.36', required: false)
|
|
|
|
|
2022-06-24 14:47:47 +03:00
|
|
|
if dep_pango.found() and dep_pangocairo.found() and dep_fontconfig.found() and dep_glib.found()
|
|
|
|
deps_cairo_shared += [ dep_pango, dep_pangocairo, dep_fontconfig, dep_glib ]
|
2016-11-24 18:54:51 +03:00
|
|
|
config_h.set('HAVE_PANGO', '1')
|
|
|
|
endif
|
|
|
|
|
|
|
|
if get_option('image-jpeg')
|
2018-12-13 23:13:25 +03:00
|
|
|
dep_libjpeg = dependency('libjpeg', required: false)
|
|
|
|
if not dep_libjpeg.found()
|
2018-12-31 15:40:01 +03:00
|
|
|
dep_libjpeg = cc.find_library('jpeg', required: false)
|
|
|
|
endif
|
|
|
|
if not dep_libjpeg.found()
|
|
|
|
error('JPEG image loading requires libjpeg or jpeg, neither was found. Or, you can use \'-Dimage-jpeg=false\'.')
|
2018-12-13 23:13:25 +03:00
|
|
|
endif
|
|
|
|
deps_cairo_shared += dep_libjpeg
|
2016-11-24 18:54:51 +03:00
|
|
|
config_h.set('HAVE_JPEG', '1')
|
|
|
|
endif
|
|
|
|
|
|
|
|
if get_option('image-webp')
|
2018-12-31 15:40:01 +03:00
|
|
|
dep_webp = dependency('libwebp', required: false)
|
|
|
|
if not dep_webp.found()
|
|
|
|
error('WEBP image loading requires libwebp which was not found. Or, you can use \'-Dimage-webp=false\'.')
|
|
|
|
endif
|
|
|
|
deps_cairo_shared += dep_webp
|
2016-11-24 18:54:51 +03:00
|
|
|
config_h.set('HAVE_WEBP', '1')
|
|
|
|
endif
|
|
|
|
|
|
|
|
lib_cairo_shared = static_library(
|
|
|
|
'cairo-shared',
|
|
|
|
srcs_cairo_shared,
|
2019-04-05 17:09:28 +03:00
|
|
|
include_directories: common_inc,
|
2016-11-24 18:54:51 +03:00
|
|
|
dependencies: deps_cairo_shared,
|
|
|
|
install: false
|
|
|
|
)
|
|
|
|
dep_lib_cairo_shared = declare_dependency(
|
|
|
|
link_with: lib_cairo_shared,
|
|
|
|
dependencies: deps_cairo_shared
|
|
|
|
)
|
2019-04-05 13:50:43 +03:00
|
|
|
|
|
|
|
dep_matrix_c = declare_dependency(
|
|
|
|
sources: 'matrix.c',
|
|
|
|
include_directories: public_inc,
|
|
|
|
dependencies: dep_libm
|
|
|
|
)
|