Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 129d50f

Browse files
adrpoOpenModelica-Hudson
authored andcommitted
fix copy of antlr jars for Linux and Windows
Belonging to [master]: - #2377
1 parent a8f003f commit 129d50f

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

Makefile.common

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ INSTALL_MANDIR = ${DESTDIR}${datadir}/man/
2525
INSTALL_JAVADIR = ${DESTDIR}${datadir}/omc/java
2626
INSTALL_LOCALEDIR = ${DESTDIR}${datadir}/locale
2727

28-
.PHONY : interactive omc release all mkbuilddirs fmi test install-dirs susan susan_all susgen sustst install-openturns runtimeCPPinstall CMinpack metis Cdaskr boehm-gc libzmq $(MINGW_EXTRA_LIBS)
28+
.PHONY : interactive omc release all mkbuilddirs fmi test install-dirs susan susan_all susgen sustst install-openturns runtimeCPPinstall CMinpack metis Cdaskr boehm-gc libzmq $(MINGW_EXTRA_LIBS) antlr-copy
2929

3030
ifeq ($(OMENCRYPTION),yes)
3131
.PHONY : semla semla-clean
@@ -72,11 +72,14 @@ mkbuilddirs:
7272

7373
release: omc
7474

75-
bootstrap-dependencies: graphstream $(BOOTSTRAP_FMIL_DEP) $(MINGW_EXTRA_LIBS) interactive-short libzmq
75+
bootstrap-dependencies: graphstream antlr-copy $(BOOTSTRAP_FMIL_DEP) $(MINGW_EXTRA_LIBS) interactive-short libzmq
7676
$(MAKE) -f $(defaultMakefileTarget) -C Compiler/runtime install_bootstrapping BOOTSTRAPPING=1 OMBUILDDIR=$(OMBUILDDIR)
7777
$(MAKE) -f $(defaultMakefileTarget) -C Compiler builtin OMBUILDDIR=$(OMBUILDDIR)
7878
$(MAKE) -f $(defaultMakefileTarget) -C Parser install_bootstrapping OMBUILDDIR=$(OMBUILDDIR) OMENCRYPTION=$(OMENCRYPTION)
7979

80+
antlr-copy: mkbuilddirs
81+
cp ./3rdParty/antlr/3.2/tool/antlr-3.2.jar ./3rdParty/antlr/3.2/tool/antlr-2.7.7.jar ${builddir_java}/
82+
8083
sim-dependencies: fmi $(BOOTSTRAP_FMIL_DEP) opencl_rt lis metis opc
8184

8285
install-openturns: mkbuilddirs
@@ -87,12 +90,12 @@ $(builddir_share)/omc/omc_communication.idl: Compiler/runtime/omc_communication.
8790
cp -a "$<" "$@"
8891
idl: $(builddir_share)/omc/omc_communication.idl
8992

90-
interactive-common: .testvariables mkbuilddirs boehm-gc idl ModelicaExternalC $(MINGW_EXTRA_LIBS)
93+
interactive-common: .testvariables mkbuilddirs boehm-gc idl ModelicaExternalC antlr-copy $(MINGW_EXTRA_LIBS)
9194

9295
interactive-short: .testvariables interactive-common
9396
$(MAKE) -C SimulationRuntime/c -f $(defaultMakefileTarget) bootstrap-dependencies OMBUILDDIR=$(OMBUILDDIR)
9497

95-
interactive: .testvariables interactive-common fmil lis Cdaskr CMinpack docs libzmq $(SUNDIALS_TARGET) $(IPOPT_TARGET) $(UMFPACK_TARGET) $(MINGW_EXTRA_LIBS)
98+
interactive: .testvariables interactive-common fmil lis Cdaskr CMinpack docs libzmq $(SUNDIALS_TARGET) $(IPOPT_TARGET) $(UMFPACK_TARGET) antlr-copy $(MINGW_EXTRA_LIBS)
9699
$(MAKE) -C SimulationRuntime/c -f $(defaultMakefileTarget) OMBUILDDIR=$(OMBUILDDIR)
97100

98101
opc: .testvariables mkbuilddirs boehm-gc
@@ -199,7 +202,7 @@ all-runtimeCPPinstall: mkbuilddirs CMinpack sundials
199202
omc-and-runtimeCPPinstall: mkbuilddirs CMinpack sundials
200203
$(MAKE) omc runtimeCPPinstall OMBUILDDIR=$(OMBUILDDIR)
201204

202-
runtimeCPP: CMinpack sundials $(MINGW_EXTRA_LIBS)
205+
runtimeCPP: CMinpack sundials antlr-copy $(MINGW_EXTRA_LIBS)
203206
$(MAKE) -C SimulationRuntime/cpp/ -f $(defaultMakefileTarget) OMBUILDDIR=$(OMBUILDDIR)
204207

205208
CMAKE_ARGS=$(filter CMAKE_%, $(MAKEFLAGS))

Makefile.omdev.mingw

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ OPENCL = Yes
5353
LINK = cp -rl
5454
AR = ar
5555
# LIBGC configuration is different for Windows (this file) and Linux (Makefile.in)
56-
MINGW_EXTRA_LIBS=lpsolve sundials antlr-copy
56+
MINGW_EXTRA_LIBS=lpsolve sundials
5757
LIBGC_EXTRA_CONFIGURATION=--enable-threads=posix --enable-munmap=1 #--disable-parallel-mark
5858
MSL321_CONFIG_EXTRA_FLAGS=--enable-static --disable-shared
5959
LIBFMILIB=libfmilib.a
@@ -191,10 +191,6 @@ testlogwindows:
191191
cat testsuite/testsuite-trace.txt | grep "==== Log" | wc -l
192192
cat testsuite/testsuite-trace.txt | grep "==== Log" ; echo DONE!
193193

194-
195-
antlr-copy:
196-
cp ./3rdParty/antlr/3.2/tool/antlr-3.2.jar ./3rdParty/antlr/3.2/tool/antlr-2.7.7.jar ${builddir_java}/
197-
198194
omdev_extra_dlls: install-openturns
199195
echo Copying needed .dlls to the $(OMBUILDDIR)/bin directory
200196
ifeq (MINGW32,$(findstring MINGW32,$(shell uname)))

0 commit comments

Comments
 (0)