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