Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
6469e3d2
Commit
6469e3d2
authored
Nov 03, 2014
by
Ghislain MARY
Browse files
Build with the correct version number on Windows Phone 8.
parent
a9dc1da2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletion
+31
-1
build/wp8/mediastreamer2/mediastreamer2.vcxproj
build/wp8/mediastreamer2/mediastreamer2.vcxproj
+9
-1
build/wp8/mediastreamer2/version.bat
build/wp8/mediastreamer2/version.bat
+22
-0
No files found.
build/wp8/mediastreamer2/mediastreamer2.vcxproj
View file @
6469e3d2
...
...
@@ -54,7 +54,7 @@
<ClCompile>
<WarningLevel>
Level4
</WarningLevel>
<AdditionalIncludeDirectories>
$(ProjectDir)..\..\..\include;$(ProjectDir)..\..\..\src\base;$(ProjectDir)..\..\..\src\utils;$(ProjectDir)..\..\..\src\voip;$(ProjectDir)..\..\..\src\audiofilters;$(ProjectDil)..\..\..\src\otherfilters;$(ProjectDir)..\..\..\src/videofilters;$(ProjectDir)..\..\..\..\oRTP\include;$(ProjectDir)..\..\..\..\oRTP\build\wp8\oRTP;$(ProjectDir)..\..\..\..\..\gsm\build\wp8\gsm\$(Platform)\$(Configuration);$(ProjectDir)..\..\..\..\..\srtp\include;$(ProjectDir)..\..\..\..\..\srtp\crypto\include;$(ProjectDir)..\..\..\..\..\srtp\build\wp8\srtp;$(ProjectDir)..\..\..\..\..\speex\include;$(ProjectDir)..\..\..\..\..\opus\include;$(ProjectDir);%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
<PreprocessorDefinitions>
__STDC_CONSTANT_MACROS;_WINDOWS;_USRDLL;_CRT_SECURE_NO_DEPRECATE;WIN32;MEDIASTREAMER2_EXPORTS;MEDIASTREAMER2_INTERNAL_EXPORTS;HAVE_SPEEXDSP;ORTP_INET6;ORTP_HAVE_SRTP;WINDOW_NATIVE;_TRUE_TIME;MS2_INTERNAL;MS2_FILTERS;VIDEO_ENABLED;NO_FFMPEG;UNICODE;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<PreprocessorDefinitions>
__STDC_CONSTANT_MACROS;_WINDOWS;_USRDLL;_CRT_SECURE_NO_DEPRECATE;WIN32;MEDIASTREAMER2_EXPORTS;MEDIASTREAMER2_INTERNAL_EXPORTS;HAVE_SPEEXDSP;ORTP_INET6;ORTP_HAVE_SRTP;WINDOW_NATIVE;_TRUE_TIME;MS2_INTERNAL;MS2_FILTERS;VIDEO_ENABLED;NO_FFMPEG;UNICODE;
HAVE_CONFIG_H;
%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<BasicRuntimeChecks>
Default
</BasicRuntimeChecks>
<PrecompiledHeader>
NotUsing
</PrecompiledHeader>
<CompileAsWinRT>
false
</CompileAsWinRT>
...
...
@@ -68,6 +68,12 @@
<AdditionalLibraryDirectories>
$(SolutionDir)$(Platform)\$(Configuration);%(AdditionalLibraryDirectories)
</AdditionalLibraryDirectories>
<ImportLibrary>
$(TargetDir)$(TargetName).lib
</ImportLibrary>
</Link>
<PreBuildEvent>
<Command>
version.bat
</Command>
</PreBuildEvent>
<PreBuildEvent>
<Message>
Batch script to get the git version
</Message>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup
Condition=
"'$(Configuration)'=='Debug'"
>
<ClCompile>
...
...
@@ -136,6 +142,8 @@
<ClInclude
Include=
"..\..\..\src\voip\private.h"
/>
<ClInclude
Include=
"..\..\..\src\voip\rfc2429.h"
/>
<ClInclude
Include=
"basedescs.h"
/>
<ClInclude
Include=
"gitversion.h"
/>
<ClInclude
Include=
"mediastreamer-config.h"
/>
<ClInclude
Include=
"voipdescs.h"
/>
</ItemGroup>
<ItemGroup>
...
...
build/wp8/mediastreamer2/version.bat
0 → 100644
View file @
6469e3d2
@ECHO
off
SET
gitlog
=
FOR
/f
"delims="
%%a
IN
(
'git log -1 "--pretty=format:
%%H
" ../../../configure.ac'
)
DO
SET
gitlog
=
%%a
IF
[
%gitlog%
]
==
[]
GOTO
UnknownGitVersion
FOR
/f
"delims="
%%a
IN
(
'git describe --always'
)
DO
SET
gitdescribe
=
%%a
GOTO
End
:UnknownGitVersion
SET
gitdescribe
=
unknown
:End
ECHO
#define
GIT_VERSION
"
%gitdescribe%
"
>
gitversion
.h
FOR
/F
"delims="
%%a
IN
(
'findstr /B AC_INIT ..\..\..\configure.ac'
)
DO
(
FOR
/F
"tokens=1,2,3 delims=[,]"
%%
1
IN
(
"
%%a
"
)
DO
(
ECHO
#define
MEDIASTREAMER_VERSION
"
%%
3"
>
mediastreamer
-config
.h
)
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment