Skip to content

Commit

Permalink
Meson: Use shared_library() because static build of C# is not supported
Browse files Browse the repository at this point in the history
When gtk-sharp is used as a subproject (e.g. gst-build) and the master
project is built with default-library=both, gtk-sharp should still only
build shared libraries instead of failing to configure.

Closes: GLibSharp#33
  • Loading branch information
xclaesse committed Mar 24, 2018
1 parent 719693c commit a431e48
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Source/atk/meson.build
Expand Up @@ -21,7 +21,7 @@ sources = [
'Util.cs',
]

atk_sharp = library(assembly_name, source_gen, sources, assemblyinfo,
atk_sharp = shared_library(assembly_name, source_gen, sources, assemblyinfo,
cs_args: ['-unsafe'],
link_with: glib_sharp,
install: install,
Expand Down
2 changes: 1 addition & 1 deletion Source/cairo/meson.build
Expand Up @@ -60,7 +60,7 @@ sources = [
'XlibSurface.cs',
]

cairo_sharp = library(assembly_name, sources, assemblyinfo,
cairo_sharp = shared_library(assembly_name, sources, assemblyinfo,
install: install,
install_dir: lib_install_dir
)
Expand Down
2 changes: 1 addition & 1 deletion Source/gdk/meson.build
Expand Up @@ -63,7 +63,7 @@ sources = [
]

deps = [glib_sharp, pango_sharp, cairo_sharp, gio_sharp]
gdk_sharp = library(assembly_name, source_gen, sources, assemblyinfo,
gdk_sharp = shared_library(assembly_name, source_gen, sources, assemblyinfo,
cs_args: ['-unsafe'],
link_with: deps,
install: install,
Expand Down
2 changes: 1 addition & 1 deletion Source/gio/meson.build
Expand Up @@ -28,7 +28,7 @@ sources = [
'IFile.cs'
]

gio_sharp = library(assembly_name, source_gen, sources, assemblyinfo,
gio_sharp = shared_library(assembly_name, source_gen, sources, assemblyinfo,
cs_args: ['-unsafe'],
link_with: glib_sharp,
install: install,
Expand Down
2 changes: 1 addition & 1 deletion Source/glib/meson.build
Expand Up @@ -95,7 +95,7 @@ sources = [
'VariantType.cs']


glib_sharp = library(assembly_name, sources, assemblyinfo,
glib_sharp = shared_library(assembly_name, sources, assemblyinfo,
cs_args: ['-unsafe'],
install: install,
install_dir: lib_install_dir
Expand Down
2 changes: 1 addition & 1 deletion Source/gtk/meson.build
Expand Up @@ -132,7 +132,7 @@ sources = [
]

deps = [glib_sharp, pango_sharp, cairo_sharp, gio_sharp, atk_sharp, gdk_sharp]
gtk_sharp = library(assembly_name, source_gen, sources, assemblyinfo,
gtk_sharp = shared_library(assembly_name, source_gen, sources, assemblyinfo,
cs_args: ['-unsafe', '-nowarn:0618,0612,0169'],
link_with: deps,
install: install,
Expand Down
2 changes: 1 addition & 1 deletion Source/pango/meson.build
Expand Up @@ -57,7 +57,7 @@ sources = [
]

deps = [glib_sharp, cairo_sharp]
pango_sharp = library(assembly_name, source_gen, sources, assemblyinfo,
pango_sharp = shared_library(assembly_name, source_gen, sources, assemblyinfo,
cs_args: ['-unsafe'],
link_with: deps,
install: install,
Expand Down

0 comments on commit a431e48

Please sign in to comment.