Skip to content

Commit fe45b7e

Browse files
committed
Updated build
1 parent 4dca1d3 commit fe45b7e

File tree

6 files changed

+64
-46
lines changed

6 files changed

+64
-46
lines changed

dependencies.mk

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,15 @@
1818
# along with lsp-r3d-base-lib. If not, see <https://www.gnu.org/licenses/>.
1919
#
2020

21-
# Variables that describe dependencies
22-
LSP_COMMON_LIB_VERSION := 1.0.14
23-
LSP_COMMON_LIB_NAME := lsp-common-lib
24-
LSP_COMMON_LIB_TYPE := src
25-
LSP_COMMON_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_COMMON_LIB_NAME).git
26-
LSP_COMMON_LIB_URL_RW := git@github.com:lsp-plugins/$(LSP_COMMON_LIB_NAME).git
21+
# List of dependencies
22+
DEPENDENCIES = \
23+
LIBPTHREAD \
24+
LSP_COMMON_LIB \
25+
LSP_R3D_IFACE
2726

28-
LSP_TEST_FW_VERSION := 1.0.8
29-
LSP_TEST_FW_NAME := lsp-test-fw
30-
LSP_TEST_FW_TYPE := src
31-
LSP_TEST_FW_URL_RO := https://github.com/lsp-plugins/$(LSP_TEST_FW_NAME).git
32-
LSP_TEST_FW_URL_RW := git@github.com:lsp-plugins/$(LSP_TEST_FW_NAME).git
27+
TEST_DEPENDENCIES = \
28+
LSP_TEST_FW
3329

34-
LSP_R3D_IFACE_VERSION := 0.5.2
35-
LSP_R3D_IFACE_NAME := lsp-r3d-iface
36-
LSP_R3D_IFACE_TYPE := src
37-
LSP_R3D_IFACE_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_IFACE_NAME).git
38-
LSP_R3D_IFACE_URL_RW := git@github.com:lsp-plugins/$(LSP_R3D_IFACE_NAME).git
39-
40-
LIBPTHREAD_VERSION := system
41-
LIBPTHREAD_NAME := libpthread
42-
LIBPTHREAD_TYPE := opt
43-
LIBPTHREAD_LDFLAGS := -lpthread
30+
ALL_DEPENDENCIES = \
31+
$(DEPENDENCIES) \
32+
$(TEST_DEPENDENCIES)

make/configure.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ else
4444
X_URL_SUFFIX = _RO
4545
endif
4646

47+
include $(BASEDIR)/project.mk
48+
include $(BASEDIR)/modules.mk
49+
include $(BASEDIR)/dependencies.mk
4750
include $(BASEDIR)/make/functions.mk
4851
include $(BASEDIR)/make/system.mk
4952
include $(BASEDIR)/make/tools.mk
50-
include $(BASEDIR)/dependencies.mk
51-
include $(BASEDIR)/project.mk
5253

5354
# Compute the full list of dependencies
5455
MERGED_DEPENDENCIES := \

make/modules.mk

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,17 @@ ifneq ($(VERBOSE),1)
2222
endif
2323

2424
BASEDIR := $(CURDIR)
25-
DEPLIST := $(BASEDIR)/dependencies.mk
26-
PROJECT := $(BASEDIR)/project.mk
2725
CONFIG := $(BASEDIR)/.config.mk
2826

27+
include $(BASEDIR)/project.mk
28+
include $(BASEDIR)/dependencies.mk
2929
include $(BASEDIR)/make/functions.mk
3030
ifeq ($(TREE),1)
31-
include $(DEPLIST)
31+
include $(BASEDIR)/modules.mk
3232
else
3333
-include $(CONFIG)
3434
endif
3535

36-
include $(PROJECT)
37-
3836
MERGED_DEPENDENCIES := \
3937
$(DEPENDENCIES) \
4038
$(TEST_DEPENDENCIES)

