Dev:Dragon

Overview
dragon consists of 2 main components:


 * A packaging system
 * A ninja buildfile generator

It uses Theos components for logos processing, but does not require an existing theos installation.

Prerequisites
Requires

Usage
Dragon projects are configured via a single DragonMake file, regardless of how many subprojects you have.

You can specify subprojects and their information here. This allows for compiling slices in parallel easily, along with keeping things much more organized.

DragonMake Syntax
DragonMake follows fairly standard YAML syntax, with a singular escape character,.

For single line variables, you can use bash syntax to evaluate a command with

A single  denotes a ninja variable. For using bash syntax in variables, one can use  to represent a. For example, one could use  to get the value of an environment variable in a command.

Using the below items will parse output through xargs and add entries to the list the item is in:  will find all files in a specific directory.

is also provided, in the event more complex manipulation is needed.

Example Project
This should serve as a guideline for how a project should be laid out. You can declare as many projects as you want, it's all going to be crammed into the same deb.

Note: You dont need to create a control file if the relevant info is included in this one.

DragonMake Variables
Please pay attention to the provided example to understand how these should be laid out in a file.

Yaml parsing is done via python3.

dragon Command Line Arguments
All of these can be combined and ran at the same time, if needed.

All of these arguments can be specified using only the first character ( for example)

dragon v1.3 -=-=- usage: dragon [commands]

Building -=-=- do - Build and Install c|clean - clean old build files. b|build|make - build and package your project r|remote - Build using remote server sr|rconf - Setup remote server

Installation -=-=- s|device - Set build device IP/Port i|install - Install to build device sim - Install to the simulator instead of a device rs|respring - Respring the current build device dr|devicerun - Run anything after this flag on device sn|send - Install a .deb to the device

Tools -=-=- d|debug [Process Name] - Start a debugging server on device and connect to it (Can be used with the install flag as well) exp|export - Tell ninja to create a compile_commands.json f|flutter - Build with flutter before doing anything else ch|checkra1n - Open Checkra1n GUI chc|checkra1ncli - Open Checkra1n CLI

Debugging -=-=- vn - Print clang/ld/etc. commands and flags vd - echo every bash command in the main dragon file vg - DragonGen verbositiy. norm - Doesn't delete build.ninja after building. ddebug - Enable all debug flags

-=-=-