Packages & packaging …

Since the first source code line of mvCompiler has gone 4 years and now it can run too complex scripts in conjunction with numerous resources like images. This article is devoted to special question: “How to distribute them across many people?” There is the answer… Packages!

Since 0.98.900 “c-breeze” version system support two type of packages. Internal one which is embedded directly into system and externals in kind of command line tools ( i.e.: bz, tar, zip and other packagers ). By default mvCompiler support the only internal mvcsspack packager. The source code of packager ( .mvcsspack packager ) could be compiled separately for other systems to maintain this format.

To configure package decoder you need to modify _mvcpkg.cfg configuration file and setup appropriate parameters. The example of default package configuration:

//
// .root. - executable root path placeholder
// .psep. - path separator ( depending on OS build is / or \ )
// .file. - input archive file placeholder
// .dir.  - destination path placeholder
//

decoder.internal.Z
{
  mask: .zip
  try: continue
}
decoder.internal.Packager
{
  mask: .mvcsspack
  try: stop
}
decoder.external
{
  mask: .zip .zf
  tool: .root..psep.unzip
  flags: -o .root..psep..file. -d .dir.
  success: 0
  try: stop
}

To run the below sample packages there are some standard command line keys which are supported by system framework part. They are:

  -pkg [name.mvcpkg.x]   : run package
  -pkg-pack ...          : pack folder files
  -pkg-unpack ...        : unpack mvCompiler package

The example of command line to launch demonstration package:

mvcompiler_gcc -pkg mvcmp.demo.1.building.mvcpkg.zip

The results of packages below were recorded into mp4 video samples. Enjoy…!

picture.demo.1.building The Building. ( .jpeg )

video ( .mp4 )
package ( .mvcsspack )
package ( .zip )

picture.demo.2.largo Wide screen. ( .jpeg )

video ( .mp4 )
package ( .zip )

picture.demo.3.snow Snow show. ( .jpeg )

video ( .mp4 )
package ( .zip )

picture.demo.4.slide Space runway. ( .jpeg )

video ( .mp4 )
package ( .zip )

The mirror of mvCompiler Scripting System is available by the following reference:
http://mvcompiler.wordpress.com/

Advertisements
search previous next tag category expand menu location phone mail time cart zoom edit close