modules.mk

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#
2+
# Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/>
3+
# (C) 2020 Vladimir Sadovnikov <sadko4u@gmail.com>
4+
#
5+
# This file is part of lsp-r3d-base-lib
6+
#
7+
# lsp-r3d-base-lib is free software: you can redistribute it and/or modify
8+
# it under the terms of the GNU Lesser General Public License as published by
9+
# the Free Software Foundation, either version 3 of the License, or
10+
# any later version.
11+
#
12+
# lsp-r3d-base-lib is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU Lesser General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU Lesser General Public License
18+
# along with lsp-r3d-base-lib. If not, see <https://www.gnu.org/licenses/>.
19+
#
20+
21+
# Variables that describe dependencies
22+
LSP_COMMON_LIB_VERSION := 1.0.14
23+
LSP_COMMON_LIB_NAME := lsp-common-lib
24+
LSP_COMMON_LIB_TYPE := src
25+
LSP_COMMON_LIB_URL_RO := https://github.com/lsp-plugins/$(LSP_COMMON_LIB_NAME).git
26+
LSP_COMMON_LIB_URL_RW := git@github.com:lsp-plugins/$(LSP_COMMON_LIB_NAME).git
27+
28+
LSP_TEST_FW_VERSION := 1.0.8
29+
LSP_TEST_FW_NAME := lsp-test-fw
30+
LSP_TEST_FW_TYPE := src
31+
LSP_TEST_FW_URL_RO := https://github.com/lsp-plugins/$(LSP_TEST_FW_NAME).git
32+
LSP_TEST_FW_URL_RW := git@github.com:lsp-plugins/$(LSP_TEST_FW_NAME).git
33+
34+
LSP_R3D_IFACE_VERSION := 0.5.2
35+
LSP_R3D_IFACE_NAME := lsp-r3d-iface
36+
LSP_R3D_IFACE_TYPE := src
37+
LSP_R3D_IFACE_URL_RO := https://github.com/lsp-plugins/$(LSP_R3D_IFACE_NAME).git
38+
LSP_R3D_IFACE_URL_RW := git@github.com:lsp-plugins/$(LSP_R3D_IFACE_NAME).git
39+
40+
LIBPTHREAD_VERSION := system
41+
LIBPTHREAD_NAME := libpthread
42+
LIBPTHREAD_TYPE := opt
43+
LIBPTHREAD_LDFLAGS := -lpthread

project.mk

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,3 @@ ARTIFACT_DESC = Base library for implementing and loading 3D rende
2525
ARTIFACT_HEADERS = lsp-plug.in
2626
ARTIFACT_EXPORT_ALL = 0
2727
ARTIFACT_VERSION = 0.5.6-devel
28-
29-
# List of dependencies
30-
DEPENDENCIES = \
31-
LIBPTHREAD \
32-
LSP_COMMON_LIB \
33-
LSP_R3D_IFACE
34-
35-
TEST_DEPENDENCIES = \
36-
LSP_TEST_FW
37-
38-
ALL_DEPENDENCIES = \
39-
$(DEPENDENCIES) \
40-
$(TEST_DEPENDENCIES)

src/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ ifneq ($(VERBOSE),1)
2121
.SILENT:
2222
endif
2323

24-
BASEDIR = $(CURDIR)
25-
CONFIG := $(BASEDIR)/../.config.mk
26-
PROJECT := $(BASEDIR)/../project.mk
24+
MODDIR = $(CURDIR)/..
25+
CONFIG := $(MODDIR)/.config.mk
2726

2827
include $(CONFIG)
29-
include $(PROJECT)
30-
include $(BASEDIR)/../make/functions.mk
28+
include $(MODDIR)/project.mk
29+
include $(MODDIR)/dependencies.mk
30+
include $(MODDIR)/make/functions.mk
3131

3232
ifeq ($(TEST),1)
3333
UNIQ_DEPENDENCIES := $(call uniq, $(DEPENDENCIES) $(TEST_DEPENDENCIES))

0 commit comments

Comments
 (0)