Changing version numbers to be done in a cpp file rather than a h file.
parent
2cef41bcca
commit
be934f3c7b
|
|
@ -19,8 +19,8 @@ indra/lib/mono/indra/*.dll
|
|||
indra/lib/mono/indra/*.exe
|
||||
indra/lib/mono/indra/*.pdb
|
||||
indra/lib/python/eventlet/
|
||||
indra/llcommon/llversionviewer.h
|
||||
indra/llcommon/llversionviewer.h.built
|
||||
indra/llcommon/llversionviewer.cpp
|
||||
indra/llcommon/llversionviewer.cpp.built
|
||||
indra/llwindow/glh/glh_linear.h
|
||||
indra/newview/app_settings/mozilla
|
||||
indra/newview/app_settings/mozilla-runtime-*
|
||||
|
|
|
|||
|
|
@ -225,7 +225,7 @@ if [ $WANTS_VERSION -eq $TRUE ] ; then
|
|||
-e "s#LL_VERSION_MAJOR = .*\$#LL_VERSION_MAJOR = ${majorVer};#" \
|
||||
-e "s#LL_VERSION_MINOR = .*\$#LL_VERSION_MINOR = ${minorVer};#" \
|
||||
-e "s#LL_VERSION_PATCH = .*\$#LL_VERSION_PATCH = ${patchVer};#" \
|
||||
-e "s#LL_CHANNEL = .*\$#LL_CHANNEL = \"Firestorm-$CHANNEL\";#" llcommon/llversionviewer.h.in > llcommon/llversionviewer.h
|
||||
-e "s#LL_CHANNEL = .*\$#LL_CHANNEL = \"Firestorm-$CHANNEL\";#" llcommon/llversionviewer.cpp.in > llcommon/llversionviewer.cpp
|
||||
fi
|
||||
|
||||
if [ $WANTS_CONFIG -eq $TRUE ] ; then
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ if [ $WANTS_VERSION -eq $TRUE ] ; then
|
|||
-e "s#LL_VERSION_MAJOR = .*\$#LL_VERSION_MAJOR = ${majorVer};#" \
|
||||
-e "s#LL_VERSION_MINOR = .*\$#LL_VERSION_MINOR = ${minorVer};#" \
|
||||
-e "s#LL_VERSION_PATCH = .*\$#LL_VERSION_PATCH = ${patchVer};#" \
|
||||
-e "s#LL_CHANNEL = .*\$#LL_CHANNEL = \"Firestorm-$CHANNEL\";#" llcommon/llversionviewer.h.in > llcommon/llversionviewer.h
|
||||
-e "s#LL_CHANNEL = .*\$#LL_CHANNEL = \"Firestorm-$CHANNEL\";#" llcommon/llversionviewer.cpp.in > llcommon/llversionviewer.cpp
|
||||
fi
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ if [ $WANTS_VERSION -eq $TRUE ] ; then
|
|||
-e "s#LL_VERSION_MAJOR = .*\$#LL_VERSION_MAJOR = ${majorVer};#" \
|
||||
-e "s#LL_VERSION_MINOR = .*\$#LL_VERSION_MINOR = ${minorVer};#" \
|
||||
-e "s#LL_VERSION_PATCH = .*\$#LL_VERSION_PATCH = ${patchVer};#" \
|
||||
-e "s#LL_CHANNEL = .*\$#LL_CHANNEL = \"Firestorm-$CHANNEL\";#" llcommon/llversionviewer.h.in > llcommon/llversionviewer.h
|
||||
-e "s#LL_CHANNEL = .*\$#LL_CHANNEL = \"Firestorm-$CHANNEL\";#" llcommon/llversionviewer.cpp.in > llcommon/llversionviewer.cpp
|
||||
fi
|
||||
|
||||
if [ $WANTS_CONFIG -eq $TRUE ] ; then
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ def get_default_platform(dummy):
|
|||
|
||||
def get_default_version(srctree):
|
||||
# look up llversion.h and parse out the version info
|
||||
paths = [os.path.join(srctree, x, 'llversionviewer.h') for x in ['llcommon', '../llcommon', '../../indra/llcommon.h']]
|
||||
paths = [os.path.join(srctree, x, 'llversionviewer.cpp') for x in ['llcommon', '../llcommon', '../../indra/llcommon.h']]
|
||||
for p in paths:
|
||||
if os.path.exists(p):
|
||||
contents = open(p, 'r').read()
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
project(llcommon)
|
||||
|
||||
|
||||
include(00-Common)
|
||||
include(LLCommon)
|
||||
include(Linking)
|
||||
|
|
@ -233,7 +234,7 @@ set(llcommon_HEADER_FILES
|
|||
lluuid.h
|
||||
lluuidhashmap.h
|
||||
llversionserver.h
|
||||
# llversionviewer.h
|
||||
llversionviewer.h
|
||||
llworkerthread.h
|
||||
ll_template_cast.h
|
||||
metaclass.h
|
||||
|
|
@ -258,15 +259,12 @@ set_source_files_properties(${llcommon_HEADER_FILES}
|
|||
list(APPEND llcommon_SOURCE_FILES ${llcommon_HEADER_FILES})
|
||||
|
||||
if (WINDOWS AND NOT FIRECYG)
|
||||
configure_files(llcommon_GENERATED_HEADER_FILES
|
||||
llversionviewer.h
|
||||
configure_files(llcommon_GENERATED_SOURCE_FILES
|
||||
llversionviewer.cpp
|
||||
)
|
||||
endif(WINDOWS AND NOT FIRECYG)
|
||||
|
||||
set_source_files_properties(${llcommon_GENERATED_HEADER_FILES}
|
||||
PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
|
||||
list(APPEND llcommon_SOURCE_FILES ${llcommon_GENERATED_HEADER_FILES})
|
||||
list(APPEND llcommon_SOURCE_FILES ${llcommon_GENERATED_SOURCE_FILES})
|
||||
|
||||
if(LLCOMMON_LINK_SHARED)
|
||||
add_library (llcommon SHARED ${llcommon_SOURCE_FILES})
|
||||
|
|
|
|||
|
|
@ -23,19 +23,11 @@
|
|||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#ifndef LL_LLVERSIONVIEWER_H
|
||||
#define LL_LLVERSIONVIEWER_H
|
||||
|
||||
#include "linden_common.h"
|
||||
#include "llversionviewer.h"
|
||||
|
||||
const S32 LL_VERSION_MAJOR = @VERSION_VIEWER_MAJOR@;
|
||||
const S32 LL_VERSION_MINOR = @VERSION_VIEWER_MINOR@;
|
||||
const S32 LL_VERSION_PATCH = @VERSION_VIEWER_PATCH@;
|
||||
const S32 LL_VERSION_BUILD = @VERSION_BUILD@;
|
||||
|
||||
const char * const LL_CHANNEL = "Firestorm-private";
|
||||
|
||||
#if LL_DARWIN
|
||||
const char * const LL_VERSION_BUNDLE_ID = "com.secondlife.firestorm.viewer";
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
/**
|
||||
* @file llversionviewer.h
|
||||
* @brief
|
||||
*
|
||||
* $LicenseInfo:firstyear=2002&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
*/
|
||||
|
||||
#ifndef LL_LLVERSIONVIEWER_H
|
||||
#define LL_LLVERSIONVIEWER_H
|
||||
|
||||
LL_COMMON_API extern const S32 LL_VERSION_MAJOR;
|
||||
LL_COMMON_API extern const S32 LL_VERSION_MINOR;
|
||||
LL_COMMON_API extern const S32 LL_VERSION_PATCH;
|
||||
LL_COMMON_API extern const S32 LL_VERSION_BUILD;
|
||||
|
||||
const char * const LL_CHANNEL = "Firestorm-private";
|
||||
|
||||
#if LL_DARWIN
|
||||
const char * const LL_VERSION_BUNDLE_ID = "com.secondlife.firestorm.viewer";
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Reference in New Issue