diff options
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.pro')
-rw-r--r-- | rbutil/rbutilqt/rbutilqt.pro | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.pro b/rbutil/rbutilqt/rbutilqt.pro index 56be36d9fc..ca7214989c 100644 --- a/rbutil/rbutilqt/rbutilqt.pro +++ b/rbutil/rbutilqt/rbutilqt.pro | |||
@@ -64,30 +64,35 @@ mac { | |||
64 | !static:unix:!mac { | 64 | !static:unix:!mac { |
65 | LIBSPEEX = $$system(pkg-config --silence-errors --libs speex speexdsp) | 65 | LIBSPEEX = $$system(pkg-config --silence-errors --libs speex speexdsp) |
66 | } | 66 | } |
67 | # The external Makefiles use ar to create libs. To allow cross-compiling pass | ||
68 | # the ar that matches the current gcc. Since qmake doesn't provide a variable | ||
69 | # holding the correct ar without any additions we need to figure it ourselves | ||
70 | # here. This assumes that QMAKE_CC will always be "gcc", maybe with a postfix. | ||
71 | MYAR = $$replace(QMAKE_CC,gcc.*,ar) | ||
67 | 72 | ||
68 | rbspeex.commands = @$(MAKE) \ | 73 | rbspeex.commands = @$(MAKE) \ |
69 | TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/tools/rbspeex \ | 74 | TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/tools/rbspeex \ |
70 | librbspeex$$RBLIBPOSTFIX \ | 75 | librbspeex$$RBLIBPOSTFIX \ |
71 | CC=\"$$QMAKE_CC\" \ | 76 | SYS_SPEEX=\"$$LIBSPEEX\" \ |
72 | SYS_SPEEX=\"$$LIBSPEEX\" | 77 | CC=\"$$QMAKE_CC\" AR=\"$$MYAR\" |
73 | libucl.commands = @$(MAKE) \ | 78 | libucl.commands = @$(MAKE) \ |
74 | TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/tools/ucl/src \ | 79 | TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/tools/ucl/src \ |
75 | libucl$$RBLIBPOSTFIX \ | 80 | libucl$$RBLIBPOSTFIX \ |
76 | CC=\"$$QMAKE_CC\" | 81 | CC=\"$$QMAKE_CC\" AR=\"$$MYAR\" |
77 | libmkamsboot.commands = @$(MAKE) \ | 82 | libmkamsboot.commands = @$(MAKE) \ |
78 | TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/rbutil/mkamsboot \ | 83 | TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/rbutil/mkamsboot \ |
79 | APPVERSION=\"rbutil\" \ | 84 | APPVERSION=\"rbutil\" \ |
80 | libmkamsboot$$RBLIBPOSTFIX \ | 85 | libmkamsboot$$RBLIBPOSTFIX \ |
81 | CC=\"$$QMAKE_CC\" | 86 | CC=\"$$QMAKE_CC\" AR=\"$$MYAR\" |
82 | libmktccboot.commands = @$(MAKE) \ | 87 | libmktccboot.commands = @$(MAKE) \ |
83 | TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/rbutil/mktccboot \ | 88 | TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/rbutil/mktccboot \ |
84 | libmktccboot$$RBLIBPOSTFIX \ | 89 | libmktccboot$$RBLIBPOSTFIX \ |
85 | CC=\"$$QMAKE_CC\" | 90 | CC=\"$$QMAKE_CC\" AR=\"$$MYAR\" |
86 | libmkmpioboot.commands = @$(MAKE) \ | 91 | libmkmpioboot.commands = @$(MAKE) \ |
87 | TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/rbutil/mkmpioboot \ | 92 | TARGET_DIR=$$MYBUILDDIR -C $$RBBASE_DIR/rbutil/mkmpioboot \ |
88 | APPVERSION=\"rbutil\" \ | 93 | APPVERSION=\"rbutil\" \ |
89 | libmkmpioboot$$RBLIBPOSTFIX \ | 94 | libmkmpioboot$$RBLIBPOSTFIX \ |
90 | CC=\"$$QMAKE_CC\" | 95 | CC=\"$$QMAKE_CC\" AR=\"$$MYAR\" |
91 | QMAKE_EXTRA_TARGETS += rbspeex libucl libmkamsboot libmktccboot libmkmpioboot | 96 | QMAKE_EXTRA_TARGETS += rbspeex libucl libmkamsboot libmktccboot libmkmpioboot |
92 | PRE_TARGETDEPS += rbspeex libucl libmkamsboot libmktccboot libmkmpioboot | 97 | PRE_TARGETDEPS += rbspeex libucl libmkamsboot libmktccboot libmkmpioboot |
93 | 98 | ||
@@ -111,7 +116,7 @@ INCLUDEPATH += $$RBBASE_DIR/rbutil/ipodpatcher $$RBBASE_DIR/rbutil/sansapatcher | |||
111 | 116 | ||
112 | DEPENDPATH = $$INCLUDEPATH | 117 | DEPENDPATH = $$INCLUDEPATH |
113 | 118 | ||
114 | LIBS += -L$$OUT_PWD -L$$MYBUILDDIR -lrbspeex -lmkamsboot -lmktccboot -lmkmpioboot -lucl | 119 | LIBS += -L$$OUT_PWD -L$$MYBUILDDIR -lrbspeex -lmkamsboot -lmktccboot -lmkmpioboot -lucl -lz |
115 | 120 | ||
116 | # Add a (possibly found) libspeex now, don't do this before -lrbspeex! | 121 | # Add a (possibly found) libspeex now, don't do this before -lrbspeex! |
117 | !static:!isEmpty(LIBSPEEX) { | 122 | !static:!isEmpty(LIBSPEEX) { |
@@ -152,10 +157,6 @@ unix:!static:libusb1:!macx { | |||
152 | DEFINES += LIBUSB1 | 157 | DEFINES += LIBUSB1 |
153 | LIBS += -lusb-1.0 | 158 | LIBS += -lusb-1.0 |
154 | } | 159 | } |
155 | unix { | ||
156 | # explicitly link zlib, we do need it. Don't rely on implicit linking via Qt. | ||
157 | LIBS += -lz | ||
158 | } | ||
159 | 160 | ||
160 | unix:!macx:static { | 161 | unix:!macx:static { |
161 | # force statically linking of libusb. Libraries that are appended | 162 | # force statically linking of libusb. Libraries that are appended |
@@ -177,7 +178,7 @@ macx:intel { | |||
177 | } | 178 | } |
178 | macx { | 179 | macx { |
179 | CONFIG += x86 | 180 | CONFIG += x86 |
180 | LIBS += -L/usr/local/lib -lz \ | 181 | LIBS += -L/usr/local/lib \ |
181 | -framework IOKit -framework CoreFoundation -framework Carbon \ | 182 | -framework IOKit -framework CoreFoundation -framework Carbon \ |
182 | -framework SystemConfiguration -framework CoreServices | 183 | -framework SystemConfiguration -framework CoreServices |
183 | INCLUDEPATH += /usr/local/include | 184 | INCLUDEPATH += /usr/local/include |