Skip to content

Commit 3deecf2

Browse files
authored
Change default build target to release + adding artefacts (#334)
* Change default build target to release + adding artefacts Signed-off-by: Cervenka Dusan <[email protected]> * Add documentation note of new feature. Signed-off-by: Cervenka Dusan <[email protected]> * Added shortcut for readme topics Signed-off-by: Cervenka Dusan <[email protected]> Signed-off-by: Cervenka Dusan <[email protected]>
1 parent 6d7dfc7 commit 3deecf2

File tree

8 files changed

+49
-21
lines changed

8 files changed

+49
-21
lines changed

.circleci/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ jobs:
88
- checkout
99
- run: chmod u+x install_dependencies.sh && ./install_dependencies.sh
1010
- run: chmod u+x run_tests.sh && ./run_tests.sh
11+
- store_artifacts:
12+
path: ./Release/Linux/erpcgen/erpcgen
1113
build-linux-clang:
1214
machine:
1315
image: ubuntu-2204:2022.04.2 #https://circleci.com/developer/machine/image/ubuntu-2204 pick LTS
1416
steps:
1517
- checkout
1618
- run: chmod u+x install_dependencies.sh && ./install_dependencies.sh clang
1719
- run: chmod u+x run_tests.sh && ./run_tests.sh clang
20+
- store_artifacts:
21+
path: ./Release/Linux/erpcgen/erpcgen
1822
build-mac-gcc:
1923
macos:
2024
xcode: 13.2.1
@@ -38,3 +42,5 @@ workflows:
3842
- build-linux-clang
3943
# - build-mac-gcc # Mac is on going, or it can be hosted on company computer.
4044
# - build-mac-clang
45+
46+
# VS Code Extension Version: 1.5.1

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@
66
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/EmbeddedRPC/erpc/pulls)
77
[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/EmbeddedRPC/erpc)
88

