cc7ebbd9f8e6d093f941f4b826e10d4fb9f37c66
[ep-processor-libraries/dsplib.git] / ti / dsplib / examples / package.bld.xdt
1 %%{
2 /*!
3  *  This template implements the package.bld for bundle package,
4  */  
5     var TARGET = $args[0];
6     var prjtarget = $args[1];
7 %%}
8 /******************************************************************************
9  * FILE PURPOSE: Build description for package DSPLIB Example
10  ******************************************************************************
11  * FILE NAME: package.bld  
12  *
13  * DESCRIPTION: This file contains build attributes for package DSPLIB Example
14  *
15  * TABS: NONE
16  *
17  ******************************************************************************/
18  
19  var Package=xdc.loadCapsule('ti/mas/swtools/CommonBld.xs');
21 %if (!prjtarget.toString().match(674)) {                        
22   Package.ccsProjects.push({ pjtName:        "FFT_Example",
23                                                                            location:       "fft_ex",
24                                                                            buildArtifact:  "executable",
25                                                                            srcFiles:       ["fft_ex/fft_example.c","fft_ex/lnk.cmd","fft_ex/gen_twiddle_fft16x16.h","fft_ex/gen_twiddle_fft16x16.c","fft_ex/gen_twiddle_fft16x32.h","fft_ex/gen_twiddle_fft16x32.c","fft_ex/gen_twiddle_fft32x32.c","fft_ex/gen_twiddle_fft32x32.h"],
26                                                                            cFlags:         " --mem_model:data=far -i../../../../packages",
27                                                                            targets:        ["`prjtarget`"]       
28                                                                    });
29 %}                                   
30        
31 %if (!prjtarget.toString().match(64)) {                                
32   Package.ccsProjects.push({ pjtName:        "FFT_SP_Example",
33                                                                            location:       "fft_sp_ex",
34                                                                            buildArtifact:  "executable",
35                                                                            srcFiles:       ["fft_sp_ex/fft_example_sp.c","fft_sp_ex/lnk.cmd"],
36                                                                            cFlags:         " --mem_model:data=far -i../../../../packages",
37                                                                            targets:        ["`prjtarget`"]       
38                                                                    });
39 %}                                   
41 %if (prjtarget.toString().match(66)) {                                                             
42   Package.ccsProjects.push({ pjtName:        "QRD_dp_least_squares_Example",
43                                                                            location:       "QRD_dp_least_squares_ex",
44                                                                            buildArtifact:  "executable",
45                                                                            srcFiles:       ["QRD_dp_least_squares_ex/DSPF_dp_qrd_example.c","QRD_dp_least_squares_ex/lnk.cmd"],
46                                                                            cFlags:         " --mem_model:data=far -i../../../../packages",
47                                                                            targets:        ["`prjtarget`"]       
48                                                                    });
50   Package.ccsProjects.push({ pjtName:        "SVD_dp_rank_Example",
51                                                                            location:       "SVD_dp_rank_ex",
52                                                                            buildArtifact:  "executable",
53                                                                            srcFiles:       ["SVD_dp_rank_ex/DSPF_dp_svd_example.c","SVD_dp_rank_ex/lnk.cmd"],
54                                                                            cFlags:         " --mem_model:data=far -i../../../../packages",
55                                                                            targets:        ["`prjtarget`"]       
56                                                                    });
57 %}                                   
58                           
59 /**********************************************************************************************
60   The main package.bld routine starts here 
61 ***********************************************************************************************/
63   /* Set up the target architecture */
64   Package.targets = [C64P, C64P_elf, C66, C66_elf, C674, C674_elf, VC98];
66   /* Parse XDC Arguments */
67   Package.parseArgs(arguments);
68   
69   /* Create Executable */ 
70   Package.createProjects();
72   /* Create Archive */ 
73   Package.createArchive();
75   /* Clean Package */
76   Package.packageClean();
77   
78 /* nothing past this point */