Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
c1d59f02
Commit
c1d59f02
authored
15 years ago
by
brad kittenbrink
Browse files
Options
Downloads
Patches
Plain Diff
Windows now links to shared apr when LLCOMMON_LINK_SHARED is on.
parent
71405876
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/cmake/APR.cmake
+27
-12
27 additions, 12 deletions
indra/cmake/APR.cmake
indra/llcommon/llpreprocessor.h
+157
-157
157 additions, 157 deletions
indra/llcommon/llpreprocessor.h
with
184 additions
and
169 deletions
indra/cmake/APR.cmake
+
27
−
12
View file @
c1d59f02
...
@@ -13,18 +13,33 @@ if (STANDALONE)
...
@@ -13,18 +13,33 @@ if (STANDALONE)
else
(
STANDALONE
)
else
(
STANDALONE
)
use_prebuilt_binary
(
apr_suite
)
use_prebuilt_binary
(
apr_suite
)
if
(
WINDOWS
)
if
(
WINDOWS
)
set
(
APR_LIBRARIES
if
(
LLCOMMON_LINK_SHARED
)
debug
${
ARCH_PREBUILT_DIRS_DEBUG
}
/apr-1.lib
set
(
APR_LIBRARIES
optimized
${
ARCH_PREBUILT_DIRS_RELEASE
}
/apr-1.lib
debug
${
ARCH_PREBUILT_DIRS_DEBUG
}
/libapr-1.lib
)
optimized
${
ARCH_PREBUILT_DIRS_RELEASE
}
/libapr-1.lib
set
(
APRICONV_LIBRARIES
)
debug
${
ARCH_PREBUILT_DIRS_DEBUG
}
/apriconv-1.lib
set
(
APRICONV_LIBRARIES
optimized
${
ARCH_PREBUILT_DIRS_RELEASE
}
/apriconv-1.lib
debug
${
ARCH_PREBUILT_DIRS_DEBUG
}
/libapriconv-1.lib
)
optimized
${
ARCH_PREBUILT_DIRS_RELEASE
}
/libapriconv-1.lib
set
(
APRUTIL_LIBRARIES
)
debug
${
ARCH_PREBUILT_DIRS_DEBUG
}
/aprutil-1.lib
${
APRICONV_LIBRARIES
}
set
(
APRUTIL_LIBRARIES
optimized
${
ARCH_PREBUILT_DIRS_RELEASE
}
/aprutil-1.lib
${
APRICONV_LIBRARIES
}
debug
${
ARCH_PREBUILT_DIRS_DEBUG
}
/libaprutil-1.lib
${
APRICONV_LIBRARIES
}
)
optimized
${
ARCH_PREBUILT_DIRS_RELEASE
}
/libaprutil-1.lib
${
APRICONV_LIBRARIES
}
)
else
(
LLCOMMON_LINK_SHARED
)
set
(
APR_LIBRARIES
debug
${
ARCH_PREBUILT_DIRS_DEBUG
}
/apr-1.lib
optimized
${
ARCH_PREBUILT_DIRS_RELEASE
}
/apr-1.lib
)
set
(
APRICONV_LIBRARIES
debug
${
ARCH_PREBUILT_DIRS_DEBUG
}
/apriconv-1.lib
optimized
${
ARCH_PREBUILT_DIRS_RELEASE
}
/apriconv-1.lib
)
set
(
APRUTIL_LIBRARIES
debug
${
ARCH_PREBUILT_DIRS_DEBUG
}
/aprutil-1.lib
${
APRICONV_LIBRARIES
}
optimized
${
ARCH_PREBUILT_DIRS_RELEASE
}
/aprutil-1.lib
${
APRICONV_LIBRARIES
}
)
endif
(
LLCOMMON_LINK_SHARED
)
elseif
(
DARWIN
)
elseif
(
DARWIN
)
set
(
APR_LIBRARIES
set
(
APR_LIBRARIES
debug
${
ARCH_PREBUILT_DIRS_DEBUG
}
/libapr-1.a
debug
${
ARCH_PREBUILT_DIRS_DEBUG
}
/libapr-1.a
...
...
This diff is collapsed.
Click to expand it.
indra/llcommon/llpreprocessor.h
+
157
−
157
View file @
c1d59f02
/**
/**
* @file llpreprocessor.h
* @file llpreprocessor.h
* @brief This file should be included in all Linden Lab files and
* @brief This file should be included in all Linden Lab files and
* should only contain special preprocessor directives
* should only contain special preprocessor directives
*
*
* $LicenseInfo:firstyear=2001&license=viewergpl$
* $LicenseInfo:firstyear=2001&license=viewergpl$
*
*
* Copyright (c) 2001-2009, Linden Research, Inc.
* Copyright (c) 2001-2009, Linden Research, Inc.
*
*
* Second Life Viewer Source Code
* Second Life Viewer Source Code
* The source code in this file ("Source Code") is provided by Linden Lab
* The source code in this file ("Source Code") is provided by Linden Lab
* to you under the terms of the GNU General Public License, version 2.0
* to you under the terms of the GNU General Public License, version 2.0
* ("GPL"), unless you have obtained a separate licensing agreement
* ("GPL"), unless you have obtained a separate licensing agreement
* ("Other License"), formally executed by you and Linden Lab. Terms of
* ("Other License"), formally executed by you and Linden Lab. Terms of
* the GPL can be found in doc/GPL-license.txt in this distribution, or
* the GPL can be found in doc/GPL-license.txt in this distribution, or
* online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
* online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
*
*
* There are special exceptions to the terms and conditions of the GPL as
* There are special exceptions to the terms and conditions of the GPL as
* it is applied to this Source Code. View the full text of the exception
* it is applied to this Source Code. View the full text of the exception
* in the file doc/FLOSS-exception.txt in this software distribution, or
* in the file doc/FLOSS-exception.txt in this software distribution, or
* online at
* online at
* http://secondlifegrid.net/programs/open_source/licensing/flossexception
* http://secondlifegrid.net/programs/open_source/licensing/flossexception
*
*
* By copying, modifying or distributing this software, you acknowledge
* By copying, modifying or distributing this software, you acknowledge
* that you have read and understood your obligations described above,
* that you have read and understood your obligations described above,
* and agree to abide by those obligations.
* and agree to abide by those obligations.
*
*
* ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
* ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
* WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
* WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
* COMPLETENESS OR PERFORMANCE.
* COMPLETENESS OR PERFORMANCE.
* $/LicenseInfo$
* $/LicenseInfo$
*/
*/
#ifndef LLPREPROCESSOR_H
#ifndef LLPREPROCESSOR_H
#define LLPREPROCESSOR_H
#define LLPREPROCESSOR_H
// Figure out endianness of platform
// Figure out endianness of platform
#ifdef LL_LINUX
#ifdef LL_LINUX
#define __ENABLE_WSTRING
#define __ENABLE_WSTRING
#include
<endian.h>
#include
<endian.h>
#endif // LL_LINUX
#endif // LL_LINUX
#if LL_SOLARIS
#if LL_SOLARIS
# ifdef __sparc // Since we're talking Solaris 10 and up, only 64 bit is supported.
# ifdef __sparc // Since we're talking Solaris 10 and up, only 64 bit is supported.
# define LL_BIG_ENDIAN 1
# define LL_BIG_ENDIAN 1
# define LL_SOLARIS_ALIGNED_CPU 1 // used to designate issues where SPARC alignment is addressed
# define LL_SOLARIS_ALIGNED_CPU 1 // used to designate issues where SPARC alignment is addressed
# define LL_SOLARIS_NON_MESA_GL 1 // The SPARC GL does not provide a MESA-based GL API
# define LL_SOLARIS_NON_MESA_GL 1 // The SPARC GL does not provide a MESA-based GL API
# endif
# endif
# include <sys/isa_defs.h> // ensure we know which end is up
# include <sys/isa_defs.h> // ensure we know which end is up
#endif // LL_SOLARIS
#endif // LL_SOLARIS
#if (defined(LL_WINDOWS) || (defined(LL_LINUX) && (__BYTE_ORDER == __LITTLE_ENDIAN)) || (defined(LL_DARWIN) && defined(__LITTLE_ENDIAN__)) || (defined(LL_SOLARIS) && defined(__i386)))
#if (defined(LL_WINDOWS) || (defined(LL_LINUX) && (__BYTE_ORDER == __LITTLE_ENDIAN)) || (defined(LL_DARWIN) && defined(__LITTLE_ENDIAN__)) || (defined(LL_SOLARIS) && defined(__i386)))
#define LL_LITTLE_ENDIAN 1
#define LL_LITTLE_ENDIAN 1
#else
#else
#define LL_BIG_ENDIAN 1
#define LL_BIG_ENDIAN 1
#endif
#endif
// Per-compiler switches
// Per-compiler switches
#ifdef __GNUC__
#ifdef __GNUC__
#define LL_FORCE_INLINE inline __attribute__((always_inline))
#define LL_FORCE_INLINE inline __attribute__((always_inline))
#else
#else
#define LL_FORCE_INLINE __forceinline
#define LL_FORCE_INLINE __forceinline
#endif
#endif
// Figure out differences between compilers
// Figure out differences between compilers
#if defined(__GNUC__)
#if defined(__GNUC__)
#define GCC_VERSION (__GNUC__ * 10000 \
#define GCC_VERSION (__GNUC__ * 10000 \
+ __GNUC_MINOR__ * 100 \
+
__GNUC_MINOR__
*
100
\
+ __GNUC_PATCHLEVEL__)
+
__GNUC_PATCHLEVEL__
)
#ifndef LL_GNUC
#ifndef LL_GNUC
#define LL_GNUC 1
#define LL_GNUC 1
#endif
#endif
#elif defined(__MSVC_VER__) || defined(_MSC_VER)
#elif defined(__MSVC_VER__) || defined(_MSC_VER)
#ifndef LL_MSVC
#ifndef LL_MSVC
#define LL_MSVC 1
#define LL_MSVC 1
#endif
#endif
#if _MSC_VER < 1400
#if _MSC_VER < 1400
#define LL_MSVC7 //Visual C++ 2003 or earlier
#define LL_MSVC7 //Visual C++ 2003 or earlier
#endif
#endif
#endif
#endif
// Deal with minor differences on Unixy OSes.
// Deal with minor differences on Unixy OSes.
#if LL_DARWIN || LL_LINUX
#if LL_DARWIN || LL_LINUX
// Different name, same functionality.
// Different name, same functionality.
#define stricmp strcasecmp
#define stricmp strcasecmp
#define strnicmp strncasecmp
#define strnicmp strncasecmp
// Not sure why this is different, but...
// Not sure why this is different, but...
#ifndef MAX_PATH
#ifndef MAX_PATH
#define MAX_PATH PATH_MAX
#define MAX_PATH PATH_MAX
#endif // not MAX_PATH
#endif // not MAX_PATH
#endif
#endif
// Static linking with apr on windows needs to be declared.
// Static linking with apr on windows needs to be declared.
#if
def
LL_WINDOWS
#if LL_WINDOWS
&& !LL_COMMON_LINK_SHARED
#ifndef APR_DECLARE_STATIC
#ifndef APR_DECLARE_STATIC
#define APR_DECLARE_STATIC // For APR on Windows
#define APR_DECLARE_STATIC // For APR on Windows
#endif
#endif
#ifndef APU_DECLARE_STATIC
#ifndef APU_DECLARE_STATIC
#define APU_DECLARE_STATIC // For APR util on Windows
#define APU_DECLARE_STATIC // For APR util on Windows
#endif
#endif
#endif
#endif
#if defined(LL_WINDOWS)
#if defined(LL_WINDOWS)
#define BOOST_REGEX_NO_LIB 1
#define BOOST_REGEX_NO_LIB 1
#define CURL_STATICLIB 1
#define CURL_STATICLIB 1
#define XML_STATIC
#define XML_STATIC
#endif // LL_WINDOWS
#endif // LL_WINDOWS
// Deal with VC6 problems
// Deal with VC6 problems
#if LL_MSVC
#if LL_MSVC
#pragma warning( 3 : 4701 ) // "local variable used without being initialized" Treat this as level 3, not level 4.
#pragma warning( 3 : 4701 ) // "local variable used without being initialized" Treat this as level 3, not level 4.
#pragma warning( 3 : 4702 ) // "unreachable code" Treat this as level 3, not level 4.
#pragma warning( 3 : 4702 ) // "unreachable code" Treat this as level 3, not level 4.
#pragma warning( 3 : 4189 ) // "local variable initialized but not referenced" Treat this as level 3, not level 4.
#pragma warning( 3 : 4189 ) // "local variable initialized but not referenced" Treat this as level 3, not level 4.
//#pragma warning( 3 : 4018 ) // "signed/unsigned mismatch" Treat this as level 3, not level 4.
//#pragma warning( 3 : 4018 ) // "signed/unsigned mismatch" Treat this as level 3, not level 4.
#pragma warning( 3 : 4265 ) // "class has virtual functions, but destructor is not virtual"
#pragma warning( 3 : 4265 ) // "class has virtual functions, but destructor is not virtual"
#pragma warning( disable : 4786 ) // silly MS warning deep inside their <map> include file
#pragma warning( disable : 4786 ) // silly MS warning deep inside their <map> include file
#pragma warning( disable : 4284 ) // silly MS warning deep inside their <map> include file
#pragma warning( disable : 4284 ) // silly MS warning deep inside their <map> include file
#pragma warning( disable : 4503 ) // 'decorated name length exceeded, name was truncated'. Does not seem to affect compilation.
#pragma warning( disable : 4503 ) // 'decorated name length exceeded, name was truncated'. Does not seem to affect compilation.
#pragma warning( disable : 4800 ) // 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)
#pragma warning( disable : 4800 ) // 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)
#pragma warning( disable : 4996 ) // warning: deprecated
#pragma warning( disable : 4996 ) // warning: deprecated
// level 4 warnings that we need to disable:
// level 4 warnings that we need to disable:
#pragma warning (disable : 4100) // unreferenced formal parameter
#pragma warning (disable : 4100) // unreferenced formal parameter
#pragma warning (disable : 4127) // conditional expression is constant (e.g. while(1) )
#pragma warning (disable : 4127) // conditional expression is constant (e.g. while(1) )
#pragma warning (disable : 4244) // possible loss of data on conversions
#pragma warning (disable : 4244) // possible loss of data on conversions
#pragma warning (disable : 4396) // the inline specifier cannot be used when a friend declaration refers to a specialization of a function template
#pragma warning (disable : 4396) // the inline specifier cannot be used when a friend declaration refers to a specialization of a function template
#pragma warning (disable : 4512) // assignment operator could not be generated
#pragma warning (disable : 4512) // assignment operator could not be generated
#pragma warning (disable : 4706) // assignment within conditional (even if((x = y)) )
#pragma warning (disable : 4706) // assignment within conditional (even if((x = y)) )
#pragma warning (disable : 4251) // member needs to have dll-interface to be used by clients of class
#pragma warning (disable : 4251) // member needs to have dll-interface to be used by clients of class
#pragma warning (disable : 4275) // non dll-interface class used as base for dll-interface class
#pragma warning (disable : 4275) // non dll-interface class used as base for dll-interface class
#endif // LL_MSVC
#endif // LL_MSVC
#if LL_WINDOWS
#if LL_WINDOWS
#define LL_DLLEXPORT __declspec(dllexport)
#define LL_DLLEXPORT __declspec(dllexport)
#define LL_DLLIMPORT __declspec(dllimport)
#define LL_DLLIMPORT __declspec(dllimport)
#else
#else
#define LL_DLLEXPORT
#define LL_DLLEXPORT
#define LL_DLLIMPORT
#define LL_DLLIMPORT
#endif // LL_WINDOWS
#endif // LL_WINDOWS
#if LL_COMMON_LINK_SHARED
#if LL_COMMON_LINK_SHARED
# if LL_COMMON_BUILD
# if LL_COMMON_BUILD
# define LL_COMMON_API LL_DLLEXPORT
# define LL_COMMON_API LL_DLLEXPORT
# else //LL_COMMON_BUILD
# else //LL_COMMON_BUILD
# define LL_COMMON_API LL_DLLIMPORT
# define LL_COMMON_API LL_DLLIMPORT
# endif //LL_COMMON_BUILD
# endif //LL_COMMON_BUILD
#else // LL_COMMON_LINK_SHARED
#else // LL_COMMON_LINK_SHARED
# define LL_COMMON_API
# define LL_COMMON_API
#endif // LL_COMMON_LINK_SHARED
#endif // LL_COMMON_LINK_SHARED
#endif // not LL_LINDEN_PREPROCESSOR_H
#endif // not LL_LINDEN_PREPROCESSOR_H
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment