forked from caqtdm/caqtdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
caQtDM.pri
1108 lines (969 loc) · 44.4 KB
/
caQtDM.pri
1
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
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
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
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#==========================================================================================================
archive_plugin {
CONFIG += Define_ControlsysTargetDir Define_Build_objDirs
unix:!macx:!ios:!android {
message("archive_plugin configuration unix:!macx:!ios:!android")
LIBS += -L$(QTBASE) -Wl,-rpath,$(QTDM_RPATH) -lcaQtDM_Lib
CONFIG += release
}
macx {
message("archive_plugin configuration macx")
LIBS += $(CAQTDM_COLLECT)/libcaQtDM_Lib.dylib
LIBS += $(CAQTDM_COLLECT)/libqtcontrols.dylib
CONFIG += release
}
ios | android {
message("archive_plugin configuration : ios or android")
message( $$OUT_PWD )
CONFIG += staticlib
LIBS += $$OUT_PWD/../../../caQtDM_Lib/libcaQtDM_Lib.a
LIBS += $$OUT_PWD/../../../caQtDM_QtControls/libqtcontrols.a
}
win32 {
message("archive_plugin configuration win32")
win32-msvc* || msvc{
CONFIG += Define_Build_caQtDM_Lib Define_Build_qtcontrols Define_Symbols
}
win32-g++ {
EPICS_LIBS=$$(EPICS_BASE)/lib/win32-x86-mingw
LIBS += ../caQtDM_Lib/release/libcaQtDM_Lib.a
}
}
}
#==========================================================================================================
demo_plugin {
CONFIG += Define_ControlsysTargetDir Define_Build_objDirs
unix:!macx:!ios:!android {
message("demo_plugin configuration unix:!macx:!ios:!android")
INCLUDEPATH += $(EPICSINCLUDE)/os/Linux
LIBS += -L$(QTBASE) -Wl,-rpath,$(QTDM_RPATH) -lcaQtDM_Lib
CONFIG += release
}
macx {
message("demo_plugin configuration macx")
INCLUDEPATH += $(EPICSINCLUDE)/os/Linux
LIBS += $(CAQTDM_COLLECT)/libcaQtDM_Lib.dylib
CONFIG += release
}
ios | android {
message("demo_plugin configuration : ios or android")
message( $$OUT_PWD )
CONFIG += staticlib
LIBS += $$OUT_PWD/../../libcaQtDM_Lib.a
android {
INCLUDEPATH += $$OUT_PWD/../caQtDM_AndroidFunctions/src
}
}
win32 {
message("demo_plugin configuration win32")
INCLUDEPATH += $$(EPICS_BASE)/include/os/win32
win32-msvc* || msvc{
CONFIG += Define_Build_caQtDM_Lib Define_Symbols
}
win32-g++ {
EPICS_LIBS=$$(EPICS_BASE)/lib/win32-x86-mingw
LIBS += ../caQtDM_Lib/release/libcaQtDM_Lib.a
}
}
}
#==========================================================================================================
gps_plugin {
CONFIG += Define_ControlsysTargetDir Define_Build_objDirs
unix:!macx:!ios:!android {
message("gps_plugin configuration unix:!macx:!ios:!android")
INCLUDEPATH += $(EPICSINCLUDE)/os/Linux
LIBS += -L$(QTBASE) -Wl,-rpath,$(QTDM_RPATH) -lcaQtDM_Lib
CONFIG += release
}
macx {
message("gps_plugin configuration macx")
INCLUDEPATH += $(EPICSINCLUDE)/os/Linux
LIBS += $(CAQTDM_COLLECT)/libcaQtDM_Lib.dylib
CONFIG += release
}
ios | android {
message("gps_plugin configuration : ios or android")
message( $$OUT_PWD )
CONFIG += staticlib
LIBS += $$OUT_PWD/../../libcaQtDM_Lib.a
android {
INCLUDEPATH += $$OUT_PWD/../caQtDM_AndroidFunctions/src
}
}
win32 {
message("gps_plugin configuration win32")
INCLUDEPATH += $$(EPICS_BASE)/include/os/win32
win32-msvc* || msvc{
CONFIG += Define_Build_caQtDM_Lib Define_Symbols
}
win32-g++ {
EPICS_LIBS=$$(EPICS_BASE)/lib/win32-x86-mingw
LIBS += ../caQtDM_Lib/release/libcaQtDM_Lib.a
}
}
}
#==========================================================================================================
bsread_Plugin {
message(“bsread_plugin configuration”)
CONFIG += Define_ControlsysTargetDir Define_Build_objDirs Define_ZMQ_Lib
unix:!macx:!ios:!android {
message(“bsread_plugin configuration unix:!macx:!ios:!android”)
INCLUDEPATH += $(EPICSINCLUDE)/os/Linux
LIBS += -L$(QTBASE) -Wl,-rpath,$(QTDM_RPATH) -lcaQtDM_Lib
CONFIG += release
}
macx {
message(“bsread_plugin configuration macx”)
INCLUDEPATH += $(EPICSINCLUDE)/os/Linux
LIBS += $(CAQTDM_COLLECT)/libcaQtDM_Lib.dylib
plugins.path = Contents/PlugIns/controlsystems
plugins.files += $(CAQTDM_COLLECT)/controlsystems/libbsread_plugin.dylib
CONFIG += release
}
win32 {
message(“bsread_plugin configuration win32”)
INCLUDEPATH += $$(EPICS_BASE)/include/os/win32
INCLUDEPATH += $$(EPICS_BASE)/include
win32-msvc* || msvc{
CONFIG += Define_Build_epics_controls Define_ControlsysTargetDir
CONFIG += Define_Build_caQtDM_Lib Define_Symbols Define_ZMQ_Lib
}
win32-g++ {
EPICS_LIBS=$$(EPICS_BASE)/lib/win32-x86-mingw
LIBS += ../caQtDM_Lib/release/libcaQtDM_Lib.a
}
}
}
#==========================================================================================================
epics3_plugin {
CONFIG += Define_ControlsysTargetDir Define_Build_objDirs
unix:!macx:!ios:!android {
message("epics3_plugin configuration unix:!macx:!ios:!android ")
INCLUDEPATH += $(EPICSINCLUDE)/os/Linux
#for epics 3.15 and gcc we need this
INCLUDEPATH += $(EPICSINCLUDE)/compiler/gcc
LIBS += -L$(EPICSLIB) -Wl,-rpath,$(EPICSLIB) -lca -lCom
LIBS += -L$(QTBASE) -Wl,-rpath,$(QTDM_RPATH) -lcaQtDM_Lib
CONFIG += release
}
macx {
message("epics3_plugin configuration macx")
INCLUDEPATH += $(EPICSINCLUDE)/os/Darwin
INCLUDEPATH += $(EPICSINCLUDE)/compiler/clang
LIBS += $(CAQTDM_COLLECT)/libcaQtDM_Lib.dylib
LIBS += $$(EPICSLIB)/libca.dylib
LIBS += $$(EPICSLIB)/libCom.dylib
CONFIG += release
}
ios | android {
message("epics3_plugin configuration : ios or android")
CONFIG += staticlib
LIBS += $$OUT_PWD/../../libcaQtDM_Lib.a
ios {
INCLUDEPATH += $(EPICSINCLUDE)/os/iOS
INCLUDEPATH += $(EPICSINCLUDE)/compiler/clang
}
android {
INCLUDEPATH += $(EPICSINCLUDE)/os/android
INCLUDEPATH += $$OUT_PWD/../caQtDM_AndroidFunctions/src
}
}
win32 {
message("epics3_plugin configuration win32")
INCLUDEPATH += $$(EPICS_BASE)/include/os/win32
INCLUDEPATH += $$(EPICS_BASE)/include/compiler/msvc
win32-msvc* || msvc{
DEFINES +=_CRT_SECURE_NO_WARNINGS
CONFIG += Define_Build_epics_controls
CONFIG += Define_Build_caQtDM_Lib Define_Symbols
}
win32-g++ {
EPICS_LIBS=$$(EPICS_BASE)/lib/win32-x86-mingw
LIBS += $${EPICS_LIBS}/ca.lib
LIBS += $${EPICS_LIBS}/COM.lib
LIBS += ../caQtDM_Lib/release/libcaQtDM_Lib.a
}
}
}
#==========================================================================================================
environment_Plugin {
message(“environment_plugin configuration”)
CONFIG += Define_ControlsysTargetDir Define_Build_objDirs
unix:!macx:!ios:!android {
message(“environment_plugin configuration unix:!macx:!ios:!android”)
INCLUDEPATH += $(EPICSINCLUDE)
INCLUDEPATH += $(EPICSINCLUDE)/os/Linux
LIBS += -L$(QTBASE) -Wl,-rpath,$(QTDM_RPATH) -lcaQtDM_Lib
CONFIG += release
}
macx {
message(“environment_plugin configuration macx”)
INCLUDEPATH += $(EPICSINCLUDE)
INCLUDEPATH += $(EPICSINCLUDE)/os/Linux
LIBS += -L$(CAQTDM_COLLECT) -lqtcontrols
LIBS += -L$(QTBASE) -Wl,-rpath,$(QTDM_RPATH) -lcaQtDM_Lib
LIBS += $$(EPICSLIB)/libCom.dylib
!modbus:!gps:{
plugins.path = Contents/PlugIns/controlsystems
plugins.files += $(CAQTDM_COLLECT)/controlsystems/libenvironment_plugin.dylib
}
modbus: {
plugins.path = Contents/PlugIns/controlsystems
plugins.files += $(CAQTDM_COLLECT)/controlsystems/libmodbus_plugin.dylib
}
gps: {
plugins.path = Contents/PlugIns/controlsystems
plugins.files += $(CAQTDM_COLLECT)/controlsystems/libgps_plugin.dylib
}
CONFIG += release
}
ios | android {
message("epics3_plugin configuration : ios or android")
CONFIG += staticlib
INCLUDEPATH += $(EPICSINCLUDE)
LIBS += $$OUT_PWD/../../libcaQtDM_Lib.a
ios {
INCLUDEPATH += $(EPICSINCLUDE)/os/iOS
INCLUDEPATH += $(EPICSINCLUDE)/compiler/clang
}
android {
INCLUDEPATH += $(EPICSINCLUDE)/os/android
INCLUDEPATH += $$OUT_PWD/../caQtDM_AndroidFunctions/src
}
}
win32 {
message(“environment_plugin configuration win32”)
INCLUDEPATH += $$(EPICS_BASE)/include/os/win32
INCLUDEPATH += $$(EPICS_BASE)/include
win32-msvc* || msvc{
CONFIG += Define_Build_epics_controls Define_ControlsysTargetDir
CONFIG += Define_Build_caQtDM_Lib Define_Symbols
}
win32-g++ {
EPICS_LIBS=$$(EPICS_BASE)/lib/win32-x86-mingw
LIBS += ../caQtDM_Lib/release/libcaQtDM_Lib.a
}
}
}
#==========================================================================================================
epics4_plugin {
CONFIG += Define_ControlsysTargetDir Define_Build_objDirs
unix:!macx:!ios:!android {
epics7 {
message("epics4_plugin (with epics version 7) configuration unix:!macx:!ios:!android")
INCLUDEPATH += $(EPICSINCLUDE)
INCLUDEPATH += $(EPICSINCLUDE)/pv
INCLUDEPATH += $(EPICSINCLUDE)/os/Linux
#for epics 3.15 and gcc we need this
INCLUDEPATH += $(EPICSINCLUDE)/compiler/gcc
!EPICS4_STATICBUILD {
message( "epics4_plugin build with shared object libraries of epics4" )
LIBS += -L$(EPICSLIB) -Wl,-rpath,$(EPICSLIB) -lca -lCom -lpvAccess -lpvData -lpvaClient -lnt
LIBS += -L$(QTBASE) -Wl,-rpath,$(QTDM_RPATH) -lcaQtDM_Lib
}
EPICS4_STATICBUILD {
message( "epics4_plugin build with static libraries of epics4" )
LIBS += $(EPICSLIB)/libpvAccess.a
LIBS += $(EPICSLIB)/libpvData.a
LIBS += $(EPICSLIB)/libpvaClient.a
LIBS += $(EPICSLIB)/libnt.a
LIBS += -L$(EPICSLIB) -Wl,-rpath,$(EPICSLIB) -lca -lCom
}
CONFIG += release
}
else {
message("epics4_plugin (with epics version 3) configuration unix:!macx:!ios:!android")
INCLUDEPATH += $(EPICS4LOCATION)/pvDataCPP/include
INCLUDEPATH += $(EPICS4LOCATION)/pvAccessCPP/include
INCLUDEPATH += $(EPICS4LOCATION)/pvaClientCPP/include
INCLUDEPATH += $(EPICS4LOCATION)/normativeTypesCPP/include
INCLUDEPATH += $(EPICSINCLUDE)
INCLUDEPATH += $(EPICSINCLUDE)/os/Linux
#for epics 3.15 and gcc we need this
INCLUDEPATH += $(EPICSINCLUDE)/compiler/gcc
EPICS4LOC1 = $(EPICS4LOCATION)/pvAccessCPP/lib/$(EPICS_HOST_ARCH)
EPICS4LOC2 = $(EPICS4LOCATION)/pvDataCPP/lib/$(EPICS_HOST_ARCH)
EPICS4LOC3 = $(EPICS4LOCATION)/pvaClientCPP/lib/$(EPICS_HOST_ARCH)
EPICS4LOC4 = $(EPICS4LOCATION)/normativeTypesCPP/lib/$(EPICS_HOST_ARCH)
!EPICS4_STATICBUILD {
message( "epics4_plugin build with shared object libraries of epics4" )
LIBS += -L$${EPICS4LOC1} -Wl,-rpath,$${EPICS4LOC1} -lpvAccess
LIBS += -L$${EPICS4LOC2} -Wl,-rpath,$${EPICS4LOC2} -lpvData
LIBS += -L$${EPICS4LOC3} -Wl,-rpath,$${EPICS4LOC3} -lpvaClient
LIBS += -L$${EPICS4LOC4} -Wl,-rpath,$${EPICS4LOC4} -lnt
LIBS += -L$(QTBASE) -Wl,-rpath,$(QTDM_RPATH) -lcaQtDM_Lib
}
EPICS4_STATICBUILD {
message( "epics4_plugin build with static libraries of epics4" )
LIBS += $${EPICS4LOC1}/libpvAccess.a
LIBS += $${EPICS4LOC2}/libpvData.a
LIBS += $${EPICS4LOC3}/libpvaClient.a
LIBS += $${EPICS4LOC4}/libnt.a
LIBS += -L$(EPICSLIB) -Wl,-rpath,$(EPICSLIB) -lca -lCom
}
CONFIG += release
}
}
macx {
message("epics4_plugin configuration macx")
INCLUDEPATH += $(EPICSINCLUDE)
INCLUDEPATH += $(EPICSINCLUDE)/os/Darwin
INCLUDEPATH += $(EPICS4LOCATION)/pvDataCPP/include
INCLUDEPATH += $(EPICS4LOCATION)/pvAccessCPP/include
INCLUDEPATH += $(EPICS4LOCATION)/pvaClientCPP/include
INCLUDEPATH += $(EPICS4LOCATION)/normativeTypesCPP/include
EPICS4LOC1 = $(EPICS4LOCATION)/pvAccessCPP/lib/$(EPICS_HOST_ARCH)
EPICS4LOC2 = $(EPICS4LOCATION)/pvDataCPP/lib/$(EPICS_HOST_ARCH)
EPICS4LOC3 = $(EPICS4LOCATION)/pvaClientCPP/lib/$(EPICS_HOST_ARCH)
EPICS4LOC4 = $(EPICS4LOCATION)/normativeTypesCPP/lib/$(EPICS_HOST_ARCH)
LIBS += $${EPICS4LOC1}/libpvAccess.a
LIBS += $${EPICS4LOC2}/libpvData.a
LIBS += $${EPICS4LOC3}/libpvaClient.a
LIBS += $${EPICS4LOC4}/libnt.a
LIBS += $(CAQTDM_COLLECT)/libcaQtDM_Lib.dylib
LIBS += $(CAQTDM_COLLECT)/libcaQtDM_Lib.dylib
LIBS += $$(EPICSLIB)/libca.dylib
LIBS += $$(EPICSLIB)/libCom.dylib
CONFIG += release
}
ios | android {
message("epics4_plugin configuration : ios or android")
CONFIG += staticlib
LIBS += $$OUT_PWD/../../libcaQtDM_Lib.a
ios {
INCLUDEPATH += $(EPICSINCLUDE)/os/iOS
}
android {
INCLUDEPATH += $(EPICSINCLUDE)/os/android
}
}
win32-msvc* || msvc {
message("epics4_plugin configuration win32")
epics7 {
message("epics4_plugin (with epics version 7) configuration win32")
CONFIG +=Define_Build_caQtDM_Lib Define_Build_qtcontrols
CONFIG +=Define_Build_epicsPV_controls Define_Build_epics_controls
CONFIG +=Define_Symbols
}
}
}
#==========================================================================================================
caQtDM_QtControls {
unix:!macx:!ios:!android {
message("caQtDM_QtControls configuration : unix:!macx:!ios:!android")
OBJECTS_DIR = obj
DESTDIR = $$(CAQTDM_COLLECT)
INCLUDEPATH += $$(QWTINCLUDE)
LIBS += -L$$(QWTLIB) -Wl,-rpath,$(QWTLIB) -l$$(QWTLIBNAME)
}
macx {
message("caQtDM_QtControls configuration : macx")
INCLUDEPATH += $$(QWTINCLUDE)
OBJECTS_DIR = obj
DESTDIR = $$(CAQTDM_COLLECT)
CONFIG += lib_bundle
LIBS += -lz
LIBS += -F$$(QWTLIB) -framework $$(QWTLIBNAME)
ADL_EDL_FILES {
LIBS += -L$(QTBASE) -Wl,-rpath,$(QTDM_RPATH) -ladlParser
LIBS += -L$(QTBASE) -Wl,-rpath,$(QTDM_RPATH) -ledlParser
}
}
ios | android {
message("caQtDM_QtControls configuration : ios or android")
OBJECTS_DIR = obj
INCLUDEPATH += $$(QWTINCLUDE)
CONFIG += staticlib
CONFIG += release
CONFIG -= debug
CONFIG -= debug_and_release
android {
DESTDIR = $(CAQTDM_COLLECT)
}
}
win32 {
message("caQtDM_QtControls configuration : win32")
message($$CONFIG)
INCLUDEPATH += $$(QWTINCLUDE)
win32-g++ {
INCLUDEPATH = $(QWTHOME)/src
LIBS += $$(QWTLIB)/lib$$(QWTLIBNAME).a
}
win32-msvc* || msvc{
DEFINES += QTCON_MAKEDLL _CRT_SECURE_NO_WARNINGS
CONFIG += Define_Build_qwt Define_Build_objDirs Define_Symbols Define_Build_OutputDir
}
}
}
#==========================================================================================================
caQtDM_Lib {
unix:!macx:!ios:!android {
message("caQtDM_Lib configuration : unix:!macx:!ios:!android")
LIBS += -L$(EPICSLIB) -Wl,-rpath,$(EPICSLIB) -lCom
LIBS += -L$(CAQTDM_COLLECT) -Wl,-rpath,$(QTDM_RPATH) -lqtcontrols
INCLUDEPATH += $(EPICSINCLUDE)/os/Linux
#for epics 3.15 and gcc we need this
INCLUDEPATH += $(EPICSINCLUDE)/compiler/gcc
OBJECTS_DIR = ./obj
DESTDIR = $(CAQTDM_COLLECT)
QMAKE_CXXFLAGS += "-g"
QMAKE_CFLAGS_RELEASE += "-g"
CONFIG += Define_Build_Python
}
macx {
message("caQtDM_Lib configuration : macx")
INCLUDEPATH += $(EPICSINCLUDE)/os/Darwin
INCLUDEPATH += $(EPICSINCLUDE)/compiler/clang
#for epics 3.15 and gcc we need this
INCLUDEPATH += $(EPICSINCLUDE)/compiler/gcc
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.8
LIBS += -F$(QWTLIB) -framework $$(QWTLIBNAME)
LIBS += -L$(CAQTDM_COLLECT) -lqtcontrols
LIBS += ${EPICSLIB}/libCom.dylib
DESTDIR = $(CAQTDM_COLLECT)
OBJECTS_DIR = ./obj
CONFIG += Define_Build_Python
}
ios | android {
message("caQtDM_Lib configuration : ios or android")
message( $$OUT_PWD )
CONFIG += staticlib console
CONFIG += release
SOURCES += fingerswipegesture.cpp
HEADERS += fingerswipegesture.h
INCLUDEPATH += ./caQtDM_Plugins
ios {
INCLUDEPATH += $(EPICSINCLUDE)/os/iOS
INCLUDEPATH += $(EPICSINCLUDE)/compiler/clang
# this instruction is actually needed for me while the build does not work for multiple architectures
QMAKE_CXXFLAGS_RELEASE -= -O2
}
android {
INCLUDEPATH += $(EPICSINCLUDE)/os/android
DESTDIR = $(CAQTDM_COLLECT)
}
}
win32 {
message("caQtDM_Lib configuration : win32")
INCLUDEPATH += $$(EPICS_BASE)/include
INCLUDEPATH += $$(EPICS_BASE)/include/os/win32
INCLUDEPATH += $$(EPICS_BASE)/include/compiler/msvc
win32-msvc* || msvc{
DEFINES +=_CRT_SECURE_NO_WARNINGS
DEFINES += CAQTDM_LIB_LIBRARY
TEMPLATE = lib
CONFIG += Define_Build_qwt Define_Build_objDirs
CONFIG += Define_Build_epics_controls Define_Symbols Define_Build_OutputDir
}
win32-g++ {
EPICS_LIBS=$$(EPICS_BASE)/lib/win32-x86-mingw
LIBS += $$(QWTLIB)/lib$$(QWTLIBNAME).a
LIBS += $$(QTCONTROLS_LIBS)/release//libqtcontrols.a
LIBS += $${EPICS_LIBS}/ca.lib
LIBS += $${EPICS_LIBS}/COM.lib
QMAKE_POST_LINK = $${QMAKE_COPY} .\\release\\caQtDM_Lib.dll ..\caQtDM_Binaries
}
}
}
#==========================================================================================================
caQtDM_Viewer {
C_QMAKESPEC = $$QMAKESPEC
DEFINES += BUILDVERSION=\\\"$${CAQTDM_VERSION}\\\"
DEFINES += BUILDARCH=\\\"$$replace(C_QMAKESPEC, \\\\, /)\\\"
CONFIG += Define_Build_objDirs
unix: {
message("caQtDM_viewer configuration : unix")
DEFINES += BUILDTIME=\\\"$$system(date '+%H:%M')\\\"
DEFINES += BUILDDATE=\\\"$$system(date '+%d-%m-%Y')\\\"
!ios:!android {
message("caQtDM_viewer configuration : !ios!android (all unixes + mac)")
DESTDIR = $(CAQTDM_COLLECT)
!macx: {CONFIG += x11}
LIBS += -L$(QTBASE) -Wl,-rpath,$(QTDM_RPATH) -lcaQtDM_Lib
LIBS += -L$(QTBASE) -Wl,-rpath,$(QTDM_RPATH) -lqtcontrols
ADL_EDL_FILES {
LIBS += -L$(QTBASE) -Wl,-rpath,$(QTDM_RPATH) -ladlParser
LIBS += -L$(QTBASE) -Wl,-rpath,$(QTDM_RPATH) -ledlParser
}
LIBS += -L$(CAQTDM_COLLECT) -L$(CAQTDM_COLLECT)/designer
}
}
macx:!ios {
message("caQtDM_viewer configuration : macx (only mac)")
#for epics 3.15 and gcc we need this
INCLUDEPATH += $(EPICSINCLUDE)/compiler/gcc
DESTDIR = $(CAQTDM_COLLECT)
QMAKE_INFO_PLIST = ./src/Mac/Info.plist
APP-FONTS.files = lucida-sans-typewriter.ttf
APP-FONTS.path = Contents/Resources/fonts
QMAKE_BUNDLE_DATA += APP-FONTS
CONFIG += app_bundle
ICON = ./src/caQtDM.icns
plugins.path = Contents/PlugIns/designer
plugins.files = $(CAQTDM_COLLECT)/designer/libqtcontrols_controllers_plugin.dylib
plugins.files += $(CAQTDM_COLLECT)/designer/libqtcontrols_graphics_plugin.dylib
plugins.files += $(CAQTDM_COLLECT)/designer/libqtcontrols_monitors_plugin.dylib
plugins.files += $(CAQTDM_COLLECT)/designer/libqtcontrols_utilities_plugin.dylib
caqtdmlibs.path = Contents/Frameworks/
caqtdmlibs.files = $(CAQTDM_COLLECT)/libcaQtDM_Lib.dylib $(CAQTDM_COLLECT)/libqtcontrols.dylib
ADL_EDL_FILES {
caqtdmlibs.files += $(CAQTDM_COLLECT)/libadlParser.dylib
caqtdmlibs.files += $(CAQTDM_COLLECT)/libedlParser.dylib
}
QMAKE_BUNDLE_DATA += plugins caqtdmlibs
calib.path = Contents/Frameworks
# calib.files = $$(EPICS_BASE)/lib/darwin-x86/libca.3.14.12.dylib
comlib.path = Contents/Frameworks
# comlib.files = $$(EPICS_BASE)/lib/darwin-x86/libCom.3.14.12.dylib
#compute dylib library from epicsinclude
EPICS = $$(EPICSINCLUDE)
EPICSPATH1=$$(EPICS_BASE)/lib/darwin-x86/libca.
EPICSPATH2=$$(EPICS_BASE)/lib/darwin-x86/libCom.
EPICSVERSION = $$split(EPICS, "/")
$$take_last(EPICSVERSION)
EPICSVERSION = $$split(EPICSVERSION, "-")
EPICSVERSION=$$last(EPICSVERSION)
EPICSDYLIB1 = $$join(EPICSVERSION,"", $$EPICSPATH1, ."dylib")
EPICSDYLIB2 = $$join(EPICSVERSION,"", $$EPICSPATH2, ."dylib")
message($$EPICSDYLIB1)
message($$EPICSDYLIB2)
calib.files = $$(EPICSDYLIB1)
comlib.files = $$(EPICSDYLIB2)
qwtframework.path = Contents/Frameworks
qwtframework.files = $$(QWTHOME)/lib/$$(QWTLIBNAME).framework
QMAKE_BUNDLE_DATA += calib comlib qwtframework
plugins_epics3.path = Contents/PlugIns/controlsystems
plugins_epics3.files += $(CAQTDM_COLLECT)/controlsystems/libepics3_plugin.dylib
QMAKE_BUNDLE_DATA += plugins_epics3
plugins_demo.path = Contents/PlugIns/controlsystems
plugins_demo.files += $(CAQTDM_COLLECT)/controlsystems/libdemo_plugin.dylib
QMAKE_BUNDLE_DATA += plugins_demo
plugins_environment.path = Contents/PlugIns/controlsystems
plugins_environment.files += $(CAQTDM_COLLECT)/controlsystems/libenvironment_plugin.dylib
QMAKE_BUNDLE_DATA += plugins_environment
epics4: {
plugins_epics4.path = Contents/PlugIns/controlsystems
plugins_epics4.files += $(CAQTDM_COLLECT)/controlsystems/libepics4_plugin.dylib
QMAKE_BUNDLE_DATA += plugins_epics4
}
bsread:{
plugins_bsread.path = Contents/PlugIns/controlsystems
plugins_bsread.files += $(CAQTDM_COLLECT)/controlsystems/libbsread_plugin.dylib
QMAKE_BUNDLE_DATA += plugins_bsread
zmqlibrary.path = Contents/Frameworks
zmqlibrary.files += $$(ZMQLIB)/libzmq.5.dylib
QMAKE_BUNDLE_DATA += zmqlibrary
}
archiveSF:{
plugins_archiveSF.path = Contents/PlugIns/controlsystems
plugins_archiveSF.files += $(CAQTDM_COLLECT)/controlsystems/libarchiveSF_plugin.dylib
QMAKE_BUNDLE_DATA += plugins_archiveSF
}
modbus: {
plugins_modbus.path = Contents/PlugIns/controlsystems
plugins_modbus.files += $(CAQTDM_COLLECT)/controlsystems/libmodbus_plugin.dylib
QMAKE_BUNDLE_DATA += plugins_modbus
}
gps: {
plugins_gps.path = Contents/PlugIns/controlsystems
plugins_gps.files += $(CAQTDM_COLLECT)/controlsystems/libgps_plugin.dylib
QMAKE_BUNDLE_DATA += plugins_gps
}
}
ios {
message("caQtDM_viewer configuration : ios")
#DESTDIR = $(CAQTDM_COLLECT)
message( $$OUT_PWD )
CONFIG += staticlib
CONFIG += release
LIBS += $$OUT_PWD/../caQtDM_Lib/libcaQtDM_Lib.a
LIBS += $$OUT_PWD/../caQtDM_QtControls/libqtcontrols.a
LIBS += $$OUT_PWD/../caQtDM_QtControls/plugins/libqtcontrols_controllers_plugin.a
LIBS += $$OUT_PWD/../caQtDM_QtControls/plugins/libqtcontrols_monitors_plugin.a
LIBS += $$OUT_PWD/../caQtDM_QtControls/plugins/libqtcontrols_graphics_plugin.a
LIBS += $$OUT_PWD/../caQtDM_QtControls/plugins/libqtcontrols_utilities_plugin.a
LIBS += $$OUT_PWD/../caQtDM_Lib/caQtDM_Plugins/demo/libdemo_plugin.a
LIBS += $$OUT_PWD/../caQtDM_Lib/caQtDM_Plugins/epics3/libepics3_plugin.a
LIBS += $$OUT_PWD/../caQtDM_Lib/caQtDM_Plugins/archive/archiveSF/libarchiveSF_plugin.a
LIBS += $$OUT_PWD/../caQtDM_Lib/caQtDM_Plugins/environment/libenvironment_plugin.a
modbus {
LIBS += $$OUT_PWD/../caQtDM_Lib/caQtDM_Plugins/modbus/libmodbus_plugin.a
}
gps {
LIBS += $$OUT_PWD/../caQtDM_Lib/caQtDM_Plugins/gps/libgps_plugin.a
}
ICON = $$PWD/caQtDM_Viewer/src/caQtDM.icns
APP_ICON.files = $$files($$PWD/caQtDM_Viewer/src/caQtDM*.png)
APP1_ICON.files = $$PWD/caQtDM_Viewer/src/caQtDM.icns
APP_XML_FILES.files = $$PWD/caQtDM_Viewer/caQtDM_IOS_Config.xml
#StartScreen.files = $$files($$PWD/caQtDM_Viewer/src/IOS/LaunchImage*.png)
#StartScreen.files += $$PWD/caQtDM_Viewer/src/StartScreen-Landscape.png
#StartScreen.files += $$PWD/caQtDM_Viewer/src/[email protected]
APP-FONTS.files = $$PWD/caQtDM_Viewer/lucida-sans-typewriter.ttf
APP-FONTS.path = fonts
#assets_catalogs.files = $$files($$PWD/caQtDM_Viewer/src/IOS/*.xcassets)
#QMAKE_BUNDLE_DATA += assets_catalogs
QMAKE_BUNDLE_DATA += APP_XML_FILES APP-FONTS #APP_ICON APP1_ICON
QMAKE_CFLAGS += -gdwarf-2
QMAKE_CXXFLAGS += -gdwarf-2
QMAKE_TARGET_BUNDLE_PREFIX=ch.psi
QMAKE_BUNDLE_NAME = ch.psi.caQtDM
bundle_identifier.name = PRODUCT_BUNDLE_IDENTIFIER
bundle_identifier.value = ch.psi.caQtDM
QMAKE_MAC_XCODE_SETTINGS += bundle_identifier
target.name=IPHONEOS_DEPLOYMENT_TARGET
target.value = 12.0
QMAKE_MAC_XCODE_SETTINGS += target
assetIcon.name = ASSETCATALOG_COMPILER_APPICON_NAME
assetIcon.value = AppIcon
launchImage.name = ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME
launchImage.value = LaunchImage
QMAKE_MAC_XCODE_SETTINGS += assetIcon launchImage
QMAKE_INFO_PLIST += $$PWD/caQtDM_Viewer/src/IOS/Info.plist
QMAKE_ASSET_CATALOGS += $$PWD/caQtDM_Viewer/src/IOS/Assets.xcassets
#actually, I have a problem with ios, it seems that iphonesimulator is defined too and wants than the library of simlator
# I comment it out now
iphonesimulator {
message("caQtDM_viewer configuration : iphonesimulator")
# when .dylib and .a in same directory, macos takes .dylib, so separate the libraries
LIBS += $$(EPICSLIB)/static/libca.a
LIBS += $$(EPICSLIB)/static/libCom.a
LIBS += $$(QWTHOME)/lib/lib$$(QWTLIBNAME).a
#LIBS += $$(QWTHOME)/lib/lib$$(QWTLIBNAME)_iphonesimulator.a
# build simulator only for 32 bit
INCLUDEPATH += $$(QWTHOME)/src
}
iphoneos {
message("caQtDM_viewer configuration : iphoneos")
LIBS += $$(EPICSLIB)/static/libca.a
LIBS += $$(EPICSLIB)/static/libCom.a
LIBS += $$(QWTHOME)/lib/lib$$(QWTLIBNAME).a
###############################################################################
# Code Signing settings needed only for iOS App Store
###############################################################################
#bitcode.name = ENABLE_BITCODE
#bitcode.value = YES
#QMAKE_MAC_XCODE_SETTINGS += bitcode
#bitcode_generator.name = BITCODE_GENERATION_MODE
#bitcode_generator.value = bitcode
#QMAKE_MAC_XCODE_SETTINGS += bitcode_generator
#provisioning_profile_spec.name=PROVISIONING_PROFILE_SPECIFIER
#provisioning_profile_spec.value = caQtDM Distribution
#provisioning_profile_spec.value = caQtDM Development
#QMAKE_MAC_XCODE_SETTINGS += provisioning_profile_spec
#signing_identity.name = CODE_SIGN_IDENTITY
#signing_identity.value = $$(CODE_SIGN_IDENTITY)
#QMAKE_MAC_XCODE_SETTINGS += signing_identity
#setting.name = DEVELOPMENT_TEAM
#setting.value = $$(CERTIFICATNUMBER)
#QMAKE_MAC_XCODE_SETTINGS += setting
#payload_dir.target = $$OUT_PWD/Release-iphoneos/Payload
#payload_dir.commands = @test -d $$OUT_PWD/Release-iphoneos/Payload || mkdir -p $$OUT_PWD/Release-iphoneos/Payload
#payload_dir.depends = $$OUT_PWD/Release-iphoneos
#QMAKE_EXTRA_TARGETS +=payload_dir
}
epics4: {
LIBS += $$OUT_PWD/../caQtDM_Lib/caQtDM_Plugins/epics4/libepics4_plugin.a
}
archiveSF:{
LIBS += $$OUT_PWD/../caQtDM_Lib/caQtDM_Plugins/archive/archiveSF/libarchiveSF_plugin.a
}
}
android {
message("caQtDM_viewer configuration : android")
message($$PWD)
DESTDIR = $$(CAQTDM_COLLECT)
CONFIG += staticlib
CONFIG += console
LIBS += $(CAQTDM_COLLECT)/designer/libqtcontrols_controllers_plugin.a
LIBS += $(CAQTDM_COLLECT)/designer/libqtcontrols_monitors_plugin.a
LIBS += $(CAQTDM_COLLECT)/designer/libqtcontrols_graphics_plugin.a
LIBS += $(CAQTDM_COLLECT)/designer/libqtcontrols_utilities_plugin.a
LIBS += $(CAQTDM_COLLECT)/controlsystems/libdemo_plugin.a
LIBS += $(CAQTDM_COLLECT)/controlsystems/libepics3_plugin.a
LIBS += $(CAQTDM_COLLECT)/libAndroidFunctions.a
epics4: {
LIBS += $(CAQTDM_COLLECT)/controlsystems/libepics4_plugin.a
}
archiveSF: {
LIBS += $(CAQTDM_COLLECT)/controlsystems/libarchiveSF_plugin.a
}
LIBS += $(CAQTDM_COLLECT)/controlsystems/libenvironment_plugin.a
modbus {
LIBS += $(CAQTDM_COLLECT)/controlsystems/libmodbus_plugin.a
}
gps {
LIBS += $(CAQTDM_COLLECT)/controlsystems/libgps_plugin.a
}
LIBS += $(CAQTDM_COLLECT)/libcaQtDM_Lib.a
LIBS += $(CAQTDM_COLLECT)/libqtcontrols.a
LIBS += $$(QWTHOME)/lib/lib$$(QWTLIBNAME).a
LIBS += $$(EPICSLIB)/libca.a
LIBS += $$(EPICSLIB)/libCom.a
LOCAL_LDLIBS += -llog
ICON = $$PWD/caQtDM_Viewer/src/caQtDM.icns
APP_ICON.files = $$PWD/caQtDM_Viewer/src/caqtdm762x.png
APP_ICON.path = /res/drawable
APP1_ICON.files = $$PWD/caQtDM_Viewer/src/caQtDM.icns
APP_XML_FILES.files = $$PWD/caQtDM_Viewer/caQtDM_IOS_Config.xml
StartScreen.files += $$PWD/caQtDM_Viewer/src/startscreenlandscape.png
StartScreen.path = /res/drawable
APP-FONTS.files = $$PWD/caQtDM_Viewer/lucida-sans-typewriter.ttf
APP-FONTS.path = /fonts
QMAKE_BUNDLE_DATA += APP_XML_FILES APP_ICON APP1_ICON StartScreen APP-FONTS
deployment.files += $$PWD/caQtDM_Viewer/caQtDM_IOS_Config.xml
deployment.path = /assets
INSTALLS += deployment APP-FONTS APP_ICON StartScreen
DISTFILES += /Users/mezger/Documents/Entwicklung/qt/caqtdm_project/caQtDM_Viewer/src/Android/AndroidManifest.xml
DISTFILES += src/Android/res/values/libs.xml src/Android/build.gradle
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/caQtDM_Viewer/src/Android
}
win32 {
message("caQtDM_viewer configuration : win32")
DEFINES += BUILDTIME=\\\"\\\"
DEFINES += BUILDDATE=\\\"\\\"
DEFINES += SUPPORT=\\\"\\\"
TARGET = caQtDM
TEMPLATE = app
MOC_DIR = moc
VPATH += ./src
INCLUDEPATH += .
INCLUDEPATH += $(QWTHOME)/src
INCLUDEPATH += $$(EPICS_BASE)/include
INCLUDEPATH += $$(EPICS_BASE)/include/os/win32
INCLUDEPATH += $$(EPICS_BASE)/include/compiler/msvc
INCLUDEPATH += ../caQtDM_Lib/src
INCLUDEPATH += ../caQtDM_QtControls/src
INCLUDEPATH += $(QWTINCLUDE)
INCLUDEPATH += $(EPICSINCLUDE)
OTHER_FILES += ./src/caQtDM.ico
DEFINES +=_CRT_SECURE_NO_WARNINGS
RESOURCES += ./src/caQtDM.qrc
RC_FILE = ./src/caQtDM.rc
win32-msvc* || msvc{
CONFIG += Define_Build_qwt
CONFIG += Define_Build_epics_controls
CONFIG += Define_Build_caQtDM_Lib Define_Symbols
CONFIG += Define_Build_OutputDir
}
win32-g++ {
EPICS_LIBS=$$(EPICS_BASE)/lib/win32-x86-mingw
LIBS += $$(QWTLIB)/lib$$(QWTLIBNAME).a
LIBS += $$(QTCONTROLS_LIBS)/release/libqtcontrols.a
LIBS += $${EPICS_LIBS}/ca.lib
LIBS += $${EPICS_LIBS}/COM.lib
LIBS += ../caQtDM_Lib/release/libcaQtDM_Lib.a
QMAKE_POST_LINK = $${QMAKE_COPY} .\\release\\caQtDM.exe ..\caQtDM_Binaries
}
}
}
#==========================================================================================================
caQtDM_xdl2ui{
CONFIG += console
DEFINES += BUILDVERSION=\\\"$${CAQTDM_VERSION}\\\"
C_QMAKESPEC = $$QMAKESPEC
DEFINES += BUILDARCH=\\\"$$replace(C_QMAKESPEC, \\\\, /)\\\"
unix:!macx {
message("adl2ui configuration unix!macx")
OBJECTS_DIR = obj
DESTDIR = $(CAQTDM_COLLECT)
}
macx {
message("adl2ui configuration macx")
OBJECTS_DIR = obj
DESTDIR = $(CAQTDM_COLLECT)
}
win32 {
message("adl2ui configuration win32")
win32-msvc* || msvc{
CONFIG += Define_Build_OutputDir Define_Symbols
}
win32-g++ {
OBJECTS_DIR = obj
DESTDIR = $(CAQTDM_COLLECT)
}
}
}
caQtDM_xdl2ui_Lib{
unix:!macx {
LIBS += $(CAQTDM_COLLECT)/libadlParser.a
}
macx {
LIBS += $(CAQTDM_COLLECT)/libadlParser.a
}
win32 {
win32-msvc* || msvc{
LIBS += $(CAQTDM_COLLECT)/adlParser.lib
}
win32-g++ {
LIBS += $(CAQTDM_COLLECT)/libadlParser.a
}
}
}
#==========================================================================================================
Define_ZMQ_Lib{
ZEROMQ_INCLUDECHECK=$$(QTHOME)/include
!equals(ZEROMQ_INCLUDECHECK,$$(ZMQINC)){
message("No collision with Qt detected, include ZMQ include")
INCLUDEPATH += $$(ZMQINC)
}
unix:!macx {
LIBS += -L$$(ZMQLIB) -Wl,-rpath,$$(ZMQLIB) -lzmq
#LIBS += $$(ZMQLIB)/libzmq.a
}
macx {
LIBS += $$(ZMQLIB)/libzmq.5.dylib
}
win32 {
DebugBuild {
LIBS += $$(ZMQLIB)/libzmq.lib
}
ReleaseBuild {
LIBS += $$(ZMQLIB)/libzmq.lib
}
}
}
Define_Build_Python {
PYTHONCALC: {
warning("for image and visibility calculation, python will be build in")
!ios {
!android {
unix:!macx {
DEFINES += PYTHON
INCLUDEPATH += $(PYTHONINCLUDE)
LIBS += -L$(PYTHONLIB) -Wl,-rpath,$(PYTHONLIB) -lpython$(PYTHONVERSION)
}
unix:macx {
DEFINES += PYTHON
INCLUDEPATH += /System/Library/Frameworks/Python.framework/Versions/$(PYTHONVERSION)/include/python$(PYTHONVERSION)/
LIBS += -L/System/Library/Frameworks/Python.framework/Versions/$(PYTHONVERSION)/lib/ -lpython$(PYTHONVERSION)
}
}
}
}
}
Define_Symbols{
ReleaseBuild {
QMAKE_CXXFLAGS += /Z7
QMAKE_CFLAGS += /Z7
QMAKE_LFLAGS += /DEBUG /OPT:REF /OPT:ICF
}
}
Define_Build_qwt {
DebugBuild {
message("QWT Debug configuration : win32")
LIBS += $$(QWTHOME)/lib/$$(QWTLIBNAME)d.lib
}
ReleaseBuild {
message("QWT Release configuration : win32")
LIBS += $$(QWTHOME)/lib/$$(QWTLIBNAME).lib
}
}
Define_Build_objDirs {
unix:!macx!ios:!android {
OBJECTS_DIR = obj
}
macx {
OBJECTS_DIR = obj
}
win32 {
DebugBuild {
OBJECTS_DIR = debug/obj
}
ReleaseBuild {
OBJECTS_DIR = release/obj