Generation working and Compilation of MARTe components
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
#############################################################
|
||||
#
|
||||
# Copyright 2015 F4E | European Joint Undertaking for ITER
|
||||
# and the Development of Fusion Energy ('Fusion for Energy')
|
||||
#
|
||||
# Licensed under the EUPL, Version 1.1 or - as soon they
|
||||
# will be approved by the European Commission - subsequent
|
||||
# versions of the EUPL (the "Licence");
|
||||
# You may not use this work except in compliance with the
|
||||
# Licence.
|
||||
# You may obtain a copy of the Licence at:
|
||||
#
|
||||
# http://ec.europa.eu/idabc/eupl
|
||||
#
|
||||
# Unless required by applicable law or agreed to in
|
||||
# writing, software distributed under the Licence is
|
||||
# distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
||||
# express or implied.
|
||||
# See the Licence for the specific language governing
|
||||
# permissions and limitations under the Licence.
|
||||
#
|
||||
# $Id: Makefile.inc 3 2012-01-15 16:26:07Z aneto $
|
||||
#
|
||||
#############################################################
|
||||
OBJSX=JAWFRecordGAM.x
|
||||
|
||||
PACKAGE=GAMs
|
||||
|
||||
ROOT_DIR=../../../obj
|
||||
MAKEDEFAULTDIR=$(MARTe2_DIR)/MakeDefaults
|
||||
include $(MAKEDEFAULTDIR)/MakeStdLibDefs.$(TARGET)
|
||||
|
||||
INCLUDES += -I.
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/BareMetal/L0Types
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/BareMetal/L1Portability
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/BareMetal/L2Objects
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/BareMetal/L3Streams
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/BareMetal/L4Messages
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/BareMetal/L4Configuration
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/BareMetal/L5GAMs
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/Scheduler/L1Portability
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/Scheduler/L3Services
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/Scheduler/L4Messages
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/FileSystem/L1Portability
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/FileSystem/L3Streams
|
||||
|
||||
|
||||
|
||||
all: $(OBJS) $(SUBPROJ) \
|
||||
$(BUILD_DIR)/JAWFRecordGAM$(LIBEXT) \
|
||||
$(BUILD_DIR)/JAWFRecordGAM$(DLLEXT)
|
||||
echo $(OBJS)
|
||||
|
||||
include $(MAKEDEFAULTDIR)/MakeStdLibRules.$(TARGET)
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
#+======================================================================
|
||||
# $HeadURL: https://svnpub.iter.org/codac/iter/codac/dev/units/m-codac-unit-templates/tags/CODAC-CORE-6.0.0/templates/cpp/main/c++/Makefile $
|
||||
# $Id: Makefile 83098 2018-01-08 13:23:38Z cesnikt $
|
||||
#
|
||||
# Project : CODAC Core System
|
||||
#
|
||||
# Description : C++ Makefile
|
||||
#
|
||||
# Author : This file was generated by CODAC development toolkit
|
||||
#
|
||||
# Copyright (c) : 2010-2018 ITER Organization,
|
||||
# CS 90 046
|
||||
# 13067 St. Paul-lez-Durance Cedex
|
||||
# France
|
||||
#
|
||||
# This file is part of ITER CODAC software.
|
||||
# For the terms and conditions of redistribution or use of this software
|
||||
# refer to the file ITER-LICENSE.TXT located in the top level directory
|
||||
# of the distribution package.
|
||||
#
|
||||
#-======================================================================
|
||||
|
||||
SUBDIRS=$(dir $(wildcard */Makefile))
|
||||
|
||||
BOLD=\e[1m
|
||||
NC=\e[0m
|
||||
|
||||
all:
|
||||
|
||||
%:
|
||||
@$(foreach dir, $(SUBDIRS), echo -e "$(BOLD)Building $(dir:/=)...$(NC)" && $(MAKE) -C $(dir) $@ &&) :
|
||||
@@ -0,0 +1,57 @@
|
||||
importClass(Packages.org.csstudio.opibuilder.scriptUtil.PVUtil);
|
||||
importClass(Packages.org.csstudio.opibuilder.scriptUtil.ColorFontUtil);
|
||||
|
||||
var table = widget.getTable();
|
||||
|
||||
//Fill PV Name only once
|
||||
if (widget.getVar("firstTime") == null) {
|
||||
widget.setVar("firstTime", true);
|
||||
// Fill table only with non EGU pv's
|
||||
for (var i=0;pv=pvs[i];i++) {
|
||||
// earlier when by default pv.getName() was giving name with 'epics://' prefix. Ripping it off before showing was done below
|
||||
table.setCellText(i, 0, pv.getName().trim());
|
||||
if (!pv.isConnected()) {
|
||||
table.setCellText(i/2, 1, "Disconnected");
|
||||
}
|
||||
}
|
||||
// Based on value of macro SHOW_PLC_IOC, enable visibility of PLCIOCDetailsTable
|
||||
if (widget.getPropertyValue("name") == 'PLCIOCDetailsTable') {
|
||||
if (display.getMacroValue("SHOW_PLC_IOC") == "true") {
|
||||
widget.setPropertyValue("visible", "true");
|
||||
display.getWidget("PLCIOCDetailsLabel").setPropertyValue("visible", "true");
|
||||
}
|
||||
}
|
||||
}
|
||||
//find index of the trigger PV
|
||||
var i=0;
|
||||
while (triggerPV != pvs[i]) {
|
||||
i+=1;
|
||||
}
|
||||
|
||||
var pvValue = PVUtil.getString(triggerPV).trim();
|
||||
var eugValue = table.getCellText(i, 4);
|
||||
if (eugValue != "") {
|
||||
pvValue = pvValue+" "+eugValue;
|
||||
}
|
||||
table.setCellText(i, 1, pvValue);
|
||||
table.setCellText(i, 2, PVUtil.getStatus(triggerPV).trim());
|
||||
table.setCellText(i, 3, PVUtil.getSeverityString(triggerPV).trim());
|
||||
|
||||
var s = PVUtil.getSeverity(triggerPV);
|
||||
|
||||
color = ColorFontUtil.WHITE;
|
||||
if( s == 0) {
|
||||
color = ColorFontUtil.GREEN;
|
||||
}
|
||||
else if( s == 1) {
|
||||
color = ColorFontUtil.RED;
|
||||
}
|
||||
else if( s == 2) {
|
||||
color = ColorFontUtil.YELLOW;
|
||||
}
|
||||
else if( s == 3) {
|
||||
color = ColorFontUtil.PINK;
|
||||
}
|
||||
|
||||
|
||||
table.setCellBackground(i, 3, color);
|
||||
Reference in New Issue
Block a user