blob: 33e6f5db04d89add82c16c2f43b1a68980be0b58 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ControllerExport_h
#define ControllerExport_h
namespace blink {
// This macro is intended to export symbols in Source/controller/ which are
// still private to Blink (for instance, because they are used in unit tests).
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if BLINK_CONTROLLER_IMPLEMENTATION
#define CONTROLLER_EXPORT __declspec(dllexport)
#else
#define CONTROLLER_EXPORT __declspec(dllimport)
#endif // BLINK_CONTROLLER_IMPLEMENTATION
#else // defined(WIN32)
#define CONTROLLER_EXPORT __attribute__((visibility("default")))
#endif
#else // defined(COMPONENT_BUILD)
#define CONTROLLER_EXPORT
#endif
} // namespace blink
#endif // ControllerExport_h