Skip to content

Commit e45cbab

Browse files
committed
Release 0.5.2
* Build updates.
2 parents 02e5e2d + a1b437b commit e45cbab

File tree

10 files changed

+75
-36
lines changed

10 files changed

+75
-36
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* RECENT CHANGES
33
*******************************************************************************
44

5+
=== 0.5.2 ===
6+
* Build updates.
7+
58
=== 0.5.1 ===
69
* Modified base R3D interface constants and metadata structures.
710

dependencies.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# Variables that describe dependencies
2-
LSP_COMMON_LIB_VERSION := 1.0.4
2+
LSP_COMMON_LIB_VERSION := 1.0.7
33
LSP_COMMON_LIB_NAME := lsp-common-lib
44
LSP_COMMON_LIB_URL := https://github.com/sadko4u/$(LSP_COMMON_LIB_NAME).git
55
LSP_COMMON_LIB_TYPE := hdr
66

7-
LSP_TEST_FW_VERSION := 1.0.3
7+
LSP_TEST_FW_VERSION := 1.0.5
88
LSP_TEST_FW_NAME := lsp-test-fw
99
LSP_TEST_FW_URL := https://github.com/sadko4u/$(LSP_TEST_FW_NAME).git
1010
LSP_TEST_FW_TYPE := src
1111

1212
STDLIB_VERSION := system
13+
STDLIB_TYPE := opt
1314
STDLIB_LDFLAGS := -lpthread -ldl

include/lsp-plug.in/r3d/factory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <lsp-plug.in/r3d/types.h>
1414

1515
#define LSP_R3D_FACTORY_FUNCTION_NAME "lsp_r3d_factory"
16-
#define LSP_R3D_FACTORY_FUNCTION_HEADER LSP_CSYMBOL_EXPORT ::lsp::r3d::factory_t *lsp_r3d_factory()
16+
#define LSP_R3D_FACTORY_FUNCTION_HEADER ::lsp::r3d::factory_t *lsp_r3d_factory()
1717

