Skip to content

Commit 9541385

Browse files
Jonas YangJonas Yang
authored andcommitted
0 parents  commit 9541385

File tree

15,694 files changed

+4479271
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

15,694 files changed

+4479271
-0
lines changed

.hg_archival.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
repo: af772163477a1a16dff657811a161f02bcb0f133
2+
node: db6a95b859109a703b3c208501b8cd306820c089
3+
branch: default
4+
latesttag: 3.7
5+
latesttagdistance: 170

.hgignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
syntax: glob
2+
out/
3+
# *.obj
4+
# *.tlog
5+
# *.sbr
6+
# *.pdb
7+
# *.log
8+
# *.db
9+
# *~
10+
# *.swp

BuildScript/StampVer.exe

64 KB
Binary file not shown.

BuildScript/build.cmd

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
@echo off
2+
3+
set PATH=%CD%/hg_bin;%PATH%
4+
set TOPDIR=%CD%/../
5+
6+
echo Updating SPlayer Mecurial repo
7+
hg pull --update -R ../
8+
9+
10+
echo Trying to clone splayer-pkg repo
11+
hg clone https://splayer-pkg.googlecode.com/hg/ %TOPDIR%/thirdparty/pkg
12+
cd %TOPDIR%/thirdparty/pkg
13+
hg import %TOPDIR%/BuildScript/sphash.vs2012.patch
14+
cd %TOPDIR%/BuildScript
15+
16+
echo Updating splayer-pkg project ...
17+
hg pull -u -R ../thirdparty/pkg
18+
hg update -c -R ../thirdparty/pkg
19+
if %ERRORLEVEL% NEQ 0 goto error
20+
21+
echo Trying to clone sinet repo
22+
hg clone https://sinet-lib.googlecode.com/hg/ ../thirdparty/sinet
23+
24+
echo Updating sinet project ...
25+
hg pull -u -R ../thirdparty/sinet
26+
hg update -c -R ../thirdparty/sinet
27+
cd %TOPDIR%/thirdparty/sinet
28+
hg import %TOPDIR%/BuildScript/sinet.vs2012.patch
29+
cd %TOPDIR%/BuildScript
30+
if %ERRORLEVEL% NEQ 0 goto error
31+
32+
33+
call "%VS110COMNTOOLS%vsvars32.bat"
34+
35+
echo Building sphash project of splayer-pkg ...
36+
"%DevEnvDir%/devenv.com" ../thirdparty/pkg/trunk/sphash/sphash.sln /build "Release|Win32"
37+
if %ERRORLEVEL% NEQ 0 goto error
38+
39+
echo Building sinet project of sinet ...
40+
"%DevEnvDir%/devenv.com" ../thirdparty/sinet/trunk/sinet.sln /build "Release|Win32"
41+
if %ERRORLEVEL% NEQ 0 goto error
42+
43+
44+
copy "..\thirdparty\pkg\trunk\unrar\unrar.hpp" "..\thirdparty\pkg\"
45+
copy "..\thirdparty\pkg\trunk\unrar\unrar.lib" "..\thirdparty\pkg\"
46+
copy "..\thirdparty\pkg\trunk\unrar\unrar.dll" "..\..\"
47+
copy "..\thirdparty\pkg\trunk\sphash\release\sphash.lib" "..\thirdparty\pkg\"
48+
copy "..\thirdparty\pkg\trunk\sphash\release\sphash.dll" "..\..\"
49+
copy "..\thirdparty\pkg\trunk\sphash\sphash\sphash.h" "..\thirdparty\pkg\"
50+
copy "..\thirdparty\sinet\trunk\release\sinet_dyn.lib" "..\thirdparty\sinet\"
51+
copy "..\thirdparty\sinet\trunk\release\sinet_dyn_wrapper.lib" "..\thirdparty\sinet\"
52+
copy "..\thirdparty\sinet\trunk\sinet\api_base.h" "..\thirdparty\sinet\"
53+
copy "..\thirdparty\sinet\trunk\sinet\api_refptr.h" "..\thirdparty\sinet\"
54+
copy "..\thirdparty\sinet\trunk\sinet\api_types.h" "..\thirdparty\sinet\"
55+
copy "..\thirdparty\sinet\trunk\sinet\config.h" "..\thirdparty\sinet\"
56+
copy "..\thirdparty\sinet\trunk\sinet\pool.h" "..\thirdparty\sinet\"
57+
copy "..\thirdparty\sinet\trunk\sinet\postdata.h" "..\thirdparty\sinet\"
58+
copy "..\thirdparty\sinet\trunk\sinet\postdataelem.h" "..\thirdparty\sinet\"
59+
copy "..\thirdparty\sinet\trunk\sinet\request.h" "..\thirdparty\sinet\"
60+
copy "..\thirdparty\sinet\trunk\sinet\sinet.h" "..\thirdparty\sinet\"
61+
copy "..\thirdparty\sinet\trunk\sinet\task.h" "..\thirdparty\sinet\"
62+
copy "..\thirdparty\sinet\trunk\sinet\task_observer.h" "..\thirdparty\sinet\"
63+
copy "..\thirdparty\sinet\trunk\release\sinet.dll" "..\..\"
64+
65+
set /p ans=Do you want to build SPlayer now? Building splayer will take much longer time [y/n]^>
66+
if "%ans%"== "y" (
67+
goto buildsplayer
68+
) else (
69+
goto end
70+
)
71+
:buildsplayer
72+
73+
call "pre-build.cmd"
74+
call "revision.cmd"
75+
76+
call "%VS110COMNTOOLS%vsvars32.bat"
77+
78+
echo Building SPlayer project ...
79+
"%DevEnvDir%/devenv.com" ../splayer.sln /build "Release Unicode|Win32"
80+
if %ERRORLEVEL% NEQ 0 goto error
81+
82+
goto end
83+
84+
:error
85+
echo ERROR: an error occurred during building
86+
goto finished
87+
88+
:end
89+
echo SPlayer built successfully
90+
91+
:finished
92+
pause

