Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release candidate 1 of version 1.0 #4

Merged
merged 13 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Auto detect text files and perform LF normalization
* text=auto

# Never modify line endings of bash scripts
*.sh text eol=lf
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#.gitignore
Sources/.svn
Sources/build_no.h
Trial/.objects
Trial/.vs
Expand All @@ -15,19 +14,20 @@ Library/.objects
Library/.vs
Library/x64
Library/x86
Library/uvslcan
Library/Debug_dll
Library/Debug_lib
Library/Release_dll
Library/Release_lib
Library/uvslcan
Library/*.so.*
Library/*.dylib
Library/*.sln
Library/*.aps
Library/*.vcxproj.user
slcan-cppcheck-build-dir
checker.txt
Binaries
Includes
Tests
Testing
.vscode
*.log
32 changes: 17 additions & 15 deletions Library/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Controller Area Network - Lawicel SLCAN Protocol (Serial-Line CAN)
#
# Copyright (C) 2016-2024 Uwe Vogt, UV Software, Berlin ([email protected])
# Copyright (c) 2016-2024 Uwe Vogt, UV Software, Berlin ([email protected])
# All rights reserved.
#
# This file is part of SLCAN.
Expand Down Expand Up @@ -49,9 +49,21 @@ current_OS := $(patsubst CYGWIN%,Cygwin,$(current_OS))
current_OS := $(patsubst MINGW%,MinGW,$(current_OS))
current_OS := $(patsubst MSYS%,MinGW,$(current_OS))

MAJOR = 1
MINOR = 0
PATCH = 0

ifeq ($(PATCH),0)
VERSION = $(MAJOR).$(MINOR)
else
VERSION = $(MAJOR).$(MINOR).$(PATCH)
endif

HOME_DIR = ..
MAIN_DIR = .

SERIAL_DIR = $(HOME_DIR)/Sources
SOURCE_DIR = $(HOME_DIR)/Sources
SERIAL_DIR = $(SOURCE_DIR)

OBJECTS = $(OUTDIR)/slcan.o $(OUTDIR)/serial.o \
$(OUTDIR)/buffer.o $(OUTDIR)/queue.o $(OUTDIR)/logger.o
Expand All @@ -61,16 +73,11 @@ ifeq ($(current_OS),Darwin) # macOS - libSLCAN.dylib

LIBRARY = libSLCAN

MAJOR = 0
MINOR = 1
PATCH = 0

VERSION = $(MAJOR).$(MINOR).$(PATCH)
TARGET = $(LIBRARY).$(VERSION).dylib
STATIC = $(LIBRARY).a

INSTALL_NAME = $(TARGET)
CURRENT_VERSION = $(MAJOR).$(MINOR).0
CURRENT_VERSION = $(MAJOR).$(MINOR).$(PATCH)
COMPATIBILITY_VERSION = $(MAJOR).$(MINOR).0

INSTALL = /usr/local/lib
Expand All @@ -81,7 +88,7 @@ DEFINES = -DOPTION_SLCAN_DYLIB=1 \
-DOPTION_SERIAL_DEBUG_LEVEL=0 \
-DOPTION_SLCAN_DEBUG_LEVEL=0

HEADERS = -I$(SERIAL_DIR) \
HEADERS = -I$(SOURCE_DIR) \

LIBRARIES = -lpthread

Expand Down Expand Up @@ -117,11 +124,6 @@ ifeq ($(current_OS),$(filter $(current_OS),Linux Cygwin)) # linux - libslcan.so.

LIBRARY = libslcan

MAJOR = 0
MINOR = 1
PATCH = 0

VERSION = $(MAJOR).$(MINOR).$(PATCH)
SONAME = $(LIBRARY).so.1
TARGET = $(SONAME).$(VERSION)
STATIC = $(LIBRARY).a
Expand All @@ -134,7 +136,7 @@ DEFINES = -DOPTION_SLCAN_SO=1 \
-DOPTION_SERIAL_DEBUG_LEVEL=0 \
-DOPTION_SLCAN_DEBUG_LEVEL=0

HEADERS = -I$(SERIAL_DIR)
HEADERS = -I$(SOURCE_DIR)

CFLAGS += -fPIC -O2 -Wall -Wno-parentheses \
-fno-strict-aliasing \
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file modified Library/uvslcan.rc
Binary file not shown.
26 changes: 13 additions & 13 deletions Library/uvslcan.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<AdditionalIncludeDirectories>..\Sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>.\Sources;..\Sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -148,7 +148,7 @@
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<AdditionalIncludeDirectories>..\Sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>.\Sources;..\Sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -166,7 +166,7 @@
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<AdditionalIncludeDirectories>..\Sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>.\Sources;..\Sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -186,7 +186,7 @@
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<AdditionalIncludeDirectories>..\Sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>.\Sources;..\Sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -204,7 +204,7 @@
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<AdditionalIncludeDirectories>..\Sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>.\Sources;..\Sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -220,7 +220,7 @@
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<AdditionalIncludeDirectories>..\Sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>.\Sources;..\Sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -238,7 +238,7 @@
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<AdditionalIncludeDirectories>..\Sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>.\Sources;..\Sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -258,7 +258,7 @@
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<AdditionalIncludeDirectories>..\Sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>.\Sources;..\Sources;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -276,9 +276,9 @@
<ClInclude Include="..\Sources\serial.h" />
<ClInclude Include="..\Sources\serial_attr.h" />
<ClInclude Include="..\Sources\slcan.h" />
<ClInclude Include="framework.h" />
<ClInclude Include="pch.h" />
<ClInclude Include="resource.h" />
<ClInclude Include=".\Sources\framework.h" />
<ClInclude Include=".\Sources\pch.h" />
<ClInclude Include=".\Sources\resource.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\Sources\buffer_w.c">
Expand Down Expand Up @@ -331,8 +331,8 @@
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release_dll|x64'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release_lib|x64'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="dllmain.cpp" />
<ClCompile Include="pch.cpp">
<ClCompile Include=".\Sources\dllmain.cpp" />
<ClCompile Include=".\Sources\pch.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug_dll|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug_lib|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug_dll|Win32'">Create</PrecompiledHeader>
Expand Down
10 changes: 5 additions & 5 deletions Library/uvslcan.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="framework.h">
<ClInclude Include=".\Sources\framework.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="pch.h">
<ClInclude Include=".\Sources\pch.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\Sources\buffer.h">
Expand All @@ -42,15 +42,15 @@
<ClInclude Include="..\Sources\slcan.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="resource.h">
<ClInclude Include=".\Sources\resource.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="dllmain.cpp">
<ClCompile Include=".\Sources\dllmain.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="pch.cpp">
<ClCompile Include=".\Sources\pch.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\Sources\buffer_w.c">
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Controller Area Network - Lawicel SLCAN Protocol (Serial-Line CAN)
#
# Copyright (C) 2016-2024 Uwe Vogt, UV Software, Berlin ([email protected])
# Copyright (c) 2016-2024 Uwe Vogt, UV Software, Berlin ([email protected])
# All rights reserved.
#
# This file is part of SLCAN.
Expand Down
Loading
Loading