Skip to content

Commit

Permalink
brand new qmake build file and osx static compiled binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Frawley 2nd committed Oct 6, 2014
1 parent 212aee5 commit a2a4c96
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 9 deletions.
Binary file modified ColorPicker/ColorPicker_osx_x64
Binary file not shown.
51 changes: 42 additions & 9 deletions ColorPicker/qt/ColorPicker.pro
@@ -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.")
}
}

0 comments on commit a2a4c96

Please sign in to comment.