Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » Applications created with U++ » Question about releasing and application
Re: Question about releasing and application [message #51995 is a reply to message #51520] Mon, 01 July 2019 08:43 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
I have prepared this two bash in Linux. To consider that it compiles both the GUI and the CLI versions:
- The first packages all files including the not included by umk, calls the second to call "make", and cleans the compiling files.
This .sh is called to package oall to be deployed
- The second calls make.
This .sh is called by user to get the binaries

First call to umk, as it is the GUI version, includes all files. Second call to umk just gets the CLI makefile with proper flags.

I would like to prepare this for Windows, but I do not know how to make it all with MinGW

#!/bin/bash
echo -----------Preparing files
set -x
set -e
echo Remove old binaries
rm -f ./BEMRosetta_cl
rm -f ./BEMRosetta
echo Get GUI version files
umk Aplicaciones BEMRosetta/BEMRosetta    GCC -rx  +GUI,SHARED ./bemrosetta_files
mv ./bemrosetta_files/Makefile ./bemrosetta_files/Makefile_gui
echo Get CLI version files
umk Aplicaciones BEMRosetta/BEMRosetta_cl    GCC -rxM +SHARED ./bemrosetta_files
mv ./bemrosetta_files/Makefile ./bemrosetta_files/Makefile_cli
echo add additional files
cp -r ../BEMRosetta/BEMRosetta/.           ./bemrosetta_files/BEMRosetta/BEMRosetta
cp -r ../BEMRosetta/BEMRosetta_cl/.        ./bemrosetta_files/BEMRosetta/BEMRosetta_cl
cp -r ../../upp/uppsrc/plugin/FT_fontsys/. ./bemrosetta_files/plugin/FT_fontsys
cp -r ../../upp/uppsrc/plugin/lzma/.       ./bemrosetta_files/plugin/lzma
cp -r ../../upp/uppsrc/Turtle/.            ./bemrosetta_files/Turtle
cp -r ../../upp/uppsrc/VirtualGui/.        ./bemrosetta_files/VirtualGui
cp -r ../../upp/uppsrc/Web/.               ./bemrosetta_files/Web
cp -r ../../upp/uppsrc/*.h                 ./bemrosetta_files
cp -r ../../Upp_Libs/GLCanvas/.            ./bemrosetta_files/GLCanvas
cp -r ../../Upp_Libs/Controls4U/.          ./bemrosetta_files/Controls4U
cp -r ../../Upp_Libs/Functions4U/.         ./bemrosetta_files/Functions4U
cp -r ../../Upp_Libs/SysInfo/.             ./bemrosetta_files/SysInfo
cp -r ../../upp/uppsrc/CtrlCore/.          ./bemrosetta_files/CtrlCore
cp ./make_gui.sh ./bemrosetta_files/make_gui.sh
cp ./make_cli.sh ./bemrosetta_files/make_cli.sh
cd ./bemrosetta_files
/bin/bash ./make_gui.sh
/bin/bash ./make_cli.sh
echo -----------Removing temporary files
rm -r -f ./bemrosetta_files/_out
rm -r -f ./bemrosetta_files/BEMRosetta

make_gui.sh
#!/bin/bash
echo -----------Compiling GUI files
set -x 
set -e
rm -f Makefile		
cp ./Makefile_gui ./Makefile
make
cp ./BEMRosetta/BEMRosetta.out ../BEMRosetta


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: UppCAD
Next Topic: MobiView - viewer for environmental mathematical models
Goto Forum:
  


Current Time: Fri Apr 26 18:06:53 CEST 2024

Total time taken to generate the page: 0.03041 seconds