iossim.pro 1.52 KB
Newer Older
1 2
CONFIG   += console

3 4 5
QT       -= core
QT       -= gui
QT       -= test
Fawzi Mohamed's avatar
Fawzi Mohamed committed
6

7 8 9 10 11 12 13
CONFIG -= app_bundle

include(../../../../qtcreator.pri)

# Prevent from popping up in the dock when launched.
# We embed the Info.plist file, so the application doesn't need to
# be a bundle.
Eike Ziller's avatar
Eike Ziller committed
14
QMAKE_LFLAGS += -sectcreate __TEXT __info_plist \"$$PWD/Info.plist\" \
15 16 17 18 19 20 21 22
  -fobjc-link-runtime

LIBS += \
  -framework Foundation \
  -framework CoreServices \
  -framework ApplicationServices \
  -framework CoreFoundation \
  -F/System/Library/PrivateFrameworks \
23
  -framework IOKit -framework AppKit
24 25 26 27 28 29

iPhoneSimulatorRemoteClientDirectLinking {
  LIBS += \
    -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks \
    -F/Applications/Xcode.app/Contents/OtherFrameworks
  LIBS += \
30 31 32 33
    -framework DTViPhoneSimulatorRemoteClient
  QMAKE_RPATHDIR += /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks \
    /Applications/Xcode.app/Contents/OtherFrameworks \
    /System/Library/PrivateFrameworks
34 35 36 37
}

TEMPLATE = app

38 39
# put into a subdir, so we can deploy a separate qt.conf for it
DESTDIR = $$IDE_LIBEXEC_PATH/ios
40 41 42 43
include(../../../rpath.pri)

OBJECTIVE_SOURCES += \
  main.mm \
44
  nsprintf.mm \
Robert Loehning's avatar
Robert Loehning committed
45
  nsstringexpandpath.mm \
46
  iphonesimulator.mm
47 48 49 50 51 52

HEADERS += \
  iphonesimulator.h \
  nsprintf.h \
  nsstringexpandpath.h \
  version.h \
53 54
  dvtiphonesimulatorremoteclient/dvtiphonesimulatorremoteclient.h \
  coresimulator/coresimulator.h
55

56
DISTFILES = IOSSIM_LICENSE \
57
  Info.plist