OS X pathCache compatibility; added iniCodec configuration option for international compatibility

This commit is contained in:
Mathew 2014-08-18 23:32:19 -04:00
parent 7452331e04
commit 1783d5901e
6 changed files with 128 additions and 7 deletions

View file

@ -8,12 +8,16 @@ INCLUDEPATH += . src
CONFIG(release, debug|release): DEFINES += NDEBUG
CONFIG += MIDI
CONFIG += MIDI INI_CODEC
DISABLE_MIDI {
CONFIG -= MIDI
}
DISABLE_INI_CODEC {
CONFIG -= INI_CODEC
}
isEmpty(BINDING) {
BINDING = MRI
}
@ -77,8 +81,9 @@ contains(RGSS_VER, 3) {
unix {
CONFIG += link_pkgconfig
PKGCONFIG += sigc++-2.0 pixman-1 zlib physfs \
sdl2 SDL2_image SDL2_ttf SDL_sound openal
PKGCONFIG += sigc++-2.0 pixman-1 physfs \
sdl2 SDL2_image SDL2_ttf SDL_sound
LIBS += -lz
RGSS2 {
PKGCONFIG += vorbisfile
@ -112,6 +117,17 @@ unix {
LIBS += -lboost_program_options$$BOOST_LIB_SUFFIX
}
unix:!macx {
PKGCONFIG += openal
}
macx {
CONFIG -= app_bundle
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
INCLUDEPATH += /System/Library/Frameworks/OpenAL.framework/Headers
LIBS += -liconv -framework OpenAL
}
# Input
HEADERS += \
src/quadarray.h \
@ -248,6 +264,13 @@ MIDI {
DEFINES += MIDI
}
INI_CODEC {
DEFINES += INI_CODEC
win32 {
LIBS += -liconv
}
}
defineReplace(xxdOutput) {
return($$basename(1).xxd)
}