Skip to content

Commit

Permalink
Merge remote-tracking branch #375 (VENOM-375) into release-0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
naxuroqa committed May 25, 2018
2 parents 4ff20bc + 1786b47 commit f21aad4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ Dependencies
* `glib-2.0 >= 2.56`
* `json-glib-1.0`
* `libsoup-2.4`
* `libgee >= 0.20`
* `sqlite3`
* `toxcore >= 0.2.2`
* `toxcore >= 0.2`

Build-Dependencies
------------------
Expand Down
8 changes: 7 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ project('venom', ['vala', 'c'],

i18n = import('i18n')
gnome = import('gnome')
valac = meson.get_compiler('vala')

localedir = join_paths(get_option('prefix'), get_option('localedir'))
add_project_arguments('-DGETTEXT_PACKAGE="' + meson.project_name() + '"', language: 'c')

conf_data = configuration_data()
conf_data.set_quoted('VENOM_VERSION', meson.project_version())
Expand All @@ -19,3 +19,9 @@ subdir('data')
subdir('po')
subdir('src')
subdir('src/testing')

message('\n'.join(['',
' @0@-@1@'.format(meson.project_name(), meson.project_version()),
' prefix: @0@'.format(get_option('prefix')),
' buildtype: @0@'.format(get_option('buildtype'))
]))
14 changes: 7 additions & 7 deletions src/meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
root_source_dir = meson.current_source_dir()
vapi_dir = join_paths(meson.current_source_dir(), 'vapi')

add_project_arguments(['--vapidir', join_paths(meson.current_source_dir(), 'vapi')],
language: 'vala')
add_project_arguments(['--vapidir', vapi_dir], language: 'vala')
add_project_arguments('-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), language: 'c')

gtk_dep = dependency('gtk+-3.0')
gdk_dep = dependency('gdk-3.0')
Expand All @@ -14,17 +14,17 @@ json_dep = dependency('json-glib-1.0')
soup_dep = dependency('libsoup-2.4')
tox_dep = dependency('toxcore')
gst_dep = dependency('gstreamer-1.0', required : false)
posix_dep = meson.get_compiler('vala').find_library('posix', required : false)
posix_dep = valac.find_library('posix', required : false)

config_vapi = meson.get_compiler('vala').find_library('config', dirs: join_paths(meson.current_source_dir(), 'vapi'))
config_vapi = valac.find_library('config', dirs: vapi_dir)
config_dep = declare_dependency(dependencies: [config_vapi], include_directories : include_directories('.'))
configure_file(output : 'config.h', configuration : conf_data)

venom_ui_resources = gnome.compile_resources( 'venom_ui_resources', 'ui/venom.gresource.xml',
venom_ui_resources = gnome.compile_resources('venom_ui_resources', 'ui/venom.gresource.xml',
source_dir : 'ui',
c_name : 'c_venom_ui_res')

venom_icons_resources = gnome.compile_resources( 'venom_icons_resources', 'icons/icons.gresource.xml',
venom_icons_resources = gnome.compile_resources('venom_icons_resources', 'icons/icons.gresource.xml',
source_dir : 'icons',
c_name : 'c_venom_icons_res')

Expand Down
2 changes: 2 additions & 0 deletions src/testing/meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
root_source_dir = join_paths(meson.current_source_dir(), '..')

if posix_dep.found()
executable('group_bot', ['GroupBot.vala',
join_paths(root_source_dir, 'core/Tools.vala')],
Expand Down

0 comments on commit f21aad4

Please sign in to comment.