diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-02 19:11:44 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-02 19:11:44 +0000 |
commit | 183b60aae43ff5ef5556e7debd9480a96ce5dd46 (patch) | |
tree | 4b9910ef4399051b5c2717133094ff7719f32932 /gpu/gpu_export.h | |
parent | 22d63ebbd65ee881edf1143f4a2e4f38f3f4ea39 (diff) | |
download | chromium_src-183b60aae43ff5ef5556e7debd9480a96ce5dd46.zip chromium_src-183b60aae43ff5ef5556e7debd9480a96ce5dd46.tar.gz chromium_src-183b60aae43ff5ef5556e7debd9480a96ce5dd46.tar.bz2 |
GPU: Buld most of the gpu as a single DLL.
BUG=114261
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9514020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124702 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/gpu_export.h')
-rw-r--r-- | gpu/gpu_export.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gpu/gpu_export.h b/gpu/gpu_export.h new file mode 100644 index 0000000..91f35e2 --- /dev/null +++ b/gpu/gpu_export.h @@ -0,0 +1,26 @@ +// Copyright (c) 2012 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 GPU_GPU_EXPORT_H_ +#define GPU_GPU_EXPORT_H_ +#pragma once + +#if defined(COMPONENT_BUILD) +#if defined(WIN32) + +#if defined(GPU_IMPLEMENTATION) +#define GPU_EXPORT __declspec(dllexport) +#else +#define GPU_EXPORT __declspec(dllimport) +#endif // defined(GPU_IMPLEMENTATION) + +#else // defined(WIN32) +#define GPU_EXPORT __attribute__((visibility("default"))) +#endif + +#else // defined(COMPONENT_BUILD) +#define GPU_EXPORT +#endif + +#endif // GPU_GPU_EXPORT_H_ |