flappy-sh
11/25/2019, 10:03 AMtheopolis
flappy-sh
11/25/2019, 4:03 PMtheopolis
libraries/cmake/source_migration/modules/Findthrift.cmake
, you'll have to add a similar one for librdkafka.
Then you'll have to update: https://github.com/osquery/osquery/blob/master/libraries/cmake/source/librdkafka/CMakeLists.txt so that it builds on macOS and Windows. Right now it is only building on Linux.
The most difficult step is creating the right config.h
and storing it alongside: https://github.com/osquery/osquery/blob/master/libraries/cmake/source/librdkafka/config/config.h
Here is an example from libmagic: https://github.com/osquery/osquery/commit/58ea43f53693d7fa95ed775f48c03c7b379a5baa#diff-550d742961671466d104ab3e933c790d
When the existing config.h was moved into a ./linux/config.h and an equivalent was added for macOS.
I am not sure how librdkafka builds on Windows but you'll most likely need one there too.flappy-sh
11/27/2019, 10:25 AM