summaryrefslogtreecommitdiffstats
path: root/gpu/gpu_export.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-05 20:14:17 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-05 20:14:17 +0000
commitdd25504da1b1066aebe38c2c18395d4806faea92 (patch)
treea5c6e8dc2137912bc409c9532455d58c08e327ec /gpu/gpu_export.h
parentf86fcc2ed582e1a6b3e5e1a92bed15c275933497 (diff)
downloadchromium_src-dd25504da1b1066aebe38c2c18395d4806faea92.zip
chromium_src-dd25504da1b1066aebe38c2c18395d4806faea92.tar.gz
chromium_src-dd25504da1b1066aebe38c2c18395d4806faea92.tar.bz2
GPU: Build most of the gpu as a single DLL.
BUG=114261 TEST=none Review URL: https://chromiumcodereview.appspot.com/9581018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124983 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/gpu_export.h')
-rw-r--r--gpu/gpu_export.h26
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_