grim/purple-spasm
Clone
Summary
Browse
Changes
Graph
Create a template task, move the debian one to it and added a fedora task as well
2018-11-12, Gary Kramlich
fb6230d70ac7
Create a template task, move the debian one to it and added a fedora task as well
project
(
'purple-spasm'
,
'c'
,
version
:
'0.0.1'
,
)
SOURCES
=
[
'spasm.c'
,
'spasm-account.c'
,
'spasm-chat.c'
,
'spasm-rest.c'
,
'spasm-user.c'
,
]
# The code below should not need to be modified for simple use cases.
add_project_arguments
(
'-DPREFIX="@0@"'
.
format
(
get_option
(
'prefix'
)),
'-DLIBDIR="@0@"'
.
format
(
get_option
(
'libdir'
)),
'-DPLUGIN_VERSION="@0@"'
.
format
(
meson
.
project_version
()),
language
:
'c'
)
PURPLE
=
dependency
(
'purple'
,
version
:
'>=2.0.0'
)
JSON_GLIB
=
dependency
(
'json-glib-1.0'
)
SOUP
=
dependency
(
'libsoup-2.4'
)
shared_library
(
meson
.
project_name
(),
SOURCES
,
name_prefix
:
''
,
dependencies
:
[
PURPLE
,
JSON_GLIB
,
SOUP
],
install
:
true
,
install_dir
:
PURPLE
.
get_pkgconfig_variable
(
'plugindir'
),
)
subdir
(
'icons'
)