Skip to content

Commit bb4056b

Browse files
committed
Remove Modelica3D from OMCompiler (moved to OMLibraries)
1 parent 060a0ac commit bb4056b

File tree

3 files changed

+1
-84
lines changed

3 files changed

+1
-84
lines changed

Makefile.common

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
inclu.PHONY : all omc release clean .testvariables mkbuilddirs modelica3d
1+
inclu.PHONY : all omc release clean .testvariables mkbuilddirs
22

33
unexport PREFIX
44

@@ -295,13 +295,11 @@ clean: fmil-clean opencl_rt_clean gc-clean lis-clean runtimeCPPclean CMinpack-cl
295295
(cd Compiler && $(MAKE) -f $(defaultMakefileTarget) clean OMBUILDDIR=$(OMBUILDDIR))
296296
(cd Parser && $(MAKE) -f $(defaultMakefileTarget) clean OMBUILDDIR=$(OMBUILDDIR))
297297
$(MAKE) -C Compiler/Template -f $(defaultMakefileTarget) clean OMBUILDDIR=$(OMBUILDDIR)
298-
if test -f 3rdParty/modelica3d/build/Makefile; then $(MAKE) -C 3rdParty/modelica3d/build clean OMBUILDDIR=$(OMBUILDDIR); fi
299298
# remove ModelicaExternalC stuff
300299
if test -f 3rdParty/ModelicaExternalC/BuildProjects/autotools/Makefile; then $(MAKE) -C 3rdParty/ModelicaExternalC/BuildProjects/autotools/ distclean OMBUILDDIR=$(OMBUILDDIR); fi
301300
# remove Ipopt/Makefile if there is no Ipopt/Ipopt/Makefile to run configure again!
302301
if test -f 3rdParty/Ipopt/Ipopt/Makefile; then true; else rm -f 3rdParty/Ipopt/Makefile || true; fi
303302
if test -f 3rdParty/Ipopt/Makefile; then $(MAKE) -C 3rdParty/Ipopt distclean || true; fi
304-
(rm -rf 3rdParty/modelica3d/build)
305303
(rm -rf SimulationRuntime/build_c)
306304
rm -rf build/share build/lib build/include build/bin/OMShell* build/bin/OMNotebook* \
307305
build/bin/omc build/bin/omc.exe build/bin/omc-diff build/bin/omc-diff.exe \

Makefile.in

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -84,34 +84,6 @@ omc-no-sim:
8484
$(MAKE) -C Compiler/boot
8585
$(MAKE) omlibrary
8686

