Skip to content

Commit

Permalink
Update OMEdit and 3rdParty to the latest from master:
Browse files Browse the repository at this point in the history
de76be5 Fixes ticket:5326 show public connectors of encrypted package
a0ee60a Chinese translations update from LI Wenhui
5041c4b Better error message
75a82ae Fixed display of absolute font size texts
05c2ae9 Fixes ticket:5801 Use default Modelica specification values
27a58f1 Fixed OMSens so file on Linux & ErrorMessage
9ff2eee Enable OMSens menu items except on MAC
0c2bebf Hide the OMSens menu item until
932130d Added OMSens_Qt to configure script
0c802bd Implemented plugins interface
244a0ca ticket:5778 Fixed users guide links
f60ffbd Don't apply the filter using the path
f89d5be ticket:5760 Preserve the scroll position in documentation browser
0a7b784 Ticket:5682 Added a setting to enable the nfAPINoise flag
54e20a0 Fixes ticket:5733 Don't use the qualified path
b4ce992 Test the parsing of placement annotation string
2a7939a Connect the variables widget with the debugger (#636)
4de19b4 Updated instructions
c3a557c ticket:5671 Handle the coordinate system change
9c5134d Hide the Git menu item until the feature is fully implemented
ee29dc4 Fixes ticket:5716 Clear the items when redrawing the views
c5243a7 ticket:5704 Remove the connection from the scene
028aa55 Show text ellipses when font is below minimum size
0c73ae2 Delete the items that are not part of the scene
724446d Fixed ticket:5691 first remove the item, draw it and then add it
288be75 Allow setting the visualization on repeat
b66d30c Test the OMEdit diagrams
1694d34 Build and run OMEdit testsuite
479e6ff Avoid crashing when placement annotation is in wrong format
cc6e3e8 Restructured & added a GUI testing framework
  • Loading branch information
adrpo committed Mar 24, 2020
1 parent 9d99fda commit 3ef2096
Show file tree
Hide file tree
Showing 488 changed files with 2,290 additions and 857 deletions.
11 changes: 8 additions & 3 deletions Makefile.in
@@ -1,9 +1,11 @@
# main Makefile template for Linux and MacOS, populated by configure

defaultMakefileTarget = Makefile.unix

all: @ALL_TARGETS@ @OMLIBRARY_TARGET@

.PRECIOUS: Makefile
.PHONY: omc omlibrary-all omlibrary-core omplot omedit omnotebook omoptim omshell omc-diff omsimulator ReferenceFiles testsuite-depends
.PHONY: omc omlibrary-all omlibrary-core omplot omedit omedit-testsuite omnotebook omoptim omshell omc-diff omsimulator ReferenceFiles testsuite-depends

omc: omc.skip
omc.skip:
Expand All @@ -17,7 +19,10 @@ omplot.skip: omc
$(MAKE) -C OMPlot
omedit: omedit.skip
omedit.skip: omc omplot omsimulator
$(MAKE) -C OMEdit
$(MAKE) -f $(defaultMakefileTarget) -C OMEdit
omedit-testsuite: omedit-testsuite.skip
omedit-testsuite.skip: omedit
$(MAKE) -f $(defaultMakefileTarget) -C OMEdit/Testsuite
omsimulator: omsimulator.skip
omsimulator.skip:
$(MAKE) -C OMSimulator config-3rdParty CERES=OFF "host_short=@host_short@" CC="@CC@" CXX="@CXX@" CFLAGS="@CFLAGS@" CPPFLAGS="@CPPFLAGS@" CXXFLAGS="@CXXFLAGS@"
Expand All @@ -40,7 +45,7 @@ ReferenceFiles.skip:
$(MAKE) -C testsuite/ReferenceFiles
testsuite-depends: omc-diff ReferenceFiles

SOURCE_DIRS_UTF8=OMEdit/OMEdit OMShell/OMShell OMNotebook/OMNotebook OMOptim/OMOptim OMPlot/OMPlot OMCompiler/Compiler/ OMCompiler/SimulationRuntime/ `bash -c echo testsuite/flattening/libraries/3rdParty/{PlanarMechanics,siemens,SiemensPower,ThermoSysPro}` testsuite/openmodelica/modelicaML testsuite/AVM testsuite/simulation
SOURCE_DIRS_UTF8=OMEdit/ OMShell/OMShell OMNotebook/OMNotebook OMOptim/OMOptim OMPlot/OMPlot OMCompiler/Compiler/ OMCompiler/SimulationRuntime/ `bash -c echo testsuite/flattening/libraries/3rdParty/{PlanarMechanics,siemens,SiemensPower,ThermoSysPro}` testsuite/openmodelica/modelicaML testsuite/AVM testsuite/simulation
SOURCE_DIRS=$(SOURCE_DIRS_UTF8) # testsuite/flattening/libraries/3rdParty/HumMod

bom-error:
Expand Down
5 changes: 4 additions & 1 deletion Makefile.omdev.mingw
Expand Up @@ -34,7 +34,7 @@ BUILDTYPE=Debug
endif


.PHONY: omc omc-diff omlibrary-core omplot omedit omsimulator omnotebook omshell omoptim
.PHONY: omc omc-diff omlibrary-core omplot omedit omedit-testsuite omsimulator omnotebook omshell omoptim

all: omc omc-diff omlibrary-core

Expand All @@ -56,6 +56,9 @@ omplot: omc qtclientsDLLs
omedit: omplot omsimulator qtclientsDLLs
$(MAKE) -f $(defaultMakefileTarget) -C OMEdit OMBUILDDIR=$(OMBUILDDIR)

omedit-testsuite: omedit
$(MAKE) -f $(defaultMakefileTarget) -C OMEdit/Testsuite OMBUILDDIR=$(OMBUILDDIR)

omsimulator:
$(MAKE) -C OMSimulator config-3rdParty
$(MAKE) -C OMSimulator config-OMSimulator OMBUILDDIR=$(OMBUILDDIR)
Expand Down
2 changes: 1 addition & 1 deletion OMCompiler/3rdParty
65 changes: 40 additions & 25 deletions OMEdit/.gitignore
@@ -1,5 +1,6 @@
*.a
*.config
*.unix.config.pri
*.dll
*.exe
*.lib
Expand All @@ -15,32 +16,46 @@
/configure
/install-sh
/Makefile
/OMEdit*/bin/
/OMEdit*/build/release/
/OMEdit/generatedfiles/
/OMEdit/OMEditGUI/.qmake.stash
/OMEdit/OMEditGUI/Debugger/Parser/GDBMIOutput.tokens
/OMEdit/OMEditGUI/Debugger/Parser/GDBMIOutputLexer.c
/OMEdit/OMEditGUI/Debugger/Parser/GDBMIOutputLexer.h
/OMEdit/OMEditGUI/Debugger/Parser/GDBMIOutputParser.c
/OMEdit/OMEditGUI/Debugger/Parser/GDBMIOutputParser.h
/OMEdit/OMEditGUI/Debugger/Parser/libGDBMIParser.a
/OMEdit/OMEditGUI/Debugger/Parser/Makefile.lib.unix
/OMEdit/OMEditGUI/Makefile
/OMEdit/OMEditGUI/Makefile.Debug
/OMEdit/OMEditGUI/Makefile.Release
/OMEdit/OMEditGUI/object_script.*
/OMEdit/OMEditGUI/omc_config.h
/OMEdit/OMEditGUI/OMC/Parser/OMCOutput.tokens
/OMEdit/OMEditGUI/OMC/Parser/OMCOutputLexer.c
/OMEdit/OMEditGUI/OMC/Parser/OMCOutputLexer.cpp
/OMEdit/OMEditGUI/OMC/Parser/OMCOutputLexer.h
/OMEdit/OMEditGUI/OMC/Parser/OMCOutputParser.c
/OMEdit/OMEditGUI/OMC/Parser/OMCOutputParser.cpp
/OMEdit/OMEditGUI/OMC/Parser/OMCOutputParser.h
/OMEdit/OMEditGUI/OMEditGUI.pro.*
/OMEdit/OMEditGUI/version.h
/bin/
/build/release/
.qmake.stash
omc_config.h
OMEdit.pro.*
/OMEditLIB/generatedfiles/
/OMEditLIB/.qmake.stash
/OMEditLIB/Debugger/Parser/GDBMIOutput.tokens
/OMEditLIB/Debugger/Parser/GDBMIOutputLexer.c
/OMEditLIB/Debugger/Parser/GDBMIOutputLexer.h
/OMEditLIB/Debugger/Parser/GDBMIOutputParser.c
/OMEditLIB/Debugger/Parser/GDBMIOutputParser.h
/OMEditLIB/Debugger/Parser/libGDBMIParser.a
/OMEditLIB/Debugger/Parser/Makefile.lib.unix
/OMEditLIB/Makefile
/OMEditLIB/Makefile.Debug
/OMEditLIB/Makefile.Release
/OMEditLIB/object_script.*
/OMEditLIB/OMC/Parser/OMCOutput.tokens
/OMEditLIB/OMC/Parser/OMCOutputLexer.c
/OMEditLIB/OMC/Parser/OMCOutputLexer.cpp
/OMEditLIB/OMC/Parser/OMCOutputLexer.h
/OMEditLIB/OMC/Parser/OMCOutputParser.c
/OMEditLIB/OMC/Parser/OMCOutputParser.cpp
/OMEditLIB/OMC/Parser/OMCOutputParser.h
/OMEditLIB/OMEditLIB.pro.*
/OMEditGUI/.qmake.stash
/OMEditGUI/Makefile
/OMEditGUI/Makefile.Debug
/OMEditGUI/Makefile.Release
/OMEditGUI/object_script.*
/OMEditGUI/OMEditGUI.pro.*
/OMEditGUI/version.h
/qjson-0.8.1/build/
/qmake.sh
Makefile.unix
qm.stamp
Testsuite/Makefile
Testsuite/Testsuite.pro.*
Testsuite/*/generatedfiles/
Testsuite/*/Makefile
Testsuite/*/Makefile.Debug
Testsuite/*/Makefile.Release
46 changes: 0 additions & 46 deletions OMEdit/Makefile.in

This file was deleted.

68 changes: 61 additions & 7 deletions OMEdit/Makefile.omdev.mingw
Expand Up @@ -18,20 +18,74 @@ endif
AR = ar
CMAKE = $(OMDEVMSYS)/bin/cmake/bin/cmake
CMAKE_TARGET = "MSYS Makefiles"
QMAKE=qmake

builddir_bin=$(OMBUILDDIR)/bin
builddir_lib=$(OMBUILDDIR)/lib/omc
builddir_share=$(OMBUILDDIR)/share/
resourcedir=./OMEditLIB/Resources/nls/
CONFIG_DEFAULT_OPENMODELICAHOME = "$(OMBUILDDIR)/"
LSB_RELEASE = $(shell cmd /c "ver")

NAME=OMEdit
EXE=.exe
SHREXT=.dll
LIB=libOMEdit
LIBEXE=.a

omedit: mkbuilddirs install
cp -puf ../common/pre-commit.sh $(shell git rev-parse --git-dir)/hooks/pre-commit

mkbuilddirs:
mkdir -p $(OMBUILDDIR)/share/omedit/nls
mkdir -p $(buildlib)
mkdir -p $(buildbin)
mkdir -p $(builddir_lib)
mkdir -p $(builddir_bin)

omedit: mkbuilddirs qjson-build
$(MAKE) -C OMEdit/OMEditGUI -f Makefile.omdev.mingw
cp -puf ../common/pre-commit.sh $(shell git rev-parse --git-dir)/hooks/pre-commit
install: build OMEditLIB/Resources/nls/qm.stamp
cp -p $(resourcedir)/*.qm $(builddir_share)/omedit/nls/
cp -p bin/$(NAME)$(EXE) $(builddir_bin)
cp -p bin/$(LIB)$(LIBEXE) $(OMBUILDDIR)/lib/omc

OMEditLIB/Resources/nls/qm.stamp: OMEditLIB/OMEditLIB.pro OMEditLIB/Resources/nls/*.ts
lrelease $<
@touch $@

build: omc_config.h $(NAME)
$(MAKE) -f Makefile

$(NAME): Makefile
$(MAKE) -f Makefile

parsergen:
$(MAKE) -C OMEditLIB/Debugger/Parser -f Makefile.lib.omdev.mingw

Makefile: parsergen qjson-build OMEdit.pro
$(QMAKE) -r "CONFIG+=release"
MakefileClean: OMEdit.pro
$(QMAKE) -r "CONFIG+=release"

omc_config.h:
@echo Current omhome: "$(CONFIG_DEFAULT_OPENMODELICAHOME)"
@echo Current lsb_release: "$(LSB_RELEASE)"
@if test -f omc_config.h; \
then \
echo "#define CONFIG_DEFAULT_OPENMODELICAHOME \"$(CONFIG_DEFAULT_OPENMODELICAHOME)\"" > omc_config.h.tmp; \
echo "#define LSB_RELEASE \"$(LSB_RELEASE)\"" >> omc_config.h.tmp; \
diff omc_config.h omc_config.h.tmp > /dev/null; \
if [ $$? -eq 0 ]; then echo No change in version; rm omc_config.h.tmp; \
else echo version has changed. updating omc_config.h; \mv omc_config.h.tmp omc_config.h; \
fi; \
else \
echo "#define CONFIG_DEFAULT_OPENMODELICAHOME \"$(CONFIG_DEFAULT_OPENMODELICAHOME)\"" > omc_config.h; \
echo "#define LSB_RELEASE \"$(LSB_RELEASE)\"" >> omc_config.h; \
fi;

clean:
clean: MakefileClean
cd qjson && rm -rf build
$(MAKE) -C OMEdit/OMEditGUI -f Makefile.omdev.mingw clean
$(MAKE) -C OMEditLIB/Debugger/Parser -f Makefile.lib.omdev.mingw clean
test ! -f Makefile || $(MAKE) -f Makefile clean
rm -f bin/$(NAME)$(EXE) bin/$(LIB)$(LIBEXE)
rm -rf omc_config.h Makefile OMEditLIB/debug OMEditLIB/release OMEditLIB/generatedfiles OMEditLIB/Makefile OMEditLIB/Makefile.Debug OMEditLIB/Makefile.Release OMEditLIB/object_script.* OMEditGUI/debug OMEditGUI/release OMEditGUI/Makefile OMEditGUI/Makefile.Debug OMEditGUI/Makefile.Release

qjson-build:
test -d qjson
Expand Down
71 changes: 71 additions & 0 deletions OMEdit/Makefile.unix.in
@@ -0,0 +1,71 @@
all: omedit

resourcedir=./OMEditLIB/Resources/nls/

NAME=OMEdit
APP=@APP@
LIB=libOMEdit
LIBEXE=.a
QMAKE=@QMAKE@
LRELEASE=@LRELEASE@

CMAKE=CC="@CC@" CXX="@CXX@" CFLAGS="@CFLAGS@" CPPFLAGS="@CPPFLAGS@" cmake
CMAKE_TARGET = "Unix Makefiles"

install: build OMEditLIB/Resources/nls/qm.stamp
cp -p $(resourcedir)/*.qm @OMBUILDDIR@/share/omedit/nls/
if [ "$(APP)" = ".app" ]; then mkdir -p @OMBUILDDIR@/Applications/ ; cp -rp bin/OMEdit$(APP) @OMBUILDDIR@/Applications/ ; else cp -p bin/OMEdit @OMBUILDDIR@/bin/; fi
cp -p bin/$(LIB)$(LIBEXE) @OMBUILDDIR@/lib/@host_short@/omc/

OMEditLIB/Resources/nls/qm.stamp: OMEditLIB/OMEditLIB.pro OMEditLIB/Resources/nls/*.ts
$(LRELEASE) $<
@touch $@

$(NAME): parsergen qjson-build Makefile OMEditLIB/OMEditLIB.unix.config.pri OMEditGUI/OMEditGUI.unix.config.pri omc_config.h
$(MAKE) -f Makefile

build: $(NAME)

parsergen:
$(MAKE) -C OMEditLIB/Debugger/Parser -f Makefile.lib.unix

Makefile: OMEdit.pro OMEditLIB/OMEditLIB.unix.config.pri OMEditGUI/OMEditGUI.unix.config.pri
@test ! -f $@ || rm $@
$(QMAKE) -r
Makefile.unix: Makefile.unix.in
(cd @top_builddir@; ./config.status)
OMEditLIB/OMEditLIB.unix.config.pri: OMEditLIB/OMEditLIB.unix.config.pri.in
(cd @top_builddir@ && ./config.status)
OMEditGUI/OMEditGUI.unix.config.pri: OMEditGUI/OMEditGUI.unix.config.pri.in
(cd @top_builddir@ && ./config.status)
omc_config.h: omc_config.h.in
(cd @top_builddir@ && ./config.status)

mkbuilddirs:
mkdir -p @OMBUILDDIR@/share/omedit/nls @OMBUILDDIR@/bin @OMBUILDDIR@/lib/@host_short@/omc
omedit: mkbuilddirs install

clean:
test ! -f qjson/build/Makefile || $(MAKE) -C qjson/build clean
rm -rf qjson/build
$(MAKE) -C OMEditLIB/Debugger/Parser -f Makefile.lib.unix clean
test ! -f Makefile || $(MAKE) -f Makefile clean
rm -f bin/OMEdit$(APP) bin/$(LIB)$(LIBEXE)
rm -rf omc_config.h Makefile OMEditLIB/debug OMEditLIB/release OMEditLIB/generatedfiles OMEditLIB/Makefile OMEditLIB/Makefile.Debug OMEditLIB/Makefile.Release OMEditLIB/object_script.* OMEditGUI/debug OMEditGUI/release OMEditGUI/Makefile OMEditGUI/Makefile.Debug OMEditGUI/Makefile.Release

distclean: clean
rm -rf config.log config.sub config.status install-sh autom4te.cache config.guess configure Makefile.unix OMEditLIB/OMEditLIB.unix.config.pri OMEditGUI/OMEditGUI.unix.config.pri

config.status: configure
./config.status -recheck
configure: configure.ac common/m4/corba.m4 common/m4/omhome.m4 common/m4/qmake.m4
autoconf

qjson-build:
test -d qjson
mkdir -p qjson/build/include/qjson
(cd qjson/build && test -f Makefile || CC="@CC@" CXX="@CXX@" CFLAGS="@CFLAGS@" CPPFLAGS="@CPPFLAGS@" CXXFLAGS="@CXXFLAGS@" $(CMAKE) .. @QT4BUILD@ -G $(CMAKE_TARGET))
test -f qjson/build/lib/libqjson$(SHREXT) || $(MAKE) -C qjson/build
test ! `uname` = Darwin || install_name_tool -id @rpath/libqjson.0.dylib qjson/build/lib/libqjson.0.dylib
cp -a qjson/build/lib/libqjson*$(SHREXT)* @OMBUILDDIR@/lib/@host_short@/omc/
cp -a qjson/src/*.h qjson/build/include/qjson
38 changes: 38 additions & 0 deletions OMEdit/OMEdit.pro
@@ -0,0 +1,38 @@
#
# This file is part of OpenModelica.
#
# Copyright (c) 1998-CurrentYear, Open Source Modelica Consortium (OSMC),
# c/o Linköpings universitet, Department of Computer and Information Science,
# SE-58183 Linköping, Sweden.
#
# All rights reserved.
#
# THIS PROGRAM IS PROVIDED UNDER THE TERMS OF GPL VERSION 3 LICENSE OR
# THIS OSMC PUBLIC LICENSE (OSMC-PL) VERSION 1.2.
# ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
# OF THE OSMC PUBLIC LICENSE OR THE GPL VERSION 3, ACCORDING TO RECIPIENTS CHOICE.
#
# The OpenModelica software and the Open Source Modelica
# Consortium (OSMC) Public License (OSMC-PL) are obtained
# from OSMC, either from the above address,
# from the URLs: http://www.ida.liu.se/projects/OpenModelica or
# http://www.openmodelica.org, and in the OpenModelica distribution.
# GNU version 3 is obtained from: http://www.gnu.org/copyleft/gpl.html.
#
# This program is distributed WITHOUT ANY WARRANTY; without
# even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE, EXCEPT AS EXPRESSLY SET FORTH
# IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE CONDITIONS OF OSMC-PL.
#
# See the full OSMC Public License conditions for more details.
#
#/

TEMPLATE = subdirs

CONFIG += ordered

SUBDIRS = OMEditLIB \
OMEditGUI

OMEditGUI.depends = OMEditLIB

0 comments on commit 3ef2096

Please sign in to comment.