提交 0a3be186 authored 作者: Michael Jerris's avatar Michael Jerris

openldap build for msvc part 1

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@585 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 146a819f
......@@ -24,6 +24,7 @@ BuildModXMPPEvent=False
BuildModsndfile=False
BuildModrawaudio=False
BuildModpcre=False
BuildModldap=False
BuildSpiderMonkey=False
quote=Chr(34)
ScriptDir=Left(WScript.ScriptFullName,Len(WScript.ScriptFullName)-Len(WScript.ScriptName))
......@@ -83,6 +84,8 @@ If objArgs.Count >=1 Then
BuildModrawaudio=True
Case "Mod_pcre"
BuildModpcre=True
Case "Mod_ldap"
BuildModldap=True
Case Else
BuildCore=True
BuildModExosip=True
......@@ -95,6 +98,7 @@ If objArgs.Count >=1 Then
BuildModrawaudio=True
BuildVersion=True
BuildModpcre=True
BuildModldap=True
End Select
Else
BuildCore=True
......@@ -107,6 +111,7 @@ Else
BuildModsndfile=True
BuildModrawaudio=True
BuildVersion=True
BuildModldap=True
BuildModpcre=True
End If
......@@ -182,6 +187,10 @@ If BuildModpcre Then
BuildLibs_pcre BuildDebug, BuildRelease
End If
If BuildModldap Then
BuildLibs_ldap BuildDebug, BuildRelease
End If
If BuildSpiderMonkey Then
BuildLibs_SpiderMonkey BuildDebug, BuildRelease
End If
......@@ -580,6 +589,32 @@ Sub BuildLibs_pcre(BuildDebug, BuildRelease)
End If
End Sub
Sub BuildLibs_ldap(BuildDebug, BuildRelease)
If Not FSO.FolderExists(LibDestDir & "openldap") Then
WgetUnTarGz LibsBase & "openldap-2.3.19.tar.gz", LibDestDir
RenameFolder LibDestDir & "openldap-2.3.19", "openldap"
' If Not FSO.FolderExists(LibDestDir & "pcre\win32") Then
' FSO.CreateFolder(LibDestDir & "pcre\win32")
' End If
' FSO.CopyFile Utilsdir & "pcre\libpcre.vcproj", LibDestDir & "pcre\win32\", True
End If
If FSO.FolderExists(LibDestDir & "pcre") Then
If BuildDebug Then
If Not FSO.FileExists(LibDestDir & "pcre\win32\Debug\libpcre.lib") Then
BuildViaVCBuild LibDestDir & "pcre\win32\libpcre.vcproj", "Debug"
End If
End If
If BuildRelease Then
If Not FSO.FileExists(LibDestDir & "pcre\win32\Release\libpcre.lib") Then
BuildViaVCBuild LibDestDir & "pcre\win32\libpcre.vcproj", "Release"
End If
End If
Else
Wscript.echo "Unable to download openldap"
End If
End Sub
Sub BuildLibs_SpiderMonkey(BuildDebug, BuildRelease)
If Not FSO.FolderExists(LibDestDir & "js") Then
WgetUnZip LibsBase & "js20051231.zip", LibDestDir
......
/* include/lber_types.h. Generated by configure. */
/* $OpenLDAP: pkg/ldap/include/lber_types.hin,v 1.2.2.2 2006/01/03 22:16:06 kurt Exp $ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
* Copyright 1998-2006 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as authorized by the OpenLDAP
* Public License.
*
* A copy of this license is available in file LICENSE in the
* top-level directory of the distribution or, alternatively, at
* <http://www.OpenLDAP.org/license.html>.
*/
/*
* LBER types
*/
#ifndef _LBER_TYPES_H
#define _LBER_TYPES_H
#include <ldap_cdefs.h>
LDAP_BEGIN_DECL
/* LBER boolean, enum, integers (32 bits or larger) */
#define LBER_INT_T int
/* LBER tags (32 bits or larger) */
#define LBER_TAG_T long
/* LBER socket descriptor */
#define LBER_SOCKET_T int
/* LBER lengths (32 bits or larger) */
#define LBER_LEN_T long
/* ------------------------------------------------------------ */
/* booleans, enumerations, and integers */
typedef LBER_INT_T ber_int_t;
/* signed and unsigned versions */
typedef signed LBER_INT_T ber_sint_t;
typedef unsigned LBER_INT_T ber_uint_t;
/* tags */
typedef unsigned LBER_TAG_T ber_tag_t;
/* "socket" descriptors */
typedef LBER_SOCKET_T ber_socket_t;
/* lengths */
typedef unsigned LBER_LEN_T ber_len_t;
/* signed lengths */
typedef signed LBER_LEN_T ber_slen_t;
LDAP_END_DECL
#endif /* _LBER_TYPES_H */
/* Generated from ./ldap_config.hin on Fri Feb 10 15:01:40 EST 2006 */
/* $OpenLDAP: pkg/ldap/include/ldap_config.hin,v 1.2.2.2 2006/01/03 22:16:06 kurt Exp $ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
* Copyright 1998-2006 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as authorized by the OpenLDAP
* Public License.
*
* A copy of this license is available in file LICENSE in the
* top-level directory of the distribution or, alternatively, at
* <http://www.OpenLDAP.org/license.html>.
*/
/*
* This file works in confunction with OpenLDAP configure system.
* If you do no like the values below, adjust your configure options.
*/
#ifndef _LDAP_CONFIG_H
#define _LDAP_CONFIG_H
/* directory separator */
#ifndef LDAP_DIRSEP
#ifndef _WIN32
#define LDAP_DIRSEP "/"
#else
#define LDAP_DIRSEP "\\"
#endif
#endif
/* directory for temporary files */
#if defined(_WIN32)
# define LDAP_TMPDIR "C:\\." /* we don't have much of a choice */
#elif defined( _P_tmpdir )
# define LDAP_TMPDIR _P_tmpdir
#elif defined( P_tmpdir )
# define LDAP_TMPDIR P_tmpdir
#elif defined( _PATH_TMPDIR )
# define LDAP_TMPDIR _PATH_TMPDIR
#else
# define LDAP_TMPDIR LDAP_DIRSEP "tmp"
#endif
/* directories */
#ifndef LDAP_BINDIR
#define LDAP_BINDIR ""
#endif
#ifndef LDAP_SBINDIR
#define LDAP_SBINDIR ""
#endif
#ifndef LDAP_DATADIR
#define LDAP_DATADIR ""
#endif
#ifndef LDAP_SYSCONFDIR
#define LDAP_SYSCONFDIR ""
#endif
#ifndef LDAP_LIBEXECDIR
#define LDAP_LIBEXECDIR ""
#endif
#ifndef LDAP_RUNDIR
#define LDAP_RUNDIR ""
#endif
#ifndef LDAP_LOCALEDIR
#define LDAP_LOCALEDIR ""
#endif
#endif /* _LDAP_CONFIG_H */
/* include/ldap_features.h. Generated by configure. */
/* $OpenLDAP: pkg/ldap/include/ldap_features.hin,v 1.2.2.2 2006/01/03 22:16:06 kurt Exp $ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
* Copyright 1998-2006 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as authorized by the OpenLDAP
* Public License.
*
* A copy of this license is available in file LICENSE in the
* top-level directory of the distribution or, alternatively, at
* <http://www.OpenLDAP.org/license.html>.
*/
/*
* LDAP Features
*/
#ifndef _LDAP_FEATURES_H
#define _LDAP_FEATURES_H 1
/* OpenLDAP API version macros */
#define LDAP_VENDOR_VERSION 20319
#define LDAP_VENDOR_VERSION_MAJOR 2
#define LDAP_VENDOR_VERSION_MINOR 3
#define LDAP_VENDOR_VERSION_PATCH 19
/*
** WORK IN PROGRESS!
**
** OpenLDAP reentrancy/thread-safeness should be dynamically
** checked using ldap_get_option().
**
** The -lldap implementation is not thread-safe.
**
** The -lldap_r implementation is:
** LDAP_API_FEATURE_THREAD_SAFE (basic thread safety)
** but also be:
** LDAP_API_FEATURE_SESSION_THREAD_SAFE
** LDAP_API_FEATURE_OPERATION_THREAD_SAFE
**
** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
** can be used to determine if -lldap_r is available at compile
** time. You must define LDAP_THREAD_SAFE if and only if you
** link with -lldap_r.
**
** If you fail to define LDAP_THREAD_SAFE when linking with
** -lldap_r or define LDAP_THREAD_SAFE when linking with -lldap,
** provided header definations and declarations may be incorrect.
**
*/
/* is -lldap_r available or not */
#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
/* LDAP v2 Kerberos Bind */
/* #undef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND */
/* LDAP v2 Referrals */
/* #undef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS */
#endif /* LDAP_FEATURES */
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论