87-
fake_modelica3d:
88-
# create fake files for debian package
89-
mkdir -p $(DESTDIR)/usr/$(LIB_OMC) $(DESTDIR)/usr/lib/omlibrary-modelica3d
90-
echo "void fake(void){}" | $(CC) -c -x c - -fPIC -o fake.o
91-
$(CC) -shared fake.o -o $(DESTDIR)/usr/lib/libhuhu.so
92-
ar r $(DESTDIR)/usr/$(LIB_OMC)/libmodbus.a fake.o
93-
ar r $(DESTDIR)/usr/$(LIB_OMC)/libmodcount.a fake.o
94-
touch $(DESTDIR)/usr/lib/omlibrary-modelica3d/.empty-dir
95-
rm fake.o
96-
97-
modelica3d:
98-
ifeq (@MODELICA3D@,)
99-
@echo Skipping Modelica3D
100-
else
101-
cd 3rdParty/modelica3d && mkdir -p build
102-
cd 3rdParty/modelica3d/build && $(CMAKE_RPATH) -DCMAKE_VERBOSE_MAKEFILE:Bool=ON -DCMAKE_COLOR_MAKEFILE:Bool=OFF -DOSG_BACKEND=1 -DUSE_OMC=0 $(BOOST_INCLUDE) ..
103-
$(MAKE) -C 3rdParty/modelica3d/build
104-
cp -p 3rdParty/modelica3d/build/backends/osg-gtk/libm3d-osg-gtk$(SHREXT) 3rdParty/modelica3d/build/lib/proc3d/libproc3d$(SHREXT) build/lib/@host_short@
105-
test ! `uname` = Darwin || install_name_tool -id @rpath/libproc3d.dylib build/lib/@host_short@/libproc3d.dylib
106-
test ! `uname` = Darwin || install_name_tool -id @rpath/libm3d-osg-gtk.dylib build/lib/@host_short@/libm3d-osg-gtk.dylib
107-
test ! `uname` = Darwin || install_name_tool -change "`pwd`/3rdParty/modelica3d/build/lib/proc3d/libproc3d.dylib" "@rpath/libproc3d.dylib" build/lib/@host_short@/libm3d-osg-gtk.dylib
108-
cp -p 3rdParty/modelica3d/build/lib/modcount/libmodcount.a 3rdParty/modelica3d/build/lib/modbus/libmodbus.a build/$(LIB_OMC)/
109-
mkdir -p build/lib/omlibrary-modelica3d/blender2.59 build/lib/omlibrary-modelica3d/osg-gtk/
110-
cp -p 3rdParty/modelica3d/examples/multibody/src/modelica/*.mo build/lib/omlibrary-modelica3d/
111-
cp -p 3rdParty/modelica3d/backends/blender2.59/dbus-server.py build/lib/omlibrary-modelica3d/blender2.59/
112-
cp -p 3rdParty/modelica3d/backends/osg-gtk/python/dbus-server.py build/lib/omlibrary-modelica3d/osg-gtk/
113-
endif
114-
11587
lis: lis-configure
11688
@echo Building Lis from sources
11789
$(MAKE) -C 3rdParty/lis-1.4.12/src
@@ -127,49 +99,6 @@ lis-clean:
12799
if test -f 3rdParty/lis-1.4.12/Makefile; then $(MAKE) -C 3rdParty/lis-1.4.12 clean; fi
128100
rm -f 3rdParty/lis-1.4.12/Makefile
129101

130-
fix-svn-props:
131-
tools/apply_autoprops.py --config .svnprops .
132-
fix-bom:
133-
find . -type f \( ! -path '*/.svn/*' -or -path '*/.git/*' -prune \) | while read file;do sed -i '1 s/^\xef\xbb\xbf//' "$$file";done
134-
135-
SOURCE_DIRS=$(SOURCE_DIRS_UTF8) "libraries/Modelica 2.2.2" testsuite/flattening/libraries/3rdParty/HumMod
136-
SOURCE_DIRS_UTF8=OM*/ Compiler/ SimulationRuntime/ `bash -c echo libraries/{BioChem 1.0,ModelicaAdditions,Modelica_LinearSystems2 2.3,Modelica 1.6,ModelicaServices 1.0,ModelicaServices 1.0 modelica3d,Modelica 3.1,SimpleFluid,Modelica 3.2.1,SimpleVisual.mo}` `bash -c echo testsuite/flattening/libraries/3rdParty/{PlanarMechanics,siemens,SiemensPower,ThermoSysPro}` testsuite/openmodelica/modelicaML testsuite/AVM testsuite/simulation
137-
138-
bom-error:
139-
rm -f bom-error.log bom-error.sh
140-
echo "#!/bin/sh\ntest \"\`head -c3 \\\"\$$1\\\"\`\" = \"\`/bin/echo -ne \"\\xef\\xbb\\xbf\"\`\" && (echo \$$1 contains BOM >> bom-error.log)" > bom-error.sh
141-
find $(SOURCE_DIRS) -type f \( ! -path '*/.svn/*' -or -path '*/.git/*' -prune \) \( ! -path 'libraries/Modelica 3.2.1/*' -prune \) -exec sh bom-error.sh "{}" ';'
142-
@if test -e bom-error.log; then cat bom-error.log; fi
143-
@test ! -e bom-error.log
144-
rm -f bom-error.log bom-error.sh
145-
146-
tab-error:
147-
! find $(SOURCE_DIRS) -regextype posix-egrep -regex '.*\.(cpp|c|h|mo|tpl)$$' -exec echo -n "{} " ';' -exec grep -c " " '{}' ';' | \
148-
grep -v " 0\$$" | egrep -v '/GenTest/|/antlr-3.2/|Parser/MetaModelica_|Parser/ParModelica_|Parser/Modelica_3_|Parser/ModelicaParser'
149-
# Trims trailing whitespace and replaces tabs with spaces
150-
fix-whitespace:
151-
find . -type f \( ! -path '*/.svn/*' -or -path '*/.git/*' -prune \) -regextype posix-egrep -regex '.*\.(cpp|c|h|mo|tpl)$$' -exec sh -c 'sed -i -e "s/ / /g" -e "s/ *\$$//" "{}"' ";"
152-
153-
spellcheck:
154-
grep -oE 'gettext[(]["]([^"]|([\\]["]))*["]' `ls Compiler/*/*.mo | grep -v Flags.mo` | sed "s/[\\%]./ /g" | aspell -p ./.openmodelica.aspell --mode=ccpp --lang=en_US list | sort -u | sed 's/^/aspell: /' | tee aspell.log
155-
@test ! -s aspell.log
156-
thumbsdb-error:
157-
! find . -name "Thumbs.db" | grep Thumbs.db
158-
159-
utf8-error:
160-
rm -f utf8-error.log*
161-
find $(SOURCE_DIRS_UTF8) -regextype posix-egrep -regex '.*\.(cpp|c|h|mo|tpl)$$' -exec bash -c "iconv -f UTF-8 -t UTF-8 '{}' -o /dev/null 2>utf8-error.log2 || (echo -n '{}: ' && head -n1 utf8-error.log2)" ';' 2>&1 > utf8-error.log
162-
# Also detect some valid UTF-8 that were obviously fracked up by Eclipse on Windows.
163-
find $(SOURCE_DIRS_UTF8) -regextype posix-egrep -regex '.*\.(cpp|c|h|mo|tpl)$$' -exec bash -c "grep 'Link[^A-Za-z0-9_,.;&-]*ping' '{}' | grep -v Linköping && (echo '{}: Failed Linköping test')" ';' 2>&1 >> utf8-error.log
164-
@cat utf8-error.log
165-
@test ! -s utf8-error.log
166-
rm -f utf8-error.log*
167-
168-
utf8-iconv:
169-
rm -f tmp
170-
find $(SOURCE_DIRS) -regextype posix-egrep -regex '.*\.(cpp|c|h|mo|tpl)$$' -exec bash -c "iconv -f UTF-8 -t UTF-8 '{}' -o /dev/null 2>tmp || (rm -f tmp && cp '{}' tmp && iconv -f ISO-8859-1 -t UTF-8 tmp -o '{}' && echo Converted {} to UTF-8)" ';'
171-
rm -f tmp
172-
173102
.PRECIOUS: Makefile
174103

