Skip to content

Commit

Permalink
Move log-sink to libs/antares/logs
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Mar 21, 2023
1 parent 3dd1f1f commit ae2116a
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 23 deletions.
3 changes: 3 additions & 0 deletions src/libs/antares/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ set(SRC_LOGS
logs/logs.cpp
logs/cleaner.h
logs/cleaner.cpp
logs/sink.h
logs/sink.cpp
)
source_group("misc\\logs" FILES ${SRC_LOGS})

Expand Down Expand Up @@ -568,5 +570,6 @@ target_link_libraries(libantares-core
libantares-core-calendar
libantares-solver-variable-info
result_writer
ortools::ortools
)

Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@
** SPDX-License-Identifier: licenceRef-GPL3_WITH_RTE-Exceptions
*/

#include "sink.h"

#include <antares/logs.h>
#include <string_view>
#include "log_sink.h"

namespace Antares::Solver
{
Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions src/solver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ add_subdirectory(utils)
add_subdirectory(optimisation)
add_subdirectory(main)
add_subdirectory(constraints-builder)
add_subdirectory(log-sink)
#
# Resource file for Windows
#
Expand Down Expand Up @@ -89,8 +88,7 @@ set(ANTARES_SOLVER_LIBS ${ANTARES_SOLVER_LIBS}
libantares-solver-simulation
libantares-solver-ts-generator
libmodel_antares
libantares-core
libantares-log-sink)
libantares-core)

target_link_libraries(antares-solver
PRIVATE
Expand Down
2 changes: 1 addition & 1 deletion src/solver/application.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <antares/study.h>
#include <antares/study/load-options.h>
#include <antares/benchmarking.h>
#include <log_sink.h>
#include <antares/logs/sink.h>
#include "simulation/simulation.h"

#include <i_writer.h>
Expand Down
16 changes: 0 additions & 16 deletions src/solver/log-sink/CMakeLists.txt

This file was deleted.

4 changes: 2 additions & 2 deletions src/solver/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set(SRC_SOLVER_MAIN_ADEQUACY adequacy.cpp)


add_library(libantares-solver-main-adequacy ${SRC_SOLVER_MAIN_ADEQUACY})
target_link_libraries(libantares-solver-main-adequacy PRIVATE libantares-core libantares-log-sink)
target_link_libraries(libantares-solver-main-adequacy PRIVATE libantares-core)

add_library(libantares-solver-main-economy ${SRC_SOLVER_MAIN_ECONOMY})
target_link_libraries(libantares-solver-main-economy PRIVATE libantares-core libantares-log-sink)
target_link_libraries(libantares-solver-main-economy PRIVATE libantares-core)
1 change: 1 addition & 0 deletions src/solver/main/adequacy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "../simulation/adequacy.h"
#include <antares/benchmarking.h>
#include <antares/logs.h>
#include <antares/logs/sink.h>

namespace Antares
{
Expand Down
1 change: 1 addition & 0 deletions src/solver/main/economy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "../simulation/economy.h"
#include <antares/benchmarking.h>
#include <antares/logs.h>
#include <antares/logs/sink.h>

namespace Antares
{
Expand Down

0 comments on commit ae2116a

Please sign in to comment.