Fix pro file for EmberCL on osx

This commit is contained in:
Simon Detheridge 2015-01-14 10:36:18 +00:00
parent 3a1919dd03
commit 3c4dc80342

View File

@ -1,15 +1,21 @@
TEMPLATE = lib TEMPLATE = lib
CONFIG += shared CONFIG += shared
CONFIG += warn_off CONFIG += warn_off
CONFIG += precompile_header !macx:CONFIG += precompile_header
CONFIG -= app_bundle CONFIG -= app_bundle
CONFIG -= qt CONFIG -= qt
VERSION = 0.1.4.7 VERSION = 0.1.4.7
DESTDIR = $$(HOME)/Dev/fractorium/Bin DESTDIR = $$(HOME)/Dev/fractorium/Bin
LIBS += -L/usr/lib -lOpenCL !macx:LIBS += -L/usr/lib -lGL
LIBS += -L/usr/lib -lGL macx:LIBS += -framework OpenGL
!macx:LIBS += -L/usr/lib -lOpenCL
macx:LIBS += -framework OpenCL
LIBS += -L/usr/lib/x86_64-linux-gnu -lxml2
LIBS += -L$$DESTDIR -lEmber
INCLUDEPATH += /usr/include/CL INCLUDEPATH += /usr/include/CL
INCLUDEPATH += /usr/include/GL INCLUDEPATH += /usr/include/GL
@ -18,6 +24,15 @@ INCLUDEPATH += /usr/include/tbb
INCLUDEPATH += /usr/include/libxml2 INCLUDEPATH += /usr/include/libxml2
INCLUDEPATH += ../../../Source/Ember INCLUDEPATH += ../../../Source/Ember
# homebrew installs into /usr/local
macx:LIBS += -L/usr/local/lib
macx:INCLUDEPATH += /usr/local/include
macx:INCLUDEPATH += ../../../Deps
macx:QMAKE_MAC_SDK = macosx10.9
macx:QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.9
QMAKE_CXXFLAGS_RELEASE += -DNDEBUG QMAKE_CXXFLAGS_RELEASE += -DNDEBUG
QMAKE_CXXFLAGS += -march=k8 QMAKE_CXXFLAGS += -march=k8
@ -49,9 +64,11 @@ QMAKE_CXXFLAGS += -D_USRDLL
QMAKE_CXXFLAGS += -D_CONSOLE QMAKE_CXXFLAGS += -D_CONSOLE
QMAKE_CXXFLAGS += -BUILDING_EMBERCL QMAKE_CXXFLAGS += -BUILDING_EMBERCL
macx:QMAKE_CXXFLAGS += -stdlib=libc++
QMAKE_LFLAGS_RELEASE += -s QMAKE_LFLAGS_RELEASE += -s
PRECOMPILED_HEADER = ../../../Source/EmberCL/EmberCLPch.h !macx:PRECOMPILED_HEADER = ../../../Source/EmberCL/EmberCLPch.h
SOURCES += \ SOURCES += \
../../../Source/EmberCL/DllMain.cpp \ ../../../Source/EmberCL/DllMain.cpp \