osquery-1/osquery/extensions/CMakeLists.txt

24 lines
611 B
CMake
Raw Normal View History

2015-02-04 03:55:16 +00:00
# Generate the thrift intermediate/interface code.
add_custom_command(
COMMAND
${THRIFT_COMPILER} --gen cpp:dense --gen py:dense "${CMAKE_SOURCE_DIR}/osquery.thrift"
2015-02-04 03:55:16 +00:00
DEPENDS "${CMAKE_SOURCE_DIR}/osquery.thrift"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/generated"
2015-05-12 06:31:13 +00:00
OUTPUT ${OSQUERY_THRIFT_GENERATED_FILES}
2015-02-04 03:55:16 +00:00
)
if(NOT WINDOWS)
Initial support for building on Windows (#2015) * Committing changes related to our experimentation with a "pure" Win64 build * Placates CMake such that a Visual Studio 14 x64 solution is generated! * Updated changes to fix the issue of GFlags not being found. * Added cases to handle Win64 specific CMake options such as include/link directories and compiler options * Comment change in CMakeList.txt * Changed wording of get_platform error message. Adding Powershell provisioning script. * Finalized provision powershell script * Added a deployment XML file for insuring C++ support exists for VS2015 * Added admin check and resolved some potential PATH issues. * Fixed some potential bugs in VS2015 automated install * Adding a wrapper for provision.ps1 so people don't need to know obscure powershell syntax * Fixing a bug with third-party archive extraction * Ignoring the updating of pip for now... * Fix invocation of choco.exe * Resolved pip install issues * Removed some debugging residue * Changing get_platform.py from tabs to spaces * Added distro detection for ubuntu and darwin * Using 4 spaces * Added a newline after powershell invocation * Added OS detection for freebsd and fedora * Fixed bug with freebsd * Adding arguments parsing to prepare for modularizing platform detection * Removing bash platform detection logic and forwarding the task to get_platform.py * Removing get_platform support in provision.sh since it doesn't appear to be used anywhere now * Fixed some comment/spacing issues. Made a few efficiency changes * A few bug fixes, revereted back to WIN32 variable for now * Added Facebook copyright information. * Fixed boost and rocksdb library paths * Added support for installing our custom chocolatey packages * Fixed path to ignore the symlink * Force environment variable propagation * Forgot to add new line after make-win64-dev-env.bat * Added error handling for choco install failures * Handles download and python/pip errors * When chocolatey is not detected, refreshenv.bat is not found in the PATH. Hardcode the PATH as per chocolatey install instructions * Takes care of updating git submodules in third-party\ * Fixes a bug in which Linux provisioning fails because of unset FAMILY env var.
2016-04-15 21:01:16 +00:00
add_compile_options(
-Wno-macro-redefined
)
endif()
2015-10-08 14:22:48 +00:00
ADD_OSQUERY_LIBRARY(TRUE osquery_extensions
2015-02-04 03:55:16 +00:00
${OSQUERY_THRIFT_GENERATED_FILES}
extensions.cpp
2015-02-19 23:19:00 +00:00
interface.cpp
2015-02-04 03:55:16 +00:00
)
2015-04-27 09:12:58 +00:00
file(GLOB OSQUERY_EXTENSIONS_TESTS "tests/*.cpp")
ADD_OSQUERY_TEST(TRUE ${OSQUERY_EXTENSIONS_TESTS})