1 /******************************************************************************\r
2 * FILE PURPOSE: TCP3D Example files.\r
3 ******************************************************************************\r
4 * FILE NAME: module.xs\r
5 *\r
6 * DESCRIPTION: \r
7 * This file contains the module specification for TCP3D Driver Unit Example\r
8 * Files\r
9 *\r
10 * Copyright (C) 2009, Texas Instruments, Inc.\r
11 *****************************************************************************/\r
12 \r
13 /* Load the library utility. */\r
14 var libUtility = xdc.loadCapsule ("../build/buildlib.xs");\r
15 \r
16 var otherFiles = [\r
17 ];\r
18 \r
19 /**************************************************************************\r
20 * FUNCTION NAME : modBuild\r
21 **************************************************************************\r
22 * DESCRIPTION :\r
23 * The function is used to add all the source files in the example \r
24 * directory into the package.\r
25 **************************************************************************/\r
26 function modBuild() \r
27 {\r
28 /* Add all the .c files to the release package. */\r
29 var exampleFiles = libUtility.listAllFiles (".c", "example");\r
30 for (var k = 0 ; k < exampleFiles.length; k++)\r
31 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];\r
32 \r
33 /* Add all the .h files to the release package. */\r
34 var exampleFiles = libUtility.listAllFiles (".h", "example");\r
35 for (var k = 0 ; k < exampleFiles.length; k++)\r
36 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];\r
37 \r
38 /* Add all the .cfg files to the release package. */\r
39 var exampleFiles = libUtility.listAllFiles (".cfg", "example");\r
40 for (var k = 0 ; k < exampleFiles.length; k++)\r
41 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];\r
42 \r
43 /* Add all the .cmd files to the release package. */\r
44 var exampleFiles = libUtility.listAllFiles (".cmd", "example");\r
45 for (var k = 0 ; k < exampleFiles.length; k++)\r
46 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];\r
47 \r
48 /* Add all the .txt files to the release package. */\r
49 var exampleFiles = libUtility.listAllFiles (".txt", "example");\r
50 for (var k = 0 ; k < exampleFiles.length; k++)\r
51 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];\r
52 \r
53 /* Add all the .txt files to the release package. */\r
54 var exampleFiles = libUtility.listAllFiles (".ini", "example");\r
55 for (var k = 0 ; k < exampleFiles.length; k++)\r
56 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];\r
57 \r
58 /* Add all the .txt files to the release package. */\r
59 var exampleFiles = libUtility.listAllFiles (".dat", "example/testvectors");\r
60 for (var k = 0 ; k < exampleFiles.length; k++)\r
61 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];\r
62 \r
63 /* Add all the .txt files to the release package. */\r
64 var exampleFiles = libUtility.listAllFiles (".bin", "example/testvectors");\r
65 for (var k = 0 ; k < exampleFiles.length; k++)\r
66 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];\r
67 \r
68 /* Add all other files to the release package. */\r
69 for (var k = 0 ; k < otherFiles.length; k++)\r
70 Pkg.otherFiles[Pkg.otherFiles.length++] = otherFiles[k];\r
71 }\r