Skip to content

OpenEmbedded/Yocto Project support layer for TotalCross

License

Notifications You must be signed in to change notification settings

TotalCross/meta-totalcross

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This layer provides TotalCross recipes for use with OpenEmbedded and/or Yocto

This layer depends on

To build a TotalCross application you need to add the these layers to your bblayers.conf file or use bitbake-layers utility to add them.

Layer NameURLBranch
OE-Corehttps://git.openembedded.org/openembedded-coredunfell
meta-oehttps://git.openembedded.org/meta-openembeddeddunfell
meta-browserhttps://github.com/OSSystems/meta-browsermaster
meta-javahttps://git.yoctoproject.org/git/meta-javamaster
meta-python2https://git.openembedded.org/meta-python2dunfell

Recipes

This layer provides the following recipes:

Recipe NameDescription
totalcross-launcherTotalCross Launcher
totalcross-vm-coreTotalCross Byte Code
totalcross-vmTotalCross Virtual Machine

Classes

This layer provides a class to package your application. The class aims to help you to package your application into the final image. By default your application will be installed into /usr/share/app-name, this directory can be changed as shown below.

In summary, the class installs the TotalCross Byte Codes into the application directory and renames the TotalCross Launcher to the same name as the application. Also, creates a script called totalcross-run that is used to launch the application and you can add options to run it, e.g. set the SDL_VIDEO_DRIVER, the DISPLAY variable or other values that is mandatory to run the application.

To use the totalcross-app class just add this to your application recipe:

inherit totalcross-app

Variables that can be used in your recipe:

Variable NameDescriptionDefault Value
TOTALCROSS_APP_DIR_NAMEDirectory name for application installation/usr/share
TOTALCROSS_APP_NAMEApplication name${PN}
TOTALCROSS_RUN_OPTIONSOptions to be exported to environment before run the applicationempty

Require distro features

To build and run a TotalCross application you can choose to use X11 or Wayland as graphical backend.

Add to your local.conf or distro configuration the following lines:

  • X11 backend
DISTRO_FEATURES_append = " opengl x11"
  • Wayland backend
DISTRO_FEATURES_append = " opengl wayland"

Contributing

The preferred way to contribute to this layer is to send GitHub pull requests or report problems in GitHub’s issue tracker.

Maintainers

About

OpenEmbedded/Yocto Project support layer for TotalCross

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published