PASDK-585:Update build scripts
[processor-sdk/performance-audio-sr.git] / scripts / build_dtsx_libs.bat
1 @echo off
2 :: *************************************************************************
3 ::  FILE           : build_dtsx_libs.bat
4 ::  DESCRIPTION    :
5 ::
6 ::     Builds ARM/DSP DTS:X decoder component libraries.
7 ::     Assumes setup_env.bat has been called.
8 ::
9 :: *************************************************************************
11 @echo Executing:  %~fn0
13 if "%PASDK_ROOT_DIR%" == "" set PASDK_ROOT_DIR=%~dp0..
15 set PASDK_ROOT_DIR_FS=%PASDK_ROOT_DIR:\=/%
16 set ARM_CGT_INSTALL_DIR_DTSX_DEC_FS=%ARM_CGT_INSTALL_DIR_DTSX_DEC:\=/%
19 :: Save path
20 set PATH_ORG=%PATH%
21 set path=%CYGWIN_INSTALL_DIR%;%PATH%
23 set DTSX_SOURCE_PATH=..\3p-ip-dts\Source_Code\sdk-dts-uhd-no-guidedparma-src
26 pushd %DTSX_SOURCE_PATH%\parma-dec\misc\build\a15\Release
27 echo.
28 echo %cd%
29 echo gmake clean
30 gmake clean
31 echo.
32 echo %cd%
33 echo gmake A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
34 gmake A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
35 popd
37 pushd %DTSX_SOURCE_PATH%\la-strm-reconstruction\misc\build\a15\Release
38 echo.
39 echo %cd%
40 echo gmake clean
41 gmake clean
42 echo.
43 echo %cd%
44 echo gmake A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
45 gmake A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
46 popd
48 pushd %DTSX_SOURCE_PATH%\lbr\misc\build\a15\lbr\Release
49 echo.
50 echo %cd%
51 echo gmake clean
52 gmake clean
53 echo.
54 echo %cd%
55 echo gmake A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
56 gmake A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
57 popd
59 pushd  %DTSX_SOURCE_PATH%\lbr\misc\build\a15\lbrdec\Release
60 echo.
61 echo %cd%
62 echo gmake clean
63 gmake clean
64 echo.
65 echo %cd%
66 echo gmake A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
67 gmake A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
68 popd
70 pushd %DTSX_SOURCE_PATH%\dts-3d\misc\build\a15\Release
71 echo.
72 echo %cd%
73 echo gmake clean
74 gmake clean
75 echo.
76 echo %cd%
77 echo gmake A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
78 gmake A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
79 popd
81 pushd %DTSX_SOURCE_PATH%\dts-base\misc\build\a15\Release
82 echo.
83 echo %cd%
84 echo gmake clean
85 gmake clean
86 echo.
87 echo %cd%
88 echo gmake A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
89 gmake A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
90 popd
92 pushd %DTSX_SOURCE_PATH%\common-flib\misc\build\a15\Release
93 echo.
94 echo %cd%
95 echo gmake clean
96 gmake clean
97 echo.
98 echo %cd%
99 echo gmake A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
100 gmake A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
101 popd
103 pushd %DTSX_SOURCE_PATH%\dtshd-c-decoder\misc\build\a15\lib\Release
104 echo.
105 echo %cd%
106 echo gmake clean
107 gmake clean
108 echo.
109 echo %cd%
110 echo PASDK_ROOT=%PASDK_ROOT_DIR_FS% A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
111 gmake PASDK_ROOT=%PASDK_ROOT_DIR_FS% A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
112 popd
114 pushd %DTSX_SOURCE_PATH%\alg\misc\build\a15\Release
115 echo.
116 echo %cd%
117 echo gmake clean
118 gmake clean
119 echo.
120 echo %cd%
121 echo gmake PASDK_ROOT=%PASDK_ROOT_DIR_FS% A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
122 gmake PASDK_ROOT=%PASDK_ROOT_DIR_FS% A15TOOLS=%ARM_CGT_INSTALL_DIR_DTSX_DEC_FS%
123 popd
125 set path=%PATH_ORG%
127 set PASDK_ROOT_DIR_FS=
128 set ARM_CGT_INSTALL_DIR_DTSX_DEC_FS=
129 set PATH_ORG=
130 set DTSX_SOURCE_PATH=