Commit a27c79673fba220efbfab49c31624184eaa3eeeb

  • avatar
  • Mark Kromis <greybird @Atomik…eath.local>
  • Tue Sep 22 09:29:38 GMT 2009
QMake tweaks for compile for iPhone

* configure - Modify to use only CoreFoundation
* qmake/generators/mac/pbuilder_pbx.cpp 
  use only CoreFoundation, and skip
  autodetection with section with LS services

* src/corelib/global/qglobal.h include iphone id
* src/corelib/global/qcore_mac_p.h
  Use only CoreFoundation
configure
(1 / 1)
  
43004300 fi
43014301 if [ "$PLATFORM_MAC" = "yes" ]; then
43024302 echo "export MACOSX_DEPLOYMENT_TARGET = 10.4" >> "$mkfile"
4303 echo "CARBON_LFLAGS =-framework ApplicationServices" >>"$mkfile"
4303 echo "CARBON_LFLAGS =-framework CoreFoundation" >>"$mkfile"
43044304 echo "CARBON_CFLAGS =-fconstant-cfstrings" >>"$mkfile"
43054305 EXTRA_LFLAGS="$EXTRA_LFLAGS \$(CARBON_LFLAGS)"
43064306 EXTRA_CFLAGS="$EXTRA_CFLAGS \$(CARBON_CFLAGS)"
qmake/generators/mac/pbuilder_pbx.cpp
(7 / 3)
  
3838** $QT_END_LICENSE$
3939**
4040****************************************************************************/
41
41// platformdefs needed for iphone target inclusions
42#include "qplatformdefs.h"
4243#include "pbuilder_pbx.h"
4344#include "option.h"
4445#include "meta.h"
5454# include <sys/stat.h>
5555#endif
5656#ifdef Q_OS_DARWIN
57#include <ApplicationServices/ApplicationServices.h>
57// Minimize include for iPhone.
58#include <CoreFoundation/CFBundle.h>
5859#include <private/qcore_mac_p.h>
5960#endif
6061
16911691 } else {
16921692 QString version, version_plist = project->first("QMAKE_PBUILDER_VERSION_PLIST");
16931693 if(version_plist.isEmpty()) {
1694#ifdef Q_OS_DARWIN
1694
1695// iPhone does not have LSFindApplicaionForInfo, so use legacy section
1696#if defined(Q_OS_DARWIN) && !defined(Q_OS_IPHONE)
16951697 ret = QLatin1String("34");
16961698 QCFType<CFURLRef> cfurl;
16971699 OSStatus err = LSFindApplicationForInfo(0, CFSTR("com.apple.Xcode"), 0, 0, &cfurl);
src/corelib/global/qglobal.h
(9 / 2)
  
143143/*
144144 The operating system, must be one of: (Q_OS_x)
145145
146 IPHONE - iPhone OS
146147 DARWIN - Darwin OS (synonym for Q_OS_MAC)
147148 SYMBIAN - Symbian
148149 MSDOS - MS-DOS and Windows
175175 BSD4 - Any BSD 4.4 system
176176 UNIX - Any UNIX BSD/SYSV system
177177*/
178
179#if defined(__APPLE__) && (defined(__GNUC__) || defined(__xlC__) || defined(__xlc__))
178#if defined(__IPHONE__)
179# define Q_OS_IPHONE
180# ifdef AUTODETECT_COCOA
181# warning Using Cocoa
182# define QT_MAC_USE_COCOA 1
183# define QT_BUILD_KEY QT_BUILD_KEY_COCOA
184# endif
185#elif defined(__APPLE__) && (defined(__GNUC__) || defined(__xlC__) || defined(__xlc__))
180186# define Q_OS_DARWIN
181187# define Q_OS_BSD4
182188# ifdef __LP64__
src/corelib/kernel/qcore_mac_p.h
(1 / 1)
  
6868# undef qDebug
6969#endif
7070
71#include <ApplicationServices/ApplicationServices.h>
71#include <CoreFoundation/CoreFoundation.h>
7272
7373#undef DEBUG
7474#ifdef OLD_DEBUG

Comments

Add a new comment:

Login or create an account to post a comment

Add your comment