Skip to content

Mburton/sc log #28

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

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

markfoodyburton
Copy link
Contributor

No description provided.

@markfoodyburton markfoodyburton requested review from barnasc and aut0 March 26, 2025 11:44
@barnasc
Copy link
Contributor

barnasc commented Apr 18, 2025

As discussed in CPSWG at 2025/04/08:

  • I propose to remove the SCMOD define and simply use name() in the example
  • It looks like the scp::init_logging requires a global broker which needs to be instantiated by the application. Preferably initialization does not require a CCI broker
  • the init option scp::LogConfig::fileInfoFrom currently accepts an int and not a type of scp::log
  • Remove the obsolete log levels called DBGTRACE and TRACEALL (already resolved in the SystemC PR #726)
  • Where does the log go from m_my_logger?

Copy link
Contributor

@aut0 aut0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also style check fails.

cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
project(audioexample VERSION 1.0 LANGUAGES CXX C)

set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard to build all targets.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not force global settings, rather set it for the target.


find_package(PkgConfig REQUIRED)
pkg_check_modules(PORTAUDIO REQUIRED IMPORTED_TARGET GLOBAL portaudio-2.0)
#include_directories(${PORTAUDIO_INCLUDE_DIRS})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

@@ -0,0 +1,129 @@
/*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be part of CPS base instead of the example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants