1 /******************************************************************************
2 * FILE PURPOSE: Fault Management Util Files.
3 ******************************************************************************
4 * FILE NAME: module.xs
5 *
6 * DESCRIPTION:
7 * This file contains the module specification for FM utility files
8 *
9 * Copyright (C) 2012-2014 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 test
20 * directory into the package.
21 **************************************************************************/
22 function modBuild()
23 {
24 /* Add all the .c files to the release package. */
25 var testFiles = libUtility.listAllFiles (".c", "util", true);
26 for (var k = 0 ; k < testFiles.length; k++)
27 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
29 /* Add all the .h files to the release package. */
30 var testFiles = libUtility.listAllFiles (".h", "util", true);
31 for (var k = 0 ; k < testFiles.length; k++)
32 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
34 /* Add all the .cfg files to the release package. */
35 var testFiles = libUtility.listAllFiles (".cfg", "util", true);
36 for (var k = 0 ; k < testFiles.length; k++)
37 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
39 /* Add all the .cmd files to the release package. */
40 var testFiles = libUtility.listAllFiles (".cmd", "util", true);
41 for (var k = 0 ; k < testFiles.length; k++)
42 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
44 /* Add all the .bld files to the release package. */
45 var testFiles = libUtility.listAllFiles (".bld", "util", true);
46 for (var k = 0 ; k < testFiles.length; k++)
47 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
49 /* Add the .txt to the package */
50 var testFiles = libUtility.listAllFiles (".txt", "util", true);
51 for (var k = 0 ; k < testFiles.length; k++)
52 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
54 /* Add the CCS project files to the release package. */
55 var testFiles = libUtility.listAllFiles (".cproject", "util", true);
56 for (var k = 0 ; k < testFiles.length; k++)
57 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
59 var testFiles = libUtility.listAllFiles (".ccsproject", "util", true);
60 for (var k = 0 ; k < testFiles.length; k++)
61 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
63 var testFiles = libUtility.listAllFiles (".project", "util", true);
64 for (var k = 0 ; k < testFiles.length; k++)
65 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
67 var testFiles = libUtility.listAllFiles (".ini", "util", true);
68 for (var k = 0 ; k < testFiles.length; k++)
69 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
70 }