1 /******************************************************************************
2 * FILE PURPOSE: CSL example module specification file.
3 ******************************************************************************
4 * FILE NAME: Module.xs
5 *
6 * DESCRIPTION:
7 * This file contains the module specification for the CSL arch folder .
8 *
9 * Copyright (C) 2016, 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", "arch", true);
26 for (var k = 0 ; k < exampleFiles.length; k++)
27 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];
29 /* Add all the .asm files to the release package. */
30 var exampleFiles = libUtility.listAllFiles (".asm", "arch", true);
31 for (var k = 0 ; k < exampleFiles.length; k++)
32 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];
34 /* Add all the .h files to the release package. */
35 var exampleFiles = libUtility.listAllFiles (".h", "arch", true);
36 for (var k = 0 ; k < exampleFiles.length; k++)
37 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];
39 /* Add all the .mk files to the release package. */
40 var exampleFiles = libUtility.listAllFiles (".mk", "arch", true);
41 for (var k = 0 ; k < exampleFiles.length; k++)
42 Pkg.otherFiles[Pkg.otherFiles.length++] = exampleFiles[k];
43 }