Files
swift-mirror/include/swift-c/StaticMirror/StaticMirrorMacros.h
Artem Chikin d24e15812b Build libSwiftStaticMirror as a standalone library with minimal required dependencies.
This separates it from `libSwiftScan` and allows us to build this library without building much of the rest of the compiler.

Also refactor `utils/build-parser-lib` into `utils/build-tooling-libs` which builds both SwiftSyntaxParser and SwiftStaticMirror.
2022-02-09 12:28:21 -08:00

32 lines
998 B
C

//===-- DependencyScanMacros.h - Swift Dependency Scanning Macros -*- C -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#ifdef __cplusplus
# define SWIFTSTATICMIRROR_BEGIN_DECLS extern "C" {
# define SWIFTSTATICMIRROR_END_DECLS }
#else
# define SWIFTSTATICMIRROR_BEGIN_DECLS
# define SWIFTSTATICMIRROR_END_DECLS
#endif
#ifndef SWIFTSTATICMIRROR_PUBLIC
# ifdef _WIN32
# ifdef libStaticMirror_EXPORTS
# define SWIFTSTATICMIRROR_PUBLIC __declspec(dllexport)
# else
# define SWIFTSTATICMIRROR_PUBLIC __declspec(dllimport)
# endif
# else
# define SWIFTSTATICMIRROR_PUBLIC
# endif
#endif