BuildScript/hg_bin/hg.exe

20 KB
Binary file not shown.

BuildScript/hg_bin/library.zip

22.2 MB
Binary file not shown.

BuildScript/hg_bin/python27.dll

2.2 MB
Binary file not shown.

BuildScript/post-build.cmd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@echo off
2+
3+
chdir /D %~dp0
4+
5+
for /f "delims=+ " %%a in ('hg_bin\hg id -n -R ../') do @set revnum=%%a
6+
7+
StampVer.exe -f"3.7.0.%revnum%" -p"3.7.0.%revnum%" ../../splayer.exe

BuildScript/pre-build.cmd

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@echo off
2+
3+
chdir /D %~dp0
4+
5+
IF NOT EXIST "..\src\svplib\shooterclient.key" copy ".\shooterclient_dummy.key" "..\src\svplib\shooterclient.key"
6+
7+
8+
IF NOT EXIST "..\include\shooterclient.key" copy ".\shooterclient_dummy.key" "..\include\shooterclient.key"
9+
10+
11+
IF NOT EXIST "..\include\shooterapi.key" copy ".\shooterapi_dummy.key" "..\include\shooterapi.key"

BuildScript/revision.cmd

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
@echo off
2+
3+
chdir /D %~dp0
4+
5+
set revfile="..\src\apps\mplayerc\revision.h"
6+
set tmpfile=".\temp.h"
7+
8+
for /f "delims=+ " %%a in ('hg_bin\hg id -n') do @set revnum=%%a
9+
for /f "delims=+ " %%a in ('hg_bin\hg id -i') do @set revset=%%a
10+
set revnum=%revnum:~0,-1%
11+
set revset=%revset:~0,-1%
12+
echo "%revnum%" "%revset%"
13+
14+
echo #pragma once > %tmpfile%
15+
echo #define SVP_REV_STR L"%revnum%" >> %tmpfile%
16+
echo #define SVP_REV_NUMBER %revnum% >> %tmpfile%
17+
echo #define BRANCHVER L"36" >> %tmpfile%
18+
19+
IF NOT EXIST %tmpfile% copy ".\revision_dummy.h" %revfile%
20+
21+
FC %tmpfile% %revfile% | FIND "FC: no dif" > nul
22+
IF ERRORLEVEL 1 goto s_files_are_different
23+
24+
goto end
25+
26+
:s_files_are_different
27+
copy %tmpfile% %revfile%
28+
29+
:end
30+
REM if anything failed
31+
IF NOT EXIST %revfile% copy ".\revision_dummy.h" %revfile%

0 commit comments

Comments
 (0)