mirror of
https://github.com/tstack/lnav.git
synced 2024-09-11 13:05:51 +03:00
[build] cmake fixes for linux
This commit is contained in:
parent
516a20b94a
commit
8b3bb9312e
@ -40,8 +40,8 @@ add_library(
|
||||
time_util.hh)
|
||||
|
||||
target_include_directories(base PUBLIC . .. ../fmtlib ../third-party
|
||||
${CMAKE_CURRENT_BINARY_DIR}/..)
|
||||
target_link_libraries(base cppfmt pcre::libpcre ncurses::libcurses)
|
||||
${CMAKE_CURRENT_BINARY_DIR}/..)
|
||||
target_link_libraries(base cppfmt pcre::libpcre ncurses::libcurses pthread)
|
||||
|
||||
add_executable(
|
||||
test_base
|
||||
|
@ -39,6 +39,8 @@ class files_sub_source
|
||||
public:
|
||||
files_sub_source();
|
||||
|
||||
~files_sub_source() override = default;
|
||||
|
||||
bool list_input_handle_key(listview_curses& lv, int ch) override;
|
||||
|
||||
void list_input_handle_scroll_out(listview_curses& lv) override;
|
||||
|
@ -40,6 +40,8 @@ class filter_sub_source
|
||||
public:
|
||||
filter_sub_source();
|
||||
|
||||
~filter_sub_source() override = default;
|
||||
|
||||
bool list_input_handle_key(listview_curses& lv, int ch) override;
|
||||
|
||||
void list_input_handle_scroll_out(listview_curses& lv) override;
|
||||
|
@ -330,6 +330,8 @@ public:
|
||||
this->clear();
|
||||
};
|
||||
|
||||
~hist_source2() override = default;
|
||||
|
||||
void init();
|
||||
|
||||
void set_time_slice(int64_t slice)
|
||||
|
@ -171,6 +171,8 @@ public:
|
||||
|
||||
logfile_sub_source();
|
||||
|
||||
~logfile_sub_source() = default;
|
||||
|
||||
void toggle_time_offset()
|
||||
{
|
||||
this->lss_flags ^= F_TIME_OFFSET;
|
||||
|
@ -116,6 +116,8 @@ class spectrogram_source
|
||||
, public list_overlay_source
|
||||
, public list_input_delegate {
|
||||
public:
|
||||
~spectrogram_source() override = default;
|
||||
|
||||
void invalidate()
|
||||
{
|
||||
this->ss_cached_bounds.sb_count = 0;
|
||||
|
@ -47,6 +47,8 @@ public:
|
||||
this->tss_supports_filtering = true;
|
||||
};
|
||||
|
||||
~textfile_sub_source() = default;
|
||||
|
||||
bool empty() const
|
||||
{
|
||||
return this->tss_files.empty();
|
||||
|
@ -16,7 +16,7 @@ target_include_directories(yajlpp PUBLIC . .. ../fmtlib
|
||||
target_link_libraries(yajlpp pcrepp yajl)
|
||||
|
||||
add_executable(test_yajlpp test_yajlpp.cc)
|
||||
target_link_libraries(test_yajlpp base yajlpp ${lnav_LIBS})
|
||||
target_link_libraries(test_yajlpp yajlpp base ${lnav_LIBS})
|
||||
add_test(NAME test_yajlpp COMMAND test_yajlpp)
|
||||
|
||||
add_executable(drive_json_op drive_json_op.cc)
|
||||
|
Loading…
Reference in New Issue
Block a user