Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: third_party/x86inc/x86inc.asm

Issue 15151002: Streamline SIMD targets in media.gyp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix exports. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/x86inc/x86inc.asm
diff --git a/third_party/x86inc/x86inc.asm b/third_party/x86inc/x86inc.asm
index fe7f3d2132ea3b39cbc78ebe83eab70f82c65d84..e4eaaccf8782b3767afb01a6a4bb91b977843f83 100644
--- a/third_party/x86inc/x86inc.asm
+++ b/third_party/x86inc/x86inc.asm
@@ -1013,6 +1013,27 @@ AVX_INSTR pfmul, 1, 0
%define PRIVATE
%endif
+;
+; EXPORT %1
+; Designates a symbol as PRIVATE if EXPORT_SYMBOLS is not set.
Ami GONE FROM CHROMIUM 2013/05/18 02:22:04 This doesn't seem very x86-specific (see file name
DaleCurtis 2013/05/23 23:43:23 Moved PRIVATE and EXPORT into a new media_export.i
+;
+
+%macro EXPORT 1
+%ifdef EXPORT_SYMBOLS
+global mangle(%1)
+
+; Windows needs an additional export declaration.
+%ifidn __OUTPUT_FORMAT__,win32
+export mangle(%1)
+%elifidn __OUTPUT_FORMAT__,win64
+export mangle(%1)
+%endif
+
+%else
+global mangle(%1) PRIVATE
+%endif
+%endmacro
+
%endif ; CHROMIUM
%endif ; MEDIA_BASE_SIMD_X86INC_ASM_
« media/media.gyp ('K') | « remoting/remoting.gyp ('k') | third_party/yasm/yasm_compile.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698