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

Side by Side Diff: media/midi/usb_midi_export.h

Issue 1121363002: GN Windows component build fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@component2
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_MIDI_USB_MIDI_EXPORT_H_
6 #define MEDIA_MIDI_USB_MIDI_EXPORT_H_
7
8 // These files can be included as part of the midi component using the
scottmg 2015/05/05 01:46:46 Bleh :(
9 // MIDI_IMPLEMENTATION define (where we want to export in the component build),
10 // or in the unit tests (where we never want to export/import, even in
11 // component mode). The EXPORT_USB_MIDI define controls this.
12 #if defined(COMPONENT_BUILD) && defined(EXPORT_USB_MIDI)
13 #if defined(WIN32)
14
15 #if defined(MIDI_IMPLEMENTATION)
16 #define USB_MIDI_EXPORT __declspec(dllexport)
17 #else
18 #define USB_MIDI_EXPORT __declspec(dllimport)
19 #endif // defined(MIDI_IMPLEMENTATION)
20
21 #else // defined(WIN32)
22 #if defined(MIDI_IMPLEMENTATION)
23 #define USB_MIDI_EXPORT __attribute__((visibility("default")))
24 #else
25 #define USB_MIDI_EXPORT
26 #endif
27 #endif
28
29 #else // defined(COMPONENT_BUILD)
30 #define USB_MIDI_EXPORT
31 #endif
32
33 #endif // MEDIA_MIDI_USB_MIDI_EXPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698