1818
namespace lsp
1919
{

include/lsp-plug.in/r3d/version.h

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,20 @@
88
#ifndef LSP_PLUG_IN_R3D_VERSION_H_
99
#define LSP_PLUG_IN_R3D_VERSION_H_
1010

11-
#define LSP_R3D_BASE_MAJOR 0
12-
#define LSP_R3D_BASE_MINOR 5
13-
#define LSP_R3D_BASE_MICRO 1
11+
#define LSP_R3D_BASE_LIB_MAJOR 0
12+
#define LSP_R3D_BASE_LIB_MINOR 5
13+
#define LSP_R3D_BASE_LIB_MICRO 2
14+
15+
#ifdef LSP_R3D_BASE_LIB_BUILTIN
16+
#define LSP_R3D_BASE_LIB_EXPORT
17+
#define LSP_R3D_BASE_LIB_CEXPORT
18+
#define LSP_R3D_BASE_LIB_IMPORT LSP_SYMBOL_IMPORT
19+
#define LSP_R3D_BASE_LIB_CIMPORT LSP_CSYMBOL_IMPORT
20+
#else
21+
#define LSP_R3D_BASE_LIB_EXPORT LSP_SYMBOL_EXPORT
22+
#define LSP_R3D_BASE_LIB_CEXPORT LSP_CSYMBOL_EXPORT
23+
#define LSP_R3D_BASE_LIB_IMPORT LSP_SYMBOL_IMPORT
24+
#define LSP_R3D_BASE_LIB_CIMPORT LSP_CSYMBOL_IMPORT
25+
#endif
1426

1527
#endif /* LSP_PLUG_IN_R3D_VERSION_H_ */

make/configure.mk

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ include $(BASEDIR)/dependencies.mk
1616

1717
DEPENDENCIES += $(TEST_DEPENDENCIES)
1818

19-
ifeq ($(findstring -devel,$(VERSION)),-devel)
19+
ifeq ($(findstring -devel,$(ARTIFACT_VERSION)),-devel)
2020
$(foreach dep, $(DEPENDENCIES), \
2121
$(eval $(dep)_BRANCH=devel) \
2222
)
2323
# Strip '-devel' from version
24-
tmp_version :=$(shell echo "$(VERSION)" | sed s/-devel//g)
25-
VERSION=$(tmp_version)
24+
tmp_version :=$(shell echo "$(ARTIFACT_VERSION)" | sed s/-devel//g)
25+
ARTIFACT_VERSION=$(tmp_version)
2626
else
2727
$(foreach dep, $(DEPENDENCIES), \
2828
$(eval \
@@ -32,7 +32,7 @@ else
3232
endif
3333

3434
define pkgconfig =
35-
$(eval name = $(1))
35+
$(eval name=$(1))
3636
$(if $($(name)_NAME), \
3737
$(if $($(name)_CFLAGS),, $(eval $(name)_CFLAGS := $(shell pkg-config --cflags "$($(name)_NAME)"))) \
3838
)
@@ -43,45 +43,41 @@ define pkgconfig =
4343
endef
4444

4545
define libconfig =
46-
$(eval name = $(1))
46+
$(eval name=$(1))
4747
$(if $($(name)_NAME), \
4848
$(if $($(name)_LDLAGS),, $(eval $(name)_LDFLAGS := -l$($(name)_NAME))) \
4949
)
5050
$(if $($(name)_OBJ),, $(eval $(name)_OBJ :=))
5151
endef
5252

5353
define optconfig =
54-
$(eval name = $(1))
54+
$(eval name=$(1))
5555
$(if $($(name)_OBJ),, $(eval $(name)_OBJ :=))
5656
endef
5757

5858
define srcconfig =
59-
$(eval name = $(1))
59+
$(eval name=$(1))
60+
$(eval builtin=$(patsubst $(ARTIFACT_NAME),,$($(name)_NAME)))
6061
$(if $($(name)_PATH),, $(eval $(name)_PATH := $(MODULES)/$($(name)_NAME)))
6162
$(if $($(name)_INC),, $(eval $(name)_INC := $($(name)_PATH)/include))
6263
$(if $($(name)_SRC),, $(eval $(name)_SRC := $($(name)_PATH)/src))
6364
$(if $($(name)_TEST),, $(eval $(name)_TEST := $($(name)_PATH)/test))
6465
$(if $($(name)_TESTING),, $(eval $(name)_TESTING := 0))
6566
$(if $($(name)_BIN),, $(eval $(name)_BIN := $(BUILDDIR)/$($(name)_NAME)))
66-
$(if $($(name)_CFLAGS),, $(eval $(name)_CFLAGS := "-I\"$($(name)_INC)\""$(xflags)))
67+
$(if $($(name)_CFLAGS),, $(eval $(name)_CFLAGS := "-I\"$($(name)_INC)\"" $(if $(builtin),"-D$(name)_BUILTIN")))
6768
$(if $($(name)_LDLAGS),, $(eval $(name)_LDFLAGS :=))
6869
$(if $($(name)_OBJ),, $(eval $(name)_OBJ := "$($(name)_BIN)/$($(name)_NAME).o"))
69-
$(if $($(name)_MFLAGS),, \
70-
$(eval $(name)_MFLAGS := \
71-
$(if $(patsubst $(ARTIFACT_NAME),,$($(name)_NAME)),"-DLSP_BUILTIN_MODULE -fvisibility=hidden",)) \
72-
)
70+
$(if $($(name)_MFLAGS),, $(eval $(name)_MFLAGS := $(if $(builtin),"-D$(name)_BUILTIN -fvisibility=hidden")))
7371
endef
7472

7573
define hdrconfig =
76-
$(eval name = $(1))
74+
$(eval name=$(1))
75+
$(eval builtin=$(patsubst $(ARTIFACT_NAME),,$($(name)_NAME)))
7776
$(if $($(name)_PATH),, $(eval $(name)_PATH := $(MODULES)/$($(name)_NAME)))
7877
$(if $($(name)_INC),, $(eval $(name)_INC := $($(name)_PATH)/include))
7978
$(if $($(name)_TESTING),, $(eval $(name)_TESTING := 0))
80-
$(if $($(name)_CFLAGS),, $(eval $(name)_CFLAGS := "-I\"$($(name)_INC)\""$(xflags)))
81-
$(if $($(name)_MFLAGS),, \
82-
$(eval $(name)_MFLAGS := \
83-
$(if $(patsubst $(ARTIFACT_NAME),,$($(name)_NAME)),"-DLSP_BUILTIN_MODULE -fvisibility=hidden",)) \
84-
)
79+
$(if $($(name)_CFLAGS),, $(eval $(name)_CFLAGS := "-I\"$($(name)_INC)\"" $(if $(builtin),"-D$(name)_BUILTIN")))
80+
$(if $($(name)_MFLAGS),, $(eval $(name)_MFLAGS := $(if $(builtin),"-D$(name)_BUILTIN -fvisibility=hidden")))
8581
endef
8682

8783
define vardef =
@@ -99,7 +95,7 @@ ifndef $(ARTIFACT_VARS)_NAME
9995
$(ARTIFACT_VARS)_NAME := $(ARTIFACT_NAME)
10096
endif
10197
ifndef $(ARTIFACT_VARS)_VERSION
102-
$(ARTIFACT_VARS)_VERSION := $(VERSION)
98+
$(ARTIFACT_VARS)_VERSION := $(ARTIFACT_VERSION)
10399
endif
104100
ifndef $(ARTIFACT_VARS)_PATH
105101
$(ARTIFACT_VARS)_PATH := $(BASEDIR)

make/modules.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ HDR_MODULES = $(foreach dep, $(DEPENDENCIES), $(if $(findstring hdr,$($(
1717
$(SRC_MODULES) $(HDR_MODULES):
1818
@echo "Cloning $($(@)_URL) -> $($(@)_PATH) [$($(@)_BRANCH)]"
1919
@test -f "$($(@)_PATH)/.git/config" || $(GIT) clone "$($(@)_URL)" "$($(@)_PATH)"
20+
@$(GIT) -C "$($(@)_PATH)" reset --hard
2021
@$(GIT) -C "$($(@)_PATH)" fetch origin --force
2122
@$(GIT) -C "$($(@)_PATH)" fetch origin '+refs/heads/*:refs/tags/*' --force
2223
@$(GIT) -c advice.detachedHead=false -C "$($(@)_PATH)" checkout origin/$($(@)_BRANCH) || \

make/system.mk

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@ ifndef PLATFORM
1010

1111
ifeq ($(BUILD_SYSTEM),Windows)
1212
PLATFORM := Windows
13-
endif
14-
ifeq ($(findstring BSD,$(BUILD_SYSTEM)),BSD)
13+
else ifeq ($(findstring OpenBSD,$(BUILD_SYSTEM)),OpenBSD)
14+
PLATFORM := OpenBSD
15+
else ifeq ($(findstring BSD,$(BUILD_SYSTEM)),BSD)
1516
PLATFORM := BSD
16-
endif
17-
ifeq ($(findstring Linux,$(BUILD_SYSTEM)),Linux)
17+
else ifeq ($(findstring Linux,$(BUILD_SYSTEM)),Linux)
1818
PLATFORM := Linux
19-
endif
20-
ifeq ($(findstring SunOS,$(BUILD_SYSTEM)),SunOS)
19+
else ifeq ($(findstring SunOS,$(BUILD_SYSTEM)),SunOS)
2120
PLATFORM := Solaris
2221
endif
2322
endif

make/tools.mk

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1+
# Determine tools
2+
ifeq ($(PLATFORM),OpenBSD)
3+
X_CC_TOOL := egcc
4+
X_CXX_TOOL := eg++
5+
X_AS_TOOL := gas
6+
else
7+
X_CC_TOOL := gcc
8+
X_CXX_TOOL := g++
9+
X_AS_TOOL := as
10+
endif
11+
112
# Define tool variables
2-
CC := gcc
3-
CXX := g++
13+
CC := $(X_CC_TOOL)
14+
CXX := $(X_CXX_TOOL)
15+
AS := $(X_AS_TOOL)
416
LD := ld
517
GIT := git
618
INSTALL := install
@@ -83,7 +95,7 @@ CFLAGS := \
8395
CXXFLAGS := \
8496
$(CXXFLAGS_EXT) \
8597
-std=c++98 \
86-
-exceptions \
98+
-fno-exceptions \
8799
-fno-rtti \
88100
-fdata-sections \
89101
-ffunction-sections \
@@ -97,13 +109,14 @@ EXE_FLAGS := $(EXE_FLAGS_EXT) $(FLAG_RELRO) -Wl,--gc-sections
97109
SO_FLAGS := $(SO_FLAGS_EXT) $(FLAG_RELRO) -Wl,--gc-sections -shared -Llibrary $(FLAG_STDLIB) -fPIC
98110

99111
TOOL_VARS := \
100-
CC CXX LD GIT INSTALL \
112+
AS CC CXX LD GIT INSTALL \
101113
CFLAGS CXXFLAGS LDFLAGS EXE_FLAGS SO_FLAGS \
102114
INCLUDE
103115

104116
.PHONY: toolvars
105117
toolvars:
106118
@echo "List of tool variables:"
119+
@echo " AS Assembler tool"
107120
@echo " CC C compiler execution command line"
108121
@echo " CFLAGS C compiler build flags"
109122
@echo " CXX C++ compiler execution command line"

project.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARTIFACT_NAME = lsp-r3d-base-lib
33
ARTIFACT_VARS = LSP_R3D_BASE_LIB
44
ARTIFACT_HEADERS = lsp-plug.in
55
ARTIFACT_EXPORT_ALL = 0
6-
VERSION = 0.5.1
6+
ARTIFACT_VERSION = 0.5.2
77

88
# List of dependencies
99
TEST_DEPENDENCIES = \

src/Makefile.d

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
$(LSP_R3D_BASE_LIB_BIN)/main/base_backend.o: main/base_backend.cpp \
2+
$(LSP_R3D_BASE_LIB_INC)/lsp-plug.in/r3d/base.h \
3+
$(LSP_COMMON_LIB_INC)/lsp-plug.in/common/types.h \
4+
$(LSP_COMMON_LIB_INC)/lsp-plug.in/common/version.h \
5+
$(LSP_R3D_BASE_LIB_INC)/lsp-plug.in/r3d/version.h \
6+
$(LSP_R3D_BASE_LIB_INC)/lsp-plug.in/r3d/backend.h \
7+
$(LSP_R3D_BASE_LIB_INC)/lsp-plug.in/r3d/types.h \
8+
$(LSP_COMMON_LIB_INC)/lsp-plug.in/common/status.h \
9+
$(LSP_COMMON_LIB_INC)/lsp-plug.in/stdlib/string.h
10+
$(LSP_R3D_BASE_LIB_BIN)/test/main.o: test/main.cpp \
11+
$(LSP_TEST_FW_INC)/lsp-plug.in/test-fw/main.h \
12+
$(LSP_TEST_FW_INC)/lsp-plug.in/test-fw/version.h \
13+
$(LSP_COMMON_LIB_INC)/lsp-plug.in/common/types.h \
14+
$(LSP_COMMON_LIB_INC)/lsp-plug.in/common/version.h

0 commit comments

Comments
 (0)