/****************************************************************************** * FILE PURPOSE: RM DOCS Module specification file. ****************************************************************************** * FILE NAME: module.xs * * DESCRIPTION: * This file contains the module specification for the RM Documentation. * * Copyright (C) 2012-2013, Texas Instruments, Inc. *****************************************************************************/ /* Load the library utility. */ var libUtility = xdc.loadCapsule ("../build/buildlib.xs"); /************************************************************************** * FUNCTION NAME : modBuild ************************************************************************** * DESCRIPTION : * The function is used to build all the components of the documentation **************************************************************************/ function modBuild() { /* Create the actual PROLOGUE Section for the Documentation.*/ Pkg.makePrologue += "release: rm_document_generation\n"; Pkg.makePrologue += "rm_document_generation:\n"; Pkg.makePrologue += "\t @echo -------------------------------------------------------\n"; Pkg.makePrologue += "\t @echo Generating RM Documentation\n"; Pkg.makePrologue += "\t doxygen docs/Doxyfile\n"; Pkg.makePrologue += "\t @echo RM Documentation Generated \n"; Pkg.makePrologue += "\t @echo -------------------------------------------------------\n"; /* Add the documentation file to the package. */ Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/rmDocs.chm"; Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/tifooter.htm"; Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/tiheader.htm"; Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/tilogo.gif"; Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/titagline.gif"; Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/doxygen"; Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/RM_SoftwareManifest.pdf"; Pkg.otherFiles[Pkg.otherFiles.length++] = "docs/ReleaseNotes_RM.pdf"; if (lldInstallType == "SETUP") { /* Generate the ECLIPSE Plugin Generation */ Pkg.makePrologue += "all: eclipse_plugin_generation\n"; Pkg.makePrologue += "eclipse_plugin_generation:\n"; Pkg.makePrologue += "\t @echo -------------------------------------------------------\n"; Pkg.makePrologue += "\t @echo RM Eclipse Plugin Generation\n"; Pkg.makePrologue += "\t xs xdc.tools.eclipsePluginGen -o . -x ./eclipseDocs/sample.xml -c ./eclipseDocs/toc_cdoc_sample.xml\n"; Pkg.makePrologue += "\t @echo RM Eclipse Plugin Generated \n"; Pkg.makePrologue += "\t @echo -------------------------------------------------------\n"; } }