2014-12-18 18:50:47 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2014, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
2015-05-12 06:31:13 +00:00
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
2014-12-18 18:50:47 +00:00
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*
|
|
|
|
*/
|
2015-05-12 06:31:13 +00:00
|
|
|
|
2014-09-13 21:28:45 +00:00
|
|
|
#include <string>
|
2014-07-31 00:35:19 +00:00
|
|
|
|
2014-12-03 23:14:02 +00:00
|
|
|
#include <osquery/core.h>
|
2014-10-27 16:34:13 +00:00
|
|
|
|
2015-06-12 01:13:37 +00:00
|
|
|
// If CMake/gmake did not define a build version set the version to 1.0.
|
|
|
|
// clang-format off
|
|
|
|
#ifndef OSQUERY_BUILD_VERSION
|
|
|
|
#define OSQUERY_BUILD_VERSION 1.0.0-unknown
|
|
|
|
#endif
|
|
|
|
// clang-format on
|
|
|
|
|
2014-07-31 00:35:19 +00:00
|
|
|
namespace osquery {
|
|
|
|
|
2016-02-02 00:42:37 +00:00
|
|
|
#ifdef DEBUG
|
|
|
|
const std::string kVersion = CONCAT(OSQUERY_BUILD_VERSION, -debug);
|
|
|
|
#else
|
2015-06-12 01:13:37 +00:00
|
|
|
const std::string kVersion = STR(OSQUERY_BUILD_VERSION);
|
2016-02-02 00:42:37 +00:00
|
|
|
#endif
|
2015-02-19 01:19:45 +00:00
|
|
|
const std::string kSDKVersion = OSQUERY_SDK_VERSION;
|
2015-05-27 23:50:57 +00:00
|
|
|
const std::string kSDKPlatform = OSQUERY_PLATFORM;
|
2014-07-31 00:35:19 +00:00
|
|
|
}
|