one-file (1f) project is a collection of utilities and tools primarily written for console use, with text output, or using SDL 1.2 for framebuffer "gui stuff".
When individually compiled, the source is appended, either as TEXT, or ZIP, to the resulting binary. That source contains command line options to extract that source, as well as the command line used to compile said source.
There are no hard and fast rules, except "name-1f", must append source, and source must contain compile time command, and any "depends" info.
one-file (1f) is based on an original idea implemented in the late 1990's Windows app SpASM32, a self editing & self compiling 32bit windows assembler, that attached its source to itself, or a programs source code to the resulting programs compiled binary.
Either download all sources in the zip, or get the individual source files from the project homepage.
SDL coding is not bound to any windowing system.
Features
- resulting binary contains source and instructions
- uses a shell script to generate a skeleton source file
- uses SDL 1.2 for frame buffer console output
- works on any posix complient OS with a compiler
- works on any posix complient OS with SDL 1.2
- works on any OS with a compiler, after re-source-ing
- SDL 1.2 only needed for graphics apps (like sdlSlide-1f)
- SDL 1.2 needed for sdlPlay-1f (SDL media player)
- SDL 1.2 apps work on framebuffer console or (X) Windows