Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

buddy.txt Language

Christopher So edited this page Sep 8, 2016 · 1 revision

buddy.txt is the build file for the complete project. A minimal build file would look like this:

requires: 'BUDDY', 'GCC';

name: 'MyProject';
version: '0.0.1';

bin('bin/');

variant dev {
    srcSet('src/'),
    includes('include/'),
    run: GCC(build)
};

dependencies {
    conan "Poco/1.7.3@lasote/stable"
};
  1. Requires tells CPPBuddy the plugins that should be used.
  2. The name of the project
  3. The version of the project
  4. The bin dir must be declared (only one folder allowed)
  5. At least one variant which will be running at execution. A variant consist of a variant name (in this case: dev) and at least one source and zero or more include directories. It also specifies a 'before_run', 'run' and 'after_run' command. Note: At least one command is required
  6. If you have any dependencies, which should be downloaded from a service (e.g. 'conan' for conan.io) and the package
Clone this wiki locally