This repository has been archived by the owner on Sep 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRULES_OPI
74 lines (62 loc) · 2.09 KB
/
RULES_OPI
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
# these environment definitions are suggested to suppress
# console notices when converting:
#
# CAQTDM_DISPLAY_PATH
# description:
# defines paths to directories containing (possibly)
# included screen files
# adl2ui notice:
# compositeFileParse: Cannot open file: /usr/local/synApps/support/areaDetector/ADSimDetector/simDetectorApp/op/adl/ADSetup.adl
# example definition:
# export CAQTDM_DISPLAY_PATH=/usr/local/synApps/support/areaDetector/ADCore/ADApp/op/ui/autoconvert
#
# stylesheet.qss
# description:
# to include "stylesheet.qss" and suppress the notice from
# adl2ui, append its directory to CAQTDM_DISPLAY_PATH
# adl2ui notice:
# adl2ui -- file = <../../adl/simDetector.adl>
# adl2ui -- file <stylesheet.qss> could not be loaded, is 'CAQTDM_DISPLAY_PATH' </usr/local/epics/extensions/src/caQtDM/caQtDM_Tests/> defined?
# adl2ui -- could be a problem!
# example definition:
# export STYLESHEET_QSS_DIR=/usr/local/epics/synApps/support/std/stdApp/op/ui/stylesheet.qss
# export CAQTDM_DISPLAY_PATH+=:$(STYLESHEET_QSS_DIR)
ADLs := $(filter-out $(wildcard $(ADL_DIR)/*_BAK.adl), $(wildcard $(ADL_DIR)/*.adl))
ifdef ADL2UI
UIs := $(subst $(ADL_DIR),$(UI_DIR),$(ADLs:.adl=.ui))
$(UI_DIR)%.ui: $(ADL_DIR)%.adl
$(ADL2UI) $<
$(MV) -f $(notdir $@) $(dir $@)
endif
ifdef ADL2EDL
ifeq (,$(wildcard $(EDMFONTFILE)))
ADL2EDL_FONTS=''
else
ADL2EDL_FONTS=-f $(EDMFONTFILE)
endif
EDLs := $(subst $(ADL_DIR),$(EDL_DIR),$(ADLs:.adl=.edl))
$(EDL_DIR)%.edl: $(ADL_DIR)%.adl
$(ADL2EDL) -rgb $(ADL2EDL_FONTS) $< $@
endif
ifdef CSS
OPIs := $(subst $(ADL_DIR),$(OPI_DIR),$(ADLs:.adl=.opi))
$(OPI_DIR)%.opi: $(ADL_DIR)%.adl
$(CSS) $<
$(MV) -f $(ADL_DIR)/$(notdir $@) $(dir $@)
endif
ifdef PHOEBUS
BOBs := $(subst $(ADL_DIR),$(BOB_DIR),$(ADLs:.adl=.bob))
$(BOB_DIR)%.bob: $(ADL_DIR)%.adl
$(PHOEBUS) -force -output $(BOB_DIR) $<
endif
build install : $(UIs) $(EDLs) $(OPIs) $(BOBs)
clean.ui :
$(RM) $(UIs)
clean.edl :
$(RM) $(EDLs)
clean.opi :
$(RM) $(OPIs)
clean.bob :
$(RM) $(BOBs)
opiclean :
$(RM) $(UIs) $(EDLs) $(OPIs) $(BOBs)