File: build.bat

package info (click to toggle)
libde265 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,704 kB
  • sloc: cpp: 40,461; sh: 4,159; asm: 1,223; ansic: 507; makefile: 351
file content (43 lines) | stat: -rwxr-xr-x 984 bytes parent folder | download | duplicates (4)
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
42
43
@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 enc265\enc265.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 enc265\enc265.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