1 /******************************************************************************\r
2 * FILE PURPOSE: FFTC Driver Example files.\r
3 ******************************************************************************\r
4 * FILE NAME: module.xs\r
5 *\r
6 * DESCRIPTION: \r
7 * This file contains the module specification for FFTC Driver Example\r
8 *\r
9 * Copyright (C) 2009, Texas Instruments, Inc.\r
10 *****************************************************************************/\r
11 \r
12 /* Load the library utility. */\r
13 var libUtility = xdc.loadCapsule ("../build/buildlib.xs");\r
14 \r
15 /**************************************************************************\r
16 * FUNCTION NAME : modBuild\r
17 **************************************************************************\r
18 * DESCRIPTION :\r
19 * The function is used to add all the example project and source files\r
20 * to the FFTC package.\r
21 **************************************************************************/\r
22 function modBuild() \r
23 {\r
24 /* Add all the .c files to the release package. */\r
25 var testFiles = libUtility.listAllFiles (".c", "example");\r
26 for (var k = 0 ; k < testFiles.length; k++)\r
27 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
28 \r
29 /* Add all the .h files to the release package. */\r
30 var testFiles = libUtility.listAllFiles (".h", "example");\r
31 for (var k = 0 ; k < testFiles.length; k++)\r
32 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
33 \r
34 /* Add all the .cfg files to the release package. */\r
35 var testFiles = libUtility.listAllFiles (".cfg", "example");\r
36 for (var k = 0 ; k < testFiles.length; k++)\r
37 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
38 \r
39 /* Add all the .cmd files to the release package. */\r
40 var testFiles = libUtility.listAllFiles (".cmd", "example");\r
41 for (var k = 0 ; k < testFiles.length; k++)\r
42 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
43 \r
44 /* Add all the .txt files to the release package. */\r
45 var testFiles = libUtility.listAllFiles (".txt", "example");\r
46 for (var k = 0 ; k < testFiles.length; k++)\r
47 Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];\r
48 }\r
49 \r