File: build.bat

package info (click to toggle)
libde265 0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,320 kB
  • ctags: 2,191
  • sloc: cpp: 25,294; sh: 11,345; ansic: 505; makefile: 184
file content (41 lines) | stat: -rwxr-xr-x 914 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@echo off
if "%1" == "" goto all
if /i %1 == x86       goto x86
if /i %1 == x64       goto x64
if /i %1 == amd64     goto x64
goto all

:all
echo "Compiling libde265"
cmd /c "%0" x86
cmd /c "%0" x64
pause
goto :eof

:x86
echo "Compiling libde265 (x86)"
call "%VS110COMNTOOLS%\..\..\VC\vcvarsall.bat" x86
nmake -f Makefile.vc7 /nologo /s /c
if not exist bin_x86\lib (
    mkdir bin_x86\lib
)
copy /y dec265\dec265.exe bin_x86\
copy /y libde265\libde265.dll bin_x86\
copy /y libde265\libde265.lib bin_x86\lib\
copy /y libde265\libde265.exp bin_x86\lib\
goto exit

:x64
echo "Compiling libde265 (x64)"
call "%VS110COMNTOOLS%\..\..\VC\vcvarsall.bat" x64
nmake -f Makefile.vc7 /nologo /s /c
if not exist bin_x64\lib (
    mkdir bin_x64\lib
)
copy /y dec265\dec265.exe bin_x64\
copy /y libde265\libde265.dll bin_x64\
copy /y libde265\libde265.lib bin_x64\lib\
copy /y libde265\libde265.exp bin_x64\lib\
goto exit

:exit