Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
brand new qmake build file and osx static compiled binary
- Loading branch information
Rob Frawley 2nd
committed
Oct 6, 2014
1 parent
212aee5
commit a2a4c96
Showing
2 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,54 @@ | ||
#------------------------------------------------- | ||
# | ||
# Project created by QtCreator 2014-03-28T14:52:33 | ||
# Qt Creator / qmake Project | ||
# Compiled 2014-10-05T12:05:00 | ||
# | ||
#------------------------------------------------- | ||
|
||
QT += core gui | ||
TARGET = ColorPicker | ||
TEMPLATE = app | ||
LANGUAGE = c++ | ||
|
||
SOURCES += main.cpp | ||
HEADERS += | ||
FORMS += | ||
|
||
CONFIG += static c++11 warn_on | ||
|
||
QT += core gui | ||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets | ||
|
||
TARGET = ColorPicker | ||
TEMPLATE = app | ||
QMAKE_CXXFLAGS += -s -fvisibility=hidden -fomit-frame-pointer -march=nocona -Os | ||
QMAKE_LFLAGS += -s -fvisibility=hidden -dead_strip | ||
|
||
QMAKE_CXXFLAGS += -static -s -fvisibility=hidden -std=c++11 | ||
QMAKE_LFLAGS += -s -fvisibility=hidden | ||
macx { | ||
CONFIG -= app_bundle | ||
CONFIG += x86_64 | ||
|
||
SOURCES += main.cpp | ||
QMAKE_MAC_PLATFORM_NAME = macosx | ||
QMAKE_MAC_SDK = macosx | ||
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6 | ||
|
||
greaterThan(QT_VERSION, 5.3.0) { | ||
message("Remove new default plugins in QT>5.3.0: 'imageformats', 'accessible', and only 'cocoa' portion of 'platforms'.") | ||
QTPLUGIN.platforms = qcocoa | ||
QTPLUGIN.accessible = - | ||
QTPLUGIN.imageformats = - | ||
} | ||
|
||
HEADERS += | ||
system(which g++-4.9) { | ||
message("Compiling with Homebrew-built GCC 4.9 instead of Apple-built Clang.") | ||
QMAKE_PLATFORM = macx-g++ | ||
QMAKE_COMPILER = g++-4.9 | ||
QMAKE_CXX = g++-4.9 | ||
QMAKE_CXXFLAGS += -mmacosx-version-min=$$QMAKE_MACOSX_DEPLOYMENT_TARGET | ||
QMAKE_CXXFLAGS_CXX11 = -std=c++11 | ||
|
||
FORMS += | ||
message("Linking with Apple-built Clang.") | ||
QMAKE_LINK = g++ | ||
QMAKE_LFLAGS += -mmacosx-version-min=$$QMAKE_MACOSX_DEPLOYMENT_TARGET | ||
QMAKE_LFLAGS_CXX11 = -lc++ | ||
} else { | ||
message("Compiling with Apple-built GCC or Clang, depending on your OS version.") | ||
} | ||
} |