Flutter Engine
The Flutter Engine
flutter_export.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_SHELL_PLATFORM_COMMON_PUBLIC_FLUTTER_EXPORT_H_
6#define FLUTTER_SHELL_PLATFORM_COMMON_PUBLIC_FLUTTER_EXPORT_H_
7
8#ifdef FLUTTER_DESKTOP_LIBRARY
9
10// Add visibility/export annotations when building the library.
11#ifdef _WIN32
12#define FLUTTER_EXPORT __declspec(dllexport)
13#else
14#define FLUTTER_EXPORT __attribute__((visibility("default")))
15#endif
16
17#else // FLUTTER_DESKTOP_LIBRARY
18
19// Add import annotations when consuming the library.
20#ifdef _WIN32
21#define FLUTTER_EXPORT __declspec(dllimport)
22#else
23#define FLUTTER_EXPORT
24#endif
25
26#endif // FLUTTER_DESKTOP_LIBRARY
27
28#endif // FLUTTER_SHELL_PLATFORM_COMMON_PUBLIC_FLUTTER_EXPORT_H_