-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
93 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Tilen Majerle <tilen.majerle@gmail.com> | ||
Tilen Majerle <tilen@majerle.eu> | ||
Brian <bayuan@purdue.edu> | ||
Peter Maxwell Warasila <madmaxwell@soundcomesout.com> |
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.. _authors: | ||
|
||
Authors | ||
======= | ||
|
||
List of authors and contributors to the library | ||
|
||
.. literalinclude:: ../../AUTHORS |
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
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,11 +1,3 @@ | ||
cmake_minimum_required(VERSION 3.22) | ||
|
||
# Register core library | ||
add_library(lwprintf INTERFACE) | ||
target_sources(lwprintf PUBLIC ${CMAKE_CURRENT_LIST_DIR}/src/lwprintf/lwprintf.c) | ||
target_include_directories(lwprintf INTERFACE ${CMAKE_CURRENT_LIST_DIR}/src/include) | ||
|
||
if (DEFINED LWPRINTF_SYS_PORT) | ||
target_sources(lwprintf PUBLIC | ||
${CMAKE_CURRENT_LIST_DIR}/src/system/lwprintf_sys_${LWPRINTF_SYS_PORT}.c) | ||
endif() | ||
include(${CMAKE_CURRENT_LIST_DIR}/library.cmake) |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# | ||
# This file provides set of variables for end user | ||
# and also generates one (or more) libraries, that can be added to the project using target_link_libraries(...) | ||
# | ||
# Before this file is included to the root CMakeLists file (using include() function), user can set some variables: | ||
# | ||
# LWPRINTF_SYS_PORT: If defined, it will include port source file from the library. | ||
# LWPRINTF_OPTS_DIR: If defined, it should set the folder path where options file shall be generated. | ||
# LWPRINTF_COMPILE_OPTIONS: If defined, it provide compiler options for generated library. | ||
# LWPRINTF_COMPILE_DEFINITIONS: If defined, it provides "-D" definitions to the library build | ||
# | ||
|
||
# Library core sources | ||
set(lwprintf_core_SRCS | ||
${CMAKE_CURRENT_LIST_DIR}/src/lwprintf/lwprintf.c | ||
) | ||
|
||
# Add system port | ||
if(DEFINED LWPRINTF_SYS_PORT) | ||
set(lwprintf_core_SRCS | ||
${lwprintf_core_SRCS} | ||
${CMAKE_CURRENT_LIST_DIR}/src/system/lwprintf_sys_${LWPRINTF_SYS_PORT}.c | ||
) | ||
endif() | ||
|
||
# Setup include directories | ||
set(lwprintf_include_DIRS | ||
${CMAKE_CURRENT_LIST_DIR}/src/include | ||
) | ||
|
||
# Register library to the system | ||
add_library(lwprintf INTERFACE) | ||
target_sources(lwprintf INTERFACE ${lwprintf_core_SRCS}) | ||
target_include_directories(lwprintf INTERFACE ${lwprintf_include_DIRS}) | ||
target_compile_options(lwprintf PRIVATE ${LWPRINTF_COMPILE_OPTIONS}) | ||
target_compile_definitions(lwprintf PRIVATE ${LWPRINTF_COMPILE_DEFINITIONS}) | ||
|
||
# Create config file | ||
if(DEFINED LWPRINTF_OPTS_DIR AND NOT EXISTS ${LWPRINTF_OPTS_DIR}/lwprintf_opts.h) | ||
configure_file(${CMAKE_CURRENT_LIST_DIR}/src/include/lwprintf/lwprintf_opts_template.h ${LWPRINTF_OPTS_DIR}/lwprintf_opts.h COPYONLY) | ||
endif() |
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
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
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