-rw-r--r-- | include.pro | 772 |
1 files changed, 3 insertions, 769 deletions
diff --git a/include.pro b/include.pro index a7f4439..f32786a 100644 --- a/include.pro +++ b/include.pro | |||
@@ -1,902 +1,136 @@ | |||
1 | include( | 1 | include( $(OPIEDIR)/gen.pro ) |
2 | |||
3 | |||
4 | |||
5 | |||
6 | |||
7 | |||
8 | |||
9 | |||
10 | |||
11 | |||
12 | |||
13 | |||
14 | |||
15 | |||
16 | |||
17 | |||
18 | |||
19 | |||
20 | |||
21 | |||
22 | |||
23 | |||
24 | |||
25 | |||
26 | |||
27 | |||
28 | |||
29 | |||
30 | |||
31 | |||
32 | |||
33 | |||
34 | |||
35 | |||
36 | |||
37 | |||
38 | |||
39 | |||
40 | |||
41 | |||
42 | |||
43 | |||
44 | |||
45 | |||
46 | |||
47 | |||
48 | |||
49 | |||
50 | |||
51 | |||
52 | |||
53 | |||
54 | |||
55 | |||
56 | |||
57 | |||
58 | |||
59 | |||
60 | |||
61 | |||
62 | |||
63 | |||
64 | |||
65 | |||
66 | |||
67 | |||
68 | |||
69 | |||
70 | |||
71 | |||
72 | |||
73 | |||
74 | |||
75 | |||
76 | |||
77 | |||
78 | |||
79 | |||
80 | |||
81 | |||
82 | |||
83 | |||
84 | |||
85 | |||
86 | |||
87 | |||
88 | |||
89 | |||
90 | |||
91 | |||
92 | |||
93 | |||
94 | |||
95 | |||
96 | |||
97 | |||
98 | |||
99 | |||
100 | |||
101 | |||
102 | |||
103 | |||
104 | |||
105 | |||
106 | |||
107 | |||
108 | |||
109 | |||
110 | |||
111 | |||
112 | |||
113 | |||
114 | |||
115 | |||
116 | |||
117 | |||
118 | |||
119 | |||
120 | |||
121 | |||
122 | |||
123 | |||
124 | |||
125 | |||
126 | |||
127 | |||
128 | |||
129 | |||
130 | |||
131 | |||
132 | |||
133 | |||
134 | |||
135 | |||
136 | |||
137 | |||
138 | |||
139 | |||
140 | |||
141 | |||
142 | |||
143 | |||
144 | |||
145 | |||
146 | |||
147 | |||
148 | |||
149 | |||
150 | |||
151 | |||
152 | |||
153 | |||
154 | |||
155 | |||
156 | |||
157 | |||
158 | |||
159 | |||
160 | |||
161 | |||
162 | |||
163 | |||
164 | |||
165 | |||
166 | |||
167 | |||
168 | |||
169 | |||
170 | |||
171 | |||
172 | |||
173 | |||
174 | |||
175 | |||
176 | |||
177 | |||
178 | |||
179 | |||
180 | |||
181 | |||
182 | |||
183 | |||
184 | |||
185 | |||
186 | |||
187 | |||
188 | |||
189 | |||
190 | |||
191 | |||
192 | |||
193 | |||
194 | |||
195 | |||
196 | |||
197 | |||
198 | |||
199 | |||
200 | |||
201 | |||
202 | |||
203 | |||
204 | |||
205 | |||
206 | |||
207 | |||
208 | |||
209 | |||
210 | |||
211 | |||
212 | |||
213 | |||
214 | |||
215 | |||
216 | |||
217 | |||
218 | |||
219 | |||
220 | |||
221 | |||
222 | |||
223 | |||
224 | |||
225 | |||
226 | |||
227 | |||
228 | |||
229 | |||
230 | |||
231 | |||
232 | |||
233 | |||
234 | |||
235 | |||
236 | |||
237 | |||
238 | |||
239 | |||
240 | |||
241 | |||
242 | |||
243 | |||
244 | |||
245 | |||
246 | |||
247 | |||
248 | |||
249 | |||
250 | |||
251 | |||
252 | |||
253 | |||
254 | |||
255 | |||
256 | |||
257 | |||
258 | |||
259 | |||
260 | |||
261 | |||
262 | |||
263 | |||
264 | |||
265 | |||
266 | |||
267 | |||
268 | |||
269 | |||
270 | |||
271 | |||
272 | |||
273 | |||
274 | |||
275 | |||
276 | |||
277 | |||
278 | |||
279 | |||
280 | |||
281 | |||
282 | |||
283 | |||
284 | |||
285 | |||
286 | |||
287 | |||
288 | |||
289 | |||
290 | |||
291 | |||
292 | |||
293 | |||
294 | |||
295 | |||
296 | |||
297 | |||
298 | |||
299 | |||
300 | |||
301 | |||
302 | |||
303 | |||
304 | |||
305 | |||
306 | |||
307 | |||
308 | |||
309 | |||
310 | |||
311 | |||
312 | |||
313 | |||
314 | |||
315 | |||
316 | |||
317 | |||
318 | |||
319 | |||
320 | |||
321 | |||
322 | |||
323 | |||
324 | |||
325 | |||
326 | |||
327 | |||
328 | |||
329 | |||
330 | |||
331 | |||
332 | |||
333 | |||
334 | |||
335 | |||
336 | |||
337 | |||
338 | |||
339 | |||
340 | |||
341 | |||
342 | |||
343 | |||
344 | |||
345 | |||
346 | |||
347 | |||
348 | |||
349 | |||
350 | |||
351 | |||
352 | |||
353 | |||
354 | |||
355 | |||
356 | |||
357 | |||
358 | |||
359 | |||
360 | |||
361 | |||
362 | |||
363 | |||
364 | |||
365 | |||
366 | |||
367 | |||
368 | |||
369 | |||
370 | |||
371 | |||
372 | |||
373 | |||
374 | |||
375 | |||
376 | |||
377 | |||
378 | |||
379 | |||
380 | |||
381 | |||
382 | |||
383 | |||
384 | $(OPIEDIR)/gen.pro ) | ||
385 | 2 | ||
386 | # base opie install path | 3 | # base opie install path |
387 | # prefix = /opt/QtPalmtop ??? Why here (eilers) ??? | 4 | # prefix = /opt/QtPalmtop ??? Why here (eilers) ??? |
388 | prefix = $(OPIEDIR) | 5 | prefix = $(OPIEDIR) |
389 | 6 | ||
390 | contains( CONFIG, quick-app-lib ) { | 7 | contains( CONFIG, quick-app-lib ) { |
391 | TEMPLATE = lib | 8 | TEMPLATE = lib |
392 | CONFIG += plugin # "plugin" will be removed automatically later if not MacOSX ! (eilers) | 9 | CONFIG += plugin # "plugin" will be removed automatically later if not MacOSX ! (eilers) |
393 | DESTDIR = $(OPIEDIR)/plugins/application | 10 | DESTDIR = $(OPIEDIR)/plugins/application |
394 | DEFINES += OPIE_APP_INTERFACE | 11 | DEFINES += OPIE_APP_INTERFACE |
395 | DEFINES += QUICKAPP_NAME="\"$${TARGET}\"" | 12 | DEFINES += QUICKAPP_NAME="\"$${TARGET}\"" |
396 | 13 | ||
397 | !contains( TARGET, launcher ) { | 14 | !contains( TARGET, launcher ) { |
398 | message( Linking $$TARGET to quicklauncher ) | 15 | message( Linking $$TARGET to quicklauncher ) |
399 | system( rm -f $$(OPIEDIR)/bin/$$TARGET ) | 16 | system( rm -f $$(OPIEDIR)/bin/$$TARGET ) |
400 | system( ln -sf $$QUICKLAUNCH_PATH $$(OPIEDIR)/bin/$$TARGET ) | 17 | system( ln -sf $$QUICKLAUNCH_PATH $$(OPIEDIR)/bin/$$TARGET ) |
401 | } | 18 | } |
402 | } | 19 | } |
403 | 20 | ||
404 | contains( CONFIG, quick-app-bin ) { | 21 | contains ( CONFIG, quick-app-bin ) { |
405 | TEMPLATE = app | 22 | TEMPLATE = app |
406 | DESTDIR = $(OPIEDIR)/bin | 23 | DESTDIR = $(OPIEDIR)/bin |
407 | DEFINES -= OPIE_APP_INTERFACE | 24 | DEFINES -= OPIE_APP_INTERFACE |
408 | DEFINES += QUICKAPP_NAME="\"$${TARGET}\"" | 25 | DEFINES += QUICKAPP_NAME="\"$${TARGET}\"" |
409 | message( Touching plugins/application/lib$${TARGET}.so.0 ) | 26 | message( Touching plugins/application/lib$${TARGET}.so.0 ) |
410 | system( touch $$(OPIEDIR)/plugins/application/lib$${TARGET}.so.0 ) | 27 | system( touch $$(OPIEDIR)/plugins/application/lib$${TARGET}.so.0 ) |
411 | } | 28 | } |
412 | 29 | ||
413 | 30 | ||
414 | contains( TEMPLATE, lib ) { | 31 | contains( TEMPLATE, lib ) { |
415 | target.path = $$prefix/lib | 32 | target.path = $$prefix/lib |
416 | } | 33 | } |
417 | !contains( TEMPLATE, lib ) { | 34 | !contains( TEMPLATE, lib ) { |
418 | target.path = $$prefix/bin | 35 | target.path = $$prefix/bin |
419 | } | 36 | } |
420 | INSTALLS += target | 37 | INSTALLS += target |
421 | 38 | ||
422 | # ipkg control files | 39 | # ipkg control files |
423 | control.path = /CONTROL | 40 | control.path = /CONTROL |
424 | control.files = control postinst prerm postrm preinst conffiles | 41 | control.files = control postinst prerm postrm preinst conffiles |
425 | INSTALLS += control | 42 | INSTALLS += control |
426 | 43 | ||
427 | # images, default is $$prefix/pics/$$TARGET | 44 | # images, default is $$prefix/pics/$$TARGET |
428 | pics.path = $$prefix/pics/$$TARGET | 45 | pics.path = $$prefix/pics/$$TARGET |
429 | pics.files = pics/* | 46 | pics.files = pics/* |
430 | INSTALLS += pics | 47 | INSTALLS += pics |
431 | 48 | ||
432 | # sounds, default path is $$prefix/sounds/$$TARGET | 49 | # sounds, default path is $$prefix/sounds/$$TARGET |
433 | sounds.path = $$prefix/sounds/$$TARGET | 50 | sounds.path = $$prefix/sounds/$$TARGET |
434 | sounds.files = sounds/* | 51 | sounds.files = sounds/* |
435 | INSTALLS += sounds | 52 | INSTALLS += sounds |
436 | 53 | ||
437 | # init scripts, default path is /etc/init.d | 54 | # init scripts, default path is /etc/init.d |
438 | init.path = /etc/init.d | 55 | init.path = /etc/init.d |
439 | init.files = init.d/* | 56 | init.files = init.d/* |
440 | INSTALLS += init | 57 | INSTALLS += init |
441 | 58 | ||
442 | # data, default path is /usr/share/$$TARGET | 59 | # data, default path is /usr/share/$$TARGET |
443 | data.path = /usr/share/$$TARGET | 60 | data.path = /usr/share/$$TARGET |
444 | data.files = share/* | 61 | data.files = share/* |
445 | INSTALLS += data | 62 | INSTALLS += data |
446 | 63 | ||
447 | etc.path = $$prefix/etc/ | 64 | etc.path = $$prefix/etc/ |
448 | etc.files = etc/* | 65 | etc.files = etc/* |
449 | INSTALLS += etc | 66 | INSTALLS += etc |
450 | 67 | ||
451 | apps.path = $$prefix/apps/ | 68 | apps.path = $$prefix/apps/ |
452 | apps.files = apps/* | 69 | apps.files = apps/* |
453 | INSTALLS += apps | 70 | INSTALLS += apps |
454 | 71 | ||
455 | # sounds, default path is $$prefix/sounds/$$TARGET | 72 | # sounds, default path is $$prefix/sounds/$$TARGET |
456 | sounds.path = $$prefix/sounds/$$TARGET | 73 | sounds.path = $$prefix/sounds/$$TARGET |
457 | sounds.files = sounds/* | 74 | sounds.files = sounds/* |
458 | INSTALLS += sounds | 75 | INSTALLS += sounds |
459 | 76 | ||
460 | # anything in nonstandard paths | 77 | # anything in nonstandard paths |
461 | root.path = / | 78 | root.path = / |
462 | root.files = root/* | 79 | root.files = root/* |
463 | INSTALLS += root | 80 | INSTALLS += root |
464 | 81 | ||
465 | # new targets | 82 | # new targets |
466 | opie-lupdate.target = opie-lupdate | 83 | opie-lupdate.target = opie-lupdate |
467 | opie-lupdate.commands = opie-lupdate $(PRO) | 84 | opie-lupdate.commands = opie-lupdate $(PRO) |
468 | 85 | ||
469 | opie-lrelease.target = opie-lrelease | 86 | opie-lrelease.target = opie-lrelease |
470 | opie-lrelease.commands = opie-lrelease $(PRO) | 87 | opie-lrelease.commands = opie-lrelease $(PRO) |
471 | 88 | ||
472 | lupdate.target = lupdate | 89 | lupdate.target = lupdate |
473 | lupdate.commands = lupdate -noobsolete $(PRO) | 90 | lupdate.commands = lupdate -noobsolete $(PRO) |
474 | 91 | ||
475 | lrelease.target = lrelease | 92 | lrelease.target = lrelease |
476 | lrelease.commands = lrelease $(PRO) | 93 | lrelease.commands = lrelease $(PRO) |
477 | 94 | ||
478 | # new message target to get all strings from the apps with and without tr | 95 | # new message target to get all strings from the apps with and without tr |
479 | messages.target = messages | 96 | messages.target = messages |
480 | messages.commands = xgettext -C -n -ktr -kQT_TRANSLATE_NOOP $$HEADERS $$SOURCES -o '$(OPIEDIR)/messages-$(QMAKE_TARGET)-tr.po' && xgettext -C -n -a $$HEADERS $$SOURCES -o '$(OPIEDIR)/messages-$(QMAKE_TARGET)-allstrings.po' | 97 | messages.commands = xgettext -C -n -ktr -kQT_TRANSLATE_NOOP $$HEADERS $$SOURCES -o '$(OPIEDIR)/messages-$(QMAKE_TARGET)-tr.po' && xgettext -C -n -a $$HEADERS $$SOURCES -o '$(OPIEDIR)/messages-$(QMAKE_TARGET)-allstrings.po' |
481 | 98 | ||
482 | ipk.target = ipk | 99 | ipk.target = ipk |
483 | ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; ) | 100 | ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; ) |
484 | 101 | ||
485 | QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk opie-lupdate opie-lrelease messages | 102 | QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk opie-lupdate opie-lrelease messages |
486 | 103 | ||
487 | CONFTEST = $$system( echo $CONFIG_TARGET_MACOSX ) | 104 | CONFTEST = $$system( echo $CONFIG_TARGET_MACOSX ) |
488 | contains( CONFTEST, y ){ | 105 | contains( CONFTEST, y ){ |
489 | QMAKE_LFLAGS += -Wl | 106 | QMAKE_LFLAGS += -Wl |
490 | LIBS -= -ldl | 107 | LIBS -= -ldl |
491 | LIBS -= -lcrypt | 108 | LIBS -= -lcrypt |
492 | LIBS -= -lm | 109 | LIBS -= -lm |
493 | 110 | ||
494 | # Manual including indirect referenced libraries which are not loaded | 111 | # Manual including indirect referenced libraries which are not loaded |
495 | # by the mac-linker automatically | 112 | # by the mac-linker automatically |
496 | # IF YOU COMPILE FOR THE FIRST TIME, COMMENT OUT ONE OF THE FOLLOWING | 113 | # IF YOU COMPILE FOR THE FIRST TIME, COMMENT OUT ONE OF THE FOLLOWING |
497 | # (regarding whether you activate SQL) and the last one (-lopiecore2) | 114 | # (regarding whether you activate SQL) and the last one (-lopiecore2) |
498 | CONFTEST = $$system( echo $CONFIG_SQL_PIM_BACKEND ) | 115 | CONFTEST = $$system( echo $CONFIG_SQL_PIM_BACKEND ) |
499 | contains( CONFTEST, y ){ | 116 | contains( CONFTEST, y ){ |
500 | LIBS += -lopiedb2 -lqpe | 117 | LIBS += -lopiedb2 -lqpe |
501 | } else { | 118 | } else { |
502 | LIBS += -lqpe | 119 | LIBS += -lqpe |
503 | } | 120 | } |
504 | LIBS += -lopiecore2 | 121 | LIBS += -lopiecore2 |
505 | } | 122 | } |
506 | else { | 123 | else { |
507 | 124 | ||
508 | QMAKE_LFLAGS += -Wl,-rpath-link,$$prefix/lib | 125 | QMAKE_LFLAGS += -Wl,-rpath-link,$$prefix/lib |
509 | # I am not sure whether it is a good idea to change the way plugins is build | 126 | # I am not sure whether it is a good idea to change the way plugins is build |
510 | # on linux. Therefore I remove the "plugin" term, which is needed by MacOS-X | 127 | # on linux. Therefore I remove the "plugin" term, which is needed by MacOS-X |
511 | CONFIG -= plugin | 128 | CONFIG -= plugin |
512 | } | 129 | } |
513 | LIBS += -L$(OPIEDIR)/lib | 130 | LIBS += -L$(OPIEDIR)/lib |
514 | 131 | ||
515 | MOC_DIR=.moc/$(PLATFORM) | 132 | MOC_DIR=.moc/$(PLATFORM) |
516 | OBJECTS_DIR=.obj/$(PLATFORM) | 133 | OBJECTS_DIR=.obj/$(PLATFORM) |
517 | 134 | ||
518 | #was here now at thetop | 135 | #was here now at thetop |
519 | #include( | 136 | #include( $(OPIEDIR)/gen.pro ) |
520 | |||
521 | |||
522 | |||
523 | |||
524 | |||
525 | |||
526 | |||
527 | |||
528 | |||
529 | |||
530 | |||
531 | |||
532 | |||
533 | |||
534 | |||
535 | |||
536 | |||
537 | |||
538 | |||
539 | |||
540 | |||
541 | |||
542 | |||
543 | |||
544 | |||
545 | |||
546 | |||
547 | |||
548 | |||
549 | |||
550 | |||
551 | |||
552 | |||
553 | |||
554 | |||
555 | |||
556 | |||
557 | |||
558 | |||
559 | |||
560 | |||
561 | |||
562 | |||
563 | |||
564 | |||
565 | |||
566 | |||
567 | |||
568 | |||
569 | |||
570 | |||
571 | |||
572 | |||
573 | |||
574 | |||
575 | |||
576 | |||
577 | |||
578 | |||
579 | |||
580 | |||
581 | |||
582 | |||
583 | |||
584 | |||
585 | |||
586 | |||
587 | |||
588 | |||
589 | |||
590 | |||
591 | |||
592 | |||
593 | |||
594 | |||
595 | |||
596 | |||
597 | |||
598 | |||
599 | |||
600 | |||
601 | |||
602 | |||
603 | |||
604 | |||
605 | |||
606 | |||
607 | |||
608 | |||
609 | |||
610 | |||
611 | |||
612 | |||
613 | |||
614 | |||
615 | |||
616 | |||
617 | |||
618 | |||
619 | |||
620 | |||
621 | |||
622 | |||
623 | |||
624 | |||
625 | |||
626 | |||
627 | |||
628 | |||
629 | |||
630 | |||
631 | |||
632 | |||
633 | |||
634 | |||
635 | |||
636 | |||
637 | |||
638 | |||
639 | |||
640 | |||
641 | |||
642 | |||
643 | |||
644 | |||
645 | |||
646 | |||
647 | |||
648 | |||
649 | |||
650 | |||
651 | |||
652 | |||
653 | |||
654 | |||
655 | |||
656 | |||
657 | |||
658 | |||
659 | |||
660 | |||
661 | |||
662 | |||
663 | |||
664 | |||
665 | |||
666 | |||
667 | |||
668 | |||
669 | |||
670 | |||
671 | |||
672 | |||
673 | |||
674 | |||
675 | |||
676 | |||
677 | |||
678 | |||
679 | |||
680 | |||
681 | |||
682 | |||
683 | |||
684 | |||
685 | |||
686 | |||
687 | |||
688 | |||
689 | |||
690 | |||
691 | |||
692 | |||
693 | |||
694 | |||
695 | |||
696 | |||
697 | |||
698 | |||
699 | |||
700 | |||
701 | |||
702 | |||
703 | |||
704 | |||
705 | |||
706 | |||
707 | |||
708 | |||
709 | |||
710 | |||
711 | |||
712 | |||
713 | |||
714 | |||
715 | |||
716 | |||
717 | |||
718 | |||
719 | |||
720 | |||
721 | |||
722 | |||
723 | |||
724 | |||
725 | |||
726 | |||
727 | |||
728 | |||
729 | |||
730 | |||
731 | |||
732 | |||
733 | |||
734 | |||
735 | |||
736 | |||
737 | |||
738 | |||
739 | |||
740 | |||
741 | |||
742 | |||
743 | |||
744 | |||
745 | |||
746 | |||
747 | |||
748 | |||
749 | |||
750 | |||
751 | |||
752 | |||
753 | |||
754 | |||
755 | |||
756 | |||
757 | |||
758 | |||
759 | |||
760 | |||
761 | |||
762 | |||
763 | |||
764 | |||
765 | |||
766 | |||
767 | |||
768 | |||
769 | |||
770 | |||
771 | |||
772 | |||
773 | |||
774 | |||
775 | |||
776 | |||
777 | |||
778 | |||
779 | |||
780 | |||
781 | |||
782 | |||
783 | |||
784 | |||
785 | |||
786 | |||
787 | |||
788 | |||
789 | |||
790 | |||
791 | |||
792 | |||
793 | |||
794 | |||
795 | |||
796 | |||
797 | |||
798 | |||
799 | |||
800 | |||
801 | |||
802 | |||
803 | |||
804 | |||
805 | |||
806 | |||
807 | |||
808 | |||
809 | |||
810 | |||
811 | |||
812 | |||
813 | |||
814 | |||
815 | |||
816 | |||
817 | |||
818 | |||
819 | |||
820 | |||
821 | |||
822 | |||
823 | |||
824 | |||
825 | |||
826 | |||
827 | |||
828 | |||
829 | |||
830 | |||
831 | |||
832 | |||
833 | |||
834 | |||
835 | |||
836 | |||
837 | |||
838 | |||
839 | |||
840 | |||
841 | |||
842 | |||
843 | |||
844 | |||
845 | |||
846 | |||
847 | |||
848 | |||
849 | |||
850 | |||
851 | |||
852 | |||
853 | |||
854 | |||
855 | |||
856 | |||
857 | |||
858 | |||
859 | |||
860 | |||
861 | |||
862 | |||
863 | |||
864 | |||
865 | |||
866 | |||
867 | |||
868 | |||
869 | |||
870 | |||
871 | |||
872 | |||
873 | |||
874 | |||
875 | |||
876 | |||
877 | |||
878 | |||
879 | |||
880 | |||
881 | |||
882 | |||
883 | |||
884 | |||
885 | |||
886 | |||
887 | |||
888 | |||
889 | |||
890 | |||
891 | |||
892 | |||
893 | |||
894 | |||
895 | |||
896 | |||
897 | |||
898 | |||
899 | |||
900 | |||
901 | |||
902 | $(OPIEDIR)/gen.pro ) | ||