[Pkg-pascal-devel] License of several new files in castle-engine

Michalis Kamburelis michalis.kambi at gmail.com
Sun May 11 19:07:55 UTC 2014


Paul Gevers wrote:
> Hmm, I didn't mean creation of *.pas files from *.png (as you don't seem
> to include those in your source anyways),

Actually, we do include in sources the generated Pascal files with 
images. Otherwise, you would not be able to compile the engine without 
running image_to_pas first.

(And having some base image data available in the binary makes it 
comfortable to run compiled programs, regardless of how/on what OS the 
program is installed --- beneficial for trivial programs and examples.)

For example, images in castle_game_engine/src/ui/opengl/gui-images/ are 
processed to sources in 
castle_game_engine/src/ui/opengl/castlecontrolsimages.{pas,image_data} . 
This can done automatically by 
castle_game_engine/src/ui/opengl/gui-images/Makefile .

>but I meant creation of *.png
> files from *.xcf files (if they exist).

The sources include all *.xcf files, if only they exist. Usually they 
don't (most of the images are trivial UI stuff, just created and edited 
as png). When the .xcf file exists, it is always in the same directory 
and with the same basename as corresponding .png.

There is no script/Makefile to do the conversion xcf->png, but this is 
just a simple export from GIMP to png. You could automate it running 
GIMP in batch mode, I didn't see the need for it.

> No hurries. We should still package pasdoc as it annoys me more that we
> don't create the documentation from its source.

And PasDoc package would be useful on it's own for other people and 
projects :)

Regards,
Michalis




More information about the Pkg-pascal-devel mailing list