Merge remote-tracking branch 'origin/cleanup-cmake' into integration_2026_w07 (!3915)
Cleanup Cmake: remove some double compilation Harmonize some cmake code to avoid double compilation, notably around polar and smallblock. In develop, we just add their sources to other targets, whereas now we define STATIC libraries (further changed to shared library in !3856) to avoid double compilation. With this command line: cmake .. -GNinja -DENABLE_TESTS=ON && ninja shows that before we compile 12631 files, where after it is 12583 there is additional supporting cleanup (move code, remove headers, types, ...). there is more harmonization to do, I limited myself to some easy wins. For instance, we do the same with PDCP/SDAP, and this should be refactored into STATIC libraries as well.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
add_subdirectory(COMMON)
|
||||
|
||||
add_boolean_option(OAI_AW2SORI OFF "Activate OAI's AW2S driver" OFF)
|
||||
if(OAI_AW2SORI)
|
||||
add_subdirectory(AW2SORI)
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
add_library(radio_common STATIC common_lib.c record_player.c)
|
||||
target_include_directories(radio_common PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_link_libraries(radio_common PUBLIC dl log_headers shlib_loader)
|
||||
@@ -40,7 +40,6 @@
|
||||
#include "assertions.h"
|
||||
#include "common/utils/load_module_shlib.h"
|
||||
#include "common/utils/LOG/log.h"
|
||||
//#include "targets/RT/USER/lte-softmodem.h"
|
||||
#include "executables/softmodem-common.h"
|
||||
|
||||
#define MAX_GAP 100ULL
|
||||
|
||||
Reference in New Issue
Block a user