Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create compilation scripts #245

Open
pingdynasty opened this issue Aug 22, 2018 · 1 comment
Open

Create compilation scripts #245

pingdynasty opened this issue Aug 22, 2018 · 1 comment
Assignees

Comments

@pingdynasty
Copy link
Collaborator

pingdynasty commented Aug 22, 2018

We need a script to compile Heavy source code into C for user download.
The script will be invoked by the server and will receive all relevant patch information on the command line.

After creating this script we will most likely also create scripts for the other compilation types, to replace patch-builder.php.

Key information that needs to be passed is patch parameter names and details, and directories.

The invoking process must first create a temporary build directory with write access, and the script must also have write access to the target directory where the generated output is placed (in this case a zip file with C source code).

Environment variables / command line parameters

PAR_1_IO=input
PAR_1_TYPE=float
PAR_2_NAME=Gain
PAR_80_NAME="Sync Up"
PAR_80_TYPE=bool
PATCHNAME="Funky Filter"
SOURCE_DIR=...
TARGET_DIR=...
BUILD_DIR=...
MAIN_FILENAME=xyz

Strings must be quoted if they contain whitespace or other non-alphanumeric characters.
PAR_x_NAME is the name of parameter with id x
PAR_x_TYPE is float or bool, default float
PAR_x_IO is input or output, default input
SOURCE_DIR absolute path to source files

Script name
compile-heavy.sh

Example invokation
PAR_4_NAME=Gain PATCHNAME="Simple Gain" SOURCE_DIR=... ./compile-heavy.sh

@pingdynasty pingdynasty self-assigned this Aug 22, 2018
@pingdynasty
Copy link
Collaborator Author

I've created a script in the hvcc branch of OwlProgram that runs hvcc with the right parameters and, if successful, creates a patch.zip file with the C source files in the target directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant