summaryrefslogtreecommitdiffstats
path: root/mkspecs/qws/macx-nacl-g++/qmake.conf
blob: 7293a1acfdeb70c87ff822e49d38451d83d4d6fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
# qmake configuration for building with nacl-g++
#

include(../../common/linux.conf)
include(../../common/qws.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)

QT                      = core gui

QMAKE_CC                = nacl-gcc
QMAKE_CXX               = nacl-g++
QMAKE_LINK              = nacl-g++
QMAKE_LINK_SHLIB        = nacl-g++
QMAKE_AR                = nacl-ar q
QMAKE_OBJCOPY           = nacl-objcopy
QMAKE_STRIP             = nacl-strip

# work around linker crash when using PIC
QMAKE_CFLAGS_STATIC_LIB	-= -fPIC
QMAKE_CFLAGS_SHLIB	-= -fPIC
QMAKE_CXXFLAGS_STATIC_LIB -= -fPIC
QMAKE_CXXFLAGS_SHLIB	-= -fPIC

#QMAKE_CFLAGS		+= -pipe -DXP_UNIX -DNACL_STANDALONE=1
QMAKE_LIBS_DYNLOAD    -= -ldl

load(qt_config)