Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/demos/spectrum/app/app.pro

    r769 r846  
    11include(../spectrum.pri)
     2
     3static: error(This application cannot be statically linked to the fftreal library)
    24
    35TEMPLATE = app
    46
    57TARGET = spectrum
    6 unix: !macx: !symbian: TARGET = spectrum.bin
    78
    89QT       += multimedia
     
    4950
    5051    # Provide unique ID for the generated binary, required by Symbian OS
    51     TARGET.UID3 = 0xA000E3FA
     52    TARGET.UID3 = 0xA000E402
    5253}
    5354
     
    5859        # Must explicitly add the .dll suffix to ensure dynamic linkage
    5960        LIBS += -lfftreal.dll
     61        QMAKE_LIBDIR += $${fftreal_dir}
    6062    } else {
    6163        macx {
     
    6466            LIBS += -framework fftreal
    6567        } else {
    66             # Link to dynamic library which is written to ../bin
    67             LIBS += -L../bin
     68            LIBS += -L..$${spectrum_build_dir}
    6869            LIBS += -lfftreal
    6970        }
     
    8687    !contains(DEFINES, DISABLE_FFT) {
    8788        # Include FFTReal DLL in the SIS file
    88         fftreal.sources = $${EPOCROOT}epoc32/release/$(PLATFORM)/$(TARGET)/fftreal.dll
     89        fftreal.sources = ../fftreal.dll
    8990        fftreal.path = !:/sys/bin
    9091        DEPLOYMENT += fftreal
    9192    }
    9293} else {
     94        DESTDIR = ..$${spectrum_build_dir}
    9395    macx {
    94         # Specify directory in which to create spectrum.app bundle
    95         DESTDIR = ..
    96 
    9796        !contains(DEFINES, DISABLE_FFT) {
    9897            # Relocate fftreal.framework into spectrum.app bundle
     
    110109        }
    111110    } else {
    112         # Specify directory in which to create spectrum application
    113         DESTDIR = ../bin
    114 
    115         unix: !symbian {
    116             # On unices other than Mac OSX, we copy a shell script into the bin directory.
    117             # This script takes care of correctly setting the LD_LIBRARY_PATH so that
    118             # the dynamic library can be located.
    119             copy_launch_script.target = copy_launch_script
    120             copy_launch_script.commands = \
    121                 install -m 0555 $$QT_SOURCE_TREE/demos/spectrum/app/spectrum.sh ../bin/spectrum
    122             QMAKE_EXTRA_TARGETS += copy_launch_script
    123             POST_TARGETDEPS += copy_launch_script
     111        linux-g++*: {
     112            # Provide relative path from application to fftreal library
     113            QMAKE_LFLAGS += -Wl,--rpath=\\\$\$ORIGIN
    124114        }
    125115    }
Note: See TracChangeset for help on using the changeset viewer.