-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated build scripts. * Updated module versions in dependencies.
- Loading branch information
Showing
13 changed files
with
258 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/make -f | ||
# | ||
# Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
# (C) 2020 Vladimir Sadovnikov <[email protected]> | ||
# Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
# (C) 2024 Vladimir Sadovnikov <[email protected]> | ||
# | ||
# This file is part of lsp-dsp-lib | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# | ||
# Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
# (C) 2020 Vladimir Sadovnikov <[email protected]> | ||
# Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
# (C) 2024 Vladimir Sadovnikov <[email protected]> | ||
# | ||
# This file is part of lsp-dsp-lib | ||
# | ||
|
@@ -49,7 +49,7 @@ MERGED_DEPENDENCIES := \ | |
$(TEST_DEPENDENCIES) | ||
UNIQ_MERGED_DEPENDENCIES := $(call uniq, $(MERGED_DEPENDENCIES)) | ||
DEPENDENCIES = $(UNIQ_MERGED_DEPENDENCIES) | ||
FEATURES := $(call uniq, $(call subtraction,$(SUB_FEATURES),$(DEFAULT_FEATURES) $(ADD_FEATURES))) | ||
FEATURES := $(sort $(call subtraction,$(SUB_FEATURES),$(DEFAULT_FEATURES) $(ADD_FEATURES))) | ||
|
||
# Determine versions | ||
ifeq ($(findstring -devel,$(ARTIFACT_VERSION)),-devel) | ||
|
@@ -123,6 +123,10 @@ define _modconfig = | |
$(if $($(name)_OBJ_TEST),, $(eval $(name)_OBJ_TEST := "$($(name)_BIN)/$($(name)_NAME)-test.o")) | ||
$(if $($(name)_MFLAGS),, $(eval $(name)_MFLAGS := $(if $(publisher),,"-D$(name)_BUILTIN -fvisibility=hidden"))) | ||
|
||
$(if $(HOST_$(name)_NAME),, $(eval HOST_$(name)_NAME := $($(name)_NAME))) | ||
$(if $(HOST_$(name)_DESC),, $(eval HOST_$(name)_DESC := $($(name)_DESC))) | ||
$(if $(HOST_$(name)_URL),, $(eval HOST_$(name)_URL := $($(name)_URL$(X_URL_SUFFIX)))) | ||
|
||
$(if $(HOST_$(name)_PATH),, $(eval HOST_$(name)_PATH := $(MODULES)/$($(name)_NAME))) | ||
$(if $(HOST_$(name)_INC),, $(eval HOST_$(name)_INC := $(HOST_$(name)_PATH)/include)) | ||
$(if $(HOST_$(name)_SRC),, $(eval HOST_$(name)_SRC := $(HOST_$(name)_PATH)/src)) | ||
|
@@ -160,6 +164,10 @@ define hdrconfig = | |
$(if $($(name)_TESTING),, $(eval $(name)_TESTING := 0)) | ||
$(if $($(name)_CFLAGS),, $(eval $(name)_CFLAGS := "$(if $($(name)_INC_OPT),$($(name)_INC_OPT) ,-I )\"$($(name)_INC)\""$(if $(publisher), "-D$(name)_PUBLISHER"))) | ||
$(if $($(name)_MFLAGS),, $(eval $(name)_MFLAGS := "-D$(name)_BUILTIN -fvisibility=hidden")) | ||
|
||
$(if $(HOST_$(name)_NAME),, $(eval HOST_$(name)_NAME := $($(name)_NAME))) | ||
$(if $(HOST_$(name)_DESC),, $(eval HOST_$(name)_DESC := $($(name)_DESC))) | ||
$(if $(HOST_$(name)_URL),, $(eval HOST_$(name)_URL := $($(name)_URL$(X_URL_SUFFIX)))) | ||
|
||
$(if $(HOST_$(name)_PATH),, $(eval HOST_$(name)_PATH := $(MODULES)/$($(name)_NAME))) | ||
$(if $(HOST_$(name)_INC),, $(eval HOST_$(name)_INC := $(HOST_$(name)_PATH)/include)) | ||
|
@@ -233,6 +241,8 @@ CONFIG_VARS = \ | |
$(name)_OBJ \ | ||
$(name)_OBJ_TEST \ | ||
\ | ||
HOST_$(name)_NAME \ | ||
HOST_$(name)_DESC \ | ||
HOST_$(name)_PATH \ | ||
HOST_$(name)_INC \ | ||
HOST_$(name)_SRC \ | ||
|
@@ -258,8 +268,9 @@ $(CONFIG_VARS): prepare | |
echo "$(@)=$($(@))" >> "$(CONFIG)" | ||
|
||
config: $(CONFIG_VARS) | ||
echo "Architecture: $(ARCHITECTURE_FAMILY)/$(ARCHITECTURE) ($(ARCHITECTURE_CFLAGS))" | ||
echo "Features: $(FEATURES)" | ||
echo "Host architecture: $(HOST_ARCHITECTURE_FAMILY)/$(HOST_ARCHITECTURE) ($(HOST_ARCHITECTURE_CFLAGS))" | ||
echo "Architecture: $(ARCHITECTURE_FAMILY)/$(ARCHITECTURE) ($(ARCHITECTURE_CFLAGS))" | ||
echo "Features: $(FEATURES)" | ||
echo "Configured OK" | ||
|
||
help: | pathvars toolvars sysvars | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# | ||
# Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
# (C) 2020 Vladimir Sadovnikov <[email protected]> | ||
# Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
# (C) 2024 Vladimir Sadovnikov <[email protected]> | ||
# | ||
# This file is part of lsp-dsp-lib | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# | ||
# Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
# (C) 2020 Vladimir Sadovnikov <[email protected]> | ||
# Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
# (C) 2024 Vladimir Sadovnikov <[email protected]> | ||
# | ||
# This file is part of lsp-dsp-lib | ||
# | ||
|
@@ -45,9 +45,15 @@ UNIQ_ALL_DEPENDENCIES := $(filter-out $(ARTIFACT_ID),$(call uniq, $(ALL_DEP | |
MODULES ?= $(BASEDIR)/modules | ||
GIT ?= git | ||
|
||
ifeq ($(DEVEL),1) | ||
X_URL_SUFFIX = _RW | ||
else | ||
X_URL_SUFFIX = _RO | ||
endif | ||
|
||
ifeq ($(TREE),1) | ||
$(foreach dep,$(UNIQ_ALL_DEPENDENCIES), \ | ||
$(eval $(dep)_URL=$($(dep)_URL_RO)) \ | ||
$(eval $(dep)_URL=$($(dep)_URL$(X_URL_SUFFIX))) \ | ||
) | ||
|
||
ifeq ($(findstring -devel,$(ARTIFACT_VERSION)),-devel) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# | ||
# Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
# (C) 2020 Vladimir Sadovnikov <[email protected]> | ||
# Copyright (C) 2024 Linux Studio Plugins Project <https://lsp-plug.in/> | ||
# (C) 2024 Vladimir Sadovnikov <[email protected]> | ||
# | ||
# This file is part of lsp-dsp-lib | ||
# | ||
|
@@ -22,6 +22,8 @@ | |
ifndef PREFIX | ||
ifeq ($(PLATFORM),Windows) | ||
PREFIX := $(BASEDIR)/INSTALL | ||
else ifeq ($(CROSS_COMPILE),1) | ||
PREFIX := $(BASEDIR)/INSTALL | ||
else | ||
PREFIX := /usr/local | ||
endif | ||
|
@@ -38,11 +40,14 @@ endif | |
|
||
LIBDIR := $(PREFIX)/lib | ||
BINDIR := $(PREFIX)/bin | ||
SHAREDDIR := $(PREFIX)/share | ||
INCDIR := $(PREFIX)/include | ||
BUILDDIR := $(BASEDIR)/.build | ||
TARGET_BUILDDIR := $(BUILDDIR)/target | ||
HOST_BUILDDIR := $(BUILDDIR)/host | ||
ifeq ($(CROSS_COMPILE),1) | ||
HOST_BUILDDIR := $(BUILDDIR)/host | ||
else | ||
HOST_BUILDDIR := $(TARGET_BUILDDIR) | ||
endif | ||
MODULES := $(BASEDIR)/modules | ||
CONFIG := $(BASEDIR)/.config.mk | ||
|
||
|
@@ -61,6 +66,15 @@ ifndef INCDIR | |
INCDIR := $(PREFIX)/include | ||
endif | ||
|
||
# Shared resources | ||
ifndef SHAREDDIR | ||
ifeq ($(PLATFORM),Haiku) | ||
SHAREDDIR := $(PREFIX)/data | ||
else | ||
SHAREDDIR := $(PREFIX)/share | ||
endif | ||
endif | ||
|
||
# Temporary directory | ||
ifndef TEMPDIR | ||
ifeq ($(PLATFORM),Windows) | ||
|
Oops, something went wrong.