| //===- llbuild.h --------------------------------------------------*- C -*-===// |
| // |
| // This source file is part of the Swift.org open source project |
| // |
| // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors |
| // Licensed under Apache License v2.0 with Runtime Library Exception |
| // |
| // See http://swift.org/LICENSE.txt for license information |
| // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors |
| // |
| //===----------------------------------------------------------------------===// |
| // |
| // These are the C API interfaces to the llbuild library. |
| // |
| //===----------------------------------------------------------------------===// |
| |
| #ifndef LLBUILD_PUBLIC_LLBUILD_H |
| #define LLBUILD_PUBLIC_LLBUILD_H |
| |
| #if defined(__cplusplus) |
| #if defined(_WIN32) |
| #define LLBUILD_EXPORT extern "C" __declspec(dllexport) |
| #else |
| #define LLBUILD_EXPORT extern "C" __attribute__((visibility("default"))) |
| #endif |
| #elif __GNUC__ |
| #define LLBUILD_EXPORT extern __attribute__((visibility("default"))) |
| #elif defined(_WIN32) |
| #define LLBUILD_EXPORT extern __declspec(dllexport) |
| #else |
| #define LLBUILD_EXPORT extern |
| #endif |
| |
| /// A monotonically increasing indicator of the llbuild API version. |
| /// |
| /// The llbuild API is *not* stable. This value allows clients to conditionally |
| /// compile for multiple versions of the API. |
| /// |
| /// Version History: |
| /// |
| /// 3: Added command_had_error, command_had_note and command_had_warning delegate methods. |
| /// |
| /// 2: Added `llb_buildsystem_command_result_t` parameter to command_finished. |
| /// |
| /// 1: Added `environment` parameter to llb_buildsystem_invocation_t. |
| /// |
| /// 0: Pre-history |
| #define LLBUILD_API_VERSION 3 |
| |
| /// Get the full version of the llbuild library. |
| LLBUILD_EXPORT const char* llb_get_full_version_string(void); |
| |
| // The Core component. |
| #include "core.h" |
| |
| // The BuildSystem component. |
| #include "buildsystem.h" |
| |
| #endif |