Changeset 846 for trunk/demos/spectrum/app/app.pro
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/demos/spectrum/app/app.pro
r769 r846 1 1 include(../spectrum.pri) 2 3 static: error(This application cannot be statically linked to the fftreal library) 2 4 3 5 TEMPLATE = app 4 6 5 7 TARGET = spectrum 6 unix: !macx: !symbian: TARGET = spectrum.bin7 8 8 9 QT += multimedia … … 49 50 50 51 # Provide unique ID for the generated binary, required by Symbian OS 51 TARGET.UID3 = 0xA000E 3FA52 TARGET.UID3 = 0xA000E402 52 53 } 53 54 … … 58 59 # Must explicitly add the .dll suffix to ensure dynamic linkage 59 60 LIBS += -lfftreal.dll 61 QMAKE_LIBDIR += $${fftreal_dir} 60 62 } else { 61 63 macx { … … 64 66 LIBS += -framework fftreal 65 67 } else { 66 # Link to dynamic library which is written to ../bin 67 LIBS += -L../bin 68 LIBS += -L..$${spectrum_build_dir} 68 69 LIBS += -lfftreal 69 70 } … … 86 87 !contains(DEFINES, DISABLE_FFT) { 87 88 # Include FFTReal DLL in the SIS file 88 fftreal.sources = $${EPOCROOT}epoc32/release/$(PLATFORM)/$(TARGET)/fftreal.dll89 fftreal.sources = ../fftreal.dll 89 90 fftreal.path = !:/sys/bin 90 91 DEPLOYMENT += fftreal 91 92 } 92 93 } else { 94 DESTDIR = ..$${spectrum_build_dir} 93 95 macx { 94 # Specify directory in which to create spectrum.app bundle95 DESTDIR = ..96 97 96 !contains(DEFINES, DISABLE_FFT) { 98 97 # Relocate fftreal.framework into spectrum.app bundle … … 110 109 } 111 110 } 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 124 114 } 125 115 }
Note:
See TracChangeset
for help on using the changeset viewer.