mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-02 19:29:31 +00:00
make sqlite a dynamic lib for msvc.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1349 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
dc8cb51400
commit
c1a255075b
@ -49,6 +49,7 @@ BEGIN_EXTERN_C
|
|||||||
#pragma comment(lib, "libapr-1.lib")
|
#pragma comment(lib, "libapr-1.lib")
|
||||||
#pragma comment(lib, "libaprutil-1.lib")
|
#pragma comment(lib, "libaprutil-1.lib")
|
||||||
#pragma comment(lib, "libapriconv-1.lib")
|
#pragma comment(lib, "libapriconv-1.lib")
|
||||||
|
#pragma comment(lib, "sqlite.lib")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* disable the following warnings
|
/* disable the following warnings
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
AdditionalDependencies="Ws2_32.lib Mswsock.lib libapr-1.lib sqlite.lib libapriconv-1.lib libaprutil-1.lib Rpcrt4.lib libresampled.lib srtp.lib"
|
AdditionalDependencies="Ws2_32.lib Mswsock.lib libapr-1.lib sqlite.lib libapriconv-1.lib libaprutil-1.lib Rpcrt4.lib libresampled.lib srtp.lib"
|
||||||
OutputFile="$(OutDir)/FreeSwitch.dll"
|
OutputFile="$(OutDir)/FreeSwitch.dll"
|
||||||
LinkIncremental="2"
|
LinkIncremental="2"
|
||||||
AdditionalLibraryDirectories=""$(InputDir)..\..\libs\apr\$(OutDir)";"$(InputDir)..\..\libs\sqlite\$(OutDir)";"$(InputDir)..\..\libs\apr-util\$(OutDir)";"$(InputDir)..\..\libs\apr-iconv\$(OutDir)";"$(InputDir)..\..\libs\libresample\win";"$(InputDir)..\..\libs\srtp\$(OutDir)""
|
AdditionalLibraryDirectories=""$(InputDir)..\..\libs\apr\$(OutDir)";"$(InputDir)..\..\libs\sqlite\$(OutDir) DLL";"$(InputDir)..\..\libs\apr-util\$(OutDir)";"$(InputDir)..\..\libs\apr-iconv\$(OutDir)";"$(InputDir)..\..\libs\libresample\win";"$(InputDir)..\..\libs\srtp\$(OutDir)""
|
||||||
AddModuleNamesToAssembly=""
|
AddModuleNamesToAssembly=""
|
||||||
GenerateDebugInformation="true"
|
GenerateDebugInformation="true"
|
||||||
ProgramDatabaseFile="$(OutDir)/FreeSwitchCore.pdb"
|
ProgramDatabaseFile="$(OutDir)/FreeSwitchCore.pdb"
|
||||||
@ -105,7 +105,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPostBuildEventTool"
|
Name="VCPostBuildEventTool"
|
||||||
CommandLine="xcopy $(Projectdir)..\..\conf\*.* $(Outdir)\conf\ /C /D /Y
if not exist $(Outdir)\db md $(Outdir)\db
if not exist $(Outdir)\log md $(Outdir)\log
"
|
CommandLine="xcopy $(Projectdir)..\..\conf\*.* $(Outdir)\conf\ /C /D /Y
xcopy "$(Projectdir)..\..\libs\sqlite\$(IntDir) DLL\*.dll" $(Outdir)\ /C /D /Y
xcopy "$(Projectdir)..\..\libs\sqlite\$(IntDir) DLL\*.lib" $(Outdir)\ /C /D /Y
if not exist $(Outdir)\db md $(Outdir)\db
if not exist $(Outdir)\log md $(Outdir)\log"
|
||||||
/>
|
/>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
<Configuration
|
<Configuration
|
||||||
@ -161,7 +161,7 @@
|
|||||||
AdditionalDependencies="Ws2_32.lib Mswsock.lib libapr-1.lib sqlite.lib libapriconv-1.lib libaprutil-1.lib Rpcrt4.lib libresample.lib srtp.lib"
|
AdditionalDependencies="Ws2_32.lib Mswsock.lib libapr-1.lib sqlite.lib libapriconv-1.lib libaprutil-1.lib Rpcrt4.lib libresample.lib srtp.lib"
|
||||||
OutputFile="$(OutDir)/FreeSwitch.dll"
|
OutputFile="$(OutDir)/FreeSwitch.dll"
|
||||||
LinkIncremental="1"
|
LinkIncremental="1"
|
||||||
AdditionalLibraryDirectories=""$(InputDir)..\..\libs\apr\$(OutDir)";"$(InputDir)..\..\libs\sqlite\$(OutDir)";"$(InputDir)..\..\libs\apr-util\$(OutDir)";"$(InputDir)..\..\libs\apr-iconv\$(OutDir)";"$(InputDir)..\..\libs\libresample\win";"$(InputDir)..\..\libs\srtp\$(OutDir)""
|
AdditionalLibraryDirectories=""$(InputDir)..\..\libs\apr\$(OutDir)";"$(InputDir)..\..\libs\sqlite\$(OutDir) DLL";"$(InputDir)..\..\libs\apr-util\$(OutDir)";"$(InputDir)..\..\libs\apr-iconv\$(OutDir)";"$(InputDir)..\..\libs\libresample\win";"$(InputDir)..\..\libs\srtp\$(OutDir)""
|
||||||
GenerateDebugInformation="true"
|
GenerateDebugInformation="true"
|
||||||
SubSystem="2"
|
SubSystem="2"
|
||||||
OptimizeReferences="2"
|
OptimizeReferences="2"
|
||||||
@ -192,7 +192,7 @@
|
|||||||
/>
|
/>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCPostBuildEventTool"
|
Name="VCPostBuildEventTool"
|
||||||
CommandLine="xcopy $(Projectdir)..\..\conf\*.* $(Outdir)\conf\ /C /D /Y
if not exist $(Outdir)\db md $(Outdir)\db
if not exist $(Outdir)\log md $(Outdir)\log
"
|
CommandLine="xcopy $(Projectdir)..\..\conf\*.* $(Outdir)\conf\ /C /D /Y
xcopy "$(Projectdir)..\..\libs\sqlite\$(IntDir) DLL\*.dll" $(Outdir)\ /C /D /Y
xcopy "$(Projectdir)..\..\libs\sqlite\$(IntDir) DLL\*.lib" $(Outdir)\ /C /D /Y
if not exist $(Outdir)\db md $(Outdir)\db
if not exist $(Outdir)\log md $(Outdir)\log"
|
||||||
/>
|
/>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
</Configurations>
|
</Configurations>
|
||||||
|
@ -423,13 +423,13 @@ Sub BuildLibs_sqlite(BuildDebug, BuildRelease)
|
|||||||
End If
|
End If
|
||||||
If FSO.FolderExists(LibDestDir & "sqlite") Then
|
If FSO.FolderExists(LibDestDir & "sqlite") Then
|
||||||
If BuildDebug Then
|
If BuildDebug Then
|
||||||
If Not FSO.FileExists(LibDestDir & "sqlite\Debug\sqlite.lib") Then
|
If Not FSO.FileExists(LibDestDir & "sqlite\Debug DLL\sqlite.lib") Then
|
||||||
BuildViaVCBuild LibDestDir & "sqlite\sqlite.vcproj", "Debug"
|
BuildViaVCBuild LibDestDir & "sqlite\sqlite.vcproj", "Debug DLL"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
If BuildRelease Then
|
If BuildRelease Then
|
||||||
If Not FSO.FileExists(LibDestDir & "sqlite\Release\sqlite.lib") Then
|
If Not FSO.FileExists(LibDestDir & "sqlite\Release DLL\sqlite.lib") Then
|
||||||
BuildViaVCBuild LibDestDir & "sqlite\sqlite.vcproj", "Release"
|
BuildViaVCBuild LibDestDir & "sqlite\sqlite.vcproj", "Release DLL"
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user