[vala/wip/meson: 15/21] meson: Allow static builds




commit 8472c04e31a0855319df2e129691c3e1671bd6ad
Author: Ole André Vadla Ravnås <oleavr gmail com>
Date:   Tue Jul 31 02:17:55 2018 +0200

    meson: Allow static builds
    
    By using `library()` instead of hard-coding `shared_library()`.

 codegen/meson.build    | 2 +-
 libvaladoc/meson.build | 2 +-
 vala/meson.build       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/codegen/meson.build b/codegen/meson.build
index 6a8520e92..59142caf0 100644
--- a/codegen/meson.build
+++ b/codegen/meson.build
@@ -32,7 +32,7 @@ valacodegen_sources = files(
        'valatyperegisterfunction.vala',
 )
 
-valacodegen_lib = shared_library(
+valacodegen_lib = library(
        'valacodegen',
        valacodegen_sources,
        dependencies: [gobject_dep, valacore_dep, valaccode_dep],
diff --git a/libvaladoc/meson.build b/libvaladoc/meson.build
index 9a67c7b6e..f250fabd3 100644
--- a/libvaladoc/meson.build
+++ b/libvaladoc/meson.build
@@ -129,7 +129,7 @@ libvaladoc_sources = files(
        'taglets/tagletthrows.vala',
 )
 
-libvaladoc_lib = shared_library(
+libvaladoc_lib = library(
        'valadoc@0@'.format(vala_version_suffix),
        libvaladoc_sources,
        dependencies: [gmodule_dep, valacore_dep, valacodegen_dep, libgvc_dep],
diff --git a/vala/meson.build b/vala/meson.build
index ead4400fc..3352df20c 100644
--- a/vala/meson.build
+++ b/vala/meson.build
@@ -172,7 +172,7 @@ valaversion_source = vcs_tag(
        output: 'valaversion.vala',
 )
 
-valacore_lib = shared_library(
+valacore_lib = library(
        'vala@0@'.format(vala_version_suffix),
        valacore_sources,
        valaversion_source,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]