summaryrefslogtreecommitdiff
path: root/include.pro
authormickeyl <mickeyl>2004-12-24 12:58:59 (UTC)
committer mickeyl <mickeyl>2004-12-24 12:58:59 (UTC)
commitdc57cb439c6c9256f76f78a487942a4d1b2a2e27 (patch) (unidiff)
treef2b1dc69283c3de30930a650c87be834e04998c9 /include.pro
parent3236db49b0718764bcfe211442354202725a6ff6 (diff)
downloadopie-dc57cb439c6c9256f76f78a487942a4d1b2a2e27.zip
opie-dc57cb439c6c9256f76f78a487942a4d1b2a2e27.tar.gz
opie-dc57cb439c6c9256f76f78a487942a4d1b2a2e27.tar.bz2
qmake 1.08a has more rigid syntax checking and chokes on our .pro files
Diffstat (limited to 'include.pro') (more/less context) (ignore whitespace changes)
-rw-r--r--include.pro772
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 @@
1include ( $(OPIEDIR)/gen.pro ) 1include(
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) ???
5prefix = $(OPIEDIR) 388prefix = $(OPIEDIR)
6 389
7contains( CONFIG, quick-app-lib ) { 390contains( 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
21contains ( CONFIG, quick-app-bin ) { 404contains( 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
31contains( TEMPLATE, lib ) { 414contains( 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}
37INSTALLS += target 420INSTALLS += target
38 421
39# ipkg control files 422# ipkg control files
40control.path = /CONTROL 423control.path = /CONTROL
41control.files = control postinst prerm postrm preinst conffiles 424control.files = control postinst prerm postrm preinst conffiles
42INSTALLS += control 425INSTALLS += control
43 426
44# images, default is $$prefix/pics/$$TARGET 427# images, default is $$prefix/pics/$$TARGET
45pics.path = $$prefix/pics/$$TARGET 428pics.path = $$prefix/pics/$$TARGET
46pics.files = pics/* 429pics.files = pics/*
47INSTALLS += pics 430INSTALLS += pics
48 431
49# sounds, default path is $$prefix/sounds/$$TARGET 432# sounds, default path is $$prefix/sounds/$$TARGET
50sounds.path = $$prefix/sounds/$$TARGET 433sounds.path = $$prefix/sounds/$$TARGET
51sounds.files = sounds/* 434sounds.files = sounds/*
52INSTALLS += sounds 435INSTALLS += sounds
53 436
54# init scripts, default path is /etc/init.d 437# init scripts, default path is /etc/init.d
55init.path = /etc/init.d 438init.path = /etc/init.d
56init.files = init.d/* 439init.files = init.d/*
57INSTALLS += init 440INSTALLS += init
58 441
59# data, default path is /usr/share/$$TARGET 442# data, default path is /usr/share/$$TARGET
60data.path = /usr/share/$$TARGET 443data.path = /usr/share/$$TARGET
61data.files = share/* 444data.files = share/*
62INSTALLS += data 445INSTALLS += data
63 446
64etc.path = $$prefix/etc/ 447etc.path = $$prefix/etc/
65etc.files = etc/* 448etc.files = etc/*
66INSTALLS += etc 449INSTALLS += etc
67 450
68apps.path = $$prefix/apps/ 451apps.path = $$prefix/apps/
69apps.files = apps/* 452apps.files = apps/*
70INSTALLS += apps 453INSTALLS += apps
71 454
72# sounds, default path is $$prefix/sounds/$$TARGET 455# sounds, default path is $$prefix/sounds/$$TARGET
73sounds.path = $$prefix/sounds/$$TARGET 456sounds.path = $$prefix/sounds/$$TARGET
74sounds.files = sounds/* 457sounds.files = sounds/*
75INSTALLS += sounds 458INSTALLS += sounds
76 459
77# anything in nonstandard paths 460# anything in nonstandard paths
78root.path = / 461root.path = /
79root.files = root/* 462root.files = root/*
80INSTALLS += root 463INSTALLS += root
81 464
82# new targets 465# new targets
83opie-lupdate.target = opie-lupdate 466opie-lupdate.target = opie-lupdate
84opie-lupdate.commands = opie-lupdate $(PRO) 467opie-lupdate.commands = opie-lupdate $(PRO)
85 468
86opie-lrelease.target = opie-lrelease 469opie-lrelease.target = opie-lrelease
87opie-lrelease.commands = opie-lrelease $(PRO) 470opie-lrelease.commands = opie-lrelease $(PRO)
88 471
89lupdate.target = lupdate 472lupdate.target = lupdate
90lupdate.commands = lupdate -noobsolete $(PRO) 473lupdate.commands = lupdate -noobsolete $(PRO)
91 474
92lrelease.target = lrelease 475lrelease.target = lrelease
93lrelease.commands = lrelease $(PRO) 476lrelease.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
96messages.target = messages 479messages.target = messages
97messages.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' 480messages.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
99ipk.target = ipk 482ipk.target = ipk
100ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; ) 483ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; )
101 484
102QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk opie-lupdate opie-lrelease messages 485QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk opie-lupdate opie-lrelease messages
103 486
104CONFTEST = $$system( echo $CONFIG_TARGET_MACOSX ) 487CONFTEST = $$system( echo $CONFIG_TARGET_MACOSX )
105contains( CONFTEST, y ){ 488contains( 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}
123else { 506else {
124 507
125QMAKE_LFLAGS += -Wl,-rpath-link,$$prefix/lib 508QMAKE_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
128CONFIG -= plugin 511CONFIG -= plugin
129} 512}
130LIBS += -L$(OPIEDIR)/lib 513LIBS += -L$(OPIEDIR)/lib
131 514
132MOC_DIR=.moc/$(PLATFORM) 515MOC_DIR=.moc/$(PLATFORM)
133OBJECTS_DIR=.obj/$(PLATFORM) 516OBJECTS_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 )