9+
- [eRPC](#erpc)
10+
- [About](#about)
11+
- [Releases](#releases)
12+
- [Edge releases](#edge-releases)
13+
- [Documentation](#documentation)
14+
- [Examples](#examples)
15+
- [References](#references)
16+
- [Directories](#directories)
17+
- [Building and installing](#building-and-installing)
18+
- [Requirements](#requirements)
19+
- [Windows](#windows)
20+
- [Linux and Cygwin](#linux-and-cygwin)
21+
- [Mac OS X](#mac-os-x)
22+
- [Building](#building)
23+
- [Installing for Python](#installing-for-python)
24+
- [Known issues and limitations](#known-issues-and-limitations)
25+
- [Code providing](#code-providing)
26+
27+
## About
28+
929
eRPC (Embedded RPC) is an open source Remote Procedure Call (RPC) system for multichip embedded systems and heterogeneous multicore SoCs.
1030

1131
Unlike other modern RPC systems, such as the excellent [Apache Thrift](http://thrift.apache.org), eRPC distinguishes itself by being designed for tightly coupled systems, using plain C for remote functions, and having a small code size (<5kB). It is not intended for high performance distributed systems over a network.
@@ -82,6 +102,10 @@ eRPC is available with an unrestrictive BSD 3-clause license. See the [LICENSE f
82102

83103
[eRPC releases](https://github.com/EmbeddedRPC/erpc/releases)
84104

105+
### Edge releases
106+
107+
Edge releases can by found on [eRPC CircleCI](https://app.circleci.com/pipelines/github/EmbeddedRPC/erpc) webpage. Choose build of interest, then platform target and choose ARTIFACTS tab. Here you can find binary application from chosen build.
108+
85109
## Documentation
86110

87111
[Documentation](https://github.com/EmbeddedRPC/erpc/wiki) is in the `wiki` section.

erpcgen/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,18 @@ include $(ERPC_ROOT)/mk/targets.mk
117117

118118
ifeq "$(is_mingw)" "1"
119119
LIBRARIES += -L$(BOOST_ROOT)/stage/lib
120-
ifeq "$(build)" "debug"
121-
LIBRARIES += -lboost_system-mgw48-mt-1_57 -lboost_filesystem-mgw48-mt-1_57
122-
else
120+
ifeq "$(build)" "release"
123121
LIBRARIES += -lboost_system-mgw48-mt-d-1_57 -lboost_filesystem-mgw48-mt-d-1_57
122+
else
123+
LIBRARIES += -lboost_system-mgw48-mt-1_57 -lboost_filesystem-mgw48-mt-1_57
124124
endif
125125
else
126126
ifeq "$(is_linux)" "1"
127127
LIBRARIES += -lpthread -lrt
128128
endif
129129

130130
static_libs := NO
131-
ifneq "$(build)" "debug"
131+
ifeq "$(build)" "release"
132132
ifeq "$(is_darwin)" "1"
133133
static_libs := $(BOOST_ROOT)/lib/libboost_system.a $(BOOST_ROOT)/lib/libboost_filesystem.a
134134
endif
@@ -141,7 +141,7 @@ else
141141
endif
142142

143143
# Release should be alwas static. Customers don't need install things.
144-
ifneq "$(build)" "debug"
144+
ifeq "$(build)" "release"
145145
# Except Darwin. Darwin has static libs defined above.
146146
ifeq "$(is_darwin)" ""
147147
LIBRARIES += -static

erpcgen/test/config.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
if 'ERPCGEN' in os.environ:
2828
ERPCGEN = os.environ['ERPCGEN']
2929
elif sys.platform == 'win32':
30-
ERPCGEN = str(this_dir.join(r"..\VisualStudio_v14\Debug\erpcgen.exe"))
30+
ERPCGEN = str(this_dir.join(r"..\VisualStudio_v14\Release\erpcgen.exe"))
3131
else:
32-
ERPCGEN = str(this_dir.join("../../Debug/{}/erpcgen/erpcgen".format(os_name)))
32+
ERPCGEN = str(this_dir.join("../../Release/{}/erpcgen/erpcgen".format(os_name)))
3333

3434
# Set path to C/C++ compiler.
3535
if 'CC' in os.environ:
@@ -39,4 +39,3 @@
3939

4040
# Number of test runs to keep.
4141
RUN_KEEP_COUNT = 3
42-

erpcsniffer/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,18 @@ include $(ERPC_ROOT)/mk/targets.mk
7979

8080
ifeq "$(is_mingw)" "1"
8181
LIBRARIES += -L$(BOOST_ROOT)/stage/lib
82-
ifeq "$(build)" "debug"
83-
LIBRARIES += -lboost_system-mgw48-mt-1_57 -lboost_filesystem-mgw48-mt-1_57
84-
else
82+
ifeq "$(build)" "release"
8583
LIBRARIES += -lboost_system-mgw48-mt-d-1_57 -lboost_filesystem-mgw48-mt-d-1_57
84+
else
85+
LIBRARIES += -lboost_system-mgw48-mt-1_57 -lboost_filesystem-mgw48-mt-1_57
8686
endif
8787
else
8888
ifeq "$(is_linux)" "1"
8989
LIBRARIES := -lpthread -lrt $(LIBRARIES)
9090
endif
9191

9292
static_libs := NO
93-
ifneq "$(build)" "debug"
93+
ifeq "$(build)" "release"
9494
ifeq "$(is_darwin)" "1"
9595
static_libs := $(BOOST_ROOT)/lib/libboost_system.a $(BOOST_ROOT)/lib/libboost_filesystem.a
9696
endif
@@ -103,7 +103,7 @@ else
103103
endif
104104

105105
# Release should be alwas static. Customers don't need install things.
106-
ifneq "$(build)" "debug"
106+
ifeq "$(build)" "release"
107107
# Except Darwin. Darwin has static libs defined above.
108108
ifeq "$(is_darwin)" ""
109109
# LIBRARIES += -static

mk/flags.mk

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,14 @@ else
6060
ARFLAGS = -rcs
6161
endif
6262

63-
ifeq "$(build)" "debug"
64-
DEBUG_OR_RELEASE := Debug
65-
CFLAGS += -g3 -O0 -DDEBUG -DYYDEBUG=1
66-
CXXFLAGS += -g3 -O0 -DDEBUG -DYYDEBUG=1
67-
LDFLAGS +=
68-
else
63+
ifeq "$(build)" "release"
6964
DEBUG_OR_RELEASE := Release
7065
CFLAGS += -Os -DNDEBUG
7166
CXXFLAGS += -Os -DNDEBUG
67+
else
68+
DEBUG_OR_RELEASE := Debug
69+
CFLAGS += -g3 -O0 -DDEBUG -DYYDEBUG=1
70+
CXXFLAGS += -g3 -O0 -DDEBUG -DYYDEBUG=1
7271
endif
7372

7473
ifneq "$(is_mingw)" "1"

mk/paths.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,4 @@ endif
105105
# Debug or Release
106106
# Release by default
107107
#-----------------------------------------------
108-
build ?= debug
108+
build ?= release

test/run_unit_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def isTestDir(dir):
3535
testClientCommand = "run-tcp-client"
3636
testServerCommand = "run-tcp-server"
3737
transportLayer = "tcp"
38-
target = "debug"
38+
target = "release"
3939

4040
# Process command line options
4141
# Check for 2 or more arguments because argv[0] is the script name

0 commit comments

Comments
 (0)