1 /******************************************************************************
2 * FILE PURPOSE: MCBSP LLD example files.
3 ******************************************************************************
4 * FILE NAME: Module.xs
5 *
6 * DESCRIPTION:
7 * This file contains the module specification for MCBSP LLD example files.
8 *
9 * Copyright (C) 2012, Texas Instruments, Inc.
10 *****************************************************************************/
12 /* Load the library utility. */
13 var libUtility = xdc.loadCapsule ("../build/buildlib.xs");
15 /**************************************************************************
16 * FUNCTION NAME : modBuild
17 **************************************************************************
18 * DESCRIPTION :
19 * The function is used to add all the source files in the example
20 * directory into the package.
21 **************************************************************************/
22 function modBuild()
23 {
24 /* Add all the .c files to the release package. */
25 var exampleFiles = libUtility.listAllFiles (".c", "example", true);
26 for (var k = 0 ; k < exampleFiles.length; k++)
27 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];
29 /* Add all the .h files to the release package. */
30 var exampleFiles = libUtility.listAllFiles (".h", "example", true);
31 for (var k = 0 ; k < exampleFiles.length; k++)
32 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];
34 /* Add all the .cmd files to the release package. */
35 var exampleFiles = libUtility.listAllFiles (".cmd", "example", true);
36 for (var k = 0 ; k < exampleFiles.length; k++)
37 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];
39 /* Add all the .cfg files to the release package. */
40 var exampleFiles = libUtility.listAllFiles (".cfg", "example", true);
41 for (var k = 0 ; k < exampleFiles.length; k++)
42 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];
44 /* Add all the make files to the release package. */
45 var exampleFiles = libUtility.listAllFiles ("makefile", "example", true);
46 for (var k = 0 ; k < exampleFiles.length; k++)
47 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];
49 /* Add the .txt to the package */
50 var exampleFiles = libUtility.listAllFiles (".txt", "example", true);
51 for (var k = 0 ; k < exampleFiles.length; k++)
52 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];
54 /* Add all the .mk files to the release package. */
55 var mkFiles = libUtility.listAllFiles (".mk", "example", true);
56 for (var k = 0 ; k < mkFiles.length; k++)
57 Pkg.otherFiles[Pkg.otherFiles.length++] = mkFiles[k];
58 }