Remove manual shared/static library checks
Meson's `library()` object automatically detects which type of library
should be built from the project options used.
@@ -96,10 +96,7 @@ if build_gobject
platform_deps += [ gobject ]
endif
-libtype = get_option('default_library')
-
-if libtype != 'static'
- graphene_shared = shared_library(graphene_api_path,
+libgraphene = library(graphene_api_path,
sources: sources + simd_sources + private_headers,
version: libversion,
soversion: soversion,
@@ -107,29 +104,8 @@ if libtype != 'static'
dependencies: [ mathlib, threadlib ] + platform_deps,
c_args: extra_args + common_cflags + debug_flags + [
'-DGRAPHENE_COMPILATION',
- '-DG_LOG_DOMAIN="Graphene"',
- '-DG_LOG_STRUCTURED=1',
- '-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_30',
- '-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32',
],
link_args: common_ldflags)
- libgraphene = graphene_shared
-endif
-
-if libtype != 'shared'
- graphene_static = static_library(graphene_api_path,
- sources: sources + simd_sources + private_headers,
- install: true,
- dependencies: [ mathlib, threadlib ] + platform_deps,
- c_args: extra_args + common_cflags + debug_flags + [
- '-DGRAPHENE_COMPILATION',
- '-DG_LOG_DOMAIN="Graphene"',
- '-DG_LOG_STRUCTURED=1',
- '-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_30',
- '-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32',
- ])
- libgraphene = graphene_static
-endif
# Internal dependency, for tests and benchmarks
graphene_inc = include_directories('.')
