Build the project using an external tool#

You can also build with any external tool and create a package by copying the content of a directory. All you need is this directory to reproduce the structure desired in the package.

Assuming that your external tool uses deploy_dir to store its output, we would require a directory structure like

$ find deploy_dir -printf "%y %p\n"
d deploy_dir
d deploy_dir/usr
d deploy_dir/opt/c_test_prog
f deploy_dir/opt/c_test_prog/c_test_prog

which mimics the structure of a linux root file system tree.

You can then use the --copy-dir option of the simpleswitch-generate-package the Generate a SimpleSwitch™ package

  $ simpleswitch-generate-package --name simpleswitch-example --copy-dir deploy_dir \
 --template C --startup-command /opt/c_test_prog/c_test_prog

Or if you want to be able to debug your application:

$ simpleswitch-generate-package --name simpleswitch-example --copy-dir deploy_dir \
 --template C --startup-command "while true; do gdbserver :2159 /opt/c_test_prog/c_test_prog ; done"