Browse Source

install libzrythm.so to keep binary size small

This helps with Windows builds and makes no noticable difference
elsewhere.
audio_region_bpm_change_fix
parent
commit
8479333713
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 31
      src/meson.build
  2. 20
      tests/meson.build

31
src/meson.build

@ -1,19 +1,5 @@ @@ -1,19 +1,5 @@
# Copyright (C) 2019 Alexandros Theodotou <alex at zrythm dot org>
#
# This file is part of Zrythm
#
# Zrythm is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Zrythm is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Zrythm. If not, see <https://www.gnu.org/licenses/>.
# SPDX-FileCopyrightText: © 2019-2022 Alexandros Theodotou <alex@zrythm.org>
# SPDX-License-Identifier: LicenseRef-ZrythmLicense
zrythm_main = files ('main.c')
zrythm_srcs = files ([
@ -67,10 +53,10 @@ if os_windows @@ -67,10 +53,10 @@ if os_windows
zrythm_lib_srcs += win_res
endif
# static is used in the executable and shared is
# used in tests
zrythm_lib = both_libraries (
'zrythm-lib',
# install shared library separately so the binary
# remains small
zrythm_lib = shared_library (
'zrythm',
sources: [
zrythm_lib_srcs,
ext_srcs,
@ -78,8 +64,9 @@ zrythm_lib = both_libraries ( @@ -78,8 +64,9 @@ zrythm_lib = both_libraries (
dependencies: zrythm_deps,
include_directories: all_inc,
c_args: [ common_cflags, strict_cflags ],
pic: true,
#pic: true,
link_with: zrythm_link_libs,
install: true,
)
objects = []
@ -94,7 +81,7 @@ zrythm_exe = executable ( @@ -94,7 +81,7 @@ zrythm_exe = executable (
zrythm_deps,
],
link_with: [
zrythm_lib.get_static_lib (),
zrythm_lib,
],
export_dynamic: true,
win_subsystem: 'windows',

20
tests/meson.build

@ -1,19 +1,5 @@ @@ -1,19 +1,5 @@
# Copyright (C) 2019-2022 Alexandros Theodotou <alex at zrythm dot org>
#
# This file is part of Zrythm
#
# Zrythm is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Zrythm is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Zrythm. If not, see <https://www.gnu.org/licenses/>.
# SPDX-FileCopyrightText: © 2019-2022 Alexandros Theodotou <alex@zrythm.org>
# SPDX-License-Identifier: LicenseRef-ZrythmLicense
if get_option ('tests')
@ -331,7 +317,7 @@ if get_option ('tests') @@ -331,7 +317,7 @@ if get_option ('tests')
endif
endif
test_link_libs = [ zrythm_lib.get_shared_lib () ]
test_link_libs = [ zrythm_lib ]
if have_guile
test_link_libs += guilelib
endif

Loading…
Cancel
Save