There's a different prefix here.
Change-Id: Ifda82e19824801b1d903ab6ad40c97428fff236c
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
**
****************************************************************************/
+#if defined(HEADER_OPENAL_PREFIX)
+#include <OpenAL/al.h>
+#else
#include <AL/al.h>
+#endif
int main(int argc, char** argv)
{
SOURCES += main.cpp
-win32 {
- LIBS += -lOpenAL32
-}else {
- LIBS += -lopenal
-}
+win32: LIBS += -lOpenAL32
+unix:!mac: LIBS += -lopenal
+mac: LIBS += -framework OpenAL
+mac: DEFINES += HEADER_OPENAL_PREFIX
include(../qimportbase.pri)
QT += quick qml multimedia-private
-win32 {
- LIBS += -lOpenAL32
-}else {
- LIBS += -lopenal
-}
+win32: LIBS += -lOpenAL32
+unix:!mac: LIBS += -lopenal
+mac: LIBS += -framework OpenAL
+mac: DEFINES += HEADER_OPENAL_PREFIX
DESTDIR = $$QT.multimedia.imports/$$TARGETPATH
target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH
#include <QMap>
#include <QTimer>
+#if defined(HEADER_OPENAL_PREFIX)
+#include <OpenAL/al.h>
+#include <OpenAL/alc.h>
+#else
#include <AL/al.h>
#include <AL/alc.h>
+#endif
#include "qsoundsource_p.h"
#include "qsoundbuffer_p.h"