-rw-r--r-- | include.pro | 772 |
1 files changed, 769 insertions, 3 deletions
diff --git a/include.pro b/include.pro index 4815f19..a7f4439 100644 --- a/include.pro +++ b/include.pro | |||
@@ -1,136 +1,902 @@ | |||
1 | include ( $(OPIEDIR)/gen.pro ) | 1 | include( |
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 ) | ||
2 | 385 | ||
3 | # base opie install path | 386 | # base opie install path |
4 | # prefix = /opt/QtPalmtop ??? Why here (eilers) ??? | 387 | # prefix = /opt/QtPalmtop ??? Why here (eilers) ??? |
5 | prefix = $(OPIEDIR) | 388 | prefix = $(OPIEDIR) |
6 | 389 | ||
7 | contains( CONFIG, quick-app-lib ) { | 390 | contains( CONFIG, quick-app-lib ) { |
8 | TEMPLATE = lib | 391 | TEMPLATE = lib |
9 | CONFIG += plugin # "plugin" will be removed automatically later if not MacOSX ! (eilers) | 392 | CONFIG += plugin # "plugin" will be removed automatically later if not MacOSX ! (eilers) |
10 | DESTDIR = $(OPIEDIR)/plugins/application | 393 | DESTDIR = $(OPIEDIR)/plugins/application |
11 | DEFINES += OPIE_APP_INTERFACE | 394 | DEFINES += OPIE_APP_INTERFACE |
12 | DEFINES += QUICKAPP_NAME="\"$${TARGET}\"" | 395 | DEFINES += QUICKAPP_NAME="\"$${TARGET}\"" |
13 | 396 | ||
14 | !contains( TARGET, launcher ) { | 397 | !contains( TARGET, launcher ) { |
15 | message( Linking $$TARGET to quicklauncher ) | 398 | message( Linking $$TARGET to quicklauncher ) |
16 | system( rm -f $$(OPIEDIR)/bin/$$TARGET ) | 399 | system( rm -f $$(OPIEDIR)/bin/$$TARGET ) |
17 | system( ln -sf $$QUICKLAUNCH_PATH $$(OPIEDIR)/bin/$$TARGET ) | 400 | system( ln -sf $$QUICKLAUNCH_PATH $$(OPIEDIR)/bin/$$TARGET ) |
18 | } | 401 | } |
19 | } | 402 | } |
20 | 403 | ||
21 | contains ( CONFIG, quick-app-bin ) { | 404 | contains( CONFIG, quick-app-bin ) { |
22 | TEMPLATE = app | 405 | TEMPLATE = app |
23 | DESTDIR = $(OPIEDIR)/bin | 406 | DESTDIR = $(OPIEDIR)/bin |
24 | DEFINES -= OPIE_APP_INTERFACE | 407 | DEFINES -= OPIE_APP_INTERFACE |
25 | DEFINES += QUICKAPP_NAME="\"$${TARGET}\"" | 408 | DEFINES += QUICKAPP_NAME="\"$${TARGET}\"" |
26 | message( Touching plugins/application/lib$${TARGET}.so.0 ) | 409 | message( Touching plugins/application/lib$${TARGET}.so.0 ) |
27 | system( touch $$(OPIEDIR)/plugins/application/lib$${TARGET}.so.0 ) | 410 | system( touch $$(OPIEDIR)/plugins/application/lib$${TARGET}.so.0 ) |
28 | } | 411 | } |
29 | 412 | ||
30 | 413 | ||
31 | contains( TEMPLATE, lib ) { | 414 | contains( TEMPLATE, lib ) { |
32 | target.path = $$prefix/lib | 415 | target.path = $$prefix/lib |
33 | } | 416 | } |
34 | !contains( TEMPLATE, lib ) { | 417 | !contains( TEMPLATE, lib ) { |
35 | target.path = $$prefix/bin | 418 | target.path = $$prefix/bin |
36 | } | 419 | } |
37 | INSTALLS += target | 420 | INSTALLS += target |
38 | 421 | ||
39 | # ipkg control files | 422 | # ipkg control files |
40 | control.path = /CONTROL | 423 | control.path = /CONTROL |
41 | control.files = control postinst prerm postrm preinst conffiles | 424 | control.files = control postinst prerm postrm preinst conffiles |
42 | INSTALLS += control | 425 | INSTALLS += control |
43 | 426 | ||
44 | # images, default is $$prefix/pics/$$TARGET | 427 | # images, default is $$prefix/pics/$$TARGET |
45 | pics.path = $$prefix/pics/$$TARGET | 428 | pics.path = $$prefix/pics/$$TARGET |
46 | pics.files = pics/* | 429 | pics.files = pics/* |
47 | INSTALLS += pics | 430 | INSTALLS += pics |
48 | 431 | ||
49 | # sounds, default path is $$prefix/sounds/$$TARGET | 432 | # sounds, default path is $$prefix/sounds/$$TARGET |
50 | sounds.path = $$prefix/sounds/$$TARGET | 433 | sounds.path = $$prefix/sounds/$$TARGET |
51 | sounds.files = sounds/* | 434 | sounds.files = sounds/* |
52 | INSTALLS += sounds | 435 | INSTALLS += sounds |
53 | 436 | ||
54 | # init scripts, default path is /etc/init.d | 437 | # init scripts, default path is /etc/init.d |
55 | init.path = /etc/init.d | 438 | init.path = /etc/init.d |
56 | init.files = init.d/* | 439 | init.files = init.d/* |
57 | INSTALLS += init | 440 | INSTALLS += init |
58 | 441 | ||
59 | # data, default path is /usr/share/$$TARGET | 442 | # data, default path is /usr/share/$$TARGET |
60 | data.path = /usr/share/$$TARGET | 443 | data.path = /usr/share/$$TARGET |
61 | data.files = share/* | 444 | data.files = share/* |
62 | INSTALLS += data | 445 | INSTALLS += data |
63 | 446 | ||
64 | etc.path = $$prefix/etc/ | 447 | etc.path = $$prefix/etc/ |
65 | etc.files = etc/* | 448 | etc.files = etc/* |
66 | INSTALLS += etc | 449 | INSTALLS += etc |
67 | 450 | ||
68 | apps.path = $$prefix/apps/ | 451 | apps.path = $$prefix/apps/ |
69 | apps.files = apps/* | 452 | apps.files = apps/* |
70 | INSTALLS += apps | 453 | INSTALLS += apps |
71 | 454 | ||
72 | # sounds, default path is $$prefix/sounds/$$TARGET | 455 | # sounds, default path is $$prefix/sounds/$$TARGET |
73 | sounds.path = $$prefix/sounds/$$TARGET | 456 | sounds.path = $$prefix/sounds/$$TARGET |
74 | sounds.files = sounds/* | 457 | sounds.files = sounds/* |
75 | INSTALLS += sounds | 458 | INSTALLS += sounds |
76 | 459 | ||
77 | # anything in nonstandard paths | 460 | # anything in nonstandard paths |
78 | root.path = / | 461 | root.path = / |
79 | root.files = root/* | 462 | root.files = root/* |
80 | INSTALLS += root | 463 | INSTALLS += root |
81 | 464 | ||
82 | # new targets | 465 | # new targets |
83 | opie-lupdate.target = opie-lupdate | 466 | opie-lupdate.target = opie-lupdate |
84 | opie-lupdate.commands = opie-lupdate $(PRO) | 467 | opie-lupdate.commands = opie-lupdate $(PRO) |
85 | 468 | ||
86 | opie-lrelease.target = opie-lrelease | 469 | opie-lrelease.target = opie-lrelease |
87 | opie-lrelease.commands = opie-lrelease $(PRO) | 470 | opie-lrelease.commands = opie-lrelease $(PRO) |
88 | 471 | ||
89 | lupdate.target = lupdate | 472 | lupdate.target = lupdate |
90 | lupdate.commands = lupdate -noobsolete $(PRO) | 473 | lupdate.commands = lupdate -noobsolete $(PRO) |
91 | 474 | ||
92 | lrelease.target = lrelease | 475 | lrelease.target = lrelease |
93 | lrelease.commands = lrelease $(PRO) | 476 | lrelease.commands = lrelease $(PRO) |
94 | 477 | ||
95 | # new message target to get all strings from the apps with and without tr | 478 | # new message target to get all strings from the apps with and without tr |
96 | messages.target = messages | 479 | messages.target = messages |
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' | 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' |
98 | 481 | ||
99 | ipk.target = ipk | 482 | ipk.target = ipk |
100 | ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; ) | 483 | ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; ) |
101 | 484 | ||
102 | QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk opie-lupdate opie-lrelease messages | 485 | QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk opie-lupdate opie-lrelease messages |
103 | 486 | ||
104 | CONFTEST = $$system( echo $CONFIG_TARGET_MACOSX ) | 487 | CONFTEST = $$system( echo $CONFIG_TARGET_MACOSX ) |
105 | contains( CONFTEST, y ){ | 488 | contains( CONFTEST, y ){ |
106 | QMAKE_LFLAGS += -Wl | 489 | QMAKE_LFLAGS += -Wl |
107 | LIBS -= -ldl | 490 | LIBS -= -ldl |
108 | LIBS -= -lcrypt | 491 | LIBS -= -lcrypt |
109 | LIBS -= -lm | 492 | LIBS -= -lm |
110 | 493 | ||
111 | # Manual including indirect referenced libraries which are not loaded | 494 | # Manual including indirect referenced libraries which are not loaded |
112 | # by the mac-linker automatically | 495 | # by the mac-linker automatically |
113 | # IF YOU COMPILE FOR THE FIRST TIME, COMMENT OUT ONE OF THE FOLLOWING | 496 | # IF YOU COMPILE FOR THE FIRST TIME, COMMENT OUT ONE OF THE FOLLOWING |
114 | # (regarding whether you activate SQL) and the last one (-lopiecore2) | 497 | # (regarding whether you activate SQL) and the last one (-lopiecore2) |
115 | CONFTEST = $$system( echo $CONFIG_SQL_PIM_BACKEND ) | 498 | CONFTEST = $$system( echo $CONFIG_SQL_PIM_BACKEND ) |
116 | contains( CONFTEST, y ){ | 499 | contains( CONFTEST, y ){ |
117 | LIBS += -lopiedb2 -lqpe | 500 | LIBS += -lopiedb2 -lqpe |
118 | } else { | 501 | } else { |
119 | LIBS += -lqpe | 502 | LIBS += -lqpe |
120 | } | 503 | } |
121 | LIBS += -lopiecore2 | 504 | LIBS += -lopiecore2 |
122 | } | 505 | } |
123 | else { | 506 | else { |
124 | 507 | ||
125 | QMAKE_LFLAGS += -Wl,-rpath-link,$$prefix/lib | 508 | QMAKE_LFLAGS += -Wl,-rpath-link,$$prefix/lib |
126 | # I am not sure whether it is a good idea to change the way plugins is build | 509 | # I am not sure whether it is a good idea to change the way plugins is build |
127 | # on linux. Therefore I remove the "plugin" term, which is needed by MacOS-X | 510 | # on linux. Therefore I remove the "plugin" term, which is needed by MacOS-X |
128 | CONFIG -= plugin | 511 | CONFIG -= plugin |
129 | } | 512 | } |
130 | LIBS += -L$(OPIEDIR)/lib | 513 | LIBS += -L$(OPIEDIR)/lib |
131 | 514 | ||
132 | MOC_DIR=.moc/$(PLATFORM) | 515 | MOC_DIR=.moc/$(PLATFORM) |
133 | OBJECTS_DIR=.obj/$(PLATFORM) | 516 | OBJECTS_DIR=.obj/$(PLATFORM) |
134 | 517 | ||
135 | #was here now at thetop | 518 | #was here now at thetop |
136 | #include ( $(OPIEDIR)/gen.pro ) | 519 | #include( |
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 ) | ||