|
Post by bigbass on Dec 21, 2020 23:13:29 GMT 1
Hello I am testing cmake builds they are working correctly *however if you are a new bacon user and stumbled here the official bacon package is here for your OS www.basic-converter.org/with that notice said here we go with cmake builds -------------------------------------------------------------------------- cmake building bacongui-gtksourceforge.net/p/bassix-gtk3-webkit-browser/wiki/Cmake-bacongui-gtk/version gets updated on the wiki page easier to maintain and less forum space needed for downloads and images
|
|
|
Post by Pjot on Dec 22, 2020 18:35:43 GMT 1
Thanks Joe,
That works as it should on my Mageia Linux!
Best regards Peter
|
|
|
Post by bigbass on Dec 23, 2020 0:54:42 GMT 1
Hello Peter
Thanks for testing on your Mageia Linux good to see it works
another test that your bacongui-gtk app is clean code!
Joe
----------------------------------- I tested with clang on debian also
some extra options that weren't listed in the README.txt make help
The following are some of the valid targets for this Makefile: ... all (the default if no target is provided) ... clean ... depend ... install/strip ... install/local ... bacongui-gtk ... uninstall ... rebuild_cache ... list_install_components ... edit_cache ... install ... src/bacongui-gtk.bac.o ... src/bacongui-gtk.bac.i ... src/bacongui-gtk.bac.s
and if we were using clang
this works
sudo make install/strip
because clang doesn't have the -s option like gcc for strip
|
|
|
Post by bigbass on Dec 26, 2020 9:08:30 GMT 1
Hello
I removed the setup script and wrote the code in cmake now its 100% pure cmake which makes it more portable and reduced code
I tested ninja and code lite builds also with cmake they are easy to add if needed it is in the README
now the commands are
cmake .
cmake --build .
and if needed
sudo make install
removed file to save space on the forum CMAKE_BACONGUI_GTK-4.3-004.tar.gz
update to tun off verbose now looks cleaner
|
|
|
Post by bigbass on Dec 29, 2020 0:31:25 GMT 1
Hello this is starting to get fun I added CPack that generates code to package many formats I added support for debian *.deb packages and RPM *.rpm packages in the CMakeLists.txt special note for rpm you can build rpm packages on a debian distro but you have to install the rmpbuild tools I did that and built rpm packages but turned it offwith a test condition by default but if you need it its there the result debian package is bacongui-gtk_4.3.0_armhf.deb the result RPM package is bacongui-gtk-4.3.0-1.armv7l.rpm the screen shot shows the new command cpackremoved file to save space on the forum CMAKE_BACONGUI_GTK-4.3.0.tar.gz I will do this later for bacongui-fltk and bacon to get more practice with CPack Joe
|
|
|
Post by bigbass on Dec 29, 2020 20:19:45 GMT 1
Hello
these are the finals I went back and made bacon the primary package which will install the docs and syntax and icons
bacongui-gtk and bacongui-fltk will only install the binaries and desktop files
this way you can safely uninstall bacongui-gtk or bacongui-fltk and not have any missing files for bacon
all three packages now have debian package makers and rpm if needed
I am happy we have cmake to install and build packages and it was fun doing that for bacon and bacon apps
*I spent a lot of time building packages for slackware for many years and any way you want to look at it doing it in cmake was much easier removed file to save space on the forum CMAKE_BACONGUI_GTK-4.3.0.tar.gz
Joe
|
|
|
Post by bigbass on Feb 2, 2021 23:30:59 GMT 1
|
|