Lykurg/AStylePlugin — pull request #2 by vsimon (2011-11-18 03:09:46+00:00)
Title: Fix .pro file to build on MacOS

The current pro file errors out on Mac because there is no /lib/qtcreator/plugins/Nokia folder on the Mac Qt Creator build.

ld: warning: directory not found for option '-L/Users/vicken/src/vsimon-qt-creator/lib/qtcreator/plugins/Nokia'
ld: library not found for -lCore

Replacing the LIBS line with the following works because IDE_PLUGIN_PATH is cross-platform (and is namely Qt\ Creator.app/Contents/PlugIns/Nokia on Mac).
LIBS += -L$$IDE_PLUGIN_PATH/Nokia

This same line also builds successfully in Linux, assuming it will also on Windows.

This variable is in qtcreator.pri and is present in 2.3.x also so it should be compatible with previous versions.