The command line tool makewebpage.exe recursively scans a directory and all its subdirectories for possible web contents and converts it to static char arrays.
Copy the Windows executable makewebpage.exe (makewebpagef28.exe for F28x DSPs) to your PC and add this directory to your environment path variable or use setup_makewebpage.exe (setup_makewebpagef28.exe for F28x DSPs) from the utilities directory. setup_makewebpage.exe is executed automatically, if you use a D.SignT installer for the netlib support SW.
Four options control the output
If the outfilename is not specified, makewebpage uses by default "webpage" as outfilename. Example call:
Two files are generated (default option for outfilename assumed):
webpage.c contains a static char array and a direntry_type structure for each found web element. E.g. the dicon.gif file from the HTTP server examples will be converted to
After the generation process is finished the file webpage.c must be included in your main application to add the webpage content to your project.
Option -dDATASECTION controls the preprocessor #pragma DATA_SECTION directive before each array. Make sure this section exists in your linker command file.
Option -pPath specifies a search path for the web contents
Use option -z for previously gzip compressed files. The file name must be identical to the original uncompressed file.
Converted files in the webpage directories are:
The second generated file webpage.gen contains a list of all generated web elements and pages including the webserver identifier name "webserver". E.g.:
This file may be included in your application or the user_type structure may be defined manually in your code when a different sequence of pages is required. The first entry (&dicon in the example above) is the default webpage. If another page is required as default or index page, use function http_set_index_page().