Create code generation folder structure in whichever directory the executable calling tiny_codegen was called
| 102 | |
| 103 | // Create code generation folder structure in whichever directory the executable calling tiny_codegen was called |
| 104 | int codegen_create_directories(const char* output_dir, int verbose) { |
| 105 | |
| 106 | // Create output folder (root folder for code generation) |
| 107 | create_directory(output_dir, verbose); |
| 108 | |
| 109 | // Create src folder |
| 110 | char src_dir[PATH_LENGTH]; |
| 111 | sprintf(src_dir, "%s/src/", output_dir); |
| 112 | create_directory(src_dir, verbose); |
| 113 | |
| 114 | // Create tinympc folder |
| 115 | char tinympc_dir[PATH_LENGTH]; |
| 116 | sprintf(tinympc_dir, "%s/tinympc/", output_dir); |
| 117 | create_directory(tinympc_dir, verbose); |
| 118 | |
| 119 | // // Create include folder |
| 120 | // char inc_dir[PATH_LENGTH]; |
| 121 | // sprintf(inc_dir, "%s/include/", output_dir); |
| 122 | // create_directory(inc_dir, verbose); |
| 123 | |
| 124 | return EXIT_SUCCESS; |
| 125 | } |
| 126 | |
| 127 | // Create inc/tiny_data.hpp file |
| 128 | int codegen_data_header(const char* output_dir, int verbose) { |
no test coverage detected