blob: 922794bdaf3b8c1ca823475119a63dc73f9e07a4 [file] [log] [blame]
// Copyright 2015 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.
// This header defines macros to export component's symbols.
// See "platform/PlatformExport.h" for details.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_MODULES_EXPORT_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_MODULES_EXPORT_H_
#include "build/build_config.h"
//
// BLINK_MODULES_IMPLEMENTATION
//
#if !defined(BLINK_MODULES_IMPLEMENTATION)
#define BLINK_MODULES_IMPLEMENTATION 0
#endif
//
// MODULES_EXPORT
//
#if !defined(COMPONENT_BUILD)
#define MODULES_EXPORT // No need of export
#else
#if defined(COMPILER_MSVC)
#if BLINK_MODULES_IMPLEMENTATION
#define MODULES_EXPORT __declspec(dllexport)
#else
#define MODULES_EXPORT __declspec(dllimport)
#endif
#endif // defined(COMPILER_MSVC)
#if defined(COMPILER_GCC)
#if BLINK_MODULES_IMPLEMENTATION
#define MODULES_EXPORT __attribute__((visibility("default")))
#else
#define MODULES_EXPORT
#endif
#endif // defined(COMPILER_GCC)
#endif // !defined(COMPONENT_BUILD)
#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_MODULES_EXPORT_H_