175104
Makefile: Makefile.in config.status

configure.ac

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ AC_SUBST(LIBNSL)
1818
AC_SUBST(LIBLPSOLVE55)
1919
AC_SUBST(NO_LPLIB)
2020
AC_SUBST(LPSOLVEINC)
21-
AC_SUBST(MODELICA3D)
2221
AC_SUBST(OPENCL)
2322
AC_SUBST(USE_GRAPH)
2423
AC_SUBST(USE_METIS)
@@ -613,15 +612,6 @@ AS_IF([test "x$with_UMFPACK" = xyes],
613612

614613
m4_include([common/m4/corba.m4])
615614

616-
AC_MSG_CHECKING([if the user wants Modelica3D])
617-
MODELICA3D="yes"
618-
AC_ARG_ENABLE(modelica3d, [ --disable-modelica3d Modelica3D library (dependencies checked by cmake later on; enabled by default)],[test "xno" = x"$enableval" && MODELICA3D=""],[])
619-
if test -z "$MODELICA3D" ; then
620-
AC_MSG_RESULT([no])
621-
else
622-
AC_MSG_RESULT([yes])
623-
fi
624-
625615
AC_MSG_CHECKING([for OpenCL])
626616
AC_CHECK_HEADER([CL/cl.h],[OPENCL="Yes"],[
627617
AC_CHECK_HEADER([OpenCL/cl.h],[OPENCL="Yes"],[OPENCL="No"])

0 commit comments

Comments
 (0)