|
|
|
@ -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', |
|
|
|
|