158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Copyright (c) 2013 The Chromium Authors. All rights reserved.
258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// found in the LICENSE file.
458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
558537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)#ifndef UI_GFX_GFX_EXPORT_H_
658537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)#define UI_GFX_GFX_EXPORT_H_
758537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
8d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)#if defined(COMPONENT_BUILD)
9d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)#if defined(WIN32)
10d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)
114e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)#if defined(GFX_IMPLEMENTATION)
12d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)#define GFX_EXPORT __declspec(dllexport)
13d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)#else
14d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)#define GFX_EXPORT __declspec(dllimport)
154e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)#endif  // defined(GFX_IMPLEMENTATION)
16d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)
17d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)#else  // defined(WIN32)
184e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)#if defined(GFX_IMPLEMENTATION)
19d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)#define GFX_EXPORT __attribute__((visibility("default")))
20d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)#else
21d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)#define GFX_EXPORT
22d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)#endif
23d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)#endif
24d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)
25d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)#else  // defined(COMPONENT_BUILD)
26d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)#define GFX_EXPORT
27d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)#endif
28d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)
2958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)#endif  // UI_GFX_GFX_EXPORT_H_
30