Results 1 to 3 of 3

Thread: Assigning bundle resources for Xcode on qmake project files

  1. #1
    Join Date
    Mar 2007
    Posts
    28
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Assigning bundle resources for Xcode on qmake project files

    I want to know if there is a way to assign bundle resources for Xcode by using qmake project files.
    So I don't have to manually add the appropriate resources (mostly .txt, and .mng) inside the Bundle Resources on Xcode.

    What qmake variables should I use ?

    By the way is there any complete documentation of qmake variables besides those given by Trolltech ?
    One example of variables that I don't see in documentation is "ICON" for Mac OS X bundle applications icon.

    Any help would be appreciated.

  2. #2
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Assigning bundle resources for Xcode on qmake project files

    Quote Originally Posted by mnemonic_fx View Post
    I want to know if there is a way to assign bundle resources for Xcode by using qmake project files.
    So I don't have to manually add the appropriate resources (mostly .txt, and .mng) inside the Bundle Resources on Xcode.

    What qmake variables should I use ?

    By the way is there any complete documentation of qmake variables besides those given by Trolltech ?
    One example of variables that I don't see in documentation is "ICON" for Mac OS X bundle applications icon.

    Any help would be appreciated.

    make a projekt *pro file + postprocess ... QMAKE_POST_BUILD / QMAKE_POST_LINK to exec your sh to fill bundle ... to search example have a look on
    http://www.google.com/codesearch && use key
    QMAKE_INFO_PLIST QMAKE_POST_BUILD QMAKE_POST_LINK

    after translate your *pro file to xcode

    http://wiki.qtcentre.org/index.php?t...t4_on_Mac_OS_X

    qmake -spec macx-xcode *name*.pro

    and show the xcode result....

    or use info.plist to load other resource ..
    http://wiki.qtcentre.org/index.php?t...Mac_OSX_Finder

  3. #3
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Assigning bundle resources for Xcode on qmake project files

    INSTALLS is your friend! Here's the Mac section of one of my project files (myapp):

    macx {
    CONFIG += x86 ppc
    QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4
    QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.4u.sdk

    QMAKE_POST_LINK=strip myapp.app/Contents/MacOS/myapp

    # install into app bundle
    data.path = myapp.app/Contents/Resources
    data.files = data/* pics/splash.png mac/application.icns mac/document.icns
    INSTALLS += data

    misc.path = myapp.app/Contents
    misc.files = mac/Info.plist mac/PkgInfo
    INSTALLS += misc

    doc.path = myapp.app/Contents/Resources/en.lproj
    doc.files = docs/book/*.html
    INSTALLS += doc
    }

Similar Threads

  1. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 05:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.