Skip to content

Commit

Permalink
Remove dependency to UI : replace the dependency to UI in other stand…
Browse files Browse the repository at this point in the history
… alone targets + correct new target include files paths
  • Loading branch information
guilpier-code committed Oct 5, 2023
1 parent 2139c7c commit c2b28a8
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/libs/antares/args/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set(SRC_ARGS_HELPER
args_to_utf8.h
include/antares/args/args_to_utf8.h
args_to_utf8.cpp
)

Expand All @@ -18,5 +18,5 @@ target_link_libraries(args_helper

target_include_directories(args_helper
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/include
)
2 changes: 1 addition & 1 deletion src/libs/antares/args/args_to_utf8.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

#include <yuni/yuni.h>
#include "args_to_utf8.h"
#include "antares/args/args_to_utf8.h"


#ifdef YUNI_OS_WINDOWS
Expand Down
4 changes: 0 additions & 4 deletions src/libs/antares/args/args_to_utf8.h

This file was deleted.

1 change: 1 addition & 0 deletions src/tools/batchrun/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ set(BATCHRUN_LIBS
antares-core #local.h
yuni-static-core
${CMAKE_THREADS_LIBS_INIT}
Antares::args_helper
Antares::study
)

Expand Down
2 changes: 1 addition & 1 deletion src/tools/batchrun/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <yuni/core/string.h>
#include <yuni/core/getopt.h>
#include <antares/study/finder.h>
#include "../../ui/common/winmain.hxx"
#include <antares/args/args_to_utf8.h>
#include <antares/version.h>
#include <antares/locale.h>
#ifdef YUNI_OS_WINDOWS
Expand Down
1 change: 1 addition & 0 deletions src/tools/cleaner/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ INSTALL(EXPORT antares-study-cleaner

set(CLEANER_LIBS
yuni-static-core
Antares::args_helper
Antares::study
Antares::sys
antares-core #version.h
Expand Down
2 changes: 1 addition & 1 deletion src/tools/cleaner/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <antares/logs/logs.h>
#include <antares/study/finder.h>
#include <yuni/core/getopt.h>
#include "../../ui/common/winmain.hxx"
#include <antares/args/args_to_utf8.h>
#include <antares/utils/utils.h>
#include <antares/study/cleaner.h>
#include <antares/version.h>
Expand Down
1 change: 1 addition & 0 deletions src/tools/config/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ INSTALL(EXPORT antares-config

set(CONFIG_LIBS
yuni-static-core
Antares::args_helper
${CMAKE_THREADS_LIBS_INIT}
)

Expand Down
2 changes: 1 addition & 1 deletion src/tools/config/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <antares/resources/resources.h>
#include <iostream>
#include <yuni/core/getopt.h>
#include "../../ui/common/winmain.hxx"
#include <antares/args/args_to_utf8.h>
#include <antares/version.h>
#include <yuni/core/system/username.h>
#include <antares/locale.h>
Expand Down
1 change: 1 addition & 0 deletions src/tools/finder/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ INSTALL(EXPORT antares-study-finder
set(FINDER_LIBS
antares-core
yuni-static-core
Antares::args_helper
${CMAKE_THREADS_LIBS_INIT}
)

Expand Down
2 changes: 1 addition & 1 deletion src/tools/finder/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <antares/logs/logs.h>
#include <antares/study/finder.h>
#include <yuni/core/getopt.h>
#include "../../ui/common/winmain.hxx"
#include <antares/args/args_to_utf8.h>
#include <antares/utils/utils.h>
#include <antares/version.h>
#include <antares/locale.h>
Expand Down
1 change: 1 addition & 0 deletions src/tools/updater/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ INSTALL(EXPORT antares-study-updater

set(UPDATER_LIBS
yuni-static-core
Antares::args_helper
Antares::study
Antares::sys
antares-core #version.h
Expand Down
2 changes: 1 addition & 1 deletion src/tools/updater/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <antares/logs/logs.h>
#include <antares/study/finder.h>
#include <yuni/core/getopt.h>
#include "../../ui/common/winmain.hxx"
#include <antares/args/args_to_utf8.h>
#include <antares/utils/utils.h>
#include <antares/study/cleaner.h>
#include <antares/version.h>
Expand Down
1 change: 1 addition & 0 deletions src/tools/vacuum/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ set(VACUUM_LIBS
antares-fswalker
yuni-static-core
${CMAKE_THREADS_LIBS_INIT}
Antares::args_helper
Antares::study
)

Expand Down
2 changes: 1 addition & 1 deletion src/tools/vacuum/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <antares/antares.h>
#include <fswalker/fswalker.h>
#include <antares/logs/logs.h>
#include "../../ui/common/winmain.hxx"
#include <antares/args/args_to_utf8.h>
#include <antares/version.h>
#include <antares/locale.h>
#include "modified-inode.h"
Expand Down
1 change: 1 addition & 0 deletions src/tools/yby-aggregator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ INSTALL(EXPORT antares-ybyaggregator

set(YBY_AGGREGATOR_LIBS
antares-core #version.h
Antares::args_helper
Antares::date
Antares::logs
yuni-static-core
Expand Down
2 changes: 1 addition & 1 deletion src/tools/yby-aggregator/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <yuni/yuni.h>
#include <antares/logs/logs.h>
#include <yuni/core/getopt.h>
#include "../../ui/common/winmain.hxx"
#include <antares/args/args_to_utf8.h>
#include <antares/utils/utils.h>
#include <antares/version.h>
#include <antares/sys/policy.h>
Expand Down

0 comments on commit c2b28a8

Please sign in to comment.