meson: keysign only when using mono and use a project argument

This commit is contained in:
Thibault Saunier 2017-09-25 12:00:00 -03:00
parent 45140d7293
commit 7976844b56
3 changed files with 9 additions and 6 deletions

View file

@ -1,13 +1,11 @@
pkg = 'gst-editing-services'
raw_api_fname = join_paths(meson.current_source_dir(), pkg + '-api.raw')
metadata_fname = join_paths(meson.current_source_dir(), pkg + '.metadata')
snk = join_paths(meson.current_source_dir(), '../', meson.project_name() + '.snk')
subdir('generated')
ges_sharp = library(pkg + '-sharp', source_gen,
cs_args: ['-nowarn:169', '-nowarn:108', '-nowarn:114', '-unsafe',
'-keyfile:' + snk],
cs_args: ['-nowarn:169', '-nowarn:108', '-nowarn:114', '-unsafe'],
link_with: gst_sharp,
dependencies: [glib_sharp_dep, gio_sharp_dep])

View file

@ -11,6 +11,13 @@ endif
gtk_sharp_required_version = '>=3.22.6'
csc = meson.get_compiler('cs')
if csc.get_id() == 'mono'
add_project_arguments('-keyfile:' + join_paths(meson.current_source_dir(), meson.project_name() + '.snk'),
language: ['cs'])
endif
subproject('gtk-sharp', default_options: ['install=false'])
gtk_sharp = subproject('gtk-sharp')

View file

@ -1,6 +1,5 @@
raw_api_fname = join_paths(meson.current_source_dir(), meson.project_name() + '-api.raw')
metadata_fname = join_paths(meson.current_source_dir(), meson.project_name() + '.metadata')
snk = join_paths(meson.current_source_dir(), '../', meson.project_name() + '.snk')
glueincludes = 'gst/gst.h,gst/app/app.h,gst/audio/audio.h,gst/base/base.h,gst/controller/controller.h,gst/fft/fft.h,gst/net/net.h,gst/pbutils/gstaudiovisualizer.h,gst/pbutils/pbutils.h,gst/rtp/rtp.h,gst/rtsp/rtsp.h,gst/sdp/sdp.h,gst/tag/tag.h,gst/video/video.h'
gluefile = join_paths(meson.current_build_dir(), 'generate.c')
@ -37,8 +36,7 @@ sources = [
subdir('generated')
gst_sharp = library('gstreamer-sharp', gst_source_gen, sources,
cs_args: ['-nowarn:169', '-nowarn:108', '-nowarn:114', '-unsafe',
'-keyfile:' + snk],
cs_args: ['-nowarn:169', '-nowarn:108', '-nowarn:114', '-unsafe'],
dependencies: [glib_sharp_dep, gio_sharp_dep])
gst_sharp_dep = declare_dependency(dependencies: [glib_sharp_dep, gio_sharp_dep],