diff --git a/.hgignore b/.hgignore
index 125eff13c..1fbad60fd 100644
--- a/.hgignore
+++ b/.hgignore
@@ -144,6 +144,8 @@ external
external_stlport
3rdParty
.svn
+thumbs.db
+Thumbs.db
# build
code/nel/build/*
diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt
index 630ff4414..bf5867327 100644
--- a/code/CMakeLists.txt
+++ b/code/CMakeLists.txt
@@ -91,6 +91,7 @@ NL_CONFIGURE_CHECKS()
#Platform specifics
SETUP_EXTERNAL()
+NL_GEN_REVISION_H()
IF(WIN32)
SET(WINSOCK2_LIB ws2_32.lib)
@@ -143,11 +144,11 @@ IF(WITH_RYZOM)
ENDIF(WITH_RYZOM)
IF(WITH_NELNS)
-# ADD_SUBDIRECTORY(nelns)
+ ADD_SUBDIRECTORY(nelns)
ENDIF(WITH_NELNS)
IF(WITH_SNOWBALLS)
-# ADD_SUBDIRECTORY(snowballs2)
+ ADD_SUBDIRECTORY(snowballs2)
ENDIF(WITH_SNOWBALLS)
IF(WITH_TOOLS)
diff --git a/code/CMakeModules/Find3dsMaxSDK.cmake b/code/CMakeModules/Find3dsMaxSDK.cmake
index 52c4cc011..ddec22f90 100644
--- a/code/CMakeModules/Find3dsMaxSDK.cmake
+++ b/code/CMakeModules/Find3dsMaxSDK.cmake
@@ -12,32 +12,35 @@ endif(MAXSDK_INCLUDE_DIR)
find_path(MAXSDK_INCLUDE_DIR max.h
PATHS
+ "$ENV{ADSK_3DSMAX_SDK_2012}/maxsdk/include"
+ "$ENV{3DSMAX_2011_SDK_PATH}/maxsdk/include"
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2010 SDK/maxsdk/include"
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2009 SDK/maxsdk/include"
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2008 SDK/maxsdk/include"
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 9 SDK/maxsdk/include"
- "$ENV{3DSMAX_2011_SDK_PATH}/maxsdk/include"
)
find_path(MAXSDK_CS_INCLUDE_DIR bipexp.h
PATHS
+ "$ENV{ADSK_3DSMAX_SDK_2012}/maxsdk/include/CS"
+ "$ENV{3DSMAX_2011_SDK_PATH}/maxsdk/include/CS"
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2010 SDK/maxsdk/include/CS"
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2009 SDK/maxsdk/include/CS"
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2008 SDK/maxsdk/include/CS"
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 9 SDK/maxsdk/include/CS"
- "$ENV{3DSMAX_2011_SDK_PATH}/maxsdk/include/CS"
)
MACRO(FIND_3DS_LIBRARY MYLIBRARY MYLIBRARYNAME)
FIND_LIBRARY(${MYLIBRARY}
NAMES ${MYLIBRARYNAME}
PATHS
+ "$ENV{ADSK_3DSMAX_SDK_2012}/maxsdk/lib"
+ "$ENV{3DSMAX_2011_SDK_PATH}/maxsdk/lib"
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2010 SDK/maxsdk/lib"
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2009 SDK/maxsdk/lib"
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 2008 SDK/maxsdk/lib"
"$ENV{PROGRAMFILES}/Autodesk/3ds Max 9 SDK/maxsdk/lib"
- "$ENV{3DSMAX_2011_SDK_PATH}/maxsdk/lib"
- )
+ )
ENDMACRO(FIND_3DS_LIBRARY MYLIBRARY MYLIBRARYNAME)
FIND_3DS_LIBRARY(MAXSDK_CORE_LIBRARY core)
diff --git a/code/CMakeModules/FindDirectXSDK.cmake b/code/CMakeModules/FindDirectXSDK.cmake
index 1f832cf95..9947778db 100644
--- a/code/CMakeModules/FindDirectXSDK.cmake
+++ b/code/CMakeModules/FindDirectXSDK.cmake
@@ -14,17 +14,22 @@ FIND_PATH(DXSDK_DIR
"Include/dxsdkver.h"
PATHS
"$ENV{DXSDK_DIR}"
+ "C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)"
+ "C:/Program Files/Microsoft DirectX SDK (June 2010)"
+ "C:/Program Files (x86)/Microsoft DirectX SDK (February 2010)"
+ "C:/Program Files/Microsoft DirectX SDK (February 2010)"
+ "C:/Program Files (x86)/Microsoft DirectX SDK (November 2007)"
+ "C:/Program Files/Microsoft DirectX SDK (November 2007)"
+ "C:/Program Files (x86)/Microsoft DirectX SDK"
+ "C:/Program Files/Microsoft DirectX SDK"
)
MACRO(FIND_DXSDK_LIBRARY MYLIBRARY MYLIBRARYNAME)
FIND_LIBRARY(${MYLIBRARY}
NAMES ${MYLIBRARYNAME}
PATHS
- "${DXSDK_LIBRARY_DIR}"
- "$ENV{DXSDK_DIR}"
- "$ENV{DXSDK_DIR}/Lib"
- "$ENV{DXSDK_DIR}/Lib/x86"
- )
+ "${DXSDK_LIBRARY_DIR}"
+ )
ENDMACRO(FIND_DXSDK_LIBRARY MYLIBRARY MYLIBRARYNAME)
IF(DXSDK_DIR)
diff --git a/code/CMakeModules/FindExternal.cmake b/code/CMakeModules/FindExternal.cmake
index fae4af92d..5d6086bc6 100644
--- a/code/CMakeModules/FindExternal.cmake
+++ b/code/CMakeModules/FindExternal.cmake
@@ -8,7 +8,7 @@
# EXTERNAL_FOUND - True if the external libraries are available
SET(EXTERNAL_TEMP_PATH ${CMAKE_CURRENT_SOURCE_DIR}/external ${CMAKE_CURRENT_SOURCE_DIR}/../external ${CMAKE_CURRENT_SOURCE_DIR}/3rdParty ${CMAKE_CURRENT_SOURCE_DIR}/../3rdParty ${EXTERNAL_PATH})
-SET(EXTERNAL_TEMP_FILE "include/zlib.h")
+SET(EXTERNAL_TEMP_FILE "include/wwwconf.h")
SET(EXTERNAL_NAME "external")
# If using STLport preprend external_stlport
@@ -36,18 +36,18 @@ IF(EXTERNAL_PATH)
SET(EXTERNAL_INCLUDE_PATH "${EXTERNAL_PATH}/include")
# Using 32 or 64 bits binaries
- IF(TARGET_X64)
+ IF(TARGET_X64 AND WIN32)
SET(EXTERNAL_BINARY_PATH "${EXTERNAL_PATH}/bin64")
- ELSE(TARGET_X64)
+ ELSE(TARGET_X64 AND WIN32)
SET(EXTERNAL_BINARY_PATH "${EXTERNAL_PATH}/bin")
- ENDIF(TARGET_X64)
-
+ ENDIF(TARGET_X64 AND WIN32)
+
# Using 32 or 64 bits libraries
- IF(TARGET_X64)
+ IF(TARGET_X64 AND WIN32)
SET(EXTERNAL_LIBRARY_PATH "${EXTERNAL_PATH}/lib64")
- ELSE(TARGET_X64)
+ ELSE(TARGET_X64 AND WIN32)
SET(EXTERNAL_LIBRARY_PATH "${EXTERNAL_PATH}/lib")
- ENDIF(TARGET_X64)
+ ENDIF(TARGET_X64 AND WIN32)
SET(CMAKE_INCLUDE_PATH "${EXTERNAL_INCLUDE_PATH};${CMAKE_INCLUDE_PATH}")
# Stupid hack for FindOpenAL.cmake
diff --git a/code/CMakeModules/FindFreeType.cmake b/code/CMakeModules/FindFreeType.cmake
index 0ba439fb9..4f3c84cbe 100644
--- a/code/CMakeModules/FindFreeType.cmake
+++ b/code/CMakeModules/FindFreeType.cmake
@@ -41,7 +41,7 @@ IF(FREETYPE_ADDITIONAL_INCLUDE_DIR)
ENDIF(FREETYPE_ADDITIONAL_INCLUDE_DIR)
FIND_LIBRARY(FREETYPE_LIBRARY
- NAMES freetype libfreetype freetype219
+ NAMES freetype libfreetype freetype219 freetype246
PATHS
$ENV{FREETYPE_DIR}/lib
/usr/local/lib
@@ -57,6 +57,13 @@ FIND_LIBRARY(FREETYPE_LIBRARY
IF(FREETYPE_LIBRARY AND FREETYPE_INCLUDE_DIRS)
SET(FREETYPE_FOUND "YES")
+ IF(WITH_STATIC_EXTERNAL AND APPLE)
+ FIND_PACKAGE(BZip2)
+ IF(BZIP2_FOUND)
+ SET(FREETYPE_INCLUDE_DIRS ${FREETYPE_INCLUDE_DIRS} ${BZIP2_INCLUDE_DIR})
+ SET(FREETYPE_LIBRARY ${FREETYPE_LIBRARY} ${BZIP2_LIBRARIES})
+ ENDIF(BZIP2_FOUND)
+ ENDIF(WITH_STATIC_EXTERNAL AND APPLE)
IF(NOT FREETYPE_FIND_QUIETLY)
MESSAGE(STATUS "Found FreeType: ${FREETYPE_LIBRARY}")
ENDIF(NOT FREETYPE_FIND_QUIETLY)
diff --git a/code/CMakeModules/FindLibwww.cmake b/code/CMakeModules/FindLibwww.cmake
index 8f1c1c02a..77140492e 100644
--- a/code/CMakeModules/FindLibwww.cmake
+++ b/code/CMakeModules/FindLibwww.cmake
@@ -6,6 +6,8 @@
# LIBWWW_LIBRARY, where to find the LibWWW library.
# LIBWWW_FOUND, If false, do not try to use LibWWW.
+OPTION(WITH_LIBWWW_STATIC "Use only static libraries for libwww" OFF)
+
SET(LIBWWW_FIND_QUIETLY ${Libwww_FIND_QUIETLY})
# also defined, but not for general use are
@@ -46,6 +48,11 @@ ENDIF(LIBWWW_ADDITIONAL_INCLUDE_DIR)
# helper to find all the libwww sub libraries
MACRO(FIND_WWW_LIBRARY MYLIBRARY OPTION)
+ IF(WITH_LIBWWW_STATIC AND UNIX AND NOT APPLE AND NOT WITH_STATIC_EXTERNAL)
+ SET(CMAKE_FIND_LIBRARY_SUFFIXES_OLD ${CMAKE_FIND_LIBRARY_SUFFIXES})
+ SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
+ ENDIF(WITH_LIBWWW_STATIC AND UNIX AND NOT APPLE AND NOT WITH_STATIC_EXTERNAL)
+
FIND_LIBRARY(${MYLIBRARY}
NAMES ${ARGN}
PATHS
@@ -60,21 +67,27 @@ MACRO(FIND_WWW_LIBRARY MYLIBRARY OPTION)
/usr/freeware/lib64
)
+ IF(CMAKE_FIND_LIBRARY_SUFFIXES_OLD)
+ SET(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES_OLD})
+ ENDIF(CMAKE_FIND_LIBRARY_SUFFIXES_OLD)
+
IF(${MYLIBRARY})
- IF(${OPTION} STREQUAL REQUIRED OR WITH_STATIC)
+ IF(${OPTION} STREQUAL REQUIRED OR WITH_STATIC OR WITH_LIBWWW_STATIC)
SET(LIBWWW_LIBRARIES ${LIBWWW_LIBRARIES} ${${MYLIBRARY}})
- ENDIF(${OPTION} STREQUAL REQUIRED OR WITH_STATIC)
+ ENDIF(${OPTION} STREQUAL REQUIRED OR WITH_STATIC OR WITH_LIBWWW_STATIC)
ELSE(${MYLIBRARY})
- IF(NOT LIBWWW_FIND_QUIETLY)
+ IF(NOT LIBWWW_FIND_QUIETLY AND NOT WIN32)
MESSAGE(STATUS "Warning: Libwww: Library not found: ${MYLIBRARY}")
- ENDIF(NOT LIBWWW_FIND_QUIETLY)
+ ENDIF(NOT LIBWWW_FIND_QUIETLY AND NOT WIN32)
ENDIF(${MYLIBRARY})
MARK_AS_ADVANCED(${MYLIBRARY})
ENDMACRO(FIND_WWW_LIBRARY)
MACRO(LINK_WWW_LIBRARY MYLIBRARY OTHERLIBRARY SYMBOL)
- LINK_DEPENDS(LIBWWW_LIBRARIES ${MYLIBRARY} ${OTHERLIBRARY} ${SYMBOL})
+ IF(NOT WITH_LIBWWW_STATIC AND NOT WITH_STATIC_EXTERNAL)
+ LINK_DEPENDS(LIBWWW_LIBRARIES ${MYLIBRARY} ${OTHERLIBRARY} ${SYMBOL})
+ ENDIF(NOT WITH_LIBWWW_STATIC AND NOT WITH_STATIC_EXTERNAL)
ENDMACRO(LINK_WWW_LIBRARY)
# Find and link required libs for static or dynamic
diff --git a/code/CMakeModules/FindMercurial.cmake b/code/CMakeModules/FindMercurial.cmake
new file mode 100644
index 000000000..9c252ad17
--- /dev/null
+++ b/code/CMakeModules/FindMercurial.cmake
@@ -0,0 +1,108 @@
+# - Extract information from a subversion working copy
+# The module defines the following variables:
+# Mercurial_HG_EXECUTABLE - path to hg command line client
+# Mercurial_VERSION_HG - version of hg command line client
+# Mercurial_FOUND - true if the command line client was found
+# MERCURIAL_FOUND - same as Mercurial_FOUND, set for compatiblity reasons
+#
+# The minimum required version of Mercurial can be specified using the
+# standard syntax, e.g. FIND_PACKAGE(Mercurial 1.4)
+#
+# If the command line client executable is found two macros are defined:
+# Mercurial_WC_INFO(
)
+# Mercurial_WC_LOG( )
+# Mercurial_WC_INFO extracts information of a subversion working copy at
+# a given location. This macro defines the following variables:
+# _WC_URL - url of the repository (at )
+# _WC_ROOT - root url of the repository
+# _WC_REVISION - current revision
+# _WC_LAST_CHANGED_AUTHOR - author of last commit
+# _WC_LAST_CHANGED_DATE - date of last commit
+# _WC_LAST_CHANGED_REV - revision of last commit
+# _WC_INFO - output of command `hg info '
+# Mercurial_WC_LOG retrieves the log message of the base revision of a
+# subversion working copy at a given location. This macro defines the
+# variable:
+# _LAST_CHANGED_LOG - last log of base revision
+# Example usage:
+# FIND_PACKAGE(Mercurial)
+# IF(MERCURIAL_FOUND)
+# Mercurial_WC_INFO(${PROJECT_SOURCE_DIR} Project)
+# MESSAGE("Current revision is ${Project_WC_REVISION}")
+# Mercurial_WC_LOG(${PROJECT_SOURCE_DIR} Project)
+# MESSAGE("Last changed log is ${Project_LAST_CHANGED_LOG}")
+# ENDIF(MERCURIAL_FOUND)
+
+#=============================================================================
+# Copyright 2006-2009 Kitware, Inc.
+# Copyright 2006 Tristan Carel
+#
+# Distributed under the OSI-approved BSD License (the "License");
+# see accompanying file Copyright.txt for details.
+#
+# This software is distributed WITHOUT ANY WARRANTY; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the License for more information.
+#=============================================================================
+# (To distribute this file outside of CMake, substitute the full
+# License text for the above reference.)
+
+FIND_PROGRAM(Mercurial_HG_EXECUTABLE hg
+ DOC "mercurial command line client")
+MARK_AS_ADVANCED(Mercurial_HG_EXECUTABLE)
+
+IF(Mercurial_HG_EXECUTABLE)
+ EXECUTE_PROCESS(COMMAND ${Mercurial_HG_EXECUTABLE} --version
+ OUTPUT_VARIABLE Mercurial_VERSION_HG
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+ STRING(REGEX REPLACE ".*version ([\\.0-9]+).*"
+ "\\1" Mercurial_VERSION_HG "${Mercurial_VERSION_HG}")
+
+ MACRO(Mercurial_WC_INFO dir prefix)
+ EXECUTE_PROCESS(COMMAND ${Mercurial_HG_EXECUTABLE} tip
+ WORKING_DIRECTORY ${dir}
+ OUTPUT_VARIABLE ${prefix}_WC_INFO
+ ERROR_VARIABLE Mercurial_hg_info_error
+ RESULT_VARIABLE Mercurial_hg_info_result
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+ IF(NOT ${Mercurial_hg_info_result} EQUAL 0)
+ MESSAGE(SEND_ERROR "Command \"${Mercurial_HG_EXECUTABLE} tip\" failed with output:\n${Mercurial_hg_info_error}")
+ ELSE(NOT ${Mercurial_hg_info_result} EQUAL 0)
+
+ STRING(REGEX REPLACE "^(.*\n)?Repository Root: ([^\n]+).*"
+ "\\2" ${prefix}_WC_ROOT "${${prefix}_WC_INFO}")
+ STRING(REGEX REPLACE "^(.*\n)?changeset: *([0-9]+).*"
+ "\\2" ${prefix}_WC_REVISION "${${prefix}_WC_INFO}")
+ STRING(REGEX REPLACE "^(.*\n)?Last Changed Author: ([^\n]+).*"
+ "\\2" ${prefix}_WC_LAST_CHANGED_AUTHOR "${${prefix}_WC_INFO}")
+ STRING(REGEX REPLACE "^(.*\n)?Last Changed Rev: ([^\n]+).*"
+ "\\2" ${prefix}_WC_LAST_CHANGED_REV "${${prefix}_WC_INFO}")
+ STRING(REGEX REPLACE "^(.*\n)?Last Changed Date: ([^\n]+).*"
+ "\\2" ${prefix}_WC_LAST_CHANGED_DATE "${${prefix}_WC_INFO}")
+
+ ENDIF(NOT ${Mercurial_hg_info_result} EQUAL 0)
+
+ ENDMACRO(Mercurial_WC_INFO)
+
+ MACRO(Mercurial_WC_LOG dir prefix)
+ # This macro can block if the certificate is not signed:
+ # hg ask you to accept the certificate and wait for your answer
+ # This macro requires a hg server network access (Internet most of the time)
+ # and can also be slow since it access the hg server
+ EXECUTE_PROCESS(COMMAND
+ ${Mercurial_HG_EXECUTABLE} --non-interactive log -r BASE ${dir}
+ OUTPUT_VARIABLE ${prefix}_LAST_CHANGED_LOG
+ ERROR_VARIABLE Mercurial_hg_log_error
+ RESULT_VARIABLE Mercurial_hg_log_result
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+ IF(NOT ${Mercurial_hg_log_result} EQUAL 0)
+ MESSAGE(SEND_ERROR "Command \"${Mercurial_HG_EXECUTABLE} log -r BASE ${dir}\" failed with output:\n${Mercurial_hg_log_error}")
+ ENDIF(NOT ${Mercurial_hg_log_result} EQUAL 0)
+ ENDMACRO(Mercurial_WC_LOG)
+ENDIF(Mercurial_HG_EXECUTABLE)
+
+INCLUDE(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(Mercurial DEFAULT_MSG Mercurial_HG_EXECUTABLE)
diff --git a/code/CMakeModules/FindWindowsSDK.cmake b/code/CMakeModules/FindWindowsSDK.cmake
index 30e507f85..25903be14 100644
--- a/code/CMakeModules/FindWindowsSDK.cmake
+++ b/code/CMakeModules/FindWindowsSDK.cmake
@@ -33,6 +33,12 @@ FIND_PATH(WINSDK_INCLUDE_DIR Windows.h
${WINSDKCURRENT_DIR}/Include
)
+FIND_PROGRAM(WINSDK_SIGNTOOL signtool
+ PATHS
+ ${WINSDK71_DIR}/Bin
+ ${WINSDKCURRENT_DIR}/Bin
+)
+
IF(WINSDK_INCLUDE_DIR)
SET(WINSDK_FOUND TRUE)
ELSE(WINSDK_INCLUDE_DIR)
diff --git a/code/CMakeModules/GetRevision.cmake b/code/CMakeModules/GetRevision.cmake
new file mode 100644
index 000000000..ee3fa2e90
--- /dev/null
+++ b/code/CMakeModules/GetRevision.cmake
@@ -0,0 +1,59 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6.3)
+
+# ROOT_DIR should be set to root of the repository (where to find the .svn or .hg directory)
+# SOURCE_DIR should be set to root of your code (where to find CMakeLists.txt)
+
+# Replace spaces by semi-columns
+IF(CMAKE_MODULE_PATH)
+ STRING(REPLACE " " ";" CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
+ENDIF(CMAKE_MODULE_PATH)
+
+SET(CMAKE_MODULE_PATH ${SOURCE_DIR}/CMakeModules ${CMAKE_MODULE_PATH})
+
+IF(NOT ROOT_DIR AND SOURCE_DIR)
+ SET(ROOT_DIR ${SOURCE_DIR})
+ENDIF(NOT ROOT_DIR AND SOURCE_DIR)
+
+IF(NOT SOURCE_DIR AND ROOT_DIR)
+ SET(SOURCE_DIR ${ROOT_DIR})
+ENDIF(NOT SOURCE_DIR AND ROOT_DIR)
+
+MACRO(NOW RESULT)
+ IF (WIN32)
+ EXECUTE_PROCESS(COMMAND "wmic" "os" "get" "localdatetime" OUTPUT_VARIABLE DATETIME)
+ IF(NOT DATETIME MATCHES "ERROR")
+ STRING(REGEX REPLACE ".*\n([0-9][0-9][0-9][0-9])([0-9][0-9])([0-9][0-9])([0-9][0-9])([0-9][0-9])([0-9][0-9]).*" "\\1-\\2-\\3 \\4:\\5:\\6" ${RESULT} "${DATETIME}")
+ ENDIF(NOT DATETIME MATCHES "ERROR")
+ ELSEIF(UNIX)
+ EXECUTE_PROCESS(COMMAND "date" "+'%Y-%m-%d %H:%M:%S'" OUTPUT_VARIABLE ${RESULT})
+ ELSE (WIN32)
+ MESSAGE(SEND_ERROR "date not implemented")
+ SET(${RESULT} "0000-00-00 00:00:00")
+ ENDIF (WIN32)
+ENDMACRO(NOW)
+
+IF(EXISTS "${ROOT_DIR}/.svn/")
+ FIND_PACKAGE(Subversion)
+
+ IF(SUBVERSION_FOUND)
+ Subversion_WC_INFO(${ROOT_DIR} ER)
+ SET(REVISION ${ER_WC_REVISION})
+ ENDIF(SUBVERSION_FOUND)
+ENDIF(EXISTS "${ROOT_DIR}/.svn/")
+
+IF(EXISTS "${ROOT_DIR}/.hg/")
+ FIND_PACKAGE(Mercurial)
+
+ IF(MERCURIAL_FOUND)
+ Mercurial_WC_INFO(${ROOT_DIR} ER)
+ SET(REVISION ${ER_WC_REVISION})
+ ENDIF(MERCURIAL_FOUND)
+ENDIF(EXISTS "${ROOT_DIR}/.hg/")
+
+IF(REVISION)
+ IF(EXISTS ${SOURCE_DIR}/revision.h.in)
+ NOW(BUILD_DATE)
+ CONFIGURE_FILE(${SOURCE_DIR}/revision.h.in revision.h.txt)
+ EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E copy revision.h.txt revision.h) # copy_if_different
+ ENDIF(EXISTS ${SOURCE_DIR}/revision.h.in)
+ENDIF(REVISION)
diff --git a/code/CMakeModules/PCHSupport.cmake b/code/CMakeModules/PCHSupport.cmake
index bb34aebfe..ae5b30ee2 100644
--- a/code/CMakeModules/PCHSupport.cmake
+++ b/code/CMakeModules/PCHSupport.cmake
@@ -8,44 +8,40 @@
# ADD_PRECOMPILED_HEADER_TO_TARGET _targetName _input _pch_output_to_use
# ADD_NATIVE_PRECOMPILED_HEADER _targetName _inputh _inputcpp
-IF(CMAKE_COMPILER_IS_GNUCXX)
+IF(MSVC)
+ SET(PCHSupport_FOUND TRUE)
+ SET(_PCH_include_prefix "/I")
+ELSE(MSVC)
+ IF(CMAKE_COMPILER_IS_GNUCXX)
+ EXEC_PROGRAM(${CMAKE_CXX_COMPILER}
+ ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion
+ OUTPUT_VARIABLE gcc_compiler_version)
- EXEC_PROGRAM(
- ${CMAKE_CXX_COMPILER}
- ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion
- OUTPUT_VARIABLE gcc_compiler_version)
-
- IF(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
- SET(PCHSupport_FOUND TRUE)
- ELSE(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
- IF(gcc_compiler_version MATCHES "3\\.4\\.[0-9]")
+ IF(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
SET(PCHSupport_FOUND TRUE)
- ENDIF(gcc_compiler_version MATCHES "3\\.4\\.[0-9]")
- ENDIF(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
+ ELSE(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
+ IF(gcc_compiler_version MATCHES "3\\.4\\.[0-9]")
+ SET(PCHSupport_FOUND TRUE)
+ ENDIF(gcc_compiler_version MATCHES "3\\.4\\.[0-9]")
+ ENDIF(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
+ ELSE(CMAKE_COMPILER_IS_GNUCXX)
+ # TODO: make tests for other compilers than GCC
+ SET(PCHSupport_FOUND TRUE)
+ ENDIF(CMAKE_COMPILER_IS_GNUCXX)
SET(_PCH_include_prefix "-I")
-
-ELSE(CMAKE_COMPILER_IS_GNUCXX)
-
- IF(WIN32)
- SET(PCHSupport_FOUND TRUE) # for experimental msvc support
- SET(_PCH_include_prefix "/I")
- ELSE(WIN32)
- SET(PCHSupport_FOUND FALSE)
- ENDIF(WIN32)
-
-ENDIF(CMAKE_COMPILER_IS_GNUCXX)
+ENDIF(MSVC)
MACRO(_PCH_GET_COMPILE_FLAGS _out_compile_flags)
STRING(TOUPPER "CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}" _flags_var_name)
SET(${_out_compile_flags} ${${_flags_var_name}} )
- IF(CMAKE_COMPILER_IS_GNUCXX)
+ IF(NOT MSVC)
GET_TARGET_PROPERTY(_targetType ${_PCH_current_target} TYPE)
IF(${_targetType} STREQUAL SHARED_LIBRARY OR ${_targetType} STREQUAL MODULE_LIBRARY)
LIST(APPEND ${_out_compile_flags} "-fPIC")
ENDIF(${_targetType} STREQUAL SHARED_LIBRARY OR ${_targetType} STREQUAL MODULE_LIBRARY)
- ENDIF(CMAKE_COMPILER_IS_GNUCXX)
+ ENDIF(NOT MSVC)
GET_DIRECTORY_PROPERTY(DIRINC INCLUDE_DIRECTORIES )
FOREACH(item ${DIRINC})
@@ -100,17 +96,13 @@ MACRO(_PCH_GET_COMPILE_COMMAND out_command _input _inputcpp _output)
SET(pchsupport_compiler_cxx_arg1 "")
ENDIF(CMAKE_CXX_COMPILER_ARG1)
- IF(CMAKE_COMPILER_IS_GNUCXX)
- SET(${out_command}
- ${CMAKE_CXX_COMPILER} ${pchsupport_compiler_cxx_arg1} ${_compile_FLAGS} -x c++-header -o ${_output} -c ${_input}
- )
- ELSE(CMAKE_COMPILER_IS_GNUCXX)
+ IF(MSVC)
_PCH_GET_PDB_FILENAME(PDB_FILE ${_PCH_current_target})
- SET(${out_command}
- ${CMAKE_CXX_COMPILER} ${pchsupport_compiler_cxx_arg1} ${_compile_FLAGS} /Yc /Fp\"${_output}\" ${_inputcpp} /c /Fd\"${PDB_FILE}\"
- )
- ENDIF(CMAKE_COMPILER_IS_GNUCXX)
-ENDMACRO(_PCH_GET_COMPILE_COMMAND )
+ SET(${out_command} ${CMAKE_CXX_COMPILER} ${pchsupport_compiler_cxx_arg1} ${_compile_FLAGS} /Yc /Fp\"${_output}\" ${_inputcpp} /c /Fd\"${PDB_FILE}\")
+ ELSE(MSVC)
+ SET(${out_command} ${CMAKE_CXX_COMPILER} ${pchsupport_compiler_cxx_arg1} ${_compile_FLAGS} -x c++-header -o ${_output} -c ${_input})
+ ENDIF(MSVC)
+ENDMACRO(_PCH_GET_COMPILE_COMMAND)
MACRO(GET_PRECOMPILED_HEADER_OUTPUT _targetName _input _output)
IF(MSVC)
@@ -128,7 +120,9 @@ MACRO(ADD_PRECOMPILED_HEADER_TO_TARGET _targetName _input _pch_output_to_use )
SET(oldProps "")
ENDIF(${oldProps} MATCHES NOTFOUND)
- IF(CMAKE_COMPILER_IS_GNUCXX)
+ IF(MSVC)
+ SET(_target_cflags "${oldProps} /Yu\"${_input}\" /FI\"${_input}\" /Fp\"${_pch_output_to_use}\"")
+ ELSE(MSVC)
# to do: test whether compiler flags match between target _targetName
# and _pch_output_to_use
FILE(TO_NATIVE_PATH ${_pch_output_to_use} _native_pch_path)
@@ -137,11 +131,7 @@ MACRO(ADD_PRECOMPILED_HEADER_TO_TARGET _targetName _input _pch_output_to_use )
# on all remote machines set
# PCH_ADDITIONAL_COMPILER_FLAGS to -fpch-preprocess
SET(_target_cflags "${oldProps} ${PCH_ADDITIONAL_COMPILER_FLAGS}-include ${_input} -Winvalid-pch")
- ELSE(CMAKE_COMPILER_IS_GNUCXX)
- IF(MSVC)
- SET(_target_cflags "${oldProps} /Yu\"${_input}\" /FI\"${_input}\" /Fp\"${_pch_output_to_use}\"")
- ENDIF(MSVC)
- ENDIF(CMAKE_COMPILER_IS_GNUCXX)
+ ENDIF(MSVC)
SET_TARGET_PROPERTIES(${_targetName} PROPERTIES COMPILE_FLAGS ${_target_cflags})
IF(oldProps)
@@ -184,8 +174,31 @@ MACRO(ADD_PRECOMPILED_HEADER _targetName _inputh _inputcpp)
ADD_PRECOMPILED_HEADER_TO_TARGET(${_targetName} ${_inputh} ${_output})
ENDMACRO(ADD_PRECOMPILED_HEADER)
+# Macro to move PCH creation file to the front of files list
+MACRO(FIX_PRECOMPILED_HEADER _files _pch)
+ # Remove .cpp creating PCH from the list
+ LIST(REMOVE_ITEM ${_files} ${_pch})
+ # Prepend .cpp creating PCH to the list
+ LIST(INSERT ${_files} 0 ${_pch})
+ENDMACRO(FIX_PRECOMPILED_HEADER)
+
MACRO(ADD_NATIVE_PRECOMPILED_HEADER _targetName _inputh _inputcpp)
- IF(CMAKE_GENERATOR MATCHES Visual*)
+ SET(PCH_METHOD 0)
+
+ # 0 => creating a new target for PCH, works for all makefiles
+ # 1 => setting PCH for VC++ project, works for VC++ projects
+ # 2 => setting PCH for XCode project, works for XCode projects
+ IF(CMAKE_GENERATOR MATCHES "Visual Studio")
+ SET(PCH_METHOD 1)
+ ELSEIF(CMAKE_GENERATOR MATCHES "NMake Makefiles" AND MFC_FOUND AND CMAKE_MFC_FLAG)
+ # To fix a bug with MFC
+ # Don't forget to use FIX_PRECOMPILED_HEADER before creating the target
+# SET(PCH_METHOD 1)
+ ELSEIF(CMAKE_GENERATOR MATCHES "Xcode")
+ SET(PCH_METHOD 2)
+ ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio")
+
+ IF(PCH_METHOD EQUAL 1)
# Auto include the precompile (useful for moc processing, since the use of
# precompiled is specified at the target level
# and I don't want to specifiy /F- for each moc/res/ui generated files (using Qt)
@@ -200,26 +213,24 @@ MACRO(ADD_NATIVE_PRECOMPILED_HEADER _targetName _inputh _inputcpp)
#also inlude ${oldProps} to have the same compile options
SET_SOURCE_FILES_PROPERTIES(${_inputcpp} PROPERTIES COMPILE_FLAGS "${oldProps} /Yc\"${_inputh}\"")
- ELSE(CMAKE_GENERATOR MATCHES Visual*)
- IF(CMAKE_GENERATOR MATCHES Xcode)
- # For Xcode, cmake needs my patch to process
- # GCC_PREFIX_HEADER and GCC_PRECOMPILE_PREFIX_HEADER as target properties
+ ELSEIF(PCH_METHOD EQUAL 2)
+ # For Xcode, cmake needs my patch to process
+ # GCC_PREFIX_HEADER and GCC_PRECOMPILE_PREFIX_HEADER as target properties
- GET_TARGET_PROPERTY(oldProps ${_targetName} COMPILE_FLAGS)
- IF(${oldProps} MATCHES NOTFOUND)
- SET(oldProps "")
- ENDIF(${oldProps} MATCHES NOTFOUND)
+ GET_TARGET_PROPERTY(oldProps ${_targetName} COMPILE_FLAGS)
+ IF(${oldProps} MATCHES NOTFOUND)
+ SET(oldProps "")
+ ENDIF(${oldProps} MATCHES NOTFOUND)
- # When buiding out of the tree, precompiled may not be located
- # Use full path instead.
- GET_FILENAME_COMPONENT(fullPath ${_inputh} ABSOLUTE)
+ # When buiding out of the tree, precompiled may not be located
+ # Use full path instead.
+ GET_FILENAME_COMPONENT(fullPath ${_inputh} ABSOLUTE)
- SET_TARGET_PROPERTIES(${_targetName} PROPERTIES XCODE_ATTRIBUTE_GCC_PREFIX_HEADER "${fullPath}")
- SET_TARGET_PROPERTIES(${_targetName} PROPERTIES XCODE_ATTRIBUTE_GCC_PRECOMPILE_PREFIX_HEADER "YES")
- ELSE(CMAKE_GENERATOR MATCHES Xcode)
- #Fallback to the "old" precompiled suppport
- ADD_PRECOMPILED_HEADER(${_targetName} ${_inputh} ${_inputcpp})
- ENDIF(CMAKE_GENERATOR MATCHES Xcode)
- ENDIF(CMAKE_GENERATOR MATCHES Visual*)
+ SET_TARGET_PROPERTIES(${_targetName} PROPERTIES XCODE_ATTRIBUTE_GCC_PREFIX_HEADER "${fullPath}")
+ SET_TARGET_PROPERTIES(${_targetName} PROPERTIES XCODE_ATTRIBUTE_GCC_PRECOMPILE_PREFIX_HEADER "YES")
+ ELSE(PCH_METHOD EQUAL 1)
+ #Fallback to the "old" precompiled suppport
+ ADD_PRECOMPILED_HEADER(${_targetName} ${_inputh} ${_inputcpp})
+ ENDIF(PCH_METHOD EQUAL 1)
ENDMACRO(ADD_NATIVE_PRECOMPILED_HEADER)
diff --git a/code/CMakeModules/nel.cmake b/code/CMakeModules/nel.cmake
index d2a5cb014..bd92e743e 100644
--- a/code/CMakeModules/nel.cmake
+++ b/code/CMakeModules/nel.cmake
@@ -3,12 +3,39 @@
# Argument: name - the name of the .pc package, e.g. "nel-pacs.pc"
###
MACRO(NL_GEN_PC name)
- IF(NOT WIN32)
+ IF(NOT WIN32 AND WITH_INSTALL_LIBRARIES)
CONFIGURE_FILE(${name}.in "${CMAKE_CURRENT_BINARY_DIR}/${name}")
INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/${name}" DESTINATION lib/pkgconfig)
- ENDIF(NOT WIN32)
+ ENDIF(NOT WIN32 AND WITH_INSTALL_LIBRARIES)
ENDMACRO(NL_GEN_PC)
+###
+# Helper macro that generates revision.h from revision.h.in
+###
+MACRO(NL_GEN_REVISION_H)
+ IF(EXISTS ${CMAKE_SOURCE_DIR}/revision.h.in)
+ INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
+ ADD_DEFINITIONS(-DHAVE_REVISION_H)
+ SET(HAVE_REVISION_H ON)
+
+ # a custom target that is always built
+ ADD_CUSTOM_TARGET(revision ALL
+ DEPENDS ${CMAKE_BINARY_DIR}/revision.h)
+
+ # creates revision.h using cmake script
+ ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_BINARY_DIR}/revision.h
+ COMMAND ${CMAKE_COMMAND}
+ -DSOURCE_DIR=${CMAKE_SOURCE_DIR}
+ -DROOT_DIR=${CMAKE_SOURCE_DIR}/..
+ -P ${CMAKE_SOURCE_DIR}/CMakeModules/GetRevision.cmake)
+
+ # revision.h is a generated file
+ SET_SOURCE_FILES_PROPERTIES(${CMAKE_BINARY_DIR}/revision.h
+ PROPERTIES GENERATED TRUE
+ HEADER_FILE_ONLY TRUE)
+ ENDIF(EXISTS ${CMAKE_SOURCE_DIR}/revision.h.in)
+ENDMACRO(NL_GEN_REVISION_H)
+
###
#
###
@@ -49,6 +76,15 @@ MACRO(NL_DEFAULT_PROPS name label)
SET_TARGET_PROPERTIES(${name} PROPERTIES INSTALL_NAME_DIR ${NL_LIB_PREFIX})
ENDIF(NL_LIB_PREFIX)
ENDIF(${type} STREQUAL SHARED_LIBRARY)
+
+ IF(${type} STREQUAL EXECUTABLE AND WIN32)
+ SET_TARGET_PROPERTIES(${name} PROPERTIES
+ VERSION ${NL_VERSION}
+ SOVERSION ${NL_VERSION_MAJOR}
+ COMPILE_FLAGS "/GA"
+ LINK_FLAGS "/VERSION:${NL_VERSION}")
+ ENDIF(${type} STREQUAL EXECUTABLE AND WIN32)
+
IF(WITH_STLPORT AND WIN32)
SET_TARGET_PROPERTIES(${name} PROPERTIES COMPILE_FLAGS "/X")
ENDIF(WITH_STLPORT AND WIN32)
@@ -171,7 +207,13 @@ MACRO(NL_SETUP_DEFAULT_OPTIONS)
OPTION(WITH_STATIC "With static libraries." OFF)
ENDIF(WIN32)
OPTION(WITH_STATIC_DRIVERS "With static drivers." OFF)
+ IF(WIN32)
+ OPTION(WITH_EXTERNAL "With provided external." ON )
+ ELSE(WIN32)
+ OPTION(WITH_EXTERNAL "With provided external." OFF)
+ ENDIF(WIN32)
OPTION(WITH_STATIC_EXTERNAL "With static external libraries" OFF)
+ OPTION(WITH_INSTALL_LIBRARIES "Install development files." ON )
###
# GUI toolkits
@@ -196,10 +238,10 @@ MACRO(NL_SETUP_DEFAULT_OPTIONS)
OPTION(BUILD_DASHBOARD "Build to the CDash dashboard" OFF)
- OPTION(WITH_NEL "Build NeL (nearly always required)." ON )
- OPTION(WITH_NELNS "Build NeL Network Services." OFF)
- OPTION(WITH_RYZOM "Build Ryzom Core." ON )
- OPTION(WITH_SNOWBALLS "Build Snowballs." OFF)
+ OPTION(WITH_NEL "Build NeL (nearly always required)." ON )
+ OPTION(WITH_NELNS "Build NeL Network Services." OFF)
+ OPTION(WITH_RYZOM "Build Ryzom Core." ON )
+ OPTION(WITH_SNOWBALLS "Build Snowballs." OFF)
ENDMACRO(NL_SETUP_DEFAULT_OPTIONS)
MACRO(NL_SETUP_NEL_DEFAULT_OPTIONS)
@@ -289,44 +331,90 @@ MACRO(NL_SETUP_BUILD)
ENDIF(CMAKE_BUILD_TYPE MATCHES "Release")
ENDIF(CMAKE_BUILD_TYPE MATCHES "Debug")
- # Determine target CPU
-# IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86")
- IF(NOT CMAKE_SIZEOF_VOID_P)
- INCLUDE (CheckTypeSize)
- CHECK_TYPE_SIZE("void*" CMAKE_SIZEOF_VOID_P)
- ENDIF(NOT CMAKE_SIZEOF_VOID_P)
+ SET(HOST_CPU ${CMAKE_SYSTEM_PROCESSOR})
- # Using 32 or 64 bits libraries
+ # Determine target CPU
+ IF(NOT TARGET_CPU)
+ SET(TARGET_CPU $ENV{DEB_HOST_GNU_CPU})
+ ENDIF(NOT TARGET_CPU)
+
+ # If not specified, use the same CPU as host
+ IF(NOT TARGET_CPU)
+ SET(TARGET_CPU ${CMAKE_SYSTEM_PROCESSOR})
+ ENDIF(NOT TARGET_CPU)
+
+ IF(TARGET_CPU MATCHES "amd64")
+ SET(TARGET_CPU "x86_64")
+ ELSEIF(TARGET_CPU MATCHES "i.86")
+ SET(TARGET_CPU "x86")
+ ENDIF(TARGET_CPU MATCHES "amd64")
+
+ # DEB_HOST_ARCH_ENDIAN is 'little' or 'big'
+ # DEB_HOST_ARCH_BITS is '32' or '64'
+
+ # If target and host CPU are the same
+ IF("${HOST_CPU}" STREQUAL "${TARGET_CPU}")
+ # x86-compatible CPU
+ IF(HOST_CPU MATCHES "x86")
+ IF(NOT CMAKE_SIZEOF_VOID_P)
+ INCLUDE (CheckTypeSize)
+ CHECK_TYPE_SIZE("void*" CMAKE_SIZEOF_VOID_P)
+ ENDIF(NOT CMAKE_SIZEOF_VOID_P)
+
+ # Using 32 or 64 bits libraries
+ IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
+ SET(TARGET_CPU "x86_64")
+ ELSE(CMAKE_SIZEOF_VOID_P EQUAL 8)
+ SET(TARGET_CPU "x86")
+ ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8)
+ ENDIF(HOST_CPU MATCHES "x86")
+ # TODO: add checks for ARM and PPC
+ ELSE("${HOST_CPU}" STREQUAL "${TARGET_CPU}")
+ MESSAGE(STATUS "Compiling on ${HOST_CPU} for ${TARGET_CPU}")
+ ENDIF("${HOST_CPU}" STREQUAL "${TARGET_CPU}")
+
+ IF(TARGET_CPU STREQUAL "x86_64")
+ SET(TARGET_X64 1)
+ SET(PLATFORM_CFLAGS "-DHAVE_X86_64")
+ ELSEIF(TARGET_CPU STREQUAL "x86")
SET(TARGET_X86 1)
- IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
- SET(ARCH "x86_64")
- SET(TARGET_X64 1)
- ADD_DEFINITIONS(-DHAVE_X86_64)
- ELSE(CMAKE_SIZEOF_VOID_P EQUAL 8)
- SET(ARCH "x86")
- ADD_DEFINITIONS(-DHAVE_X86)
- ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8)
-# ADD_DEFINITIONS(-DHAVE_IA64)
-# ENDIF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86")
-
- IF(WIN32)
+ SET(PLATFORM_CFLAGS "-DHAVE_X86")
+ ENDIF(TARGET_CPU STREQUAL "x86_64")
+
+ # Fix library paths suffixes for Debian MultiArch
+ IF(NOT CMAKE_LIBRARY_ARCHITECTURE)
+ SET(CMAKE_LIBRARY_ARCHITECTURE $ENV{DEB_HOST_MULTIARCH})
+ ENDIF(NOT CMAKE_LIBRARY_ARCHITECTURE)
+
+ IF(CMAKE_LIBRARY_ARCHITECTURE)
+ SET(CMAKE_LIBRARY_PATH "/lib/${CMAKE_LIBRARY_ARCHITECTURE};/usr/lib/${CMAKE_LIBRARY_ARCHITECTURE};${CMAKE_LIBRARY_PATH}")
+ ENDIF(CMAKE_LIBRARY_ARCHITECTURE)
+
+ IF(MSVC)
IF(MSVC10)
# /Ox is working with VC++ 2010, but custom optimizations don't exist
SET(SPEED_OPTIMIZATIONS "/Ox /GF /GS-")
# without inlining it's unusable, use custom optimizations again
SET(MIN_OPTIMIZATIONS "/Od /Ob1")
- ELSE(MSVC10)
+ ELSEIF(MSVC90)
# don't use a /O[012x] flag if you want custom optimizations
SET(SPEED_OPTIMIZATIONS "/Ob2 /Oi /Ot /Oy /GT /GF /GS-")
# without inlining it's unusable, use custom optimizations again
SET(MIN_OPTIMIZATIONS "/Ob1")
+ ELSEIF(MSVC80)
+ # don't use a /O[012x] flag if you want custom optimizations
+ SET(SPEED_OPTIMIZATIONS "/Ox /GF /GS-")
+ # without inlining it's unusable, use custom optimizations again
+ SET(MIN_OPTIMIZATIONS "/Od /Ob1")
+ ELSE(MSVC10)
+ MESSAGE(FATAL_ERROR "Can't determine compiler version ${MSVC_VERSION}")
ENDIF(MSVC10)
- SET(PLATFORM_CFLAGS "/D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_WARNINGS /DWIN32 /D_WINDOWS /W3 /Zi /Zm1000 /MP /Gy-")
+ SET(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_WARNINGS /DWIN32 /D_WINDOWS /W3 /Zi /Zm1000 /MP /Gy-")
# Common link flags
SET(PLATFORM_LINKFLAGS "-DEBUG")
-
+
IF(TARGET_X64)
# Fix a bug with Intellisense
SET(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} /D_WIN64")
@@ -344,8 +432,17 @@ MACRO(NL_SETUP_BUILD)
SET(NL_RELEASE_CFLAGS "/MD /D NDEBUG ${SPEED_OPTIMIZATIONS}")
SET(NL_DEBUG_LINKFLAGS "/NODEFAULTLIB:msvcrt /INCREMENTAL:YES")
SET(NL_RELEASE_LINKFLAGS "/OPT:REF /OPT:ICF /INCREMENTAL:NO")
- ELSE(WIN32)
- SET(PLATFORM_CFLAGS "-g -pipe -ftemplate-depth-48 -D_REENTRANT -Wall -ansi -W -Wpointer-arith -Wsign-compare -Wno-deprecated-declarations -Wno-multichar -Wno-unused -fno-strict-aliasing")
+ ELSE(MSVC)
+ IF(HOST_CPU STREQUAL "x86_64" AND TARGET_CPU STREQUAL "x86")
+ SET(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} -m32 -march=i686")
+ ENDIF(HOST_CPU STREQUAL "x86_64" AND TARGET_CPU STREQUAL "x86")
+
+ IF(HOST_CPU STREQUAL "x86" AND TARGET_CPU STREQUAL "x86_64")
+ SET(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} -m64")
+ ENDIF(HOST_CPU STREQUAL "x86" AND TARGET_CPU STREQUAL "x86_64")
+
+ SET(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} -g -D_REENTRANT -pipe -ftemplate-depth-48 -Wall -ansi -W -Wpointer-arith -Wsign-compare -Wno-deprecated-declarations -Wno-multichar -Wno-unused -fno-strict-aliasing")
+
IF(WITH_COVERAGE)
SET(PLATFORM_CFLAGS "-fprofile-arcs -ftest-coverage ${PLATFORM_CFLAGS}")
ENDIF(WITH_COVERAGE)
@@ -354,15 +451,20 @@ MACRO(NL_SETUP_BUILD)
SET(PLATFORM_CFLAGS "-gdwarf-2 ${PLATFORM_CFLAGS}")
ENDIF(APPLE)
+ # Fix "relocation R_X86_64_32 against.." error on x64 platforms
+ IF(TARGET_X64 AND WITH_STATIC AND NOT WITH_STATIC_DRIVERS)
+ SET(PLATFORM_CFLAGS "-fPIC ${PLATFORM_CFLAGS}")
+ ENDIF(TARGET_X64 AND WITH_STATIC AND NOT WITH_STATIC_DRIVERS)
+
SET(PLATFORM_CXXFLAGS ${PLATFORM_CFLAGS})
IF(NOT APPLE)
- SET(PLATFORM_LINKFLAGS "-Wl,--no-undefined -Wl,--as-needed")
+ SET(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -Wl,--no-undefined -Wl,--as-needed")
ENDIF(NOT APPLE)
SET(NL_DEBUG_CFLAGS "-DNL_DEBUG -D_DEBUG")
SET(NL_RELEASE_CFLAGS "-DNL_RELEASE -DNDEBUG -O6")
- ENDIF(WIN32)
+ ENDIF(MSVC)
ENDMACRO(NL_SETUP_BUILD)
MACRO(NL_SETUP_BUILD_FLAGS)
@@ -426,7 +528,11 @@ MACRO(NL_SETUP_PREFIX_PATHS)
IF(WIN32)
SET(NL_LIB_PREFIX "../lib" CACHE PATH "Installation path for libraries.")
ELSE(WIN32)
- SET(NL_LIB_PREFIX "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "Installation path for libraries.")
+ IF(CMAKE_LIBRARY_ARCHITECTURE)
+ SET(NL_LIB_PREFIX "${CMAKE_INSTALL_PREFIX}/lib/${CMAKE_LIBRARY_ARCHITECTURE}" CACHE PATH "Installation path for libraries.")
+ ELSE(CMAKE_LIBRARY_ARCHITECTURE)
+ SET(NL_LIB_PREFIX "${CMAKE_INSTALL_PREFIX}/lib" CACHE PATH "Installation path for libraries.")
+ ENDIF(CMAKE_LIBRARY_ARCHITECTURE)
ENDIF(WIN32)
ENDIF(NOT NL_LIB_PREFIX)
@@ -435,7 +541,11 @@ MACRO(NL_SETUP_PREFIX_PATHS)
IF(WIN32)
SET(NL_DRIVER_PREFIX "../lib" CACHE PATH "Installation path for drivers.")
ELSE(WIN32)
- SET(NL_DRIVER_PREFIX "${CMAKE_INSTALL_PREFIX}/lib/nel" CACHE PATH "Installation path for drivers.")
+ IF(CMAKE_LIBRARY_ARCHITECTURE)
+ SET(NL_DRIVER_PREFIX "${CMAKE_INSTALL_PREFIX}/lib/${CMAKE_LIBRARY_ARCHITECTURE}/nel" CACHE PATH "Installation path for drivers.")
+ ELSE(CMAKE_LIBRARY_ARCHITECTURE)
+ SET(NL_DRIVER_PREFIX "${CMAKE_INSTALL_PREFIX}/lib/nel" CACHE PATH "Installation path for drivers.")
+ ENDIF(CMAKE_LIBRARY_ARCHITECTURE)
ENDIF(WIN32)
ENDIF(NOT NL_DRIVER_PREFIX)
@@ -456,54 +566,60 @@ MACRO(RYZOM_SETUP_PREFIX_PATHS)
IF(WIN32)
SET(RYZOM_ETC_PREFIX "." CACHE PATH "Installation path for configurations")
ELSE(WIN32)
- SET(RYZOM_ETC_PREFIX "${CMAKE_INSTALL_PREFIX}/etc/ryzom" CACHE PATH "Installation path for configurations")
+ SET(RYZOM_ETC_PREFIX "${RYZOM_PREFIX}/etc/ryzom" CACHE PATH "Installation path for configurations")
ENDIF(WIN32)
ENDIF(NOT RYZOM_ETC_PREFIX)
## Allow override of install_prefix/share path.
IF(NOT RYZOM_SHARE_PREFIX)
IF(WIN32)
- SET(RYZOM_SHARE_PREFIX "." CACHE PATH "Installation path for data.")
- ELSE(WIN32)
- SET(RYZOM_SHARE_PREFIX "${CMAKE_INSTALL_PREFIX}/share/ryzom" CACHE PATH "Installation path for data.")
- ENDIF(WIN32)
+ SET(RYZOM_SHARE_PREFIX "." CACHE PATH "Installation path for data.")
+ ELSE(WIN32)
+ SET(RYZOM_SHARE_PREFIX "${RYZOM_PREFIX}/share/ryzom" CACHE PATH "Installation path for data.")
+ ENDIF(WIN32)
ENDIF(NOT RYZOM_SHARE_PREFIX)
## Allow override of install_prefix/sbin path.
IF(NOT RYZOM_SBIN_PREFIX)
- IF(WIN32)
- SET(RYZOM_SBIN_PREFIX "." CACHE PATH "Installation path for admin tools and services.")
- ELSE(WIN32)
- SET(RYZOM_SBIN_PREFIX "${CMAKE_INSTALL_PREFIX}/sbin" CACHE PATH "Installation path for admin tools and services.")
- ENDIF(WIN32)
+ IF(WIN32)
+ SET(RYZOM_SBIN_PREFIX "." CACHE PATH "Installation path for admin tools and services.")
+ ELSE(WIN32)
+ SET(RYZOM_SBIN_PREFIX "${RYZOM_PREFIX}/sbin" CACHE PATH "Installation path for admin tools and services.")
+ ENDIF(WIN32)
ENDIF(NOT RYZOM_SBIN_PREFIX)
## Allow override of install_prefix/bin path.
IF(NOT RYZOM_BIN_PREFIX)
IF(WIN32)
- SET(RYZOM_BIN_PREFIX "." CACHE PATH "Installation path for tools and applications.")
+ SET(RYZOM_BIN_PREFIX "." CACHE PATH "Installation path for tools and applications.")
ELSE(WIN32)
- SET(RYZOM_BIN_PREFIX "${CMAKE_INSTALL_PREFIX}/bin" CACHE PATH "Installation path for tools.")
+ SET(RYZOM_BIN_PREFIX "${RYZOM_PREFIX}/bin" CACHE PATH "Installation path for tools.")
ENDIF(WIN32)
ENDIF(NOT RYZOM_BIN_PREFIX)
## Allow override of install_prefix/games path.
IF(NOT RYZOM_GAMES_PREFIX)
IF(WIN32)
- SET(RYZOM_GAMES_PREFIX "." CACHE PATH "Installation path for tools and applications.")
+ SET(RYZOM_GAMES_PREFIX "." CACHE PATH "Installation path for tools and applications.")
ELSE(WIN32)
- SET(RYZOM_GAMES_PREFIX "${CMAKE_INSTALL_PREFIX}/games" CACHE PATH "Installation path for client.")
+ SET(RYZOM_GAMES_PREFIX "${RYZOM_PREFIX}/games" CACHE PATH "Installation path for client.")
ENDIF(WIN32)
ENDIF(NOT RYZOM_GAMES_PREFIX)
ENDMACRO(RYZOM_SETUP_PREFIX_PATHS)
MACRO(SETUP_EXTERNAL)
- IF(WIN32)
+ IF(WITH_EXTERNAL)
FIND_PACKAGE(External REQUIRED)
+ ENDIF(WITH_EXTERNAL)
+ IF(WIN32)
INCLUDE(${CMAKE_ROOT}/Modules/Platform/Windows-cl.cmake)
IF(MSVC10)
+ IF(NOT MSVC10_REDIST_DIR)
+ # If you have VC++ 2010 Express, put x64/Microsoft.VC100.CRT/*.dll in ${EXTERNAL_PATH}/redist
+ SET(MSVC10_REDIST_DIR "${EXTERNAL_PATH}/redist")
+ ENDIF(NOT MSVC10_REDIST_DIR)
GET_FILENAME_COMPONENT(VC_ROOT_DIR "[HKEY_CURRENT_USER\\Software\\Microsoft\\VisualStudio\\10.0_Config;InstallDir]" ABSOLUTE)
# VC_ROOT_DIR is set to "registry" when a key is not found
IF(VC_ROOT_DIR MATCHES "registry")
@@ -524,13 +640,19 @@ MACRO(SETUP_EXTERNAL)
ENDIF(${CMAKE_MAKE_PROGRAM} MATCHES "Common7")
ENDIF(MSVC10)
ELSE(WIN32)
- IF(CMAKE_FIND_LIBRARY_SUFFIXES AND NOT APPLE)
+ IF(APPLE)
IF(WITH_STATIC_EXTERNAL)
- SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
+ SET(CMAKE_FIND_LIBRARY_SUFFIXES .a .dylib .so)
ELSE(WITH_STATIC_EXTERNAL)
- SET(CMAKE_FIND_LIBRARY_SUFFIXES ".so")
- ENDIF(WITH_STATIC_EXTERNAL AND NOT APPLE)
- ENDIF(CMAKE_FIND_LIBRARY_SUFFIXES)
+ SET(CMAKE_FIND_LIBRARY_SUFFIXES .dylib .so .a)
+ ENDIF(WITH_STATIC_EXTERNAL)
+ ELSE(APPLE)
+ IF(WITH_STATIC_EXTERNAL)
+ SET(CMAKE_FIND_LIBRARY_SUFFIXES .a .so)
+ ELSE(WITH_STATIC_EXTERNAL)
+ SET(CMAKE_FIND_LIBRARY_SUFFIXES .so .a)
+ ENDIF(WITH_STATIC_EXTERNAL)
+ ENDIF(APPLE)
ENDIF(WIN32)
IF(WITH_STLPORT)
@@ -544,5 +666,4 @@ MACRO(SETUP_EXTERNAL)
INCLUDE_DIRECTORIES(${VC_INCLUDE_DIR} ${WINSDK_INCLUDE_DIR})
ENDIF(WIN32)
ENDIF(WITH_STLPORT)
-
ENDMACRO(SETUP_EXTERNAL)
diff --git a/code/acinclude.m4 b/code/acinclude.m4
deleted file mode 100644
index 1f9286bf9..000000000
--- a/code/acinclude.m4
+++ /dev/null
@@ -1,1396 +0,0 @@
-# =========================================================================
-#
-# Macros used by Nevrax in configure.in files.
-#
-# $Id: acinclude.m4,v 1.20 2005-04-04 10:07:29 cado Exp $
-#
-# =========================================================================
-
-# =========================================================================
-# WARNING: The original version of this file is placed in the $CVSROOT/code
-# directory.
-# There is links in the $CVSROOT/code sub-directories to that file
-# (ex: $CVSROOT/code/nel), so be careful of the consequences of
-# any modification of that file.
-# =========================================================================
-
-# =========================================================================
-# Macros available in that file.
-#
-#
-# AM_NEL_DEBUG
-#
-# Option: none.
-# Description: manage the different debug and the release mode by setting
-# correctly the CFLAGS and CXXFLAGS variables.
-#
-#
-# AM_PATH_NEL
-#
-# Option: none.
-# Description: check the instalation of the NeL library and set the
-# CXXFLAGS and LIBS variables to use it.
-#
-#
-# AM_PATH_STLPORT
-#
-# Option: none.
-# Description: check the instalation of the STLPort library and set the
-# CXXFLAGS and LIBS variables to use it.
-#
-#
-# AM_PATH_OPENGL
-#
-# Option: "yes" if the use of the OpenGL library is mandatory.
-# Description: check the instalation of the OpenGL library and set the
-# OPENGL_CFLAGS and OPENGL_LIBS variables to use it.
-#
-#
-# AM_PATH_FREETYPE
-#
-# Option: "yes" if the use of the Freetype library is mandatory.
-# Description: check the instalation of the OpenGL library and set the
-# FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it.
-#
-#
-# AM_PATH_XF86VIDMODE
-#
-# Option: none.
-# Description: check the instalation of the OpenGL library and set the
-# XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it.
-#
-#
-# AM_PATH_OPENAL
-#
-# Option: "yes" if the use of the OpenAL library is mandatory.
-# Description: check the instalation of the OpenGL library and set the
-# OPENAL_CFLAGS and OPENAL_LIBS variables to use it.
-#
-#
-# AM_PATH_PYTHON
-#
-# Option: "yes" if the use of the Python library is mandatory.
-# Description: check the instalation of the OpenGL library and set the
-# PYTHON_CFLAGS and PYTHON_LIBS variables to use it.
-#
-# AM_PATH_CCACHE
-#
-# Option: none.
-# Description: check the instalation of the Ccache utility.
-#
-# =========================================================================
-
-
-# =========================================================================
-# AM_NEL_DEBUG
-
-AC_DEFUN([AM_NEL_DEBUG],
-[
-
-MAX_C_OPTIMIZE="-O6"
-
-STL_DEBUG="-D__STL_DEBUG"
-
-NL_DEBUG="-DNL_DEBUG"
-NL_DEBUG_FAST="-DNL_DEBUG_FAST"
-NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG"
-NL_RELEASE="-DNL_RELEASE_DEBUG"
-
-AC_ARG_WITH(debug,
- [ --with-debug[=full|medium|fast]
- Build a debug version (huge libraries).
- Full mode set only NeL and STL debug flags.
- Medium mode set NeL debug flags with inline
- optimization (default mode).
- Fast mode is like the Medium mode with some basic
- optimization.
- --without-debug Build without debugging code (default)],
- [with_debug=$withval],
- [with_debug=no])
-
-# Build optimized or debug version ?
-# First check for gcc and g++
-if test "$ac_cv_prog_gcc" = "yes"
-then
- DEBUG_CFLAGS="-g"
- DEBUG_OPTIMIZE_CC="-O"
- OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE"
-else
- DEBUG_CFLAGS="-g"
- DEBUG_OPTIMIZE_CC=""
- OPTIMIZE_CFLAGS=""
-fi
-
-if test "$ac_cv_prog_cxx_g" = "yes"
-then
- DEBUG_CXXFLAGS="-g"
- DEBUG_OPTIMIZE_CXX="-O"
- OPTIMIZE_CXXFLAGS="-O3"
- OPTIMIZE_INLINE_CXXFLAGS="-finline-functions"
-else
- DEBUG_CXXFLAGS="-g"
- DEBUG_OPTIMIZE_CXX=""
- OPTIMIZE_CXXFLAGS=""
- OPTIMIZE_INLINE_CXXFLAGS=""
-fi
-
-if test "$with_debug" = "yes" -o "$with_debug" = "medium"
-then
- # Medium debug. Inline optimization
- CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $NL_DEBUG_FAST $CFLAGS"
- CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $NL_DEBUG_FAST $CXXFLAGS"
-else
- if test "$with_debug" = "full"
- then
- # Full debug. Very slow in some cases
- CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $STL_DEBUG $CFLAGS"
- CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $STL_DEBUG $CXXFLAGS"
- else
- if test "$with_debug" = "fast"
- then
- # Fast debug.
- CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS"
- CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS"
- else
- # Optimized version. No debug
- CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE_DEBUG $CFLAGS"
- CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE_DEBUG $CXXFLAGS"
- fi
- fi
-fi
-
-# AC_MSG_RESULT([CFLAGS = $CFLAGS])
-# AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS])
-
-])
-
-
-# =========================================================================
-# MY_NEL_HEADER_CHK : NeL header files checking macros
-
-AC_DEFUN([MY_NEL_HEADER_CHK],
-[ AC_REQUIRE_CPP()
-
-chk_message_obj="$1"
-header="$2"
-macro="$3"
-is_mandatory="$4"
-
-if test $is_mandatory = "yes"
-then
-
- _CPPFLAGS="$CPPFLAGS"
-
- CPPFLAGS="$CXXFLAGS $NEL_CFLAGS"
-
- AC_MSG_CHECKING(for $header)
-
- AC_EGREP_CPP( yo_header,
-[#include <$header>
-#ifdef $macro
- yo_header
-#endif],
- have_header="yes",
- have_header="no")
-
- CPPFLAGS="$_CPPFLAGS"
-
- if test "$have_header" = "yes"
- then
- AC_MSG_RESULT(yes)
- else
- if test "$is_mandatory" = "yes"
- then
- AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])
- else
- AC_MSG_RESULT(no)
- fi
- fi
-fi
-
-
-])
-
-
-# =========================================================================
-# MY_NEL_LIB_CHK : NeL library checking macros
-
-AC_DEFUN([MY_NEL_LIB_CHK],
-[ AC_REQUIRE_CPP()
-
-chk_message_obj="$1"
-nel_test_lib="$2"
-is_mandatory="$3"
-
-if test $is_mandatory = "yes"
-then
-
- AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://www.nevrax.org).])])
-fi
-])
-
-
-# =========================================================================
-# AM_PATH_NEL : NeL checking macros
-AC_DEFUN([AM_PATH_NEL],
-[ AC_REQUIRE_CPP()
-
-AC_ARG_WITH( nel,
- [ --with-nel= path to the NeL install files directory.
- e.g. /usr/local/nel])
-
-AC_ARG_WITH( nel-include,
- [ --with-nel-include=
- path to the NeL header files directory.
- e.g. /usr/local/nel/include])
-
-AC_ARG_WITH( nel-lib,
- [ --with-nel-lib=
- path to the NeL library files directory.
- e.g. /usr/local/nel/lib])
-
-
-nelmisc_is_mandatory="$1"
-nelnet_is_mandatory="$2"
-nel3d_is_mandatory="$3"
-nelpacs_is_mandatory="$4"
-nelsound_is_mandatory="$5"
-nelai_is_mandatory="$6"
-nelgeorges_is_mandatory="$7"
-
-# Check for nel-config
-AC_PATH_PROG(NEL_CONFIG, nel-config, no)
-
-#
-# Configure options (--with-nel*) have precendence
-# over nel-config only set variables if they are not
-# specified
-#
-if test "$NEL_CONFIG" != "no"
-then
- if test -z "$with_nel" -a -z "$with_nel_include"
- then
- CXXFLAGS="$CXXFLAGS `nel-config --cflags`"
- fi
-
- if test -z "$with_nel" -a -z "$with_nel_lib"
- then
- LDFLAGS="`nel-config --ldflags` $LDFLAGS"
- fi
-fi
-
-#
-# Set nel_libraries and nel_includes according to
-# user specification (--with-nel*) if any.
-# --with-nel-include and --with-nel-lib have precendence
-# over --with-nel
-#
-if test "$with_nel" = "no"
-then
- # The user explicitly disabled the use of the NeL
- AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel])
-else
- if test "$with_nel" -a "$with_nel" != "yes"
- then
- nel_includes="$with_nel/include"
- nel_libraries="$with_nel/lib"
- fi
-fi
-
-if test "$with_nel_include"
-then
- nel_includes="$with_nel_include"
-fi
-
-if test "$with_nel_lib"
-then
- nel_libraries="$with_nel_lib"
-fi
-
-#
-# Set compilation variables
-#
-if test "$nel_includes"
-then
- CXXFLAGS="$CXXFLAGS -I$nel_includes"
-fi
-
-if test "$nel_libraries"
-then
- LDFLAGS="-L$nel_libraries $LDFLAGS"
-fi
-
-#
-# Collect headers information and bark if missing and
-# mandatory
-#
-
-MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory)
-MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory)
-MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory)
-MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory)
-MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory)
-MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory)
-MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory)
-
-#
-# Collect libraries information and bark if missing and
-# mandatory
-#
-
-MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory)
-MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory)
-MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory)
-MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory)
-MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory)
-MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory)
-MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory)
-
-])
-
-
-# =========================================================================
-# AM_PATH_STLPORT : STLPort checking macros
-
-AC_DEFUN([AM_PATH_STLPORT],
-[ AC_REQUIRE_CPP()
-
-AC_ARG_WITH( stlport,
- [ --with-stlport= path to the STLPort install files directory.
- e.g. /usr/local/stlport])
-
-AC_ARG_WITH( stlport-include,
- [ --with-stlport-include=
- path to the STLPort header files directory.
- e.g. /usr/local/stlport/stlport])
-
-AC_ARG_WITH( stlport-lib,
- [ --with-stlport-lib=
- path to the STLPort library files directory.
- e.g. /usr/local/stlport/lib])
-
-if test "$with_debug" = "full"
-then
- stlport_lib="stlport_gcc_debug"
-else
- stlport_lib="stlport_gcc"
-fi
-
-if test "$with_debug" = "full"
-then
- stlport_lib2="stlport_gcc_debug"
-else
- stlport_lib2="stlport_gcc"
-fi
-
-if test "$with_stlport" = no
-then
- # The user explicitly disabled the use of the STLPorts
- AC_MSG_ERROR([STLPort is mandatory: do not specify --without-stlport])
-else
- stlport_includes="/usr/include/stlport"
- if test "$with_stlport" -a "$with_stlport" != yes
- then
- stlport_includes="$with_stlport/stlport"
- stlport_libraries="$with_stlport/lib"
-
- if test ! -d "$stlport_includes"
- then
- stlport_includes="$with_stlport/include/stlport"
- fi
- fi
-fi
-
-if test "$with_stlport_include"
-then
- stlport_includes="$with_stlport_include"
-fi
-
-if test "$with_stlport_lib"
-then
- stlport_libraries="$with_stlport_lib"
-fi
-
-# Check for the 'pthread' library. SLTPort needs it.
-AC_CHECK_LIB(pthread, main, , [AC_MSG_ERROR([cannot find the pthread library.])])
-AC_CHECK_LIB(dl, dlopen, , [AC_MSG_ERROR([cannot find the dl library.])])
-
-AC_LANG_SAVE
-AC_LANG_CPLUSPLUS
-
-# Put STLPorts includes in CXXFLAGS
-if test "$stlport_includes"
-then
- CXXFLAGS="$CXXFLAGS -I$stlport_includes"
-fi
-
-# Put STLPorts libraries directory in LIBS
-if test "$stlport_libraries"
-then
- LIBS="-L$stlport_libraries $LIBS"
-else
- stlport_libraries='default'
-fi
-
-# Put STLPort GCC libraries directory in LIBS
-if test "$stlport_libraries2"
-then
- LIBS="-L$stlport_libraries2 $LIBS"
-else
- stlport_libraries2='default'
-fi
-
-# Test the headers
-
-AC_CHECK_HEADER(algorithm,
- have_stlport_headers="yes",
- have_stlport_headers="no" )
-
-AC_MSG_CHECKING(for STLPort headers)
-
-if test "$have_stlport_headers" = "yes"
-then
- AC_MSG_RESULT([$stlport_includes])
-else
- AC_MSG_RESULT(no)
-fi
-
-AC_CHECK_LIB($stlport_lib, main,, have_stlport_libraries="no")
-
-AC_MSG_CHECKING(for STLPort library)
-
-if test "$have_stlport_libraries" != "no"
-then
- AC_MSG_RESULT([$stlport_libraries])
-else
- AC_MSG_RESULT(no)
-fi
-
-AC_CHECK_LIB($stlport_lib2, main,, have_stlport_libraries="no")
-
-AC_MSG_CHECKING(for STLPort GCC library)
-
-if test "$have_stlport_libraries2" != "no"
-then
- AC_MSG_RESULT([$stlport_libraries2])
-else
- AC_MSG_RESULT(no)
-fi
-
-if test "$have_stlport_headers" = "yes" &&
- (test "$have_stlport_libraries" != "no" || test "$have_stlport_libraries2" != "no")
-then
- have_stlport="yes"
-else
- have_stlport="no"
-fi
-
-if test "$have_stlport" = "no"
-then
- AC_MSG_ERROR([STLPort must be installed (http://www.stlport.org).])
-fi
-
-AC_LANG_RESTORE
-
-])
-
-
-# =========================================================================
-# AM_PATH_OPENGL : OpenGL checking macros
-
-AC_DEFUN([AM_PATH_OPENGL],
-[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2)
-
-is_mandatory="$1"
-
-AC_REQUIRE_CPP()
-
-AC_ARG_WITH( opengl,
- [ --with-opengl= path to the OpenGL install files directory.
- e.g. /usr/local])
-
-AC_ARG_WITH( opengl-include,
- [ --with-opengl-include=
- path to the OpenGL header files directory.
- e.g. /usr/local/include])
-
-AC_ARG_WITH( opengl-lib,
- [ --with-opengl-lib=
- path to the OpenGL library files directory.
- e.g. /usr/local/lib])
-
-opengl_lib="GL"
-
-if test "$with_opengl"
-then
- opengl_includes="$with_opengl/include"
- opengl_libraries="$with_opengl/lib"
-fi
-
-if test "$with_opengl_include"
-then
- opengl_includes="$with_opengl_include"
-fi
-
-if test "$with_opengl_lib"
-then
- opengl_libraries="$with_opengl_lib"
-fi
-
-# Set OPENGL_CFLAGS
-if test "$opengl_includes"
-then
- OPENGL_CFLAGS="-I$opengl_includes"
-fi
-
-# Set OPENGL_LIBS
-if test "$opengl_libraries"
-then
- OPENGL_LIBS="-L$opengl_libraries"
-fi
-OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib"
-
-# Test the headers
-_CPPFLAGS="$CPPFLAGS"
-
-CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS"
-
-AC_EGREP_CPP( yo_opengl,
-[#include
-#if defined(GL_VERSION_1_2)
- yo_opengl
-#endif],
- have_opengl_headers="yes",
- have_opengl_headers="no" )
-
-if test "$have_opengl_headers" = "yes"
-then
- if test "$opengl_includes"
- then
- AC_MSG_RESULT([$opengl_includes])
- else
- AC_MSG_RESULT(yes)
- fi
-else
- AC_MSG_RESULT(no)
-fi
-
-# Checking the GLEXT version >= 7
-AC_MSG_CHECKING(for and GLEXT version >= 7)
-
-AC_EGREP_CPP( yo_glext_version,
-[#include
-#ifdef GL_GLEXT_VERSION
-#if GL_GLEXT_VERSION >= 7
- yo_glext_version
-#endif
-#endif],
- have_glext="yes",
- have_glext="no" )
-
-if test "$have_glext" = "yes"
-then
- AC_MSG_RESULT(yes)
-else
- AC_MSG_RESULT([no, can be downloaded from http://oss.sgi.com/projects/ogl-sample/ABI/])
-fi
-
-# Test the libraries
-AC_MSG_CHECKING(for OpenGL libraries)
-
-CPPFLAGS="$CXXFLAGS $OPENGL_LIBS"
-
-AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no")
-
-CPPFLAGS="$_CPPFLAGS"
-
-if test "$have_opengl_libraries" = "yes"
-then
- if test "$opengl_libraries"
- then
- AC_MSG_RESULT([$opengl_libraries])
- else
- AC_MSG_RESULT(yes)
- fi
-else
- AC_MSG_RESULT(no)
-fi
-
-opengl_libraries="$opengl_libraries"
-
-if test "$have_opengl_headers" = "yes" \
- -a "$have_glext" = "yes" \
- -a "$have_opengl_libraries" = "yes"
-then
- have_opengl="yes"
-else
- have_opengl="no"
-fi
-
-if test "$have_opengl" = "no" -a "$is_mandatory" = "yes"
-then
- AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)])
-fi
-
-AC_SUBST(OPENGL_CFLAGS)
-AC_SUBST(OPENGL_LIBS)
-
-])
-
-
-# =========================================================================
-# AM_PATH_FREETYPE : FreeType checking macros
-
-AC_DEFUN([AM_PATH_FREETYPE],
-[ is_mandatory="$1"
-
-AC_REQUIRE_CPP()
-
-AC_ARG_WITH( freetype,
- [ --with-freetype= path to the FreeType install files directory.
- e.g. /usr/local/freetype])
-
-AC_ARG_WITH( freetype-include,
- [ --with-freetype-include=
- path to the FreeType header files directory.
- e.g. /usr/local/freetype/include])
-
-AC_ARG_WITH( freetype-lib,
- [ --with-freetype-lib=
- path to the FreeType library files directory.
- e.g. /usr/local/freetype/lib])
-
-freetype_lib="freetype"
-
-
-AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no)
-
-if test "$FREETYPE_CONFIG" = "no"
-then
- have_freetype_config="no"
-else
- FREETYPE_CFLAGS=`freetype-config --cflags`
- FREETYPE_LIBS=`freetype-config --libs`
- have_freetype_config="yes"
-fi
-
-if test "$with_freetype"
-then
- freetype_includes="$with_freetype/include"
- freetype_libraries="$with_freetype/lib"
-fi
-
-if test "$with_freetype_include"
-then
- freetype_includes="$with_freetype_include"
-fi
-
-if test "$with_freetype_lib"
-then
- freetype_libraries="$with_freetype_lib"
-fi
-
-if test "$freetype_includes"
-then
- FREETYPE_CFLAGS="-I$freetype_includes"
-fi
-
-# Checking the FreeType 2 instalation
-_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS"
-
-AC_MSG_CHECKING(for FreeType version = 2)
-
-AC_EGREP_CPP( yo_freetype2,
-[#include
-#if FREETYPE_MAJOR == 2
- yo_freetype2
-#endif],
- have_freetype2="yes",
- have_freetype2="no")
-
-if test "$have_freetype2" = "yes"
-then
- AC_MSG_RESULT(yes)
-else
- AC_MSG_RESULT(no)
-fi
-
-# Test the libraries
-AC_MSG_CHECKING(for FreeType libraries)
-
-if test $freetype_libraries
-then
- FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib"
-fi
-
-CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS"
-
-AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no")
-
-CPPFLAGS="$_CPPFLAGS"
-
-if test "$have_freetype_libraries" = "yes"
-then
- if test "$freetype_libraries"
- then
- AC_MSG_RESULT([$freetype_libraries])
- else
- AC_MSG_RESULT(yes)
- fi
-else
- AC_MSG_RESULT(no)
-fi
-
-if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes"
-then
- have_freetype="yes"
-else
- have_freetype="no"
-fi
-
-if test "$have_freetype" = "no" && test "$is_mandatory" = "yes"
-then
- AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)])
-fi
-
-AC_SUBST(FREETYPE_CFLAGS)
-AC_SUBST(FREETYPE_LIBS)
-
-])
-
-
-# =========================================================================
-# AM_PATH_XF86VIDMODE : XF86VidMode checking macros
-
-AC_DEFUN([AM_PATH_XF86VIDMODE],
-[ AC_MSG_CHECKING(for XF86VidMode extension)
-
-AC_REQUIRE_CPP()
-
-AC_ARG_WITH( xf86vidmode-lib,
- [ --with-xf86vidmode-lib=
- path to the XF86VidMode library.
- e.g. /usr/X11R6/lib] )
-
-xf86vidmode_lib="Xxf86vm"
-
-if test "$with_xf86vidmode_lib" = no
-then
- # The user explicitly disabled the use of XF86VidMode
- have_xf86vidmode="disabled"
- AC_MSG_RESULT(disabled)
-else
- if test "$with_xf86vidmode_lib"
- then
- xf86vidmode_libraries="$with_xf86vidmode_lib"
- fi
-
- XF86VIDMODE_CFLAGS="-DXF86VIDMODE"
-fi
-
-if test -z "$have_xf86vidmode"
-# -a "$with_xf86vidmode_lib"
-then
- if test "$xf86vidmode_libraries"
- then
- XF86VIDMODE_LIBS="-L$xf86vidmode_libraries"
- fi
-
- XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib"
-
- _CPPFLAGS="$CPPFLAGS"
-
- CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS"
-
- AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no")
-
- CPPFLAGS="$_CPPFLAGS"
-
- if test "$have_xf86vidmode_libraries" = "yes"
- then
- have_xf86vidmode="yes"
- if test "$xf86vidmode_libraries"
- then
- AC_MSG_RESULT($xf86vidmode_libraries)
- else
- AC_MSG_RESULT(yes)
- fi
- else
- have_xf86vidmode="no"
- AC_MSG_RESULT(no, no fullscreen support available.)
- fi
-
- xf86vidmode_libraries="$xf86vidmode_libraries"
-
-fi
-
-AC_SUBST(XF86VIDMODE_CFLAGS)
-AC_SUBST(XF86VIDMODE_LIBS)
-
-])
-
-
-# =========================================================================
-# AM_PATH_OPENAL : OpenAL checking macros
-
-AC_DEFUN([AM_PATH_OPENAL],
-[ is_mandatory="$1"
-
-AC_REQUIRE_CPP()
-
-# Get from the user option the path to the OpenAL files location
-AC_ARG_WITH( openal,
- [ --with-openal= path to the OpenAL install files directory.
- e.g. /usr/local])
-
-AC_ARG_WITH( openal-include,
- [ --with-openal-include=
- path to the OpenAL header files directory.
- e.g. /usr/local/include])
-
-AC_ARG_WITH( openal-lib,
- [ --with-openal-lib=
- path to the OpenAL library files directory.
- e.g. /usr/local/lib])
-
-openal_lib="openal"
-
-if test $with_openal
-then
- openal_includes="$with_openal/include"
- openal_libraries="$with_openal/lib"
-fi
-
-if test "$with_openal_include"
-then
- openal_includes="$with_openal_include"
-fi
-
-if test "$with_openal_lib"
-then
- openal_libraries="$with_openal_lib"
-fi
-
-
-# Set OPENAL_CFLAGS
-if test "$openal_includes"
-then
- OPENAL_CFLAGS="-I$openal_includes"
-fi
-
-# Set OPENAL_LIBS
-if test "$openal_libraries"
-then
- OPENAL_LIBS="-L$openal_libraries"
-fi
-OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib"
-
-_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS"
-
-AC_MSG_CHECKING(for OpenAL headers)
-AC_EGREP_CPP( yo_openal,
-[#include
-#ifdef AL_VERSION
- yo_openal
-#endif],
- have_openal_headers="yes",
- have_openal_headers="no" )
-
-if test "$have_openal_headers" = "yes"
-then
- if test "$openal_includes"
- then
- AC_MSG_RESULT([$openal_includes])
- else
- AC_MSG_RESULT(yes)
- fi
-else
- AC_MSG_RESULT(no)
-fi
-
-# Test the libraries
-AC_MSG_CHECKING(for OpenAL libraries)
-
-CPPFLAGS="$CXXFLAGS $OPENAL_LIBS"
-
-AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no")
-
-CPPFLAGS="$_CPPFLAGS"
-
-if test "$have_openal_libraries" = "yes"
-then
- if test "$openal_libraries"
- then
- AC_MSG_RESULT([$openal_libraries])
- else
- AC_MSG_RESULT(yes)
- fi
-else
- AC_MSG_RESULT(no)
-fi
-
-openal_libraries="$openal_libraries"
-
-if test "$have_openal_headers" = "yes" \
- && test "$have_openal_libraries" = "yes"
-then
- have_openal="yes"
-else
- have_openal="no"
-fi
-
-if test "$have_openal" = "no" -a "$is_mandatory" = "yes"
-then
- AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).])
-fi
-
-AC_SUBST(OPENAL_CFLAGS)
-AC_SUBST(OPENAL_LIBS)
-
-
-])
-
-
-# =========================================================================
-# AM_PATH_PYTHON : Python checking macros
-
-AC_DEFUN([AM_PATH_PYTHON],
-[ python_version_required="$1"
-
-is_mandatory="$2"
-
-AC_REQUIRE_CPP()
-
-# Get from the user option the path to the Python files location
-AC_ARG_WITH( python,
- [ --with-python= path to the Python prefix installation directory.
- e.g. /usr/local],
- [ PYTHON_PREFIX=$with_python ]
-)
-
-AC_ARG_WITH( python-version,
- [ --with-python-version=
- Python version to use, e.g. 1.5],
- [ PYTHON_VERSION=$with_python_version ]
-)
-
-if test ! "$PYTHON_PREFIX" = ""
-then
- PATH="$PYTHON_PREFIX/bin:$PATH"
-fi
-
-if test ! "$PYTHON_VERSION" = ""
-then
- PYTHON_EXEC="python$PYTHON_VERSION"
-else
- PYTHON_EXEC="python python2.1 python2.0 python1.5"
-fi
-
-AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH)
-
-if test "$PYTHON" != "no"
-then
- PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'`
- PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'`
-
- is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION`
-fi
-
-
-if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1"
-then
-
- if test "$is_mandatory" = "yes"
- then
- AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)])
- else
- have_python="no"
- fi
-
-else
-
- python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION"
- python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config"
- python_lib="python$PYTHON_VERSION"
-
- PYTHON_CFLAGS="-I$python_includes"
- PYTHON_LIBS="-L$python_libraries -l$python_lib"
-
- _CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}"
-
- # Test the headers
- AC_MSG_CHECKING(for Python headers)
-
- AC_EGREP_CPP( yo_python,
- [#include
- yo_python
- ],
- have_python_headers="yes",
- have_python_headers="no" )
-
- if test "$have_python_headers" = "yes"
- then
- AC_MSG_RESULT([$python_includes])
- else
- AC_MSG_RESULT(no)
- fi
-
- # Test the libraries
- AC_MSG_CHECKING(for Python libraries)
-
- CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS"
-
- AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no")
-
- CPPFLAGS="$_CPPFLAGS"
-
- if test "$have_python_libraries" = "yes"
- then
- if test "$python_libraries"
- then
- AC_MSG_RESULT([$python_libraries])
- else
- AC_MSG_RESULT(yes)
- fi
- else
- AC_MSG_RESULT(no)
- fi
-
- if test "$have_python_headers" = "yes" \
- && test "$have_python_libraries" = "yes"
- then
- have_python="yes"
- else
- have_python="no"
- fi
-
- if test "$have_python" = "no" -a "$is_mandatory" = "yes"
- then
- AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).])
- fi
-
- AC_SUBST(PYTHON_CFLAGS)
- AC_SUBST(PYTHON_LIBS)
-
-fi
-
-])
-
-
-# =========================================================================
-# AM_PATH_CCACHE : Ccache checking macros
-
-AC_DEFUN([AM_PATH_CCACHE],
-[
-
-AC_ARG_WITH( ccache,
- [ --with-ccache use ccache for compiling.],
- [ using_ccache=$with_ccache ]
-)
-
-AC_PATH_PROG(CCACHE, ccache)
-if test "$CCACHE" -a "$using_ccache" = "yes"
-then
- CC="ccache $CC"
- CXX="ccache $CXX"
-fi
-
-])
-
-# =========================================================================
-# AM_PATH_MYSQL : MySQL library
-
-# AM_PATH_MYSQL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
-# Test for MYSQL, and define MYSQL_CFLAGS and MYSQL_LIBS
-#
-AC_DEFUN([AM_PATH_MYSQL],
-[#
-# Get the cflags and libraries from the mysql_config script
-#
-AC_ARG_WITH(mysql-prefix,[ --with-mysql-prefix=PFX Prefix where MYSQL is installed (optional)],
- mysql_prefix="$withval", mysql_prefix="")
-AC_ARG_WITH(mysql-exec-prefix,[ --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)],
- mysql_exec_prefix="$withval", mysql_exec_prefix="")
-AC_ARG_ENABLE(mysqltest, [ --disable-mysqltest Do not try to compile and run a test MYSQL program],
- , enable_mysqltest=yes)
-
- if test x$mysql_exec_prefix != x ; then
- mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
- if test x${MYSQL_CONFIG+set} != xset ; then
- MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
- fi
- fi
- if test x$mysql_prefix != x ; then
- mysql_args="$mysql_args --prefix=$mysql_prefix"
- if test x${MYSQL_CONFIG+set} != xset ; then
- MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
- fi
- fi
-
- AC_REQUIRE([AC_CANONICAL_TARGET])
- AC_PATH_PROG(MYSQL_CONFIG, mysql_config, no)
- min_mysql_version=ifelse([$1], ,0.11.0,$1)
- AC_MSG_CHECKING(for MYSQL - version >= $min_mysql_version)
- no_mysql=""
- if test "$MYSQL_CONFIG" = "no" ; then
- no_mysql=yes
- else
- MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
- MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
-
- mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
- if test "x$enable_mysqltest" = "xyes" ; then
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LIBS="$LIBS"
- CFLAGS="$CFLAGS $MYSQL_CFLAGS"
- LIBS="$LIBS $MYSQL_LIBS"
-#
-# Now check if the installed MYSQL is sufficiently new. (Also sanity
-# checks the results of mysql_config to some extent
-#
- rm -f conf.mysqltest
- AC_TRY_RUN([
-#include
-#include
-#include
-#include
-
-char*
-my_strdup (char *str)
-{
- char *new_str;
-
- if (str)
- {
- new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
- strcpy (new_str, str);
- }
- else
- new_str = NULL;
-
- return new_str;
-}
-
-int main (int argc, char *argv[])
-{
- int major, minor, micro;
- char *tmp_version;
-
- /* This hangs on some systems (?)
- system ("touch conf.mysqltest");
- */
- { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
-
- /* HP/UX 9 (%@#!) writes to sscanf strings */
- tmp_version = my_strdup("$min_mysql_version");
- if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
- printf("%s, bad version string\n", "$min_mysql_version");
- exit(1);
- }
-
- if (($mysql_major_version > major) ||
- (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
- (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
- {
- return 0;
- }
- else
- {
- printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
- printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
- printf("*** best to upgrade to the required version.\n");
- printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
- printf("*** to point to the correct copy of mysql_config, and remove the file\n");
- printf("*** config.cache before re-running configure\n");
- return 1;
- }
-}
-
-],, no_mysql=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- fi
- if test "x$no_mysql" = x ; then
- AC_MSG_RESULT(yes)
- ifelse([$2], , :, [$2])
- else
- AC_MSG_RESULT(no)
- if test "$MYSQL_CONFIG" = "no" ; then
- echo "*** The mysql_config script installed by MYSQL could not be found"
- echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
- echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
- echo "*** full path to mysql_config."
- else
- if test -f conf.mysqltest ; then
- :
- else
- echo "*** Could not run MYSQL test program, checking why..."
- CFLAGS="$CFLAGS $MYSQL_CFLAGS"
- LIBS="$LIBS $MYSQL_LIBS"
- AC_TRY_LINK([
-#include
-#include
-
-int main(int argc, char *argv[])
-{ return 0; }
-#undef main
-#define main K_and_R_C_main
-], [ return 0; ],
- [ echo "*** The test program compiled, but did not run. This usually means"
- echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
- echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
- echo "*** to the installed location Also, make sure you have run ldconfig if that"
- echo "*** is required on your system"
- echo "***"
- echo "*** If you have an old version installed, it is best to remove it, although"
- echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
- [ echo "*** The test program failed to compile or link. See the file config.log for the"
- echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
- echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
- echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG" ])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- fi
- MYSQL_CFLAGS=""
- MYSQL_LIBS=""
- ifelse([$3], , :, [$3])
- fi
- AC_SUBST(MYSQL_CFLAGS)
- AC_SUBST(MYSQL_LIBS)
- rm -f conf.mysqltest
-])
-
-# =========================================================================
-# AM_PATH_FMOD : FMOD checking macros
-
-AC_DEFUN([AM_PATH_FMOD],
-[ is_mandatory="$1"
-
-AC_REQUIRE_CPP()
-
-# Get from the user option the path to the FMOD files location
-AC_ARG_WITH( fmod,
- [ --with-fmod= path to the FMOD install files directory.
- e.g. /usr/local])
-
-AC_ARG_WITH( fmod-include,
- [ --with-fmod-include=
- path to the FMOD header files directory.
- e.g. /usr/local/include])
-
-AC_ARG_WITH( fmod-lib,
- [ --with-fmod-lib=
- path to the FMOD library files directory.
- e.g. /usr/local/lib])
-
-fmod_lib="fmod"
-
-if test $with_fmod
-then
- fmod_includes="$with_fmod/include"
- fmod_libraries="$with_fmod/lib"
-fi
-
-if test "$with_fmod_include"
-then
- fmod_includes="$with_fmod_include"
-fi
-
-if test "$with_fmod_lib"
-then
- fmod_libraries="$with_fmod_lib"
-fi
-
-
-# Set FMOD_CFLAGS
-if test "$fmod_includes"
-then
- FMOD_CFLAGS="-I$fmod_includes"
-fi
-
-# Set FMOD_LIBS
-if test "$fmod_libraries"
-then
- FMOD_LIBS="-L$fmod_libraries"
-fi
-FMOD_LIBS="$FMOD_LIBS -l$fmod_lib"
-
-_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="$CXXFLAGS $FMOD_CFLAGS"
-
-AC_MSG_CHECKING(for FMOD headers)
-AC_EGREP_CPP( yo_fmod,
-[#include
-#ifdef FMOD_VERSION
- yo_fmod
-#endif],
- have_fmod_headers="yes",
- have_fmod_headers="no" )
-
-if test "$have_fmod_headers" = "yes"
-then
- if test "$fmod_includes"
- then
- AC_MSG_RESULT([$fmod_includes])
- else
- AC_MSG_RESULT(yes)
- fi
-else
- AC_MSG_RESULT(no)
-fi
-
-# Test the libraries
-AC_MSG_CHECKING(for FMOD libraries)
-
-CPPFLAGS="$CXXFLAGS $FMOD_LIBS"
-
-AC_TRY_LINK( , , have_fmod_libraries="yes", have_fmod_libraries="no")
-
-CPPFLAGS="$_CPPFLAGS"
-
-if test "$have_fmod_libraries" = "yes"
-then
- if test "$fmod_libraries"
- then
- AC_MSG_RESULT([$fmod_libraries])
- else
- AC_MSG_RESULT(yes)
- fi
-else
- AC_MSG_RESULT(no)
-fi
-
-fmod_libraries="$fmod_libraries"
-
-if test "$have_fmod_headers" = "yes" \
- && test "$have_fmod_libraries" = "yes"
-then
- have_fmod="yes"
-else
- have_fmod="no"
-fi
-
-if test "$have_fmod" = "no" -a "$is_mandatory" = "yes"
-then
- AC_MSG_ERROR([FMOD is needed to compile NeL (http://www.fmod.org).])
-fi
-
-AC_SUBST(FMOD_CFLAGS)
-AC_SUBST(FMOD_LIBS)
-
-])
-
-# =========================================================================
-# End of file
-
diff --git a/code/nel/CMakeLists.txt b/code/nel/CMakeLists.txt
index ead484a2d..57f7edd44 100644
--- a/code/nel/CMakeLists.txt
+++ b/code/nel/CMakeLists.txt
@@ -54,24 +54,27 @@ IF(WITH_GTK)
FIND_PACKAGE(GTK2)
ENDIF(WITH_GTK)
-IF(UNIX)
- SET(prefix ${CMAKE_INSTALL_PREFIX})
- SET(exec_prefix ${CMAKE_INSTALL_PREFIX}/bin)
- SET(libdir ${CMAKE_INSTALL_PREFIX}/lib)
- SET(includedir ${CMAKE_INSTALL_PREFIX}/include)
- SET(enable_ligo ${WITH_LIGO})
- SET(enable_logic ${WITH_LOGIC})
- SET(enable_georges ${WITH_GEORGES})
- SET(enable_net ${WITH_NET})
- SET(enable_3d ${WITH_3D})
- SET(enable_pacs ${WITH_PACS})
- SET(enable_sound ${WITH_SOUND})
- CONFIGURE_FILE(nel-config.in ${CMAKE_CURRENT_BINARY_DIR}/nel-config)
+IF(WITH_INSTALL_LIBRARIES)
+ IF(UNIX)
+ SET(prefix ${CMAKE_INSTALL_PREFIX})
+ SET(exec_prefix ${CMAKE_INSTALL_PREFIX}/bin)
+ SET(libdir ${CMAKE_INSTALL_PREFIX}/lib)
+ SET(includedir ${CMAKE_INSTALL_PREFIX}/include)
+ SET(enable_ligo ${WITH_LIGO})
+ SET(enable_logic ${WITH_LOGIC})
+ SET(enable_georges ${WITH_GEORGES})
+ SET(enable_net ${WITH_NET})
+ SET(enable_3d ${WITH_3D})
+ SET(enable_pacs ${WITH_PACS})
+ SET(enable_sound ${WITH_SOUND})
+ CONFIGURE_FILE(nel-config.in ${CMAKE_CURRENT_BINARY_DIR}/nel-config)
- INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/nel-config DESTINATION bin)
-ENDIF(UNIX)
+ INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/nel-config DESTINATION bin)
+ ENDIF(UNIX)
+
+ ADD_SUBDIRECTORY(include)
+ENDIF(WITH_INSTALL_LIBRARIES)
-ADD_SUBDIRECTORY(include)
ADD_SUBDIRECTORY(src)
IF(WITH_NEL_SAMPLES)
diff --git a/code/nel/Makefile.am b/code/nel/Makefile.am
deleted file mode 100644
index f2af0b6d0..000000000
--- a/code/nel/Makefile.am
+++ /dev/null
@@ -1,46 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in \
- configure \
- libtool \
- config.guess \
- config.sub \
- ltconfig \
- aclocal.m4 \
- config.h.in \
- install-sh \
- missing \
- mkinstalldirs \
- ltmain.sh \
- include/nelconfig.h \
- include/nelconfig.h.in \
- include/nel/nelconfig.h
-
-DISTCLEANFILES = include/stamp-h \
- include/stamp-h.in
-
-SUBDIRS = include src @TOOLS_SUBDIR@ @SAMPLE_SUBDIR@
-
-bin_SCRIPTS = nel-config
-
-EXTRA_DIST = nel.dsw \
- nel.sln \
- nel_8.sln \
- autogen.sh \
- nel.m4 \
- automacros \
- doc \
- kdevelop \
- tools \
- samples
-
-dist-hook:
- find $(distdir) -name CVS -print | xargs rm -fr
- find $(distdir) -name .svn -print | xargs rm -fr
-
-m4datadir = $(datadir)/aclocal
-m4data_DATA = nel.m4
-
-# End of Makefile.am
-
diff --git a/code/nel/acinclude.m4 b/code/nel/acinclude.m4
deleted file mode 100644
index 7a6655bff..000000000
--- a/code/nel/acinclude.m4
+++ /dev/null
@@ -1,1214 +0,0 @@
-# =========================================================================
-#
-# Macros used by Nevrax in configure.in files.
-#
-#
-# =========================================================================
-
-# =========================================================================
-# WARNING: The original version of this file is placed in the $CVSROOT/code
-# directory.
-# There is links in the $CVSROOT/code sub-directories to that file
-# (ex: $CVSROOT/code/nel), so be careful of the consequences of
-# any modification of that file.
-# =========================================================================
-
-# =========================================================================
-# Macros available in that file.
-#
-#
-# AM_NEL_DEBUG
-#
-# Option: none.
-# Description: manage the different debug and the release mode by setting
-# correctly the CFLAGS and CXXFLAGS variables.
-#
-#
-# AM_PATH_NEL
-#
-# Option: none.
-# Description: check the instalation of the NeL library and set the
-# CXXFLAGS and LIBS variables to use it.
-#
-#
-# AM_PATH_OPENGL
-#
-# Option: "yes" if the use of the OpenGL library is mandatory.
-# Description: check the instalation of the OpenGL library and set the
-# OPENGL_CFLAGS and OPENGL_LIBS variables to use it.
-#
-#
-# AM_PATH_FREETYPE
-#
-# Option: "yes" if the use of the Freetype library is mandatory.
-# Description: check the instalation of the OpenGL library and set the
-# FREETYPE_CFLAGS and FREETYPE_LIBS variables to use it.
-#
-#
-# AM_PATH_XF86VIDMODE
-#
-# Option: none.
-# Description: check the instalation of the OpenGL library and set the
-# XF86VIDMODE_CFLAGS and XF86VIDMODE_LIBS variables to use it.
-#
-#
-# AM_PATH_OPENAL
-#
-# Option: "yes" if the use of the OpenAL library is mandatory.
-# Description: check the instalation of the OpenGL library and set the
-# OPENAL_CFLAGS and OPENAL_LIBS variables to use it.
-#
-#
-# AM_PATH_PYTHON
-#
-# Option: "yes" if the use of the Python library is mandatory.
-# Description: check the instalation of the OpenGL library and set the
-# PYTHON_CFLAGS and PYTHON_LIBS variables to use it.
-#
-# =========================================================================
-
-
-# =========================================================================
-# AM_NEL_DEBUG
-
-AC_DEFUN([AM_NEL_DEBUG],
-[
-
-MAX_C_OPTIMIZE="-O6"
-
-NL_DEBUG="-DNL_DEBUG"
-NL_RELEASE="-DNL_RELEASE"
-
-AC_ARG_WITH(debug,
- [ --with-debug[=full|medium|fast]
- Build a debug version (huge libraries).
- Full mode set no optimization.
- Medium mode set NeL debug flags with inline
- optimization (default mode).
- Fast mode is like the Medium mode with some basic
- optimization.
- --without-debug Build without debugging code (default)],
- [with_debug=$withval],
- [with_debug=no])
-
-# Build optimized or debug version ?
-# First check for gcc and g++
-if test "$ac_cv_prog_gcc" = "yes"
-then
- DEBUG_CFLAGS="-g -O0"
- DEBUG_OPTIMIZE_CC="-O"
- OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE"
-else
- DEBUG_CFLAGS=""
- DEBUG_OPTIMIZE_CC=""
- OPTIMIZE_CFLAGS=""
-fi
-
-if test "$ac_cv_prog_cxx_g" = "yes"
-then
- DEBUG_CXXFLAGS="-g -O0"
- DEBUG_OPTIMIZE_CXX="-O"
- OPTIMIZE_CXXFLAGS="-O3"
- OPTIMIZE_INLINE_CXXFLAGS="-finline-functions"
-else
- DEBUG_CXXFLAGS=""
- DEBUG_OPTIMIZE_CXX=""
- OPTIMIZE_CXXFLAGS=""
- OPTIMIZE_INLINE_CXXFLAGS=""
-fi
-
-if test "$with_debug" = "yes" -o "$with_debug" = "medium"
-then
- # Medium debug. Inline optimization
- CFLAGS="$DEBUG_CFLAGS $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS"
- CXXFLAGS="$DEBUG_CXXFLAGS $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS"
-else
- if test "$with_debug" = "full"
- then
- # Full debug. Very slow in some cases
- CFLAGS="$DEBUG_CFLAGS $NL_DEBUG $CFLAGS"
- CXXFLAGS="$DEBUG_CXXFLAGS $NL_DEBUG $CXXFLAGS"
- else
- if test "$with_debug" = "fast"
- then
- # Fast debug.
- CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC $OPTIMIZE_INLINE_CFLAGS $NL_DEBUG $CFLAGS"
- CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX $OPTIMIZE_INLINE_CXXFLAGS $NL_DEBUG $CXXFLAGS"
- else
- # Optimized version. No debug
- CFLAGS="$OPTIMIZE_CFLAGS $NL_RELEASE $CFLAGS"
- CXXFLAGS="$OPTIMIZE_CXXFLAGS $NL_RELEASE $CXXFLAGS"
- fi
- fi
-fi
-
-# AC_MSG_RESULT([CFLAGS = $CFLAGS])
-# AC_MSG_RESULT([CXXGLAGS = $CXXFLAGS])
-
-])
-
-
-# =========================================================================
-# MY_NEL_HEADER_CHK : NeL header files checking macros
-
-AC_DEFUN([MY_NEL_HEADER_CHK],
-[ AC_REQUIRE_CPP()
-
-chk_message_obj="$1"
-header="$2"
-macro="$3"
-is_mandatory="$4"
-
-if test $is_mandatory = "yes"
-then
-
- _CPPFLAGS="$CPPFLAGS"
-
- CPPFLAGS="$CXXFLAGS $NEL_CFLAGS"
-
- AC_MSG_CHECKING(for $header)
-
- AC_EGREP_CPP( yo_header,
-[#include <$header>
-#ifdef $macro
- yo_header
-#endif],
- have_header="yes",
- have_header="no")
-
- CPPFLAGS="$_CPPFLAGS"
-
- if test "$have_header" = "yes"
- then
- AC_MSG_RESULT(yes)
- else
- if test "$is_mandatory" = "yes"
- then
- AC_MSG_ERROR([$chk_message_obj must be installed (http://dev.ryzom.com).])
- else
- AC_MSG_RESULT(no)
- fi
- fi
-fi
-
-
-])
-
-
-# =========================================================================
-# MY_NEL_LIB_CHK : NeL library checking macros
-
-AC_DEFUN([MY_NEL_LIB_CHK],
-[ AC_REQUIRE_CPP()
-
-chk_message_obj="$1"
-nel_test_lib="$2"
-is_mandatory="$3"
-
-if test $is_mandatory = "yes"
-then
-
- AC_CHECK_LIB($nel_test_lib, main,,[AC_MSG_ERROR([$chk_message_obj must be installed (http://dev.ryzom.com).])])
-fi
-])
-
-
-# =========================================================================
-# AM_PATH_NEL : NeL checking macros
-AC_DEFUN([AM_PATH_NEL],
-[ AC_REQUIRE_CPP()
-
-AC_ARG_WITH( nel,
- [ --with-nel= path to the NeL install files directory.
- e.g. /usr/local/nel])
-
-AC_ARG_WITH( nel-include,
- [ --with-nel-include=
- path to the NeL header files directory.
- e.g. /usr/local/nel/include])
-
-AC_ARG_WITH( nel-lib,
- [ --with-nel-lib=
- path to the NeL library files directory.
- e.g. /usr/local/nel/lib])
-
-
-nelmisc_is_mandatory="$1"
-nelnet_is_mandatory="$2"
-nel3d_is_mandatory="$3"
-nelpacs_is_mandatory="$4"
-nelsound_is_mandatory="$5"
-nelai_is_mandatory="$6"
-nelgeorges_is_mandatory="$7"
-
-# Check for nel-config
-AC_PATH_PROG(NEL_CONFIG, nel-config, no)
-
-#
-# Configure options (--with-nel*) have precendence
-# over nel-config only set variables if they are not
-# specified
-#
-if test "$NEL_CONFIG" != "no"
-then
- if test -z "$with_nel" -a -z "$with_nel_include"
- then
- CXXFLAGS="$CXXFLAGS `nel-config --cflags`"
- fi
-
- if test -z "$with_nel" -a -z "$with_nel_lib"
- then
- LDFLAGS="`nel-config --ldflags` $LDFLAGS"
- fi
-fi
-
-#
-# Set nel_libraries and nel_includes according to
-# user specification (--with-nel*) if any.
-# --with-nel-include and --with-nel-lib have precendence
-# over --with-nel
-#
-if test "$with_nel" = "no"
-then
- # The user explicitly disabled the use of the NeL
- AC_MSG_ERROR([NeL is mandatory: do not specify --without-nel])
-else
- if test "$with_nel" -a "$with_nel" != "yes"
- then
- nel_includes="$with_nel/include"
- nel_libraries="$with_nel/lib"
- fi
-fi
-
-if test "$with_nel_include"
-then
- nel_includes="$with_nel_include"
-fi
-
-if test "$with_nel_lib"
-then
- nel_libraries="$with_nel_lib"
-fi
-
-#
-# Set compilation variables
-#
-if test "$nel_includes"
-then
- CXXFLAGS="$CXXFLAGS -I$nel_includes"
-fi
-
-if test "$nel_libraries"
-then
- LDFLAGS="-L$nel_libraries $LDFLAGS"
-fi
-
-#
-# Collect headers information and bark if missing and
-# mandatory
-#
-
-MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory)
-MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory)
-MY_NEL_HEADER_CHK([NeL 3D], [nel/3d/u_camera.h], [NL_U_CAMERA_H], $nel3d_is_mandatory)
-MY_NEL_HEADER_CHK([NeL PACS], [nel/pacs/u_global_position.h], [NL_U_GLOBAL_POSITION_H], $nelpacs_is_mandatory)
-MY_NEL_HEADER_CHK([NeL Sound], [nel/sound/u_source.h], [NL_U_SOURCE_H], $nelsound_is_mandatory)
-MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory)
-MY_NEL_HEADER_CHK([NeL Georges], [nel/georges/common.h], [NLGEORGES_COMMON_H], $nelgeorges_is_mandatory)
-
-#
-# Collect libraries information and bark if missing and
-# mandatory
-#
-
-MY_NEL_LIB_CHK([NeL Misc], [nelmisc], $nelmisc_is_mandatory)
-MY_NEL_LIB_CHK([NeL Network], [nelnet], $nelnet_is_mandatory)
-MY_NEL_LIB_CHK([NeL 3D], [nel3d], $nel3d_is_mandatory)
-MY_NEL_LIB_CHK([NeL PACS], [nelpacs], $nelpacs_is_mandatory)
-MY_NEL_LIB_CHK([NeL Sound], [nelsnd], $nelsound_is_mandatory)
-MY_NEL_LIB_CHK([NeL AI], [nelai], $nelai_is_mandatory)
-MY_NEL_LIB_CHK([NeL Georges], [nelgeorges], $nelgeorges_is_mandatory)
-
-])
-
-# =========================================================================
-# AM_PATH_OPENGL : OpenGL checking macros
-
-AC_DEFUN([AM_PATH_OPENGL],
-[ AC_MSG_CHECKING(for OpenGL headers and GL Version >= 1.2)
-
-is_mandatory="$1"
-
-AC_REQUIRE_CPP()
-
-AC_ARG_WITH( opengl,
- [ --with-opengl= path to the OpenGL install files directory.
- e.g. /usr/local])
-
-AC_ARG_WITH( opengl-include,
- [ --with-opengl-include=
- path to the OpenGL header files directory.
- e.g. /usr/local/include])
-
-AC_ARG_WITH( opengl-lib,
- [ --with-opengl-lib=
- path to the OpenGL library files directory.
- e.g. /usr/local/lib])
-
-opengl_lib="GL"
-
-if test "$with_opengl"
-then
- opengl_includes="$with_opengl/include"
- opengl_libraries="$with_opengl/lib"
-fi
-
-if test "$with_opengl_include"
-then
- opengl_includes="$with_opengl_include"
-fi
-
-if test "$with_opengl_lib"
-then
- opengl_libraries="$with_opengl_lib"
-fi
-
-# Set OPENGL_CFLAGS
-if test "$opengl_includes"
-then
- OPENGL_CFLAGS="-I$opengl_includes"
-fi
-
-# Set OPENGL_LIBS
-if test "$opengl_libraries"
-then
- OPENGL_LIBS="-L$opengl_libraries"
-fi
-OPENGL_LIBS="$OPENGL_LIBS -l$opengl_lib"
-
-# Test the headers
-_CPPFLAGS="$CPPFLAGS"
-
-CPPFLAGS="$CXXFLAGS $OPENGL_CFLAGS"
-
-AC_EGREP_CPP( yo_opengl,
-[#include
-#if defined(GL_VERSION_1_2)
- yo_opengl
-#endif],
- have_opengl_headers="yes",
- have_opengl_headers="no" )
-
-if test "$have_opengl_headers" = "yes"
-then
- if test "$opengl_includes"
- then
- AC_MSG_RESULT([$opengl_includes])
- else
- AC_MSG_RESULT(yes)
- fi
-else
- AC_MSG_RESULT(no)
-fi
-
-# Checking the GLEXT version >= 7
-AC_MSG_CHECKING(for and GLEXT version >= 7)
-
-AC_EGREP_CPP( yo_glext_version,
-[#include
-#ifdef GL_GLEXT_VERSION
-#if GL_GLEXT_VERSION >= 7
- yo_glext_version
-#endif
-#endif],
- have_glext="yes",
- have_glext="no" )
-
-if test "$have_glext" = "yes"
-then
- AC_MSG_RESULT(yes)
-else
- AC_MSG_RESULT([no, can be downloaded from http://www.opengl.org/registry/])
-fi
-
-# Test the libraries
-AC_MSG_CHECKING(for OpenGL libraries)
-
-CPPFLAGS="$CXXFLAGS $OPENGL_LIBS"
-
-AC_TRY_LINK( , , have_opengl_libraries="yes", have_opengl_libraries="no")
-
-CPPFLAGS="$_CPPFLAGS"
-
-if test "$have_opengl_libraries" = "yes"
-then
- if test "$opengl_libraries"
- then
- AC_MSG_RESULT([$opengl_libraries])
- else
- AC_MSG_RESULT(yes)
- fi
-else
- AC_MSG_RESULT(no)
-fi
-
-opengl_libraries="$opengl_libraries"
-
-if test "$have_opengl_headers" = "yes" \
- -a "$have_glext" = "yes" \
- -a "$have_opengl_libraries" = "yes"
-then
- have_opengl="yes"
-else
- have_opengl="no"
-fi
-
-if test "$have_opengl" = "no" -a "$is_mandatory" = "yes"
-then
- AC_MSG_ERROR([OpenGL >= 1.2 must be installed (http://www.mesa3d.org)])
-fi
-
-AC_SUBST(OPENGL_CFLAGS)
-AC_SUBST(OPENGL_LIBS)
-
-])
-
-
-# =========================================================================
-# AM_PATH_FREETYPE : FreeType checking macros
-
-AC_DEFUN([AM_PATH_FREETYPE],
-[ is_mandatory="$1"
-
-AC_REQUIRE_CPP()
-
-AC_ARG_WITH( freetype,
- [ --with-freetype= path to the FreeType install files directory.
- e.g. /usr/local/freetype])
-
-AC_ARG_WITH( freetype-include,
- [ --with-freetype-include=
- path to the FreeType header files directory.
- e.g. /usr/local/freetype/include])
-
-AC_ARG_WITH( freetype-lib,
- [ --with-freetype-lib=
- path to the FreeType library files directory.
- e.g. /usr/local/freetype/lib])
-
-freetype_lib="freetype"
-
-
-AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no)
-
-if test "$FREETYPE_CONFIG" = "no"
-then
- have_freetype_config="no"
-else
- FREETYPE_CFLAGS=`freetype-config --cflags`
- FREETYPE_LIBS=`freetype-config --libs`
- have_freetype_config="yes"
-fi
-
-if test "$with_freetype"
-then
- freetype_includes="$with_freetype/include"
- freetype_libraries="$with_freetype/lib"
-fi
-
-if test "$with_freetype_include"
-then
- freetype_includes="$with_freetype_include"
-fi
-
-if test "$with_freetype_lib"
-then
- freetype_libraries="$with_freetype_lib"
-fi
-
-if test "$freetype_includes"
-then
- FREETYPE_CFLAGS="-I$freetype_includes"
-fi
-
-# Checking the FreeType 2 instalation
-_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS=" $FREETYPE_CFLAGS $CXXFLAGS"
-
-AC_MSG_CHECKING(for FreeType version = 2)
-
-AC_EGREP_CPP( yo_freetype2,
-[#include
-#if FREETYPE_MAJOR == 2
- yo_freetype2
-#endif],
- have_freetype2="yes",
- have_freetype2="no")
-
-if test "$have_freetype2" = "yes"
-then
- AC_MSG_RESULT(yes)
-else
- AC_MSG_RESULT(no)
-fi
-
-# Test the libraries
-AC_MSG_CHECKING(for FreeType libraries)
-
-if test $freetype_libraries
-then
- FREETYPE_LIBS="-L$freetype_libraries -l$freetype_lib"
-fi
-
-CPPFLAGS="$FREETYPE_LIBS $CXXFLAGS"
-
-AC_TRY_LINK( , , have_freetype_libraries="yes", have_freetype_libraries="no")
-
-CPPFLAGS="$_CPPFLAGS"
-
-if test "$have_freetype_libraries" = "yes"
-then
- if test "$freetype_libraries"
- then
- AC_MSG_RESULT([$freetype_libraries])
- else
- AC_MSG_RESULT(yes)
- fi
-else
- AC_MSG_RESULT(no)
-fi
-
-if test "$have_freetype2" = "yes" && test "$have_freetype_libraries" = "yes"
-then
- have_freetype="yes"
-else
- have_freetype="no"
-fi
-
-if test "$have_freetype" = "no" && test "$is_mandatory" = "yes"
-then
- AC_MSG_ERROR([FreeType 2 must be installed (http://freetype.sourceforge.net)])
-fi
-
-AC_SUBST(FREETYPE_CFLAGS)
-AC_SUBST(FREETYPE_LIBS)
-
-])
-
-
-# =========================================================================
-# AM_PATH_XF86VIDMODE : XF86VidMode checking macros
-
-AC_DEFUN([AM_PATH_XF86VIDMODE],
-[ AC_MSG_CHECKING(for XF86VidMode extension)
-
-AC_REQUIRE_CPP()
-
-AC_ARG_WITH( xf86vidmode-lib,
- [ --with-xf86vidmode-lib=
- path to the XF86VidMode library.
- e.g. /usr/X11R6/lib] )
-
-xf86vidmode_lib="Xxf86vm"
-
-if test "$with_xf86vidmode_lib" = no
-then
- # The user explicitly disabled the use of XF86VidMode
- have_xf86vidmode="disabled"
- AC_MSG_RESULT(disabled)
-else
- if test "$with_xf86vidmode_lib"
- then
- xf86vidmode_libraries="$with_xf86vidmode_lib"
- fi
-
- XF86VIDMODE_CFLAGS="-DXF86VIDMODE"
-fi
-
-if test -z "$have_xf86vidmode"
-# -a "$with_xf86vidmode_lib"
-then
- if test "$xf86vidmode_libraries"
- then
- XF86VIDMODE_LIBS="-L$xf86vidmode_libraries"
- fi
-
- XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS -l$xf86vidmode_lib"
-
- _CPPFLAGS="$CPPFLAGS"
-
- CPPFLAGS="$CXXFLAGS $XF86VIDMODE_LIBS"
-
- AC_TRY_LINK( , , have_xf86vidmode_libraries="yes", have_xf86vidmode_libraries="no")
-
- CPPFLAGS="$_CPPFLAGS"
-
- if test "$have_xf86vidmode_libraries" = "yes"
- then
- have_xf86vidmode="yes"
- if test "$xf86vidmode_libraries"
- then
- AC_MSG_RESULT($xf86vidmode_libraries)
- else
- AC_MSG_RESULT(yes)
- fi
- else
- have_xf86vidmode="no"
- AC_MSG_RESULT(no, no fullscreen support available.)
- fi
-
- xf86vidmode_libraries="$xf86vidmode_libraries"
-
-fi
-
-AC_SUBST(XF86VIDMODE_CFLAGS)
-AC_SUBST(XF86VIDMODE_LIBS)
-
-])
-
-
-# =========================================================================
-# AM_PATH_OPENAL : OpenAL checking macros
-
-AC_DEFUN([AM_PATH_OPENAL],
-[ is_mandatory="$1"
-
-AC_REQUIRE_CPP()
-
-# Get from the user option the path to the OpenAL files location
-AC_ARG_WITH( openal,
- [ --with-openal= path to the OpenAL install files directory.
- e.g. /usr/local])
-
-AC_ARG_WITH( openal-include,
- [ --with-openal-include=
- path to the OpenAL header files directory.
- e.g. /usr/local/include])
-
-AC_ARG_WITH( openal-lib,
- [ --with-openal-lib=
- path to the OpenAL library files directory.
- e.g. /usr/local/lib])
-
-openal_lib="openal"
-alut_lib="alut"
-
-if test $with_openal
-then
- openal_includes="$with_openal/include"
- openal_libraries="$with_openal/lib"
-fi
-
-if test "$with_openal_include"
-then
- openal_includes="$with_openal_include"
-fi
-
-if test "$with_openal_lib"
-then
- openal_libraries="$with_openal_lib"
-fi
-
-
-# Set OPENAL_CFLAGS
-if test "$openal_includes"
-then
- OPENAL_CFLAGS="-I$openal_includes"
-fi
-
-# Set OPENAL_LIBS
-if test "$openal_libraries"
-then
- OPENAL_LIBS="-L$openal_libraries"
-fi
-OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib -l$alut_lib"
-
-_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS"
-
-AC_MSG_CHECKING(for OpenAL headers)
-AC_EGREP_CPP( yo_openal,
-[#include
-#include
-#ifdef AL_VERSION
- yo_openal
-#endif],
- have_openal_headers="yes",
- have_openal_headers="no" )
-
-if test "$have_openal_headers" = "yes"
-then
- if test "$openal_includes"
- then
- AC_MSG_RESULT([$openal_includes])
- else
- AC_MSG_RESULT(yes)
- fi
-else
- AC_MSG_RESULT(no)
-fi
-
-# Test the libraries
-AC_MSG_CHECKING(for OpenAL libraries)
-
-CPPFLAGS="$CXXFLAGS $OPENAL_LIBS"
-
-AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no")
-
-CPPFLAGS="$_CPPFLAGS"
-
-if test "$have_openal_libraries" = "yes"
-then
- if test "$openal_libraries"
- then
- AC_MSG_RESULT([$openal_libraries])
- else
- AC_MSG_RESULT(yes)
- fi
-else
- AC_MSG_RESULT(no)
-fi
-
-openal_libraries="$openal_libraries"
-
-if test "$have_openal_headers" = "yes" \
- && test "$have_openal_libraries" = "yes"
-then
- have_openal="yes"
-else
- have_openal="no"
-fi
-
-if test "$have_openal" = "no" -a "$is_mandatory" = "yes"
-then
- AC_MSG_ERROR([OpenAL is needed to compile NeL (http://www.openal.org).])
-fi
-
-AC_SUBST(OPENAL_CFLAGS)
-AC_SUBST(OPENAL_LIBS)
-AC_SUBST([have_openal])
-
-])
-
-
-# =========================================================================
-# AM_PATH_PYTHON : Python checking macros
-
-AC_DEFUN([AM_PATH_PYTHON],
-[ python_version_required="$1"
-
-is_mandatory="$2"
-
-AC_REQUIRE_CPP()
-
-# Get from the user option the path to the Python files location
-AC_ARG_WITH( python,
- [ --with-python= path to the Python prefix installation directory.
- e.g. /usr/local],
- [ PYTHON_PREFIX=$with_python ]
-)
-
-AC_ARG_WITH( python-version,
- [ --with-python-version=
- Python version to use, e.g. 1.5],
- [ PYTHON_VERSION=$with_python_version ]
-)
-
-if test ! "$PYTHON_PREFIX" = ""
-then
- PATH="$PYTHON_PREFIX/bin:$PATH"
-fi
-
-if test ! "$PYTHON_VERSION" = ""
-then
- PYTHON_EXEC="python$PYTHON_VERSION"
-else
- PYTHON_EXEC="python python2.1 python2.0 python1.5"
-fi
-
-AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH)
-
-if test "$PYTHON" != "no"
-then
- PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'`
- PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'`
-
- is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION`
-fi
-
-
-if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1"
-then
-
- if test "$is_mandatory" = "yes"
- then
- AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)])
- else
- have_python="no"
- fi
-
-else
-
- python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION"
- python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config"
- python_lib="python$PYTHON_VERSION"
-
- PYTHON_CFLAGS="-I$python_includes"
- PYTHON_LIBS="-L$python_libraries -l$python_lib"
-
- _CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$CXXFLAGS ${PYTHON_CFLAGS}"
-
- # Test the headers
- AC_MSG_CHECKING(for Python headers)
-
- AC_EGREP_CPP( yo_python,
- [#include
- yo_python
- ],
- have_python_headers="yes",
- have_python_headers="no" )
-
- if test "$have_python_headers" = "yes"
- then
- AC_MSG_RESULT([$python_includes])
- else
- AC_MSG_RESULT(no)
- fi
-
- # Test the libraries
- AC_MSG_CHECKING(for Python libraries)
-
- CPPFLAGS="$CXXFLAGS $PYTHON_CFLAGS"
-
- AC_TRY_LINK( , , have_python_libraries="yes", have_python_libraries="no")
-
- CPPFLAGS="$_CPPFLAGS"
-
- if test "$have_python_libraries" = "yes"
- then
- if test "$python_libraries"
- then
- AC_MSG_RESULT([$python_libraries])
- else
- AC_MSG_RESULT(yes)
- fi
- else
- AC_MSG_RESULT(no)
- fi
-
- if test "$have_python_headers" = "yes" \
- && test "$have_python_libraries" = "yes"
- then
- have_python="yes"
- else
- have_python="no"
- fi
-
- if test "$have_python" = "no" -a "$is_mandatory" = "yes"
- then
- AC_MSG_ERROR([Python is needed to compile NeL (http://www.python.org).])
- fi
-
- AC_SUBST(PYTHON_CFLAGS)
- AC_SUBST(PYTHON_LIBS)
-
-fi
-
-])
-
-# =========================================================================
-# AM_PATH_MYSQL : MySQL library
-
-# AM_PATH_MYSQL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
-# Test for MYSQL, and define MYSQL_CFLAGS and MYSQL_LIBS
-#
-AC_DEFUN([AM_PATH_MYSQL],
-[#
-# Get the cflags and libraries from the mysql_config script
-#
-AC_ARG_WITH(mysql-prefix,[ --with-mysql-prefix=PFX Prefix where MYSQL is installed (optional)],
- mysql_prefix="$withval", mysql_prefix="")
-AC_ARG_WITH(mysql-exec-prefix,[ --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)],
- mysql_exec_prefix="$withval", mysql_exec_prefix="")
-AC_ARG_ENABLE(mysqltest, [ --disable-mysqltest Do not try to compile and run a test MYSQL program],
- , enable_mysqltest=yes)
-
- if test x$mysql_exec_prefix != x ; then
- mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
- if test x${MYSQL_CONFIG+set} != xset ; then
- MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
- fi
- fi
- if test x$mysql_prefix != x ; then
- mysql_args="$mysql_args --prefix=$mysql_prefix"
- if test x${MYSQL_CONFIG+set} != xset ; then
- MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
- fi
- fi
-
- AC_REQUIRE([AC_CANONICAL_TARGET])
- AC_PATH_PROG(MYSQL_CONFIG, mysql_config, no)
- min_mysql_version=ifelse([$1], ,0.11.0,$1)
- AC_MSG_CHECKING(for MYSQL - version >= $min_mysql_version)
- no_mysql=""
- if test "$MYSQL_CONFIG" = "no" ; then
- no_mysql=yes
- else
- MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
- MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
-
- mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
- if test "x$enable_mysqltest" = "xyes" ; then
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LIBS="$LIBS"
- CFLAGS="$CFLAGS $MYSQL_CFLAGS"
- LIBS="$LIBS $MYSQL_LIBS"
-#
-# Now check if the installed MYSQL is sufficiently new. (Also sanity
-# checks the results of mysql_config to some extent
-#
- rm -f conf.mysqltest
- AC_TRY_RUN([
-#include
-#include
-#include
-#include
-
-char*
-my_strdup (char *str)
-{
- char *new_str;
-
- if (str)
- {
- new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
- strcpy (new_str, str);
- }
- else
- new_str = NULL;
-
- return new_str;
-}
-
-int main (int argc, char *argv[])
-{
- int major, minor, micro;
- char *tmp_version;
-
- /* This hangs on some systems (?)
- system ("touch conf.mysqltest");
- */
- { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
-
- /* HP/UX 9 (%@#!) writes to sscanf strings */
- tmp_version = my_strdup("$min_mysql_version");
- if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
- printf("%s, bad version string\n", "$min_mysql_version");
- exit(1);
- }
-
- if (($mysql_major_version > major) ||
- (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
- (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
- {
- return 0;
- }
- else
- {
- printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
- printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
- printf("*** best to upgrade to the required version.\n");
- printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
- printf("*** to point to the correct copy of mysql_config, and remove the file\n");
- printf("*** config.cache before re-running configure\n");
- return 1;
- }
-}
-
-],, no_mysql=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- fi
- if test "x$no_mysql" = x ; then
- AC_MSG_RESULT(yes)
- ifelse([$2], , :, [$2])
- else
- AC_MSG_RESULT(no)
- if test "$MYSQL_CONFIG" = "no" ; then
- echo "*** The mysql_config script installed by MYSQL could not be found"
- echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
- echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
- echo "*** full path to mysql_config."
- else
- if test -f conf.mysqltest ; then
- :
- else
- echo "*** Could not run MYSQL test program, checking why..."
- CFLAGS="$CFLAGS $MYSQL_CFLAGS"
- LIBS="$LIBS $MYSQL_LIBS"
- AC_TRY_LINK([
-#include
-#include
-
-int main(int argc, char *argv[])
-{ return 0; }
-#undef main
-#define main K_and_R_C_main
-], [ return 0; ],
- [ echo "*** The test program compiled, but did not run. This usually means"
- echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
- echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
- echo "*** to the installed location Also, make sure you have run ldconfig if that"
- echo "*** is required on your system"
- echo "***"
- echo "*** If you have an old version installed, it is best to remove it, although"
- echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
- [ echo "*** The test program failed to compile or link. See the file config.log for the"
- echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
- echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
- echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG" ])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- fi
- MYSQL_CFLAGS=""
- MYSQL_LIBS=""
- ifelse([$3], , :, [$3])
- fi
- AC_SUBST(MYSQL_CFLAGS)
- AC_SUBST(MYSQL_LIBS)
- rm -f conf.mysqltest
-])
-
-# =========================================================================
-# AM_PATH_FMOD : FMOD checking macros
-
-AC_DEFUN([AM_PATH_FMOD],
-[ is_mandatory="$1"
-
-AC_REQUIRE_CPP()
-
-# Get from the user option the path to the FMOD files location
-AC_ARG_WITH( fmod,
- [ --with-fmod= path to the FMOD install files directory.
- e.g. /usr/local])
-
-AC_ARG_WITH( fmod-include,
- [ --with-fmod-include=
- path to the FMOD header files directory.
- e.g. /usr/local/include])
-
-AC_ARG_WITH( fmod-lib,
- [ --with-fmod-lib=
- path to the FMOD library files directory.
- e.g. /usr/local/lib])
-
-fmod_lib="fmod"
-
-if test $with_fmod
-then
- fmod_includes="$with_fmod/include"
- fmod_libraries="$with_fmod/lib"
-fi
-
-if test "$with_fmod_include"
-then
- fmod_includes="$with_fmod_include"
-fi
-
-if test "$with_fmod_lib"
-then
- fmod_libraries="$with_fmod_lib"
-fi
-
-
-# Set FMOD_CFLAGS
-if test "$fmod_includes"
-then
- FMOD_CFLAGS="-I$fmod_includes"
-fi
-
-# Set FMOD_LIBS
-if test "$fmod_libraries"
-then
- FMOD_LIBS="-L$fmod_libraries"
-fi
-FMOD_LIBS="$FMOD_LIBS -l$fmod_lib"
-
-_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="$CXXFLAGS $FMOD_CFLAGS"
-
-AC_MSG_CHECKING(for FMOD headers)
-AC_EGREP_CPP( yo_fmod,
-[#include
-#ifdef FMOD_VERSION
- yo_fmod
-#endif],
- have_fmod_headers="yes",
- have_fmod_headers="no" )
-
-if test "$have_fmod_headers" = "yes"
-then
- if test "$fmod_includes"
- then
- AC_MSG_RESULT([$fmod_includes])
- else
- AC_MSG_RESULT(yes)
- fi
-else
- AC_MSG_RESULT(no)
-fi
-
-# Test the libraries
-AC_MSG_CHECKING(for FMOD libraries)
-
-CPPFLAGS="$CXXFLAGS $FMOD_LIBS"
-
-AC_TRY_LINK( , , have_fmod_libraries="yes", have_fmod_libraries="no")
-
-CPPFLAGS="$_CPPFLAGS"
-
-if test "$have_fmod_libraries" = "yes"
-then
- if test "$fmod_libraries"
- then
- AC_MSG_RESULT([$fmod_libraries])
- else
- AC_MSG_RESULT(yes)
- fi
-else
- AC_MSG_RESULT(no)
-fi
-
-fmod_libraries="$fmod_libraries"
-
-if test "$have_fmod_headers" = "yes" \
- && test "$have_fmod_libraries" = "yes"
-then
- have_fmod="yes"
-else
- have_fmod="no"
-fi
-
-if test "$have_fmod" = "no" -a "$is_mandatory" = "yes"
-then
- AC_MSG_ERROR([FMOD is needed to compile NeL (http://www.fmod.org).])
-fi
-
-AC_SUBST(FMOD_CFLAGS)
-AC_SUBST(FMOD_LIBS)
-AC_SUBST([have_fmod])
-
-])
-
-# =========================================================================
-# End of file
-
diff --git a/code/nel/autogen.sh b/code/nel/autogen.sh
deleted file mode 100755
index b863e1067..000000000
--- a/code/nel/autogen.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh -
-
-WANT_AUTOMAKE="1.6"
-
-case `uname -s` in
-Darwin)
- LIBTOOLIZE=glibtoolize
- ;;
-*)
- LIBTOOLIZE=libtoolize
- ;;
-esac
-
-# be able to customize the aclocal (for example to add extra param)
-if test "x$ACLOCAL" = "x"
-then
- ACLOCAL=aclocal
-fi
-
-echo "Creating macros..." && \
-$ACLOCAL -I automacros/ && \
-echo "Creating library tools..." && \
-$LIBTOOLIZE --force && \
-echo "Creating header templates..." && \
-autoheader && \
-echo "Creating Makefile templates..." && \
-automake --gnu --add-missing && \
-echo "Creating 'configure'..." && \
-autoconf && \
-echo "" && \
-echo "Run: ./configure; make; make install" && \
-echo ""
diff --git a/code/nel/automacros/gtk-2.0.m4 b/code/nel/automacros/gtk-2.0.m4
deleted file mode 100644
index 3deba01be..000000000
--- a/code/nel/automacros/gtk-2.0.m4
+++ /dev/null
@@ -1,196 +0,0 @@
-# Configure paths for GTK+
-# Owen Taylor 1997-2001
-
-dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
-dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES,
-dnl pass to pkg-config
-dnl
-AC_DEFUN([AM_PATH_GTK_2_0],
-[dnl
-dnl Get the cflags and libraries from pkg-config
-dnl
-AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program],
- , enable_gtktest=yes)
-
- pkg_config_args=gtk+-2.0
- for module in . $4
- do
- case "$module" in
- gthread)
- pkg_config_args="$pkg_config_args gthread-2.0"
- ;;
- esac
- done
-
- no_gtk=""
-
- AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-
- if test x$PKG_CONFIG != xno ; then
- if pkg-config --atleast-pkgconfig-version 0.7 ; then
- :
- else
- echo "*** pkg-config too old; version 0.7 or better required."
- no_gtk=yes
- PKG_CONFIG=no
- fi
- else
- no_gtk=yes
- fi
-
- min_gtk_version=ifelse([$1], ,2.0.0,$1)
- AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version)
-
- if test x$PKG_CONFIG != xno ; then
- ## don't try to run the test against uninstalled libtool libs
- if $PKG_CONFIG --uninstalled $pkg_config_args; then
- echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
- enable_gtktest=no
- fi
-
- if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
- :
- else
- no_gtk=yes
- fi
- fi
-
- if test x"$no_gtk" = x ; then
- GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
- GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
- gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
- gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
- gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
- sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
- if test "x$enable_gtktest" = "xyes" ; then
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LIBS="$LIBS"
- CFLAGS="$CFLAGS $GTK_CFLAGS"
- LIBS="$GTK_LIBS $LIBS"
-dnl
-dnl Now check if the installed GTK+ is sufficiently new. (Also sanity
-dnl checks the results of pkg-config to some extent)
-dnl
- rm -f conf.gtktest
- AC_TRY_RUN([
-#include
-#include
-#include
-
-int
-main ()
-{
- int major, minor, micro;
- char *tmp_version;
-
- system ("touch conf.gtktest");
-
- /* HP/UX 9 (%@#!) writes to sscanf strings */
- tmp_version = g_strdup("$min_gtk_version");
- if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
- printf("%s, bad version string\n", "$min_gtk_version");
- exit(1);
- }
-
- if ((gtk_major_version != $gtk_config_major_version) ||
- (gtk_minor_version != $gtk_config_minor_version) ||
- (gtk_micro_version != $gtk_config_micro_version))
- {
- printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
- $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
- gtk_major_version, gtk_minor_version, gtk_micro_version);
- printf ("*** was found! If pkg-config was correct, then it is best\n");
- printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
- printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
- printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
- printf("*** required on your system.\n");
- printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
- printf("*** to point to the correct configuration files\n");
- }
- else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
- (gtk_minor_version != GTK_MINOR_VERSION) ||
- (gtk_micro_version != GTK_MICRO_VERSION))
- {
- printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
- GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
- printf("*** library (version %d.%d.%d)\n",
- gtk_major_version, gtk_minor_version, gtk_micro_version);
- }
- else
- {
- if ((gtk_major_version > major) ||
- ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
- ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
- {
- return 0;
- }
- else
- {
- printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
- gtk_major_version, gtk_minor_version, gtk_micro_version);
- printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
- major, minor, micro);
- printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
- printf("***\n");
- printf("*** If you have already installed a sufficiently new version, this error\n");
- printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
- printf("*** being found. The easiest way to fix this is to remove the old version\n");
- printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
- printf("*** correct copy of pkg-config. (In this case, you will have to\n");
- printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
- printf("*** so that the correct libraries are found at run-time))\n");
- }
- }
- return 1;
-}
-],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- fi
- if test "x$no_gtk" = x ; then
- AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version))
- ifelse([$2], , :, [$2])
- else
- AC_MSG_RESULT(no)
- if test "$PKG_CONFIG" = "no" ; then
- echo "*** A new enough version of pkg-config was not found."
- echo "*** See http://pkgconfig.sourceforge.net"
- else
- if test -f conf.gtktest ; then
- :
- else
- echo "*** Could not run GTK+ test program, checking why..."
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LIBS="$LIBS"
- CFLAGS="$CFLAGS $GTK_CFLAGS"
- LIBS="$LIBS $GTK_LIBS"
- AC_TRY_LINK([
-#include
-#include
-], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
- [ echo "*** The test program compiled, but did not run. This usually means"
- echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
- echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
- echo "*** to the installed location Also, make sure you have run ldconfig if that"
- echo "*** is required on your system"
- echo "***"
- echo "*** If you have an old version installed, it is best to remove it, although"
- echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
- [ echo "*** The test program failed to compile or link. See the file config.log for the"
- echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- fi
- GTK_CFLAGS=""
- GTK_LIBS=""
- ifelse([$3], , :, [$3])
- fi
- AC_SUBST(GTK_CFLAGS)
- AC_SUBST(GTK_LIBS)
- rm -f conf.gtktest
-])
diff --git a/code/nel/automacros/ogg.m4 b/code/nel/automacros/ogg.m4
deleted file mode 100644
index 0e1f1abf5..000000000
--- a/code/nel/automacros/ogg.m4
+++ /dev/null
@@ -1,102 +0,0 @@
-# Configure paths for libogg
-# Jack Moffitt 10-21-2000
-# Shamelessly stolen from Owen Taylor and Manish Singh
-
-dnl XIPH_PATH_OGG([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
-dnl Test for libogg, and define OGG_CFLAGS and OGG_LIBS
-dnl
-AC_DEFUN([XIPH_PATH_OGG],
-[dnl
-dnl Get the cflags and libraries
-dnl
-AC_ARG_WITH(ogg,[ --with-ogg=PFX Prefix where libogg is installed (optional)], ogg_prefix="$withval", ogg_prefix="")
-AC_ARG_WITH(ogg-libraries,[ --with-ogg-libraries=DIR Directory where libogg library is installed (optional)], ogg_libraries="$withval", ogg_libraries="")
-AC_ARG_WITH(ogg-includes,[ --with-ogg-includes=DIR Directory where libogg header files are installed (optional)], ogg_includes="$withval", ogg_includes="")
-AC_ARG_ENABLE(oggtest, [ --disable-oggtest Do not try to compile and run a test Ogg program],, enable_oggtest=yes)
-
- if test "x$ogg_libraries" != "x" ; then
- OGG_LIBS="-L$ogg_libraries"
- elif test "x$ogg_prefix" != "x" ; then
- OGG_LIBS="-L$ogg_prefix/lib"
- elif test "x$prefix" != "xNONE" ; then
- OGG_LIBS="-L$prefix/lib"
- fi
-
- OGG_LIBS="$OGG_LIBS -logg"
-
- if test "x$ogg_includes" != "x" ; then
- OGG_CFLAGS="-I$ogg_includes"
- elif test "x$ogg_prefix" != "x" ; then
- OGG_CFLAGS="-I$ogg_prefix/include"
- elif test "x$prefix" != "xNONE"; then
- OGG_CFLAGS="-I$prefix/include"
- fi
-
- AC_MSG_CHECKING(for Ogg)
- no_ogg=""
-
-
- if test "x$enable_oggtest" = "xyes" ; then
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LIBS="$LIBS"
- CFLAGS="$CFLAGS $OGG_CFLAGS"
- LIBS="$LIBS $OGG_LIBS"
-dnl
-dnl Now check if the installed Ogg is sufficiently new.
-dnl
- rm -f conf.oggtest
- AC_TRY_RUN([
-#include
-#include
-#include
-#include
-
-int main ()
-{
- system("touch conf.oggtest");
- return 0;
-}
-
-],, no_ogg=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
-
- if test "x$no_ogg" = "x" ; then
- AC_MSG_RESULT(yes)
- ifelse([$1], , :, [$1])
- else
- AC_MSG_RESULT(no)
- if test -f conf.oggtest ; then
- :
- else
- echo "*** Could not run Ogg test program, checking why..."
- CFLAGS="$CFLAGS $OGG_CFLAGS"
- LIBS="$LIBS $OGG_LIBS"
- AC_TRY_LINK([
-#include
-#include
-], [ return 0; ],
- [ echo "*** The test program compiled, but did not run. This usually means"
- echo "*** that the run-time linker is not finding Ogg or finding the wrong"
- echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
- echo "*** to the installed location Also, make sure you have run ldconfig if that"
- echo "*** is required on your system"
- echo "***"
- echo "*** If you have an old version installed, it is best to remove it, although"
- echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
- [ echo "*** The test program failed to compile or link. See the file config.log for the"
- echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
- echo "*** or that you have moved Ogg since it was installed." ])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- OGG_CFLAGS=""
- OGG_LIBS=""
- ifelse([$2], , :, [$2])
- fi
- AC_SUBST(OGG_CFLAGS)
- AC_SUBST(OGG_LIBS)
- rm -f conf.oggtest
-])
diff --git a/code/nel/automacros/pkg.m4 b/code/nel/automacros/pkg.m4
deleted file mode 100644
index c29b6c057..000000000
--- a/code/nel/automacros/pkg.m4
+++ /dev/null
@@ -1,157 +0,0 @@
-# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
-#
-# Copyright © 2004 Scott James Remnant .
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program 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
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-# PKG_PROG_PKG_CONFIG([MIN-VERSION])
-# ----------------------------------
-AC_DEFUN([PKG_PROG_PKG_CONFIG],
-[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
-m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
-AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
-if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
- AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
-fi
-if test -n "$PKG_CONFIG"; then
- _pkg_min_version=m4_default([$1], [0.9.0])
- AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- PKG_CONFIG=""
- fi
-
-fi[]dnl
-])# PKG_PROG_PKG_CONFIG
-
-# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
-#
-# Check to see whether a particular set of modules exists. Similar
-# to PKG_CHECK_MODULES(), but does not set variables or print errors.
-#
-#
-# Similar to PKG_CHECK_MODULES, make sure that the first instance of
-# this or PKG_CHECK_MODULES is called, or make sure to call
-# PKG_CHECK_EXISTS manually
-# --------------------------------------------------------------
-AC_DEFUN([PKG_CHECK_EXISTS],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-if test -n "$PKG_CONFIG" && \
- AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
- m4_ifval([$2], [$2], [:])
-m4_ifvaln([$3], [else
- $3])dnl
-fi])
-
-
-# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
-# ---------------------------------------------
-m4_define([_PKG_CONFIG],
-[if test -n "$PKG_CONFIG"; then
- if test -n "$$1"; then
- pkg_cv_[]$1="$$1"
- else
- PKG_CHECK_EXISTS([$3],
- [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
- [pkg_failed=yes])
- fi
-else
- pkg_failed=untried
-fi[]dnl
-])# _PKG_CONFIG
-
-# _PKG_SHORT_ERRORS_SUPPORTED
-# -----------------------------
-AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
-else
- _pkg_short_errors_supported=no
-fi[]dnl
-])# _PKG_SHORT_ERRORS_SUPPORTED
-
-
-# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
-# [ACTION-IF-NOT-FOUND])
-#
-#
-# Note that if there is a possibility the first call to
-# PKG_CHECK_MODULES might not happen, you should be sure to include an
-# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
-#
-#
-# --------------------------------------------------------------
-AC_DEFUN([PKG_CHECK_MODULES],
-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
-AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
-AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
-
-pkg_failed=no
-AC_MSG_CHECKING([for $1])
-
-_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
-_PKG_CONFIG([$1][_LIBS], [libs], [$2])
-
-m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
-and $1[]_LIBS to avoid the need to call pkg-config.
-See the pkg-config man page for more details.])
-
-if test $pkg_failed = yes; then
- _PKG_SHORT_ERRORS_SUPPORTED
- if test $_pkg_short_errors_supported = yes; then
- $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
- else
- $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
-
- ifelse([$4], , [AC_MSG_ERROR(dnl
-[Package requirements ($2) were not met:
-
-$$1_PKG_ERRORS
-
-Consider adjusting the PKG_CONFIG_PATH environment variable if you
-installed software in a non-standard prefix.
-
-_PKG_TEXT
-])],
- [AC_MSG_RESULT([no])
- $4])
-elif test $pkg_failed = untried; then
- ifelse([$4], , [AC_MSG_FAILURE(dnl
-[The pkg-config script could not be found or is too old. Make sure it
-is in your PATH or set the PKG_CONFIG environment variable to the full
-path to pkg-config.
-
-_PKG_TEXT
-
-To get pkg-config, see .])],
- [$4])
-else
- $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
- $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
- AC_MSG_RESULT([yes])
- ifelse([$3], , :, [$3])
-fi[]dnl
-])# PKG_CHECK_MODULES
diff --git a/code/nel/automacros/vorbis.m4 b/code/nel/automacros/vorbis.m4
deleted file mode 100644
index 300cc6c7d..000000000
--- a/code/nel/automacros/vorbis.m4
+++ /dev/null
@@ -1,122 +0,0 @@
-# Configure paths for libvorbis
-# Jack Moffitt 10-21-2000
-# Shamelessly stolen from Owen Taylor and Manish Singh
-# thomasvs added check for vorbis_bitrate_addblock which is new in rc3
-
-dnl XIPH_PATH_VORBIS([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
-dnl Test for libvorbis, and define VORBIS_CFLAGS and VORBIS_LIBS
-dnl
-AC_DEFUN([XIPH_PATH_VORBIS],
-[dnl
-dnl Get the cflags and libraries
-dnl
-AC_ARG_WITH(vorbis,[ --with-vorbis=PFX Prefix where libvorbis is installed (optional)], vorbis_prefix="$withval", vorbis_prefix="")
-AC_ARG_WITH(vorbis-libraries,[ --with-vorbis-libraries=DIR Directory where libvorbis library is installed (optional)], vorbis_libraries="$withval", vorbis_libraries="")
-AC_ARG_WITH(vorbis-includes,[ --with-vorbis-includes=DIR Directory where libvorbis header files are installed (optional)], vorbis_includes="$withval", vorbis_includes="")
-AC_ARG_ENABLE(vorbistest, [ --disable-vorbistest Do not try to compile and run a test Vorbis program],, enable_vorbistest=yes)
-
- if test "x$vorbis_libraries" != "x" ; then
- VORBIS_LIBS="-L$vorbis_libraries"
- elif test "x$vorbis_prefix" != "x" ; then
- VORBIS_LIBS="-L$vorbis_prefix/lib"
- elif test "x$prefix" != "xNONE"; then
- VORBIS_LIBS="-L$prefix/lib"
- fi
-
- VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
- VORBISFILE_LIBS="-lvorbisfile"
- VORBISENC_LIBS="-lvorbisenc"
-
- if test "x$vorbis_includes" != "x" ; then
- VORBIS_CFLAGS="-I$vorbis_includes"
- elif test "x$vorbis_prefix" != "x" ; then
- VORBIS_CFLAGS="-I$vorbis_prefix/include"
- elif test "x$prefix" != "xNONE"; then
- VORBIS_CFLAGS="-I$prefix/include"
- fi
-
-
- AC_MSG_CHECKING(for Vorbis)
- no_vorbis=""
-
-
- if test "x$enable_vorbistest" = "xyes" ; then
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LIBS="$LIBS"
- CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
- LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
-dnl
-dnl Now check if the installed Vorbis is sufficiently new.
-dnl
- rm -f conf.vorbistest
- AC_TRY_RUN([
-#include
-#include
-#include
-#include
-#include
-
-int main ()
-{
- vorbis_block vb;
- vorbis_dsp_state vd;
- vorbis_info vi;
-
- vorbis_info_init (&vi);
- vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1);
- vorbis_analysis_init (&vd, &vi);
- vorbis_block_init (&vd, &vb);
- /* this function was added in 1.0rc3, so this is what we're testing for */
- vorbis_bitrate_addblock (&vb);
-
- system("touch conf.vorbistest");
- return 0;
-}
-
-],, no_vorbis=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
-
- if test "x$no_vorbis" = "x" ; then
- AC_MSG_RESULT(yes)
- ifelse([$1], , :, [$1])
- else
- AC_MSG_RESULT(no)
- if test -f conf.vorbistest ; then
- :
- else
- echo "*** Could not run Vorbis test program, checking why..."
- CFLAGS="$CFLAGS $VORBIS_CFLAGS"
- LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
- AC_TRY_LINK([
-#include
-#include
-], [ return 0; ],
- [ echo "*** The test program compiled, but did not run. This usually means"
- echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
- echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
- echo "*** to the installed location Also, make sure you have run ldconfig if that"
- echo "*** is required on your system"
- echo "***"
- echo "*** If you have an old version installed, it is best to remove it, although"
- echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
- [ echo "*** The test program failed to compile or link. See the file config.log for the"
- echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
- echo "*** or that you have moved Vorbis since it was installed." ])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- fi
- VORBIS_CFLAGS=""
- VORBIS_LIBS=""
- VORBISFILE_LIBS=""
- VORBISENC_LIBS=""
- ifelse([$2], , :, [$2])
- fi
- AC_SUBST(VORBIS_CFLAGS)
- AC_SUBST(VORBIS_LIBS)
- AC_SUBST(VORBISFILE_LIBS)
- AC_SUBST(VORBISENC_LIBS)
- rm -f conf.vorbistest
-])
diff --git a/code/nel/configure.ac b/code/nel/configure.ac
deleted file mode 100644
index 84edccc05..000000000
--- a/code/nel/configure.ac
+++ /dev/null
@@ -1,599 +0,0 @@
-# ====================================================================
-# Configuration script for NeL
-# ====================================================================
-#
-# $Id: configure.ac,v 1.8 2005/04/14 15:54:32 cado Exp $
-#
-
-# ====================================================================
-# Process this file with autoconf to produce a configure script.
-# ====================================================================
-
-# If you want to change the version, must must change AC_INIT
-# *and* AC_SUBST(LIBTOOL_VERSION)
-
-AC_PREREQ(2.57)
-AC_INIT([nel],[0.8.0],[nel-all@nevrax.org])
-AM_INIT_AUTOMAKE([tar-ustar])
-
-AC_CONFIG_SRCDIR(include/nel/misc/types_nl.h)
-AM_CONFIG_HEADER(include/nelconfig.h)
-
-AC_SUBST(LIBTOOL_VERSION, [0:7:0])
-
-# Checks for programs.
-AC_CANONICAL_HOST
-AC_PROG_CXX
-AC_PROG_CPP
-AC_PROG_YACC
-AC_PROG_LEX
-AC_PROG_INSTALL
-AC_PROG_LN_S
-AC_PROG_MAKE_SET
-AC_PROG_LIBTOOL
-AM_PROG_LIBTOOL
-AM_SANITY_CHECK
-
-AC_SYS_LARGEFILE
-
-AM_MAINTAINER_MODE
-
-
-# Template needed to generate the nelconfig.h.in
-AH_TEMPLATE([NEL_DEFAULT_DISPLAYER],[Define to 1 if you want log on standard output])
-AH_TEMPLATE([NEL_LOG_IN_FILE],[Define to 1 if you want a debug log.log file in the current directory])
-AH_TEMPLATE([HAVE_X86],[Define to 1 if you are on a INTEL compatible processor])
-AH_TEMPLATE([HAVE_X86_64],[Define to 1 if you are on AMD opteron 64bits processor])
-AH_TEMPLATE([NL_USE_GTK], [Define to 1 if you want GTK support])
-
-# Get host type info
-if test "$host_cpu" = "i386" -o "$host_cpu" = "i486" -o "$host_cpu" = "i586" \
- -o "$host_cpu" = "i686" -o "$host_cpu" = "i786" -o "$host_cpu" = "x86_64"
-then
- AC_DEFINE([HAVE_X86])
-fi
-
-if test "$host_cpu" = "x86_64"
-then
- AC_DEFINE([HAVE_X86_64])
-fi
-
-# The following hack should ensure that configure doesnt add optimizing
-# or debugging flags to CFLAGS or CXXFLAGS
-CXXFLAGS="$CXXFLAGS -fno-strict-aliasing -ftemplate-depth-24 -fno-stack-protector"
-
-
-# ====================================================================
-# Checks NeL modules (net, 3d) to install / Disable
-# ====================================================================
-
-# The misc is mandatory, it is use by the other modules.
-
-NEL_SUBDIRS="misc"
-
-# NeL libraries that are enabled by default
-
-# Network library
-AC_ARG_ENABLE([net],
- AC_HELP_STRING([--disable-net],
- [disable compilation and install of NeL Network]),
- [],
- [enable_net=yes])
-
-if test "$enable_net" = "no"
-then
- AC_MSG_RESULT([disable NeL Network])
-else
- NEL_SUBDIRS="$NEL_SUBDIRS net"
-fi
-
-# 3D library
-AC_ARG_ENABLE([3d],
- AC_HELP_STRING([--disable-3d],
- [disable compilation and install of NeL 3D]),
- [],
- [enable_3d=yes])
-
-if test "$enable_3d" = "no"
-then
- AC_MSG_RESULT([disable NeL 3D])
-else
- NEL_SUBDIRS="$NEL_SUBDIRS 3d"
-fi
-
-# PACS library
-AC_ARG_ENABLE([pacs],
- AC_HELP_STRING([--disable-pacs],
- [disable compilation and install of NeL PACS]),
- [],
- [enable_pacs=yes])
-
-if test "$enable_pacs" = "no"
-then
- AC_MSG_RESULT([disable NeL PACS])
-else
- NEL_SUBDIRS="$NEL_SUBDIRS pacs"
-fi
-
-# Georges library
-AC_ARG_ENABLE([georges],
- AC_HELP_STRING([--disable-georges],
- [disable compilation and install of NeL Georges]),
- [],
- [enable_georges=yes])
-
-if test "$enable_georges" = "no"
-then
- AC_MSG_RESULT([disable NeL Georges])
-else
- NEL_SUBDIRS="$NEL_SUBDIRS georges"
-fi
-
-# Ligo library
-AC_ARG_ENABLE([ligo],
- AC_HELP_STRING([--disable-ligo],
- [disable compilation and install of NeL Ligo]),
- [],
- [enable_ligo=yes])
-
-if test "$enable_ligo" = "no"
-then
- AC_MSG_RESULT([disable NeL Ligo])
-else
- NEL_SUBDIRS="$NEL_SUBDIRS ligo"
-fi
-
-
-# NeL libraries that are disabled by default
-
-# Sound library
-AC_ARG_ENABLE([sound],
- AC_HELP_STRING([--enable-sound],
- [enable compilation and install of NeL Sound]),
- [],
- [enable_sound=no])
-
-if test "$enable_sound" = "yes"
-then
- AC_MSG_RESULT([enable NeL Sound])
- NEL_SUBDIRS="$NEL_SUBDIRS sound"
-fi
-
-# CEGUI Renderer library
-AC_ARG_ENABLE([cegui],
- AC_HELP_STRING([--enable-cegui],
- [enable compilation and install of NeL CEGUI Renderer]),
- [],
- [enable_cegui=no])
-
-CEGUI_SUBDIR=""
-if test "$enable_cegui" = "yes"
-then
- AC_MSG_RESULT([enable NeL CEGUI Renderer])
- NEL_SUBDIRS="$NEL_SUBDIRS cegui"
- CEGUI_SUBDIR="cegui"
-fi
-
-# Unit Tests
-AC_ARG_ENABLE([tests],
- AC_HELP_STRING([--enable-tests],
- [enable unit tests of NeL]),
- [],
- [enable_tests=no])
-
-if test "$enable_tests" = "yes"
-then
- AC_MSG_RESULT([enable NeL Unit Tests])
-fi
-
-# Code Coverage
-AC_ARG_ENABLE([coverage],
- AC_HELP_STRING([--enable-coverage],
- [enable code coverage generation]),
- []
- [enable_coverage=no])
-
-if test "$enable_coverage" = "yes"
-then
- AC_MSG_RESULT([enable Code Coverage generation])
-
- CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
-fi
-
-# Enable/disable samples compilation.
-AC_ARG_ENABLE([samples],
- AC_HELP_STRING([--disable-samples],
- [disable sample code]),
- [],
- [enable_samples="yes"])
-
-if test "$enable_samples" = "no"
-then
- AC_MSG_RESULT([disable sample code.])
- SAMPLE_SUBDIR=""
-else
- SAMPLE_SUBDIR="samples"
-fi
-
-# Enable/disable tools compilation.
-AC_ARG_ENABLE([tools],
- AC_HELP_STRING([--disable-tools],
- [disable tools code]),
- [],
- [enable_tools="yes"])
-
-if test "$enable_tools" = "no"
-then
- AC_MSG_RESULT([disable tools code.])
- TOOLS_SUBDIR=""
-else
- TOOLS_SUBDIR="tools"
-fi
-
-AC_SUBST([enable_net])
-AC_SUBST([enable_3d])
-AC_SUBST([enable_pacs])
-AC_SUBST([enable_sound])
-AC_SUBST([enable_georges])
-AC_SUBST([enable_ligo])
-AC_SUBST([enable_cegui])
-
-AC_SUBST([NEL_SUBDIRS])
-AC_SUBST([SAMPLE_SUBDIR])
-AC_SUBST([TOOLS_SUBDIR])
-AC_SUBST([CEGUI_SUBDIR])
-
-# ====================================================================
-# Checks for programs.
-# ====================================================================
-
-# ====================================================================
-# Configure Settings
-# ====================================================================
-
-# Disable the static linking by default
-# AC_DISABLE_STATIC
-
-# Use C++ compiler as a default for the compilation tests.
-AC_LANG([C++])
-
-
-# ====================================================================
-# Debug/optimized compilation mode
-# ====================================================================
-
-AM_NEL_DEBUG
-
-AC_ARG_WITH([logging],
- AC_HELP_STRING([--without-logging],
- [be silent on stdout and in no log.log]),
- [],
- [with_logging=yes])
-
-if test "$with_logging" = "yes"
-then
- AC_DEFINE([NEL_DEFAULT_DISPLAYER], 1)
- AC_DEFINE([NEL_LOG_IN_FILE], 1)
-fi
-
-# ====================================================================
-# Checks for typedefs, structures, and compiler characteristics.
-# ====================================================================
-
-# Test endianness
-AC_C_BIGENDIAN
-
-# Supress GCC "multi-character character constant" warnings.
-if test "$ac_cv_cxx_compiler_gnu" = "yes";
-then
- if test "$with_debug" = "yes"
- then
- #
- # When debugging variables are declared for the sole purpose of
- # inspecting their content with a debugger. They are not used
- # in the code itself and this is legitimate, hence the -Wno-unused
- #
- CXXFLAGS="$CXXFLAGS -Wno-unused"
- fi
-fi
-
-# Add some common define
-if test "$ac_cv_cxx_compiler_gnu" = "yes";
-then
- CXXFLAGS="$CXXFLAGS -D_REENTRANT -Wall -ansi -W -Wpointer-arith -Wsign-compare -Wno-deprecated-declarations -Wno-multichar -Wno-long-long -Wno-unused"
-fi
-
-
-# ====================================================================
-# Checks for header and lib files.
-# ====================================================================
-
-AC_FUNC_ALLOCA
-AC_HEADER_DIRENT
-AC_HEADER_STDC
-AC_HEADER_TIME
-AC_CHECK_HEADERS([arpa/inet.h fcntl.h float.h malloc.h netdb.h netinet/in.h stddef.h stdlib.h string.h sys/ioctl.h sys/socket.h unistd.h sys/time.h])
-AC_CHECK_LIB([pthread], [pthread_create])
-AC_CHECK_LIB([dl], [dlopen])
-
-
-# ====================================================================
-# Checks for typedefs, structures, and compiler characteristics.
-# ====================================================================
-
-AC_HEADER_STDBOOL
-AC_C_CONST
-AC_C_INLINE
-AC_TYPE_SIZE_T
-AC_HEADER_TIME
-AC_STRUCT_TM
-AC_C_VOLATILE
-AC_CHECK_TYPES([ptrdiff_t])
-AC_CHECK_TYPES([size_t])
-AC_CHECK_TYPES([uintptr_t])
-
-
-# ====================================================================
-# Checks for library functions.
-# ====================================================================
-
-AC_FUNC_CLOSEDIR_VOID
-AC_FUNC_ERROR_AT_LINE
-AC_PROG_GCC_TRADITIONAL
-AC_FUNC_MALLOC
-AC_FUNC_MEMCMP
-AC_FUNC_REALLOC
-AC_FUNC_SELECT_ARGTYPES
-AC_TYPE_SIGNAL
-AC_FUNC_STAT
-AC_FUNC_STRFTIME
-AC_FUNC_FORK
-AC_FUNC_VPRINTF
-AC_CHECK_FUNCS([floor getcwd gethostbyaddr gethostbyname gethostname gettimeofday inet_ntoa memmove memset mkdir pow select socket sqrt strcasecmp strchr strdup strerror strrchr strstr strtoul sys/time.h])
-
-
-# ====================================================================
-# X11
-
-AC_PATH_X
-
-if test ! "$no_x" = "yes"
-then
- if test ! X"$x_libraries" = X
- then
- LIBS="$LIBS -L$x_libraries"
- fi
-
- if test ! X"$x_includes" = X
- then
- CXXFLAGS="$CXXFLAGS -I$x_includes"
- fi
-else
- if test "$enable_3d" = "yes"
- then
- AC_MSG_ERROR([X11 must be installed for NeL 3d library, use --disable-3d if you don't need NeL 3d library])
- fi
-fi
-
-# ====================================================================
-# LibXML
-
-# Use C compiler as a default for the libxml tests.
-AC_LANG([C])
-
-AM_PATH_XML2([2.0.0], [], [AC_MSG_ERROR([libxml2 must be installed])])
-
-CXXFLAGS="$CXXFLAGS $XML_CFLAGS $XML_CPPFLAGS"
-
-LIBS="$LIBS $XML_LIBS"
-
-# Use C++ compiler as a default for the compilation tests.
-AC_LANG([C++])
-
-# ====================================================================
-# libpng
-
-AC_CHECK_HEADER(png.h, [], AC_MSG_ERROR([libpng must be installed]))
-
-# ====================================================================
-# libjpeg
-
-AC_CHECK_HEADER(jpeglib.h, [], AC_MSG_ERROR([libjpeg must be installed]))
-
-# ====================================================================
-# Checks for libraries.
-# ====================================================================
-
-# ====================================================================
-# GTK 2.0+
-
-AC_ARG_WITH([gtk],
- AC_HELP_STRING([--with-gtk],
- [add GTK dependent code like GTK displayer]),
- [],
- [with_gtk=no])
-
-if test "$with_gtk" = "yes"
-then
- AC_LANG([C])
-
- AM_PATH_GTK_2_0([2.0.0],
- CXXFLAGS="$CXXFLAGS $GTK_CFLAGS"
- LIBS="$LIBS $GTK_LIBS"
- AC_DEFINE(NL_USE_GTK, [], [Undef if you don't want to use anything GTK based like the GTK Displayer]
-)
- )
-
- AC_LANG([C++])
-
- AC_SUBST([with_gtk])
-fi
-
-# ====================================================================
-# CEGUI
-
-if test "$enable_cegui" = "yes"
-then
- PKG_CHECK_MODULES(CEGUI, CEGUI >= 0.4,
- [],
- [
- AC_MSG_ERROR([Couldn't find CEGUI or tests failed:
-$CEGUI_PKG_ERRORS
-Please go to http://crayzedsgui.sourceforge.net to get the latest, or check
-config.log to see why the tests failed, and fix it.])
- ])
-fi
-
-# ====================================================================
-# FreeType 2
-
-AM_PATH_FREETYPE($enable_3d)
-
-
-# ====================================================================
-# OpenGL
-
-AM_PATH_OPENGL($enable_3d)
-
-
-# ====================================================================
-# Check for XF86VidMode extension (-lXxf86vm)
-
-AM_PATH_XF86VIDMODE
-
-
-# ====================================================================
-# FMOD, OpenAL
-
-if test "$enable_sound" = "yes"
-then
- AM_PATH_FMOD("no")
- AM_PATH_OPENAL("no")
- if test "$have_fmod" = "no" -a "$have_openal" = "no"
- then
- AC_MSG_ERROR([Either FMod or OpenAL must be installed to use sound.])
- fi
- if test "$have_fmod" = "yes"
- then
- SOUND_SUBDIRS="fmod"
- else
- SOUND_SUBDIRS=""
- fi
- if test "$have_openal" = "yes"
- then
- SOUND_SUBDIRS="$SOUND_SUBDIRS openal"
-
- XIPH_PATH_OGG([], AC_MSG_ERROR([Driver OpenAL Requires libogg!]))
- XIPH_PATH_VORBIS([], AC_MSG_ERROR([Driver OpenAL Requires libvorbis!]))
- fi
- AC_SUBST([SOUND_SUBDIRS])
-fi
-
-
-# ====================================================================
-# CppTest
-
-#AM_PATH_CPPTEST($enable_tests)
-
-# ====================================================================
-# Arrange for the include directory to be in the search path even when
-# build is done outside the source tree
-# Put the nelconfig.h define
-CXXFLAGS="$CXXFLAGS -I\${top_srcdir}/include -DHAVE_NELCONFIG_H"
-
-# ====================================================================
-# Checks for library functions.
-# ====================================================================
-
-
-# ====================================================================
-# Output files to generate.
-# ====================================================================
-
-AC_CONFIG_FILES([Makefile \
- include/Makefile \
- include/nel/Makefile \
- include/nel/ligo/Makefile \
- include/nel/misc/Makefile \
- include/nel/net/Makefile \
- include/nel/3d/Makefile \
- include/nel/pacs/Makefile \
- include/nel/sound/Makefile \
- include/nel/georges/Makefile \
- include/nel/cegui/Makefile \
- src/Makefile \
- src/misc/Makefile \
- src/misc/nel-misc.pc \
- src/misc/config_file/Makefile \
- src/net/Makefile \
- src/3d/Makefile \
- src/3d/nel-3d.pc \
- src/3d/driver/Makefile \
- src/3d/driver/opengl/Makefile \
- src/3d/driver/opengl/nel-driverogl.pc \
- src/pacs/Makefile \
- src/sound/Makefile \
- src/sound/driver/Makefile \
- src/sound/driver/fmod/Makefile \
- src/sound/driver/openal/Makefile \
- src/georges/Makefile \
- src/ligo/Makefile \
- src/cegui/Makefile \
- tools/Makefile \
- tools/3d/Makefile \
- tools/3d/build_coarse_mesh/Makefile \
- tools/3d/build_far_bank/Makefile \
- tools/3d/build_smallbank/Makefile \
- tools/3d/ig_lighter/Makefile \
- tools/3d/ig_lighter_lib/Makefile \
- tools/3d/panoply_maker/Makefile \
- tools/3d/zone_dependencies/Makefile \
- tools/3d/zone_ig_lighter/Makefile \
- tools/3d/zone_lib/Makefile \
- tools/3d/zone_lighter/Makefile \
- tools/3d/zone_welder/Makefile \
- tools/misc/Makefile \
- tools/misc/bnp_make/Makefile \
- tools/misc/disp_sheet_id/Makefile \
- tools/misc/make_sheet_id/Makefile \
- tools/misc/xml_packer/Makefile \
- tools/pacs/Makefile \
- tools/pacs/build_ig_boxes/Makefile \
- tools/pacs/build_indoor_rbank/Makefile \
- tools/pacs/build_rbank/Makefile \
- samples/Makefile \
- samples/sound_sources/Makefile \
- samples/pacs/Makefile \
- samples/georges/Makefile \
- samples/3d/Makefile \
- samples/3d/font/Makefile \
- samples/3d/cluster_viewer/Makefile \
- samples/3d/cluster_viewer/shapes/Makefile \
- samples/3d/cluster_viewer/groups/Makefile \
- samples/3d/cluster_viewer/fonts/Makefile \
- samples/3d/cegui/Makefile \
- samples/misc/Makefile \
- samples/misc/command/Makefile \
- samples/misc/configfile/Makefile \
- samples/misc/debug/Makefile \
- samples/misc/i18n/Makefile \
- samples/misc/log/Makefile \
- samples/misc/strings/Makefile \
- samples/misc/types_check/Makefile \
- samples/net/Makefile \
- samples/net/chat/Makefile \
- samples/net/udp/Makefile \
- samples/net/login_system/Makefile \
- nel-config
-
-])
-AC_OUTPUT
-
-# samples/net/class_transport/Makefile \
-# tools/nel_unit_test/Makefile \
-# tools/nel_unit_test/misc_ut/Makefile \
-# tools/nel_unit_test/ligo_ut/Makefile \
-# tools/nel_unit_test/net_ut/Makefile \
-# tools/nel_unit_test/net_ut/net_service_lib_test/Makefile \
-# tools/nel_unit_test/net_ut/net_module_lib_test/Makefile \
-# End of configure.in
diff --git a/code/nel/include/Makefile.am b/code/nel/include/Makefile.am
deleted file mode 100644
index 193d2e405..000000000
--- a/code/nel/include/Makefile.am
+++ /dev/null
@@ -1,10 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-SUBDIRS = nel
-
-pkginclude_HEADERS = nelconfig.h
-
-# End of Makefile.am
diff --git a/code/nel/include/nel/3d/Makefile.am b/code/nel/include/nel/3d/Makefile.am
deleted file mode 100644
index 8118d8348..000000000
--- a/code/nel/include/nel/3d/Makefile.am
+++ /dev/null
@@ -1,343 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-includedir = ${prefix}/include/nel/3d
-
-include_HEADERS = \
-animatable.h \
-animated_lightmap.h \
-animated_material.h \
-animated_morph.h \
-animated_value.h \
-animation.h \
-animation_optimizer.h \
-animation_playlist.h \
-animation_set.h \
-animation_set_user.h \
-animation_time.h \
-anim_ctrl.h \
-anim_detail_trav.h \
-async_file_manager_3d.h \
-async_texture_block.h \
-async_texture_manager.h \
-bezier_patch.h \
-bloom_effect.h \
-bone.h \
-bsp_tree.h \
-camera_col.h \
-camera.h \
-channel_mixer.h \
-clip_trav.h \
-cloud.h \
-cloud_scape.h \
-cloud_scape_user.h \
-cluster.h \
-coarse_mesh_build.h \
-coarse_mesh_manager.h \
-computed_string.h \
-cube_grid.h \
-cube_map_builder.h \
-debug_vb.h \
-deform_2d.h \
-driver.h \
-driver_material_inline.h \
-driver_user.h \
-dru.h \
-event_mouse_listener.h \
-fasthls_modifier.h \
-fast_ptr_list.h \
-flare_model.h \
-flare_shape.h \
-font_generator.h \
-font_manager.h \
-frustum.h \
-heat_haze.h \
-height_map.h \
-hls_color_texture.h \
-hls_texture_bank.h \
-hls_texture_manager.h \
-hrc_trav.h \
-ig_surface_light_build.h \
-ig_surface_light.h \
-index_buffer.h \
-init_3d.h \
-instance_group_user.h \
-instance_lighter.h \
-key.h \
-landscape_collision_grid.h \
-landscape_def.h \
-landscape_face_vector_manager.h \
-landscape.h \
-landscapeig_manager.h \
-landscape_model.h \
-landscape_profile.h \
-landscape_user.h \
-landscapevb_allocator.h \
-landscapevb_info.h \
-landscape_vegetable_block.h \
-layered_ordering_table.h \
-light_contribution.h \
-light.h \
-light_influence_interpolator.h \
-lighting_manager.h \
-light_trav.h \
-light_user.h \
-load_balancing_trav.h \
-lod_character_builder.h \
-lod_character_instance.h \
-lod_character_manager.h \
-lod_character_shape_bank.h \
-lod_character_shape.h \
-lod_character_texture.h \
-logic_info.h \
-material.h \
-matrix_3x4.h \
-mesh_base.h \
-mesh_base_instance.h \
-mesh_blender.h \
-mesh_block_manager.h \
-mesh_geom.h \
-mesh.h \
-mesh_instance.h \
-mesh_morpher.h \
-mesh_mrm.h \
-mesh_mrm_instance.h \
-mesh_mrm_skinned.h \
-mesh_mrm_skinned_instance.h \
-mesh_multi_lod.h \
-mesh_multi_lod_instance.h \
-mesh_vertex_program.h \
-meshvp_per_pixel_light.h \
-meshvp_wind_tree.h \
-mini_col.h \
-motion_blur.h \
-mrm_builder.h \
-mrm_internal.h \
-mrm_level_detail.h \
-mrm_mesh.h \
-mrm_parameters.h \
-nelu.h \
-noise_3d.h \
-occlusion_query.h \
-ordering_table.h \
-packed_world.h \
-packed_zone.h \
-particle_system.h \
-particle_system_manager.h \
-particle_system_model.h \
-particle_system_process.h \
-particle_system_shape.h \
-patchdlm_context.h \
-patch.h \
-patch_rdr_pass.h \
-patchuv_locator.h \
-play_list_manager.h \
-play_list_manager_user.h \
-play_list_user.h \
-point_light.h \
-point_light_influence.h \
-point_light_model.h \
-point_light_named_array.h \
-point_light_named.h \
-portal.h \
-primitive_profile.h \
-ps_allocator.h \
-ps_attrib.h \
-ps_attrib_maker_bin_op.h \
-ps_attrib_maker_bin_op_inline.h \
-ps_attrib_maker.h \
-ps_attrib_maker_helper.h \
-ps_attrib_maker_iterators.h \
-ps_attrib_maker_template.h \
-ps_color.h \
-ps_direction.h \
-ps_dot.h \
-ps_edit.h \
-ps_emitter.h \
-ps_face.h \
-ps_face_look_at.h \
-ps_fan_light.h \
-ps_float.h \
-ps_force.h \
-ps_int.h \
-ps_iterator.h \
-ps_light.h \
-ps_located.h \
-ps_lod.h \
-ps_macro.h \
-ps_mesh.h \
-ps_misc.h \
-ps_particle2.h \
-ps_particle_basic.h \
-ps_particle.h \
-ps_plane_basis.h \
-ps_plane_basis_maker.h \
-ps_quad.h \
-ps_register_color_attribs.h \
-ps_register_float_attribs.h \
-ps_register_int_attribs.h \
-ps_register_plane_basis_attribs.h \
-ps_ribbon_base.h \
-ps_ribbon.h \
-ps_ribbon_look_at.h \
-ps_shockwave.h \
-ps_sound.h \
-ps_spawn_info.h \
-ps_tail_dot.h \
-ps_util.h \
-ps_zone.h \
-ptr_set.h \
-quad_effect.h \
-quad_grid_clip_cluster.h \
-quad_grid_clip_manager.h \
-quad_grid.h \
-quad_tree.h \
-radix_sort.h \
-raw_skin.h \
-raw_skinned.h \
-ray_mesh.h \
-register_3d.h \
-render_trav.h \
-root_model.h \
-scene_group.h \
-scene.h \
-scene_user.h \
-scissor.h \
-seg_remanence.h \
-seg_remanence_shape.h \
-shader.h \
-shadow_map.h \
-shadow_map_manager.h \
-shadow_poly_receiver.h \
-shadow_skin.h \
-shape_bank.h \
-shape_bank_user.h \
-shape.h \
-shape_info.h \
-shifted_triangle_cache.h \
-skeleton_model.h \
-skeleton_shape.h \
-skeleton_spawn_script.h \
-skeleton_weight.h \
-static_quad_grid.h \
-stripifier.h \
-surface_light_grid.h \
-tangent_space_build.h \
-target_anim_ctrl.h \
-tess_block.h \
-tessellation.h \
-tess_face_priority_list.h \
-tess_list.h \
-text_context.h \
-text_context_user.h \
-texture_blank.h \
-texture_blend.h \
-texture_bloom.h \
-texture_bump.h \
-texture_cube.h \
-texture_dlm.h \
-texture_emboss.h \
-texture_far.h \
-texture_file.h \
-texture_font.h \
-texture_grouped.h \
-texture.h \
-texture_mem.h \
-texture_multi_file.h \
-texture_near.h \
-texture_user.h \
-tile_bank.h \
-tile_color.h \
-tile_element.h \
-tile_far_bank.h \
-tile_light_influence.h \
-tile_lumel.h \
-tile_noise_map.h \
-tile_vegetable_desc.h \
-track_bezier.h \
-track.h \
-track_keyframer.h \
-track_sampled_common.h \
-track_sampled_quat.h \
-track_sampled_quat_small_header.h \
-track_sampled_vector.h \
-track_tcb.h \
-transformable.h \
-transform.h \
-transform_shape.h \
-trav_scene.h \
-u_3d_mouse_listener.h \
-u_animation.h \
-u_animation_set.h \
-u_bone.h \
-u_camera.h \
-u_cloud_scape.h \
-u_driver.h \
-u_instance_group.h \
-u_instance.h \
-u_instance_material.h \
-u_landscape.h \
-u_light.h \
-u_material.h \
-u_particle_system_instance.h \
-u_particle_system_sound.h \
-u_play_list.h \
-u_play_list_manager.h \
-u_point_light.h \
-u_ps_sound_impl.h \
-u_ps_sound_interface.h \
-u_scene.h \
-u_shape_bank.h \
-u_shape.h \
-u_skeleton.h \
-u_text_context.h \
-u_texture.h \
-u_track.h \
-u_transformable.h \
-u_transform.h \
-u_visual_collision_entity.h \
-u_visual_collision_manager.h \
-u_visual_collision_mesh.h \
-u_water_env_map.h \
-u_water.h \
-vegetable_blend_layer_model.h \
-vegetable_clip_block.h \
-vegetable_def.h \
-vegetable.h \
-vegetable_instance_group.h \
-vegetable_light_ex.h \
-vegetable_manager.h \
-vegetable_quadrant.h \
-vegetable_shape.h \
-vegetable_sort_block.h \
-vegetable_uv8.h \
-vegetablevb_allocator.h \
-vertex_buffer.h \
-vertex_buffer_heap.h \
-vertex_program.h \
-vertex_program_parse.h \
-vertex_stream_manager.h \
-viewport.h \
-visual_collision_entity.h \
-visual_collision_entity_user.h \
-visual_collision_manager.h \
-visual_collision_manager_user.h \
-visual_collision_mesh.h \
-water_env_map.h \
-water_env_map_user.h \
-water_height_map.h \
-water_model.h \
-water_pool_manager.h \
-water_shape.h \
-zone_corner_smoother.h \
-zone.h \
-zone_lighter.h \
-zone_manager.h \
-zone_search.h \
-zone_smoother.h \
-zone_symmetrisation.h \
-zone_tgt_smoother.h
-
-# End of Makefile.am
diff --git a/code/nel/include/nel/Makefile.am b/code/nel/include/nel/Makefile.am
deleted file mode 100644
index 7e4686f14..000000000
--- a/code/nel/include/nel/Makefile.am
+++ /dev/null
@@ -1,13 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-DIST_SUBDIRS = net 3d pacs sound misc georges ligo
-
-SUBDIRS = @NEL_SUBDIRS@
-
-includedir = ${prefix}/include/nel
-
-# End of Makefile.am
-
diff --git a/code/nel/include/nel/cegui/Makefile.am b/code/nel/include/nel/cegui/Makefile.am
deleted file mode 100644
index ba2530dff..000000000
--- a/code/nel/include/nel/cegui/Makefile.am
+++ /dev/null
@@ -1,11 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2001-08-01 08:45:06 valignat Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-includedir = ${prefix}/include/nel/cegui
-
-include_HEADERS = nelrenderer.h nelresourceprovider.h neltexture.h
-
-# End of Makefile.am
diff --git a/code/nel/include/nel/georges/Makefile.am b/code/nel/include/nel/georges/Makefile.am
deleted file mode 100644
index 153e9b102..000000000
--- a/code/nel/include/nel/georges/Makefile.am
+++ /dev/null
@@ -1,15 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-includedir = ${prefix}/include/nel/georges
-
-include_HEADERS = load_form.h \
- u_form_dfn.h \
- u_form_elm.h \
- u_form.h \
- u_form_loader.h \
- u_type.h
-
-# End of Makefile.am
diff --git a/code/nel/include/nel/ligo/Makefile.am b/code/nel/include/nel/ligo/Makefile.am
deleted file mode 100644
index 48fb3c54b..000000000
--- a/code/nel/include/nel/ligo/Makefile.am
+++ /dev/null
@@ -1,14 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-includedir = ${prefix}/include/nel/ligo
-
-include_HEADERS = ligo_config.h \
- primitive_class.h \
- primitive_configuration.h \
- primitive.h \
- primitive_utils.h
-
-# End of Makefile.am
diff --git a/code/nel/include/nel/misc/Makefile.am b/code/nel/include/nel/misc/Makefile.am
deleted file mode 100644
index 75bde6b95..000000000
--- a/code/nel/include/nel/misc/Makefile.am
+++ /dev/null
@@ -1,143 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-includedir = ${prefix}/include/nel/misc
-
-include_HEADERS = aabbox.h \
- algo.h \
- app_context.h \
- array_2d.h \
- async_file_manager.h \
- big_file.h \
- bitmap.h \
- bit_mem_stream.h \
- bit_set.h \
- block_memory.h \
- bsphere.h \
- buf_fifo.h \
- check_fpu.h \
- class_id.h \
- class_registry.h \
- command.h \
- common.h \
- config_file.h \
- contiguous_block_allocator.h \
- co_task.h \
- cpu_time_stat.h \
- debug.h \
- di_event_emitter.h \
- diff_tool.h \
- displayer.h \
- dummy_window.h \
- dynloadlib.h \
- eid_translator.h \
- entity_id.h \
- enum_bitset.h \
- eval_num_expr.h \
- event_emitter.h \
- event_emitter_multi.h \
- event_listener.h \
- event_server.h \
- events.h \
- factory.h \
- fast_floor.h \
- fast_mem.h \
- file.h \
- fixed_size_allocator.h \
- game_device_events.h \
- game_device.h \
- geom_ext.h \
- grid_traversal.h \
- gtk_displayer.h \
- heap_memory.h \
- hierarchical_timer.h \
- historic.h \
- i18n.h \
- input_device.h \
- input_device_manager.h \
- input_device_server.h \
- inter_window_msg_queue.h \
- i_xml.h \
- keyboard_device.h \
- line.h \
- log.h \
- matrix.h \
- md5.h \
- mem_displayer.h \
- mem_stream.h \
- mouse_device.h \
- mouse_smoother.h \
- mutable_container.h \
- mutex.h \
- noise_value.h \
- object_arena_allocator.h \
- object_vector.h \
- o_xml.h \
- path.h \
- plane.h \
- plane_inline.h \
- polygon.h \
- pool_memory.h \
- progress_callback.h \
- p_thread.h \
- quad.h \
- quat.h \
- random.h \
- reader_writer.h \
- rect.h \
- report.h \
- resource_ptr.h \
- resource_ptr_inline.h \
- rgba.h \
- sha1.h \
- shared_memory.h \
- sheet_id.h \
- singleton.h \
- smart_ptr.h \
- smart_ptr_inline.h \
- speaker_listener.h \
- sstring.h \
- static_map.h \
- stl_block_allocator.h \
- stl_block_list.h \
- stop_watch.h \
- stream.h \
- stream_inline.h \
- string_common.h \
- string_conversion.h \
- string_id_array.h \
- string_mapper.h \
- string_stream.h \
- system_info.h \
- task_manager.h \
- tds.h \
- thread.h \
- time_nl.h \
- timeout_assertion_thread.h \
- traits_nl.h \
- triangle.h \
- twin_map.h \
- types_nl.h \
- ucstring.h \
- uv.h \
- value_smoother.h \
- variable.h \
- vector_2d.h \
- vector_2f.h \
- vectord.h \
- vectord_inline.h \
- vector.h \
- vector_h.h \
- vector_inline.h \
- win32_util.h \
- win_displayer.h \
- window_displayer.h \
- win_event_emitter.h \
- win_thread.h \
- win_tray.h \
- words_dictionary.h \
- xml_pack.h
-
-# End of Makefile.am
diff --git a/code/nel/include/nel/misc/common.h b/code/nel/include/nel/misc/common.h
index 42bf56d3b..fa9272386 100644
--- a/code/nel/include/nel/misc/common.h
+++ b/code/nel/include/nel/misc/common.h
@@ -342,6 +342,8 @@ std::string secondsToHumanReadable (uint32 time);
/// Get a bytes or time in string format and convert it in seconds or bytes
uint32 fromHumanReadable (const std::string &str);
+/// Add digit grouping seperator to if value >= 10 000. Assumes input is numerical string.
+std::string formatThousands(const std::string& s);
/// This function executes a program in the background and returns instantly (used for example to launch services in AES).
/// The program will be launched in the current directory
diff --git a/code/nel/include/nel/misc/eid_translator.h b/code/nel/include/nel/misc/eid_translator.h
index 695f7724e..9937b72fd 100644
--- a/code/nel/include/nel/misc/eid_translator.h
+++ b/code/nel/include/nel/misc/eid_translator.h
@@ -146,6 +146,8 @@ public:
TAdditionalInfoCb EntityInfoCallback;
+ static void removeShardFromName(ucstring& name);
+
private:
// get all eid for a user using the user name or the user id
void getByUser (uint32 uid, std::vector &res);
diff --git a/code/nel/include/nel/misc/event_emitter.h b/code/nel/include/nel/misc/event_emitter.h
index e678c2674..5c547d07f 100644
--- a/code/nel/include/nel/misc/event_emitter.h
+++ b/code/nel/include/nel/misc/event_emitter.h
@@ -49,7 +49,7 @@ public:
* \param server
*/
virtual void submitEvents(CEventServer & server, bool allWindows) = 0;
-
+
/**
* Instruct the event emitter to send CGDMouseMove instead of CEventMouseMove.
*
diff --git a/code/nel/include/nel/net/Makefile.am b/code/nel/include/nel/net/Makefile.am
deleted file mode 100644
index 7a5dfe1be..000000000
--- a/code/nel/include/nel/net/Makefile.am
+++ /dev/null
@@ -1,48 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-includedir = ${prefix}/include/nel/net
-
-include_HEADERS = admin.h \
- buf_client.h \
- buf_net_base.h \
- buf_server.h \
- buf_sock.h \
- callback_client.h \
- callback_net_base.h \
- callback_server.h \
- cvar_log_filter.h \
- dummy_tcp_sock.h \
- email.h \
- inet_address.h \
- listen_sock.h \
- login_client.h \
- login_cookie.h \
- login_server.h \
- message.h \
- message_recorder.h \
- module_builder_parts.h \
- module_common.h \
- module_gateway.h \
- module.h \
- module_manager.h \
- module_message.h \
- module_socket.h \
- naming_client.h \
- net_displayer.h \
- net_log.h \
- net_manager.h \
- pacs_client.h \
- service.h \
- sock.h \
- tcp_sock.h \
- transport_class.h \
- udp_sim_sock.h \
- udp_sock.h \
- unified_network.h \
- unitime.h \
- varpath.h
-
-# End of Makefile.am
diff --git a/code/nel/include/nel/net/transport_class.h b/code/nel/include/nel/net/transport_class.h
index 11161d7cd..2517da64b 100644
--- a/code/nel/include/nel/net/transport_class.h
+++ b/code/nel/include/nel/net/transport_class.h
@@ -75,7 +75,7 @@ public:
enum TProp {
PropUInt8, PropUInt16, PropUInt32, PropUInt64,
PropSInt8, PropSInt16, PropSInt32, PropSInt64,
- PropBool, PropFloat, PropDouble, PropString, PropDataSetRow, PropSheetId, PropUKN };
+ PropBool, PropFloat, PropDouble, PropString, PropDataSetRow, PropSheetId, PropUCString, PropUKN };
// PropBool, PropFloat, PropDouble, PropString, PropDataSetRow, PropEntityId, PropSheetId, PropUKN };
@@ -160,6 +160,7 @@ public:
case PropString: nlassert(sizeof(T) == sizeof (std::string)); break;
// case PropEntityId: nlassert(sizeof(T) == sizeof (NLMISC::CEntityId)); break;
case PropSheetId: nlassert(sizeof(T) == sizeof (NLMISC::CSheetId)); break;
+ case PropUCString: nlassert(sizeof(T) == sizeof (ucstring)); break;
default: nlerror ("property %s have unknown type %d", name.c_str(), type);
}
diff --git a/code/nel/include/nel/pacs/Makefile.am b/code/nel/include/nel/pacs/Makefile.am
deleted file mode 100644
index 7160ec65c..000000000
--- a/code/nel/include/nel/pacs/Makefile.am
+++ /dev/null
@@ -1,17 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-includedir = ${prefix}/include/nel/pacs
-
-include_HEADERS = u_collision_desc.h \
- u_global_position.h \
- u_global_retriever.h \
- u_move_container.h \
- u_move_primitive.h \
- u_primitive_block.h \
- u_retriever_bank.h
-
-# End of Makefile.am
-
diff --git a/code/nel/include/nel/sound/Makefile.am b/code/nel/include/nel/sound/Makefile.am
deleted file mode 100644
index 77dd246a6..000000000
--- a/code/nel/include/nel/sound/Makefile.am
+++ /dev/null
@@ -1,15 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-includedir = ${prefix}/include/nel/sound
-
-include_HEADERS = sound_animation.h \
- sound_anim_manager.h \
- sound_anim_marker.h \
- u_audio_mixer.h \
- u_listener.h \
- u_source.h
-
-# End of Makefile.am
diff --git a/code/nel/nel.m4 b/code/nel/nel.m4
deleted file mode 100644
index e69de29bb..000000000
diff --git a/code/nel/samples/3d/Makefile.am b/code/nel/samples/3d/Makefile.am
deleted file mode 100644
index d00e99366..000000000
--- a/code/nel/samples/3d/Makefile.am
+++ /dev/null
@@ -1,11 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005/04/04 09:45:05 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-SUBDIRS = font cluster_viewer @CEGUI_SUBDIR@
-
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/3d/cegui/Makefile.am b/code/nel/samples/3d/cegui/Makefile.am
deleted file mode 100644
index afc817166..000000000
--- a/code/nel/samples/3d/cegui/Makefile.am
+++ /dev/null
@@ -1,22 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005-04-04 09:45:06 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = demonel_8.sln demonel_8.vcproj demonel.rc demonel.sln demonel.vcproj icon1.ico datafiles
-
-bin_PROGRAMS = nel_sample_cegui
-
-nel_sample_cegui_SOURCES = main.cpp NeLDriver.cpp
-
-AM_CXXFLAGS = -I$(top_srcdir)/src @CEGUI_CFLAGS@
-
-nel_sample_cegui_LDADD = ../../../src/misc/libnelmisc.la \
- ../../../src/3d/libnel3d.la \
- ../../../src/cegui/libnelceguirenderer.la \
- @CEGUI_LIBS@
-
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/3d/cluster_viewer/Makefile.am b/code/nel/samples/3d/cluster_viewer/Makefile.am
deleted file mode 100644
index 5814a0394..000000000
--- a/code/nel/samples/3d/cluster_viewer/Makefile.am
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005/04/04 09:45:06 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-SUBDIRS = shapes groups fonts
-
-bin_PROGRAMS = cluster_viewer
-
-cluster_viewer_SOURCES = main.cpp
-
-cluster_viewerdir = $(datadir)/nel/samples/cluster_viewer
-
-cluster_viewer_DATA = readme.txt main.cvs
-
-AM_CXXFLAGS = -DCV_DIR="\"$(cluster_viewerdir)\"" -I$(top_srcdir)/src
-
-cluster_viewer_LDADD = ../../../src/misc/libnelmisc.la \
- ../../../src/3d/libnel3d.la
-
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/3d/cluster_viewer/fonts/Makefile.am b/code/nel/samples/3d/cluster_viewer/fonts/Makefile.am
deleted file mode 100644
index 11e9a8f31..000000000
--- a/code/nel/samples/3d/cluster_viewer/fonts/Makefile.am
+++ /dev/null
@@ -1,12 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005-04-04 09:45:06 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-cluster_viewerdir = $(datadir)/nel/samples/cluster_viewer/fonts/
-
-cluster_viewer_DATA = n019003l.pfb
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/3d/cluster_viewer/groups/Makefile.am b/code/nel/samples/3d/cluster_viewer/groups/Makefile.am
deleted file mode 100644
index 54cdb5867..000000000
--- a/code/nel/samples/3d/cluster_viewer/groups/Makefile.am
+++ /dev/null
@@ -1,12 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005-04-04 09:45:06 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-cluster_viewerdir = $(datadir)/nel/samples/cluster_viewer/groups/
-
-cluster_viewer_DATA = street.ig
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/3d/cluster_viewer/shapes/Makefile.am b/code/nel/samples/3d/cluster_viewer/shapes/Makefile.am
deleted file mode 100644
index 3b251867a..000000000
--- a/code/nel/samples/3d/cluster_viewer/shapes/Makefile.am
+++ /dev/null
@@ -1,20 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005-04-04 09:45:06 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-cluster_viewerdir = $(datadir)/nel/samples/cluster_viewer/shapes/
-
-cluster_viewer_DATA = box02.shape \
- sphere01.shape \
- sphere02.shape \
- sphere03.shape \
- sphere04.shape \
- sphere05.shape \
- sphere06.shape \
- sphere07.shape \
- sphere08.shape
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/3d/font/Makefile.am b/code/nel/samples/3d/font/Makefile.am
deleted file mode 100644
index 5548ec8f6..000000000
--- a/code/nel/samples/3d/font/Makefile.am
+++ /dev/null
@@ -1,21 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005/04/04 09:45:06 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-bin_PROGRAMS = font
-
-font_SOURCES = main.cpp
-
-fontdir = $(datadir)/nel/samples/font
-font_DATA = beteckna.ttf
-
-AM_CXXFLAGS = -DFONT_DIR="\"$(fontdir)\"" -I$(top_srcdir)/src
-
-font_LDADD = ../../../src/misc/libnelmisc.la \
- ../../../src/3d/libnel3d.la
-
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/Makefile.am b/code/nel/samples/Makefile.am
deleted file mode 100644
index 98edb586d..000000000
--- a/code/nel/samples/Makefile.am
+++ /dev/null
@@ -1,12 +0,0 @@
-#
-# $Id: Makefile.am,v 1.2 2005/04/13 12:37:26 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-DIST_SUBDIRS = sound_sources pacs georges 3d net misc
-
-SUBDIRS = pacs georges 3d net misc
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/georges/Makefile.am b/code/nel/samples/georges/Makefile.am
deleted file mode 100644
index bf2c83d5f..000000000
--- a/code/nel/samples/georges/Makefile.am
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005/04/04 09:45:06 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = georges_sample_8.vcproj georges_sample.sln georges_sample.vcproj
-
-bin_PROGRAMS = georges
-
-georges_SOURCES = main.cpp
-
-georgesdir = $(datadir)/nel/samples/georges
-
-georges_DATA = boolean.typ coolfilesinfo.dfn default.sample_config int.typ positiondata.dfn sample_config.dfn string.typ
-
-AM_CXXFLAGS = -DGF_DIR="\"$(georgesdir)\"" -I$(top_srcdir)/src
-
-
-georges_LDADD = ../../src/misc/libnelmisc.la \
- ../../src/georges/libnelgeorges.la
-
-
-# End of Makefile.am
diff --git a/code/nel/samples/misc/Makefile.am b/code/nel/samples/misc/Makefile.am
deleted file mode 100644
index 0e13cb6f1..000000000
--- a/code/nel/samples/misc/Makefile.am
+++ /dev/null
@@ -1,10 +0,0 @@
-#
-# $Id: Makefile.am,v 1.2 2005-04-13 12:37:26 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-SUBDIRS = command configfile debug i18n log strings
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/misc/command/Makefile.am b/code/nel/samples/misc/command/Makefile.am
deleted file mode 100644
index 890a9fa18..000000000
--- a/code/nel/samples/misc/command/Makefile.am
+++ /dev/null
@@ -1,20 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005-04-04 09:45:06 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = command_8.vcproj main.dsp main.dsw
-
-bin_PROGRAMS = command
-
-command_SOURCES = main.cpp
-
-commanddir = $(datadir)/nel/samples/command
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-command_LDADD = ../../../src/misc/libnelmisc.la
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/misc/configfile/Makefile.am b/code/nel/samples/misc/configfile/Makefile.am
deleted file mode 100644
index 538d3af28..000000000
--- a/code/nel/samples/misc/configfile/Makefile.am
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005-04-04 09:45:06 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = configfile_8.vcproj main.dsp main.dsw
-
-bin_PROGRAMS = configfile
-
-configfile_SOURCES = main.cpp
-
-configfiledir = $(datadir)/nel/samples/configfile
-
-configfile_DATA = simpletest.txt
-
-AM_CXXFLAGS = -DCF_DIR="\"$(configfiledir)\"" -I$(top_srcdir)/src
-
-configfile_LDADD = ../../../src/misc/libnelmisc.la
-
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/misc/debug/Makefile.am b/code/nel/samples/misc/debug/Makefile.am
deleted file mode 100644
index d8d2c733a..000000000
--- a/code/nel/samples/misc/debug/Makefile.am
+++ /dev/null
@@ -1,20 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005-04-04 09:45:06 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = debug_8.vcproj main.dsp main.dsw
-
-bin_PROGRAMS = debug
-
-debug_SOURCES = main.cpp
-
-debugdir = $(datadir)/nel/samples/debug
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-debug_LDADD = ../../../src/misc/libnelmisc.la
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/misc/i18n/Makefile.am b/code/nel/samples/misc/i18n/Makefile.am
deleted file mode 100644
index 6c9c574c9..000000000
--- a/code/nel/samples/misc/i18n/Makefile.am
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005-04-04 09:45:06 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = i18n_8.vcproj main.dsp main.dsw
-
-bin_PROGRAMS = i18n
-
-i18n_SOURCES = main.cpp
-
-i18ndir = $(datadir)/nel/samples/i18n
-
-i18n_DATA = en.uxt fr.uxt de.uxt
-
-AM_CXXFLAGS = -DI18N_DIR="\"$(i18ndir)\"" -I$(top_srcdir)/src
-
-i18n_LDADD = ../../../src/misc/libnelmisc.la
-
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/misc/log/Makefile.am b/code/nel/samples/misc/log/Makefile.am
deleted file mode 100644
index 3d57e533d..000000000
--- a/code/nel/samples/misc/log/Makefile.am
+++ /dev/null
@@ -1,20 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005-04-04 09:45:06 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = log_8.vcproj main.dsp main.dsw
-
-bin_PROGRAMS = log
-
-log_SOURCES = main.cpp
-
-logdir = $(datadir)/nel/samples/log
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-log_LDADD = ../../../src/misc/libnelmisc.la
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/misc/strings/Makefile.am b/code/nel/samples/misc/strings/Makefile.am
deleted file mode 100644
index 151e8ef32..000000000
--- a/code/nel/samples/misc/strings/Makefile.am
+++ /dev/null
@@ -1,20 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005-04-04 09:45:06 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = main.dsp main.dsw strings_8.vcproj
-
-bin_PROGRAMS = strings
-
-strings_SOURCES = main.cpp
-
-stringsdir = $(datadir)/nel/samples/strings
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-strings_LDADD = ../../../src/misc/libnelmisc.la
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/misc/types_check/Makefile.am b/code/nel/samples/misc/types_check/Makefile.am
deleted file mode 100644
index 9c79d6aa2..000000000
--- a/code/nel/samples/misc/types_check/Makefile.am
+++ /dev/null
@@ -1,20 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005-04-04 09:45:06 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = main.dsp main.dsw types_check_8.vcproj
-
-bin_PROGRAMS = types_check
-
-types_check_SOURCES = main.cpp
-
-types_checkdir = $(datadir)/nel/samples/types_check
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-types_check_LDADD = ../../../src/misc/libnelmisc.la
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/net/Makefile.am b/code/nel/samples/net/Makefile.am
deleted file mode 100644
index ad7388761..000000000
--- a/code/nel/samples/net/Makefile.am
+++ /dev/null
@@ -1,11 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005/04/13 12:37:26 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-SUBDIRS = chat udp login_system
-
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/net/chat/Makefile.am b/code/nel/samples/net/chat/Makefile.am
deleted file mode 100644
index bc2df9ef9..000000000
--- a/code/nel/samples/net/chat/Makefile.am
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005/04/13 12:37:26 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-bin_PROGRAMS = chatserver chatclient
-
-chatserver_SOURCES = server.cpp
-
-chatclient_SOURCES = client.cpp kbhit.h kbhit.cpp
-
-chatserverdir=$(datadir)/nel/samples/net/chat
-chatserver_DATA=chat_service.cfg
-
-chatclientdir=$(datadir)/nel/samples/net/chat
-chatclient_DATA=client.cfg
-
-AM_CXXFLAGS = -DCHAT_DIR="\"$(chatclientdir)\"" -I$(top_srcdir)/src
-
-chatserver_LDADD = ../../../src/misc/libnelmisc.la \
- ../../../src/net/libnelnet.la
-
-chatclient_LDADD = ../../../src/misc/libnelmisc.la \
- ../../../src/net/libnelnet.la
-
-# End of Makefile.am
diff --git a/code/nel/samples/net/login_system/Makefile.am b/code/nel/samples/net/login_system/Makefile.am
deleted file mode 100644
index 5ef4fe26c..000000000
--- a/code/nel/samples/net/login_system/Makefile.am
+++ /dev/null
@@ -1,30 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005-04-13 12:37:26 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = main.dsw client.dsp client.cfg frontend_service.cfg frontend_service.dsp
-
-bin_PROGRAMS = nls_login_client nls_frontend_service
-
-nls_frontend_service_SOURCES = frontend_service.cpp
-
-nls_login_client_SOURCES = client.cpp
-
-nls_frontend_servicedir=$(datadir)/nel/samples/net/udp
-nls_frontend_service_DATA=frontend_service.cfg
-
-nls_login_clientdir=$(datadir)/nel/samples/net/udp
-nls_login_client_DATA=client.cfg
-
-AM_CXXFLAGS = -DLC_DIR="\"$(nls_login_clientdir)\"" -I$(top_srcdir)/src
-
-nls_frontend_service_LDADD = ../../../src/misc/libnelmisc.la \
- ../../../src/net/libnelnet.la
-
-nls_login_client_LDADD = ../../../src/misc/libnelmisc.la \
- ../../../src/net/libnelnet.la
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/net/udp/Makefile.am b/code/nel/samples/net/udp/Makefile.am
deleted file mode 100644
index 07a131fd8..000000000
--- a/code/nel/samples/net/udp/Makefile.am
+++ /dev/null
@@ -1,32 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005-04-13 12:37:26 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = main.dsw main.sln bench_service_8.vcproj bench_service.vcproj bench_service.dsp client_8.vcproj client.dsp client.vcproj readme.txt
-
-bin_PROGRAMS = udp_bench_service udp_bench_client
-
-udp_bench_service_SOURCES = bench_service.cpp receive_task.cpp receive_task.h
-
-udp_bench_client_SOURCES = client.cpp graph.cpp graph.h simlag.cpp simlag.h
-
-noinst_HEADERS = receive_task.h graph.h simlag.h
-
-udp_bench_servicedir=$(datadir)/nel/samples/net/udp
-udp_bench_service_DATA= bench_service.cfg
-
-udp_bench_clientdir=$(datadir)/nel/samples/net/udp
-udp_bench_client_DATA=client.cfg
-
-AM_CXXFLAGS = -DUDP_DIR="\"$(udp_bench_clientdir)\"" -I$(top_srcdir)/src
-
-udp_bench_service_LDADD = ../../../src/misc/libnelmisc.la \
- ../../../src/net/libnelnet.la
-
-udp_bench_client_LDADD = ../../../src/misc/libnelmisc.la \
- ../../../src/net/libnelnet.la
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/pacs/Makefile.am b/code/nel/samples/pacs/Makefile.am
deleted file mode 100644
index d7a552769..000000000
--- a/code/nel/samples/pacs/Makefile.am
+++ /dev/null
@@ -1,19 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005/04/04 09:45:06 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-bin_PROGRAMS = pacs_sample
-
-pacs_sample_SOURCES = main.cpp object.cpp object.h
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-pacs_sample_LDADD = ../../src/misc/libnelmisc.la \
- ../../src/3d/libnel3d.la \
- ../../src/pacs/libnelpacs.la
-
-
-# End of Makefile.am
-
diff --git a/code/nel/samples/sound_sources/Makefile.am b/code/nel/samples/sound_sources/Makefile.am
deleted file mode 100644
index 1e05afa90..000000000
--- a/code/nel/samples/sound_sources/Makefile.am
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2005/04/04 09:45:06 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-bin_PROGRAMS = sound_sources
-
-sound_sources_SOURCES = main.cpp
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-sound_sources_LDADD = ../../src/misc/libnelmisc.la \
- ../../src/sound/libnelsnd.la \
- ../../src/sound/driver/libnelsnd_lowlevel.la \
- ../../src/sound/driver/fmod/libnel_drv_fmod.la \
- ../../src/ligo/libnelligo.la \
- ../../src/georges/libnelgeorges.la \
- ../../src/3d/libnel3d.la
-
-
-# End of Makefile.am
-
diff --git a/code/nel/src/3d/CMakeLists.txt b/code/nel/src/3d/CMakeLists.txt
index 3888be211..45b38fcbd 100644
--- a/code/nel/src/3d/CMakeLists.txt
+++ b/code/nel/src/3d/CMakeLists.txt
@@ -706,6 +706,9 @@ IF(WITH_PCH)
ENDIF(WITH_PCH)
NL_GEN_PC(nel-3d.pc)
-INSTALL(TARGETS nel3d LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+
+IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
+ INSTALL(TARGETS nel3d LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
ADD_SUBDIRECTORY(driver)
diff --git a/code/nel/src/3d/Makefile.am b/code/nel/src/3d/Makefile.am
deleted file mode 100644
index 441c4ee47..000000000
--- a/code/nel/src/3d/Makefile.am
+++ /dev/null
@@ -1,616 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-SUBDIRS = driver
-
-lib_LTLIBRARIES = libnel3d.la
-
-EXTRA_DIST = mesh_mrm_skin_template.cpp mesh_mrm_skinned_template.cpp
-
-libnel3d_la_SOURCES = \
- anim_ctrl.cpp \
- anim_detail_trav.cpp \
- anim_detail_trav.h \
- animatable.cpp \
- animatable.h \
- animated_lightmap.cpp \
- animated_lightmap.h \
- animated_material.cpp \
- animated_material.h \
- animated_morph.cpp \
- animated_morph.h \
- animated_value.cpp \
- animated_value.h \
- animation.cpp \
- animation.h \
- animation_optimizer.cpp \
- animation_optimizer.h \
- animation_playlist.cpp \
- animation_playlist.h \
- animation_set.cpp \
- animation_set.h \
- animation_set_user.cpp \
- animation_set_user.h \
- animation_time.cpp \
- async_file_manager_3d.cpp \
- async_file_manager_3d.h \
- async_texture_block.cpp \
- async_texture_block.h \
- async_texture_manager.cpp \
- async_texture_manager.h \
- bezier_patch.cpp \
- bezier_patch.h \
- bloom_effect.cpp \
- bloom_effect.h \
- bone.cpp \
- bone.h \
- bsp_tree.h \
- camera.cpp \
- camera.h \
- camera_col.cpp \
- camera_col.h \
- channel_mixer.cpp \
- channel_mixer.h \
- clip_trav.cpp \
- clip_trav.h \
- cloud.cpp \
- cloud.h \
- cloud_scape.cpp \
- cloud_scape.h \
- cloud_scape_user.cpp \
- cloud_scape_user.h \
- cluster.cpp \
- cluster.h \
- coarse_mesh_build.cpp \
- coarse_mesh_build.h \
- coarse_mesh_manager.cpp \
- coarse_mesh_manager.h \
- computed_string.cpp \
- computed_string.h \
- cube_grid.cpp \
- cube_grid.h \
- cube_map_builder.cpp \
- cube_map_builder.h \
- debug_vb.cpp \
- debug_vb.h \
- deform_2d.cpp \
- deform_2d.h \
- driver.cpp \
- driver.h \
- driver_material_inline.h \
- driver_user.cpp \
- driver_user.h \
- driver_user2.cpp \
- dru.cpp \
- dru.h \
- event_mouse_listener.cpp \
- event_mouse_listener.h \
- fast_ptr_list.cpp \
- fast_ptr_list.h \
- fasthls_modifier.cpp \
- fasthls_modifier.h \
- flare_model.cpp \
- flare_model.h \
- flare_shape.cpp \
- flare_shape.h \
- font_generator.cpp \
- font_generator.h \
- font_manager.cpp \
- font_manager.h \
- frustum.cpp \
- heat_haze.cpp \
- heat_haze.h \
- height_map.cpp \
- hls_color_texture.cpp \
- hls_color_texture.h \
- hls_texture_bank.cpp \
- hls_texture_bank.h \
- hls_texture_manager.cpp \
- hls_texture_manager.h \
- hrc_trav.cpp \
- hrc_trav.h \
- ig_surface_light.cpp \
- ig_surface_light.h \
- ig_surface_light_build.cpp \
- ig_surface_light_build.h \
- index_buffer.cpp \
- index_buffer.h \
- init_3d.cpp \
- init_3d.h \
- instance_group_user.cpp \
- instance_group_user.h \
- instance_lighter.cpp \
- instance_lighter.h \
- key.cpp \
- key.h \
- landscape.cpp \
- landscape.h \
- landscape_collision_grid.cpp \
- landscape_collision_grid.h \
- landscape_def.cpp \
- landscape_def.h \
- landscape_face_vector_manager.cpp \
- landscape_face_vector_manager.h \
- landscape_model.cpp \
- landscape_model.h \
- landscape_profile.cpp \
- landscape_profile.h \
- landscape_user.cpp \
- landscape_user.h \
- landscape_vegetable_block.cpp \
- landscape_vegetable_block.h \
- landscapeig_manager.cpp \
- landscapevb_allocator.cpp \
- landscapevb_allocator.h \
- landscapevb_info.cpp \
- landscapevb_info.h \
- layered_ordering_table.h \
- light.cpp \
- light.h \
- light_contribution.cpp \
- light_contribution.h \
- light_influence_interpolator.cpp \
- light_influence_interpolator.h \
- light_trav.cpp \
- light_trav.h \
- light_user.cpp \
- light_user.h \
- lighting_manager.cpp \
- lighting_manager.h \
- load_balancing_trav.cpp \
- load_balancing_trav.h \
- lod_character_builder.cpp \
- lod_character_builder.h \
- lod_character_instance.cpp \
- lod_character_instance.h \
- lod_character_manager.cpp \
- lod_character_manager.h \
- lod_character_shape.cpp \
- lod_character_shape.h \
- lod_character_shape_bank.cpp \
- lod_character_shape_bank.h \
- lod_character_texture.cpp \
- lod_character_texture.h \
- logic_info.cpp \
- material.cpp \
- material.h \
- matrix_3x4.cpp \
- matrix_3x4.h \
- mesh.cpp \
- mesh.h \
- mesh_base.cpp \
- mesh_base.h \
- mesh_base_instance.cpp \
- mesh_base_instance.h \
- mesh_blender.cpp \
- mesh_blender.h \
- mesh_block_manager.cpp \
- mesh_block_manager.h \
- mesh_geom.cpp \
- mesh_geom.h \
- mesh_instance.cpp \
- mesh_instance.h \
- mesh_morpher.cpp \
- mesh_morpher.h \
- mesh_mrm.cpp \
- mesh_mrm.h \
- mesh_mrm_instance.cpp \
- mesh_mrm_instance.h \
- mesh_mrm_skin.cpp \
- mesh_mrm_skin_template.cpp \
- mesh_mrm_skinned.cpp \
- mesh_mrm_skinned.h \
- mesh_mrm_skinned_instance.cpp \
- mesh_mrm_skinned_instance.h \
- mesh_mrm_skinned_template.cpp \
- mesh_multi_lod.cpp \
- mesh_multi_lod.h \
- mesh_multi_lod_instance.cpp \
- mesh_multi_lod_instance.h \
- mesh_vertex_program.cpp \
- mesh_vertex_program.h \
- meshvp_per_pixel_light.cpp \
- meshvp_per_pixel_light.h \
- meshvp_wind_tree.cpp \
- meshvp_wind_tree.h \
- mini_col.cpp \
- mini_col.h \
- motion_blur.cpp \
- motion_blur.h \
- mrm_builder.cpp \
- mrm_builder.h \
- mrm_internal.cpp \
- mrm_internal.h \
- mrm_level_detail.cpp \
- mrm_level_detail.h \
- mrm_mesh.cpp \
- mrm_mesh.h \
- mrm_parameters.cpp \
- mrm_parameters.h \
- nelu.cpp \
- nelu.h \
- noise_3d.cpp \
- noise_3d.h \
- occlusion_query.h \
- ordering_table.h \
- packed_zone.cpp \
- packed_zone.h \
- packed_world.cpp \
- packed_world.h \
- particle_system.cpp \
- particle_system.h \
- particle_system_manager.cpp \
- particle_system_manager.h \
- particle_system_model.cpp \
- particle_system_model.h \
- particle_system_process.cpp \
- particle_system_process.h \
- particle_system_shape.cpp \
- particle_system_shape.h \
- particle_system_sound_user.cpp \
- patch.cpp \
- patch.h \
- patch_lightmap.cpp \
- patch_noise.cpp \
- patch_rdr_pass.cpp \
- patch_rdr_pass.h \
- patch_render.cpp \
- patch_vegetable.cpp \
- patchdlm_context.cpp \
- patchdlm_context.h \
- patchuv_locator.cpp \
- patchuv_locator.h \
- play_list_manager.cpp \
- play_list_manager.h \
- play_list_manager_user.cpp \
- play_list_manager_user.h \
- play_list_user.cpp \
- play_list_user.h \
- point_light.cpp \
- point_light.h \
- point_light_model.cpp \
- point_light_model.h \
- point_light_named.cpp \
- point_light_named.h \
- point_light_named_array.cpp \
- point_light_named_array.h \
- portal.cpp \
- portal.h \
- primitive_profile.cpp \
- ps_allocator.cpp \
- ps_allocator.h \
- ps_attrib.h \
- ps_attrib_maker.h \
- ps_attrib_maker_bin_op.cpp \
- ps_attrib_maker_bin_op.h \
- ps_attrib_maker_bin_op_inline.h \
- ps_attrib_maker_helper.cpp \
- ps_attrib_maker_helper.h \
- ps_attrib_maker_iterators.h \
- ps_attrib_maker_template.cpp \
- ps_attrib_maker_template.h \
- ps_color.cpp \
- ps_color.h \
- ps_direction.h \
- ps_dot.cpp \
- ps_dot.h \
- ps_edit.h \
- ps_emitter.cpp \
- ps_emitter.h \
- ps_face.cpp \
- ps_face.h \
- ps_face_look_at.cpp \
- ps_face_look_at.h \
- ps_fan_light.cpp \
- ps_fan_light.h \
- ps_float.cpp \
- ps_float.h \
- ps_force.cpp \
- ps_force.h \
- ps_int.cpp \
- ps_int.h \
- ps_iterator.h \
- ps_light.cpp \
- ps_light.h \
- ps_located.cpp \
- ps_located.h \
- ps_lod.h \
- ps_macro.h \
- ps_mesh.cpp \
- ps_mesh.h \
- ps_misc.h \
- ps_particle.cpp \
- ps_particle.h \
- ps_particle2.cpp \
- ps_particle2.h \
- ps_particle_basic.cpp \
- ps_particle_basic.h \
- ps_plane_basis.h \
- ps_plane_basis_maker.cpp \
- ps_plane_basis_maker.h \
- ps_quad.cpp \
- ps_quad.h \
- ps_register_attribs.cpp \
- ps_register_color_attribs.h \
- ps_register_emitters.cpp \
- ps_register_float_attribs.h \
- ps_register_forces.cpp \
- ps_register_int_attribs.h \
- ps_register_particles.cpp \
- ps_register_plane_basis_attribs.h \
- ps_register_zones.cpp \
- ps_ribbon.cpp \
- ps_ribbon.h \
- ps_ribbon_base.cpp \
- ps_ribbon_base.h \
- ps_ribbon_look_at.cpp \
- ps_ribbon_look_at.h \
- ps_shockwave.cpp \
- ps_shockwave.h \
- ps_spawn_info.h \
- ps_sound.cpp \
- ps_sound.h \
- ps_tail_dot.cpp \
- ps_tail_dot.h \
- ps_util.cpp \
- ps_util.h \
- ps_zone.cpp \
- ps_zone.h \
- ptr_set.cpp \
- ptr_set.h \
- quad_effect.cpp \
- quad_effect.h \
- quad_grid.cpp \
- quad_grid.h \
- quad_grid_clip_cluster.cpp \
- quad_grid_clip_cluster.h \
- quad_grid_clip_manager.cpp \
- quad_grid_clip_manager.h \
- radix_sort.cpp \
- radix_sort.h \
- raw_skin.cpp \
- raw_skin.h \
- raw_skinned.cpp \
- raw_skinned.h \
- ray_mesh.cpp \
- ray_mesh.h \
- register_3d.cpp \
- register_3d.h \
- render_trav.cpp \
- render_trav.h \
- root_model.cpp \
- root_model.h \
- scene.cpp \
- scene.h \
- scene_group.cpp \
- scene_group.h \
- scene_user.cpp \
- scene_user.h \
- scissor.cpp \
- seg_remanence.cpp \
- seg_remanence.h \
- seg_remanence_shape.cpp \
- seg_remanence_shape.h \
- shader.cpp \
- shader.h \
- shadow_map.cpp \
- shadow_map.h \
- shadow_map_manager.cpp \
- shadow_map_manager.h \
- shadow_poly_receiver.cpp \
- shadow_poly_receiver.h \
- shadow_skin.cpp \
- shadow_skin.h \
- shape.cpp \
- shape.h \
- shape_bank.cpp \
- shape_bank.h \
- shape_bank_user.cpp \
- shape_bank_user.h \
- shape_info.cpp \
- shape_info.h \
- shifted_triangle_cache.cpp \
- shifted_triangle_cache.h \
- skeleton_model.cpp \
- skeleton_model.h \
- skeleton_shape.cpp \
- skeleton_shape.h \
- skeleton_spawn_script.cpp \
- skeleton_spawn_script.h \
- skeleton_weight.cpp \
- skeleton_weight.h \
- static_quad_grid.cpp \
- static_quad_grid.h \
- std3d.cpp \
- std3d.h \
- stripifier.cpp \
- stripifier.h \
- surface_light_grid.cpp \
- surface_light_grid.h \
- tangent_space_build.cpp \
- tangent_space_build.h \
- target_anim_ctrl.cpp \
- tess_block.cpp \
- tess_block.h \
- tess_face_priority_list.cpp \
- tess_face_priority_list.h \
- tess_list.cpp \
- tess_list.h \
- tessellation.cpp \
- tessellation.h \
- text_context.cpp \
- text_context.h \
- text_context_user.cpp \
- text_context_user.h \
- texture.cpp \
- texture.h \
- texture_blank.cpp \
- texture_blank.h \
- texture_bloom.cpp \
- texture_bloom.h \
- texture_blend.cpp \
- texture_blend.h \
- texture_bump.cpp \
- texture_bump.h \
- texture_cube.cpp \
- texture_cube.h \
- texture_dlm.cpp \
- texture_dlm.h \
- texture_emboss.cpp \
- texture_emboss.h \
- texture_far.cpp \
- texture_far.h \
- texture_file.cpp \
- texture_file.h \
- texture_font.cpp \
- texture_font.h \
- texture_grouped.cpp \
- texture_grouped.h \
- texture_mem.cpp \
- texture_mem.h \
- texture_multi_file.cpp \
- texture_multi_file.h \
- texture_near.cpp \
- texture_near.h \
- texture_user.cpp \
- texture_user.h \
- tile_bank.cpp \
- tile_bank.h \
- tile_color.cpp \
- tile_color.h \
- tile_element.cpp \
- tile_element.h \
- tile_far_bank.cpp \
- tile_far_bank.h \
- tile_light_influence.cpp \
- tile_light_influence.h \
- tile_lumel.cpp \
- tile_lumel.h \
- tile_noise_map.cpp \
- tile_noise_map.h \
- tile_vegetable_desc.cpp \
- tile_vegetable_desc.h \
- track.cpp \
- track.h \
- track_bezier.h \
- track_keyframer.cpp \
- track_keyframer.h \
- track_sampled_common.cpp \
- track_sampled_common.h \
- track_sampled_quat.cpp \
- track_sampled_quat.h \
- track_sampled_quat_small_header.cpp \
- track_sampled_quat_small_header.h \
- track_sampled_vector.cpp \
- track_sampled_vector.h \
- track_tcb.h \
- transform.cpp \
- transform.h \
- transform_shape.cpp \
- transform_shape.h \
- transformable.cpp \
- transformable.h \
- trav_scene.cpp \
- trav_scene.h \
- u_bone.cpp \
- u_camera.cpp \
- u_instance.cpp \
- u_instance_material.cpp \
- u_material.cpp \
- u_particle_system_instance.cpp \
- u_point_light.cpp \
- u_shape.cpp \
- u_skeleton.cpp \
- u_transform.cpp \
- u_transformable.cpp \
- u_visual_collision_mesh.cpp \
- u_water.cpp \
- vegetable.cpp \
- vegetable.h \
- vegetable_blend_layer_model.cpp \
- vegetable_blend_layer_model.h \
- vegetable_clip_block.cpp \
- vegetable_clip_block.h \
- vegetable_def.cpp \
- vegetable_def.h \
- vegetable_instance_group.cpp \
- vegetable_instance_group.h \
- vegetable_light_ex.cpp \
- vegetable_light_ex.h \
- vegetable_manager.cpp \
- vegetable_manager.h \
- vegetable_quadrant.cpp \
- vegetable_quadrant.h \
- vegetable_shape.cpp \
- vegetable_shape.h \
- vegetable_sort_block.cpp \
- vegetable_sort_block.h \
- vegetable_uv8.cpp \
- vegetable_uv8.h \
- vegetablevb_allocator.cpp \
- vegetablevb_allocator.h \
- vertex_buffer.cpp \
- vertex_buffer.h \
- vertex_buffer_heap.cpp \
- vertex_buffer_heap.h \
- vertex_program.cpp \
- vertex_program.h \
- vertex_program_parse.cpp \
- vertex_program_parse.h \
- vertex_stream_manager.cpp \
- vertex_stream_manager.h \
- viewport.cpp \
- visual_collision_entity.cpp \
- visual_collision_entity.h \
- visual_collision_entity_user.cpp \
- visual_collision_entity_user.h \
- visual_collision_manager.cpp \
- visual_collision_manager.h \
- visual_collision_manager_user.cpp \
- visual_collision_manager_user.h \
- visual_collision_mesh.cpp \
- visual_collision_mesh.h \
- water_env_map.cpp \
- water_env_map.h \
- water_env_map_user.cpp \
- water_env_map_user.h \
- water_height_map.cpp \
- water_height_map.h \
- water_model.cpp \
- water_model.h \
- water_pool_manager.cpp \
- water_pool_manager.h \
- water_shape.cpp \
- water_shape.h \
- zone.cpp \
- zone.h \
- zone_corner_smoother.cpp \
- zone_corner_smoother.h \
- zone_lighter.cpp \
- zone_lighter.h \
- zone_manager.cpp \
- zone_manager.h \
- zone_search.cpp \
- zone_search.h \
- zone_smoother.cpp \
- zone_smoother.h \
- zone_symmetrisation.cpp \
- zone_symmetrisation.h \
- zone_tgt_smoother.cpp \
- zone_tgt_smoother.h
-
-noinst_HEADERS = std3d.h
-# mesh_vertex_program.h meshvp_wind_tree.h
-
-AM_CXXFLAGS = -I$(top_srcdir)/src @FREETYPE_CFLAGS@
-
-libnel3d_la_LIBADD = @FREETYPE_LIBS@ -lc -ldl -lpthread
-
-libnel3d_la_LDFLAGS = -version-info @LIBTOOL_VERSION@
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = nel-3d.pc
-
-# End of Makefile.am
diff --git a/code/nel/src/3d/driver/Makefile.am b/code/nel/src/3d/driver/Makefile.am
deleted file mode 100644
index 0603c2362..000000000
--- a/code/nel/src/3d/driver/Makefile.am
+++ /dev/null
@@ -1,10 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = direct3d
-
-SUBDIRS = opengl
-
-# End of Makefile.am
diff --git a/code/nel/src/3d/driver/direct3d/CMakeLists.txt b/code/nel/src/3d/driver/direct3d/CMakeLists.txt
index 5011c3c45..cc61fa9bd 100644
--- a/code/nel/src/3d/driver/direct3d/CMakeLists.txt
+++ b/code/nel/src/3d/driver/direct3d/CMakeLists.txt
@@ -16,7 +16,9 @@ IF(WITH_PCH)
ADD_NATIVE_PRECOMPILED_HEADER(nel_drv_direct3d_win ${CMAKE_CURRENT_SOURCE_DIR}/stddirect3d.h ${CMAKE_CURRENT_SOURCE_DIR}/stddirect3d.cpp)
ENDIF(WITH_PCH)
-INSTALL(TARGETS nel_drv_direct3d_win LIBRARY DESTINATION ${NL_DRIVER_PREFIX} ARCHIVE DESTINATION lib RUNTIME DESTINATION bin COMPONENT drivers3d)
-IF(WITH_MAXPLUGIN)
- INSTALL(TARGETS nel_drv_direct3d_win RUNTIME DESTINATION maxplugin COMPONENT drivers3d)
-ENDIF(WITH_MAXPLUGIN)
+IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC_DRIVERS) OR NOT WITH_STATIC_DRIVERS)
+ INSTALL(TARGETS nel_drv_direct3d_win LIBRARY DESTINATION ${NL_DRIVER_PREFIX} ARCHIVE DESTINATION lib RUNTIME DESTINATION bin COMPONENT drivers3d)
+ IF(WITH_MAXPLUGIN)
+ INSTALL(TARGETS nel_drv_direct3d_win RUNTIME DESTINATION maxplugin COMPONENT drivers3d)
+ ENDIF(WITH_MAXPLUGIN)
+ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC_DRIVERS) OR NOT WITH_STATIC_DRIVERS)
diff --git a/code/nel/src/3d/driver/direct3d/driver_direct3d.cpp b/code/nel/src/3d/driver/direct3d/driver_direct3d.cpp
index 5ac1d2906..bfbd3fdb7 100644
--- a/code/nel/src/3d/driver/direct3d/driver_direct3d.cpp
+++ b/code/nel/src/3d/driver/direct3d/driver_direct3d.cpp
@@ -1228,7 +1228,7 @@ bool CDriverD3D::init (uint windowIcon, emptyProc exitFunc)
ExitFunc = exitFunc;
createCursors();
-
+
// Register a window class
WNDCLASSW wc;
diff --git a/code/nel/src/3d/driver/opengl/CMakeLists.txt b/code/nel/src/3d/driver/opengl/CMakeLists.txt
index 6fdecab71..d90c7e0b3 100644
--- a/code/nel/src/3d/driver/opengl/CMakeLists.txt
+++ b/code/nel/src/3d/driver/opengl/CMakeLists.txt
@@ -61,7 +61,9 @@ IF(NOT APPLE AND WITH_PCH)
ADD_NATIVE_PRECOMPILED_HEADER(${NLDRV_OGL_LIB} ${CMAKE_CURRENT_SOURCE_DIR}/stdopengl.h ${CMAKE_CURRENT_SOURCE_DIR}/stdopengl.cpp)
ENDIF(NOT APPLE AND WITH_PCH)
-INSTALL(TARGETS ${NLDRV_OGL_LIB} LIBRARY DESTINATION ${NL_DRIVER_PREFIX} ARCHIVE DESTINATION lib RUNTIME DESTINATION bin COMPONENT drivers3d)
-IF(WITH_MAXPLUGIN)
- INSTALL(TARGETS ${NLDRV_OGL_LIB} RUNTIME DESTINATION maxplugin COMPONENT drivers3d)
-ENDIF(WITH_MAXPLUGIN)
+IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC_DRIVERS) OR NOT WITH_STATIC_DRIVERS)
+ INSTALL(TARGETS ${NLDRV_OGL_LIB} LIBRARY DESTINATION ${NL_DRIVER_PREFIX} ARCHIVE DESTINATION lib RUNTIME DESTINATION bin COMPONENT drivers3d)
+ IF(WITH_MAXPLUGIN)
+ INSTALL(TARGETS ${NLDRV_OGL_LIB} RUNTIME DESTINATION maxplugin COMPONENT drivers3d)
+ ENDIF(WITH_MAXPLUGIN)
+ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC_DRIVERS) OR NOT WITH_STATIC_DRIVERS)
diff --git a/code/nel/src/3d/driver/opengl/Makefile.am b/code/nel/src/3d/driver/opengl/Makefile.am
deleted file mode 100644
index 744801217..000000000
--- a/code/nel/src/3d/driver/opengl/Makefile.am
+++ /dev/null
@@ -1,47 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = driver_opengl_8.vcproj \
- driver_opengl.vcproj \
- driver_opengl.dsp \
- driver_opengl.def
-
-lib_LTLIBRARIES = libnel_drv_opengl.la
-
-libnel_drv_opengl_la_SOURCES = driver_opengl.cpp \
- driver_opengl.h \
- driver_opengl_extension.cpp \
- driver_opengl_extension.h \
- driver_opengl_extension_def.h \
- driver_opengl_light.cpp \
- driver_opengl_mac.cpp \
- driver_opengl_material.cpp \
- driver_opengl_matrix.cpp \
- driver_opengl_states.cpp \
- driver_opengl_states.h \
- driver_opengl_texture.cpp \
- driver_opengl_vertex.cpp \
- driver_opengl_vertex_buffer_hard.cpp \
- driver_opengl_vertex_buffer_hard.h \
- driver_opengl_vertex_program.cpp \
- stdopengl.cpp \
- stdopengl.h \
- unix_event_emitter.cpp \
- unix_event_emitter.h
-
-
-noinst_HEADERS = stdopengl.h
-
-AM_CXXFLAGS = -I$(top_srcdir)/src \
- @OPENGL_CFLAGS@ @XF86VIDMODE_CFLAGS@
-
-libnel_drv_opengl_la_LIBADD = @OPENGL_LIBS@ @XF86VIDMODE_LIBS@ -lXmu
-libnel_drv_opengl_la_LDFLAGS = -no-undefined
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = nel-driverogl.pc
-
-# End of Makefile.am
-
diff --git a/code/nel/src/3d/driver/opengl/driver_opengl_light.cpp b/code/nel/src/3d/driver/opengl/driver_opengl_light.cpp
index e5c3cff6e..2fc25f94a 100644
--- a/code/nel/src/3d/driver/opengl/driver_opengl_light.cpp
+++ b/code/nel/src/3d/driver/opengl/driver_opengl_light.cpp
@@ -138,7 +138,7 @@ void CDriverGL::setLightInternal(uint8 num, const CLight& light)
}
else
{
- // Deactivate spot properties
+ // Disable spot properties
#ifdef USE_OPENGLES
glLightf (lightNum, GL_SPOT_CUTOFF, 180.f);
glLightf (lightNum, GL_SPOT_EXPONENT, 0.f);
diff --git a/code/nel/src/3d/driver/opengl/driver_opengl_vertex.cpp b/code/nel/src/3d/driver/opengl/driver_opengl_vertex.cpp
index 502c971f1..7241d499b 100644
--- a/code/nel/src/3d/driver/opengl/driver_opengl_vertex.cpp
+++ b/code/nel/src/3d/driver/opengl/driver_opengl_vertex.cpp
@@ -978,7 +978,7 @@ void CDriverGL::setupGlArraysStd(CVertexBufferInfo &vb)
// Check type
nlassert (vb.Type[CVertexBuffer::Normal]==CVertexBuffer::Float3);
_DriverGLStates.enableNormalArray(true);
- nglArrayObjectATI(GL_NORMAL_ARRAY, 3, GL_FLOAT, vb.VertexSize, vb.VertexObjectId, (ptrdiff_t) vb.ValuePtr[CVertexBuffer::Normal]);
+ nglArrayObjectATI(GL_NORMAL_ARRAY, 3, GL_FLOAT, vb.VertexSize, vb.VertexObjectId, (ptrdiff_t) vb.ValuePtr[CVertexBuffer::Normal]);
}
else
{
diff --git a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp
index 6501d70c4..6ebcff4c7 100644
--- a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp
+++ b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp
@@ -188,6 +188,9 @@ bool GlWndProc(CDriverGL *driver, const void* e)
static Atom XA_WM_STATE = 0;
static Atom XA_WM_STATE_FULLSCREEN = 0;
static Atom XA_WM_ICON = 0;
+static Atom XA_WM_WINDOW_TYPE = 0;
+static Atom XA_WM_WINDOW_TYPE_NORMAL = 0;
+static Atom XA_FRAME_EXTENTS = 0;
sint nelXErrorsHandler(Display *dpy, XErrorEvent *e)
{
@@ -233,7 +236,7 @@ bool GlWndProc(CDriverGL *driver, XEvent &e)
break;
case Expose:
- nlwarning("Expose event");
+// nlwarning("Expose event");
break;
case ConfigureNotify:
@@ -243,20 +246,36 @@ bool GlWndProc(CDriverGL *driver, XEvent &e)
// first time setting decoration sizes
if ((driver->_DecorationWidth == -1) || (driver->_DecorationWidth == 0))
{
- driver->_DecorationWidth = e.xconfigure.x - driver->_WindowX;
- driver->_DecorationHeight = e.xconfigure.y - driver->_WindowY;
+ Atom type_return = 0;
+ int format_return = 0;
+ unsigned long nitems_return = 0;
+ unsigned long bytes_after_return = 0;
+ long *data = NULL;
+
+ int status = XGetWindowProperty(driver->_dpy, driver->_win, XA_FRAME_EXTENTS, 0, 4, False, XA_CARDINAL, &type_return, &format_return, &nitems_return, &bytes_after_return, (unsigned char**)&data);
- nlwarning("Decoration size x = %d, y = %d", driver->_DecorationWidth, driver->_DecorationHeight);
+ // succeeded to retrieve decoration size
+ if (status == Success && type_return == XA_CARDINAL && format_return == 32 && nitems_return == 4 && data)
+ {
+ driver->_DecorationWidth = data[0];
+ driver->_DecorationHeight = data[2];
+ }
+ else
+ {
+ // use difference between current position and previous one (set by application)
+ driver->_DecorationWidth = e.xconfigure.x - driver->_WindowX;
+ driver->_DecorationHeight = e.xconfigure.y - driver->_WindowY;
+ }
+
+ // don't allow negative decoration sizes
+ if (driver->_DecorationWidth < 0) driver->_DecorationWidth = 0;
+ if (driver->_DecorationHeight < 0) driver->_DecorationHeight = 0;
}
driver->_CurrentMode.Width = e.xconfigure.width;
driver->_CurrentMode.Height = e.xconfigure.height;
driver->_WindowX = e.xconfigure.x - driver->_DecorationWidth;
driver->_WindowY = e.xconfigure.y - driver->_DecorationHeight;
-
- XConfigureEvent event = e.xconfigure;
-
- nlwarning("Configure x = %d, y = %d, width = %d, height = %d, send event = %d", event.x, event.y, event.width, event.height, event.send_event);
}
break;
@@ -401,6 +420,9 @@ bool CDriverGL::init (uint windowIcon, emptyProc exitFunc)
XA_WM_STATE = XInternAtom(_dpy, "_NET_WM_STATE", False);
XA_WM_STATE_FULLSCREEN = XInternAtom(_dpy, "_NET_WM_STATE_FULLSCREEN", False);
XA_WM_ICON = XInternAtom(_dpy, "_NET_WM_ICON", False);
+ XA_WM_WINDOW_TYPE = XInternAtom(_dpy, "_NET_WM_WINDOW_TYPE", False);
+ XA_WM_WINDOW_TYPE_NORMAL = XInternAtom(_dpy, "_NET_WM_WINDOW_TYPE_NORMAL", False);
+ XA_FRAME_EXTENTS = XInternAtom(_dpy, "_NET_FRAME_EXTENTS", False);
#endif
@@ -1528,6 +1550,42 @@ bool CDriverGL::createWindow(const GfxMode &mode)
return false;
}
+ // normal window type
+ XChangeProperty(_dpy, window, XA_WM_WINDOW_TYPE, XA_ATOM, 32, PropModeReplace, (const unsigned char*)&XA_WM_WINDOW_TYPE_NORMAL, 1);
+
+ // set WM hints
+ XWMHints *wm_hints = XAllocWMHints();
+
+ if (wm_hints)
+ {
+ wm_hints->flags = StateHint | InputHint;
+ wm_hints->initial_state = NormalState;
+ wm_hints->input = True;
+
+ XSetWMHints(_dpy, window, wm_hints);
+ XFree(wm_hints);
+ }
+ else
+ {
+ nlwarning("3D: Couldn't allocate XWMHints");
+ }
+
+ // set class hints
+ XClassHint *class_hints = XAllocClassHint();
+
+ if (class_hints)
+ {
+ class_hints->res_name = (char*)"NeL";
+ class_hints->res_class = (char*)"nel";
+
+ XSetClassHint(_dpy, window, class_hints);
+ XFree(class_hints);
+ }
+ else
+ {
+ nlwarning("3D: Couldn't allocate XClassHint");
+ }
+
#endif // NL_OS_UNIX
_win = window;
@@ -2201,11 +2259,19 @@ void CDriverGL::setWindowTitle(const ucstring &title)
#elif defined (NL_OS_UNIX)
#ifdef X_HAVE_UTF8_STRING
+ // UTF8 properties
Xutf8SetWMProperties (_dpy, _win, (char*)title.toUtf8().c_str(), (char*)title.toUtf8().c_str(), NULL, 0, NULL, NULL, NULL);
#else
+ // standard properties
XTextProperty text_property;
- XStringListToTextProperty((char**)&title.toUtf8().c_str(), 1, &text_property);
- XSetWMProperties (_dpy, _win, &text_property, &text_property, 0, 0, NULL, 0, 0);
+ if (XStringListToTextProperty((char**)&title.toUtf8().c_str(), 1, &text_property) != 0)
+ {
+ XSetWMProperties (_dpy, _win, &text_property, &text_property, NULL, 0, NULL, NULL, NULL);
+ }
+ else
+ {
+ nlwarning("3D: Can't convert title to TextProperty");
+ }
#endif
#endif // NL_OS_WINDOWS
diff --git a/code/nel/src/3d/driver/opengl/mac/cocoa_event_emitter.cpp b/code/nel/src/3d/driver/opengl/mac/cocoa_event_emitter.cpp
index 95c713021..15bb40d28 100644
--- a/code/nel/src/3d/driver/opengl/mac/cocoa_event_emitter.cpp
+++ b/code/nel/src/3d/driver/opengl/mac/cocoa_event_emitter.cpp
@@ -149,14 +149,28 @@ static NLMISC::TKey virtualKeycodeToNelKey(unsigned short keycode)
bool CCocoaEventEmitter::pasteTextFromClipboard(ucstring &text)
{
-#warning "OpenGL Driver: Missing Mac Implementation for pasteTextFromClipboard"
+ NSPasteboard *pasteboard = [NSPasteboard generalPasteboard];
+ NSArray *classArray = [NSArray arrayWithObject:[NSString class]];
+ NSDictionary *options = [NSDictionary dictionary];
+
+ BOOL ok = [pasteboard canReadObjectForClasses:classArray options:options];
+ if (ok)
+ {
+ NSArray *objectsToPaste = [pasteboard readObjectsForClasses:classArray options:options];
+ NSString *nstext = [objectsToPaste objectAtIndex:0];
+ text.fromUtf8([nstext UTF8String]);
+ return true;
+ }
return false;
}
bool CCocoaEventEmitter::copyTextToClipboard(const ucstring &text)
{
-#warning "OpenGL Driver: Missing Mac Implementation for copyTextToClipboard"
- return false;
+ NSPasteboard *pasteboard = [NSPasteboard generalPasteboard];
+ [pasteboard clearContents];
+ NSArray *copiedObjects = [NSArray arrayWithObject:[NSString stringWithUTF8String:text.toUtf8().c_str()]];
+ [pasteboard writeObjects:copiedObjects];
+ return true;
}
/// convert modifier key state to nel internal modifier key state
diff --git a/code/nel/src/3d/driver/opengl/mac/glext.h b/code/nel/src/3d/driver/opengl/mac/glext.h
index 7d222aa19..6bcd8c238 100644
--- a/code/nel/src/3d/driver/opengl/mac/glext.h
+++ b/code/nel/src/3d/driver/opengl/mac/glext.h
@@ -4851,8 +4851,10 @@ typedef ptrdiff_t GLsizeiptrARB;
#ifndef GL_ARB_shader_objects
/* GL types for program/shader text and shader object handles */
typedef char GLcharARB;
+#if !defined(MAC_OS_X_VERSION_10_7)
typedef unsigned int GLhandleARB;
#endif
+#endif
/* GL type for "half" precision (s10e5) float data in host memory */
#ifndef GL_ARB_half_float_pixel
diff --git a/code/nel/src/3d/nelu.cpp b/code/nel/src/3d/nelu.cpp
index 80ef89ec4..3d143bce1 100644
--- a/code/nel/src/3d/nelu.cpp
+++ b/code/nel/src/3d/nelu.cpp
@@ -58,7 +58,7 @@ bool CNELU::initDriver (uint w, uint h, uint bpp, bool windowed, nlWindow syst
CNELU::Driver = NULL;
// Init driver.
-#if defined(NL_OS_WINDOWS)
+#ifdef NL_OS_WINDOWS
if (direct3d)
{
CNELU::Driver= CDRU::createD3DDriver();
@@ -75,6 +75,7 @@ bool CNELU::initDriver (uint w, uint h, uint bpp, bool windowed, nlWindow syst
nlwarning ("CNELU::initDriver: no driver found");
return false;
}
+
if (!CNELU::Driver->init())
{
nlwarning ("CNELU::initDriver: init() failed");
diff --git a/code/nel/src/3d/particle_system_shape.cpp b/code/nel/src/3d/particle_system_shape.cpp
index 5e41ba530..fb7aaa405 100644
--- a/code/nel/src/3d/particle_system_shape.cpp
+++ b/code/nel/src/3d/particle_system_shape.cpp
@@ -39,7 +39,11 @@ namespace NL3D {
using NLMISC::CIFile;
+namespace {
+NLMISC::CMutex s_PSSMutex;
+
+} /* anonymous namespace */
// private usage : macro to check the memory integrity
#if defined(NL_DEBUG) && defined(NL_OS_WINDOWS)
@@ -220,9 +224,8 @@ CParticleSystem *CParticleSystemShape::instanciatePS(CScene &scene, NLMISC::CCon
return _SharedSystem;
}
- // avoid prb with concurent thread (may append if an instance group containing ps is loaded in background)
- NLMISC::CMutex mutex;
- mutex.enter();
+ // avoid prb with concurrent thread (may happen if an instance group containing ps is loaded in background)
+ s_PSSMutex.enter();
#ifdef PS_FAST_ALLOC
@@ -295,7 +298,7 @@ CParticleSystem *CParticleSystemShape::instanciatePS(CScene &scene, NLMISC::CCon
}
#endif
- mutex.leave();
+ s_PSSMutex.leave();
/*NLMISC::TTicks end = NLMISC::CTime::getPerformanceTime();
nlinfo("instanciation time = %.2f", (float) (1000 * NLMISC::CTime::ticksToSecond(end - start))); */
@@ -390,8 +393,7 @@ void CParticleSystemShape::flushTextures(IDriver &driver, uint selectedTexture)
}
else
{
- NLMISC::CMutex mutex;
- mutex.enter();
+ s_PSSMutex.enter();
// must create an instance just to flush the textures
CParticleSystem *myInstance = NULL;
@@ -436,7 +438,7 @@ void CParticleSystemShape::flushTextures(IDriver &driver, uint selectedTexture)
#ifdef PS_FAST_ALLOC
PSBlockAllocator = NULL;
#endif
- mutex.leave();
+ s_PSSMutex.leave();
}
for(uint k = 0; k < _CachedTex.size(); ++k)
{
diff --git a/code/nel/src/3d/patchdlm_context.cpp b/code/nel/src/3d/patchdlm_context.cpp
index f5a5b578d..e50f1befe 100644
--- a/code/nel/src/3d/patchdlm_context.cpp
+++ b/code/nel/src/3d/patchdlm_context.cpp
@@ -1018,8 +1018,8 @@ void CPatchDLMContext::computeTextureFar()
// compute src pixel
const CRGBA *srcPixel= pTile->getPixels(CTileFarBank::diffuse, CTileFarBank::order1);
// compute src info, for this tile rot and 256x256 context.
- sint srcDeltaX;
- sint srcDeltaY;
+ sint srcDeltaX = 0;
+ sint srcDeltaY = 0;
srcPixel= computeTileFarSrcDeltas(nRot, is256x256, uvOff, srcPixel, srcDeltaX, srcDeltaY);
// compute dst coordinate. start writing at pixel (1,1)
diff --git a/code/nel/src/Makefile.am b/code/nel/src/Makefile.am
deleted file mode 100644
index dbedcae88..000000000
--- a/code/nel/src/Makefile.am
+++ /dev/null
@@ -1,19 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-DIST_SUBDIRS = net 3d pacs sound misc georges ligo
-
-SUBDIRS = @NEL_SUBDIRS@
-
-EXTRA_DIST = 3d.vcproj \
- georges.vcproj \
- ligo.vcproj \
- logic.vcproj \
- misc.vcproj \
- net.vcproj \
- pacs.vcproj \
- sound.vcproj
-
-# End of Makefile.am
diff --git a/code/nel/src/Rules.mk b/code/nel/src/Rules.mk
deleted file mode 100644
index cb5d3dc57..000000000
--- a/code/nel/src/Rules.mk
+++ /dev/null
@@ -1,56 +0,0 @@
-#############################################################################
-# A few basic default rules and intrinsic rules
-
-# Load objects dependencies
-ifeq (Dependencies.mk,$(wildcard Dependencies.mk))
-include Dependencies.mk
-check-deps:
- @echo
- @echo Dependencies found [OK]
- @echo
-else
-check-deps:
- @echo
- @echo "No dependencies found [ERROR]"
- @echo "You should try 'make update' first"
- @echo
- @exit 1
-endif
-
-# Start off by over-riding the default build rules with our own intrinsics
-.SUFFIXES:
-.SUFFIXES: .cpp .o
-.cpp.o:
- $(CXX) -c $(CXXFLAGS) $< -o $@
-
-# remove object files and core (if any)
-clean:
- find . -name "core*" -exec $(RM) {} \;
- find . -name "*.o" -exec $(RM) {} \;
- find . -name "*~" -exec $(RM) {} \;
- find . -name "Dependencies.mk" -exec $(RM) {} \;
-
-# remove object files, core dump, and executable (if any)
-distclean:
- $(MAKE) clean
- $(RM) $(TARGETS)
- $(RM) $(TARGETS)_debug
-
-# make the thing again from scratch
-again:
- $(MAKE) distclean
- $(MAKE) $(TARGETS)
-
-UPDATE_OBJS=`cat ../$(DSP_TARGET) | grep SOURCE | sed -e 's/\r$$//' | grep "\.cpp$$" | cut -d\\\\ -f3- | tr '\n' ' ' | sed -e 's/=/..\\\\/g' | tr '\n' ' ' | sed -e 's/\\\\/\\//g' | sed -e 's/\.cpp /\.o /g'`
-
-UPDATE_SRCS=`cat ../$(DSP_TARGET) | grep SOURCE | sed -e 's/\r$$//' | grep "\.cpp$$" | cut -d\\\\ -f3- | tr '\n' ' ' | sed -e 's/=/..\\\\/g' | tr '\n' ' ' | sed -e 's/\\\\/\\//g'`
-
-dep: update
-
-update:
- ../gen_deps.sh $(CXX) $(CXXFLAGS) -- $(UPDATE_SRCS) > Dependencies.mk
- echo "OBJS=$(UPDATE_OBJS)" > Objects.mk
-
-touch:
- $(RM) $(TARGETS)
- $(RM) $(TARGETS)_debug
diff --git a/code/nel/src/Variables.mk b/code/nel/src/Variables.mk
deleted file mode 100644
index 216b4b1c8..000000000
--- a/code/nel/src/Variables.mk
+++ /dev/null
@@ -1,20 +0,0 @@
-#############################################################################
-# Setting up the global compiler settings...
-
-# The names of the executables
-CXX = c++
-RM = rm -f
-MAKE = make
-
-DBG = off
-
-FLAGS_CMN = -g -pipe -Wno-ctor-dtor-privacy -Wno-multichar -D_REENTRANT -DHAVE_X86
-
-FLAGS_DBG_on = -O0 -finline-functions -DNL_DEBUG -DNL_DEBUG_FAST
-FLAGS_DBG_off = -O3 -ftemplate-depth-24 -funroll-loops -DNL_RELEASE_DEBUG
-DIR_DBG_on = debug
-DIR_DBG_off = release
-
-ifeq (Objects.mk,$(wildcard Objects.mk))
-include Objects.mk
-endif
diff --git a/code/nel/src/cegui/CMakeLists.txt b/code/nel/src/cegui/CMakeLists.txt
index 99fcfedf3..342e08780 100644
--- a/code/nel/src/cegui/CMakeLists.txt
+++ b/code/nel/src/cegui/CMakeLists.txt
@@ -11,4 +11,6 @@ NL_ADD_LIB_SUFFIX(nelceguirenderer)
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} -DNEL_CEGUIRENDERER_EXPORTS)
-INSTALL(TARGETS nelceguirenderer RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
+ INSTALL(TARGETS nelceguirenderer RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
diff --git a/code/nel/src/cegui/Makefile.am b/code/nel/src/cegui/Makefile.am
deleted file mode 100644
index 43786d8e8..000000000
--- a/code/nel/src/cegui/Makefile.am
+++ /dev/null
@@ -1,19 +0,0 @@
-#
-# $Id: Makefile.am,v 1.7 2002-06-10 17:02:05 cado Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-lib_LTLIBRARIES = libnelceguirenderer.la
-
-libnelceguirenderer_la_SOURCES = nelrenderer.cpp nelresourceprovider.cpp neltexture.cpp
-
-AM_CXXFLAGS = -I$(top_srcdir)/src @CEGUI_CFLAGS@
-
-libnelceguirenderer_la_LIBADD = -lc -lpthread @CEGUI_LIBS@
-
-libnelceguirenderer_la_LDFLAGS = -version-info @LIBTOOL_VERSION@
-
-
-# End of Makefile.am
-
diff --git a/code/nel/src/gen_deps.sh b/code/nel/src/gen_deps.sh
deleted file mode 100755
index 45f41e17f..000000000
--- a/code/nel/src/gen_deps.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-command=''
-sources=''
-phase=0
-for arg in $*
-do
- if [ "$phase" == 0 ] && [ "$arg" == '--' ]
- then
- phase=1
- elif [ "$phase" == 0 ]
- then
- command="$command $arg"
- elif [ "$phase" == 1 ]
- then
- sources="$sources $arg"
- fi
-done
-
-for src in $sources
-do
- obj=`echo $src | sed -e 's/.cpp$/.o/'`
- $command -MT $obj -M $src
-done
-
diff --git a/code/nel/src/georges/CMakeLists.txt b/code/nel/src/georges/CMakeLists.txt
index d3c0199d7..6954bb87b 100644
--- a/code/nel/src/georges/CMakeLists.txt
+++ b/code/nel/src/georges/CMakeLists.txt
@@ -21,4 +21,7 @@ IF(WITH_PCH)
ENDIF(WITH_PCH)
NL_GEN_PC(nel-georges.pc)
-INSTALL(TARGETS nelgeorges LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+
+IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
+ INSTALL(TARGETS nelgeorges LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
diff --git a/code/nel/src/georges/Makefile.am b/code/nel/src/georges/Makefile.am
deleted file mode 100644
index 389110b9f..000000000
--- a/code/nel/src/georges/Makefile.am
+++ /dev/null
@@ -1,34 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = georges_file_format.txt
-
-lib_LTLIBRARIES = libnelgeorges.la
-
-libnelgeorges_la_SOURCES = form.cpp \
- form.h \
- form_loader.cpp \
- form_loader.h \
- form_dfn.cpp \
- form_dfn.h \
- form_elm.cpp \
- form_elm.h \
- stdgeorges.cpp \
- stdgeorges.h \
- header.cpp \
- header.h \
- load_form.cpp \
- type.cpp \
- type.h
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-libnelgeorges_la_LIBADD = -lc -lpthread
-
-libnelgeorges_la_LDFLAGS = -version-info @LIBTOOL_VERSION@
-
-
-# End of Makefile.am
-
diff --git a/code/nel/src/ligo/CMakeLists.txt b/code/nel/src/ligo/CMakeLists.txt
index f600637b7..4d8d49f3d 100644
--- a/code/nel/src/ligo/CMakeLists.txt
+++ b/code/nel/src/ligo/CMakeLists.txt
@@ -19,4 +19,7 @@ IF(WITH_PCH)
ENDIF(WITH_PCH)
NL_GEN_PC(nel-ligo.pc)
-INSTALL(TARGETS nelligo LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+
+IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
+ INSTALL(TARGETS nelligo LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
diff --git a/code/nel/src/ligo/Makefile.am b/code/nel/src/ligo/Makefile.am
deleted file mode 100644
index db6e5d423..000000000
--- a/code/nel/src/ligo/Makefile.am
+++ /dev/null
@@ -1,36 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-lib_LTLIBRARIES = libnelligo.la
-
-libnelligo_la_SOURCES = ligo_config.cpp \
- ligo_error.cpp \
- ligo_error.h \
- ligo_material.cpp \
- ligo_material.h \
- primitive.cpp \
- primitive_class.cpp \
- primitive_configuration.cpp \
- transition.cpp \
- transition.h \
- zone_bank.cpp \
- zone_bank.h \
- zone_edge.cpp \
- zone_edge.h \
- zone_region.cpp \
- zone_region.h \
- zone_template.cpp \
- zone_template.h \
- primitive_utils.cpp
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-libnelligo_la_LIBADD = -lc -lpthread
-
-libnelligo_la_LDFLAGS = -version-info @LIBTOOL_VERSION@
-
-
-# End of Makefile.am
-
diff --git a/code/nel/src/ligo/primitive.cpp b/code/nel/src/ligo/primitive.cpp
index ff8c71c18..62c4ab9d6 100644
--- a/code/nel/src/ligo/primitive.cpp
+++ b/code/nel/src/ligo/primitive.cpp
@@ -2118,7 +2118,7 @@ bool CPrimAlias::read (xmlNodePtr xmlNode, const char *filename, uint version, C
xmlNodePtr ptNode = CIXml::getFirstChildNode (xmlNode, "ALIAS");
if (ptNode)
{
- int val;
+ sint val = 0;
if (ReadInt ("VALUE", val, filename, ptNode))
{
_Alias = uint32(val);
diff --git a/code/nel/src/logic/CMakeLists.txt b/code/nel/src/logic/CMakeLists.txt
index 107c57850..c84e8d18e 100644
--- a/code/nel/src/logic/CMakeLists.txt
+++ b/code/nel/src/logic/CMakeLists.txt
@@ -14,4 +14,6 @@ NL_ADD_LIB_SUFFIX(nellogic)
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
-INSTALL(TARGETS nellogic LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
+ INSTALL(TARGETS nellogic LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
diff --git a/code/nel/src/misc/CMakeLists.txt b/code/nel/src/misc/CMakeLists.txt
index 1710e5b6b..38d291552 100644
--- a/code/nel/src/misc/CMakeLists.txt
+++ b/code/nel/src/misc/CMakeLists.txt
@@ -53,4 +53,7 @@ IF(WITH_PCH)
ENDIF(WITH_PCH)
NL_GEN_PC(nel-misc.pc)
-INSTALL(TARGETS nelmisc LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+
+IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
+ INSTALL(TARGETS nelmisc LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
diff --git a/code/nel/src/misc/Makefile.am b/code/nel/src/misc/Makefile.am
deleted file mode 100644
index 345a210c4..000000000
--- a/code/nel/src/misc/Makefile.am
+++ /dev/null
@@ -1,142 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-SUBDIRS = config_file
-
-lib_LTLIBRARIES = libnelmisc.la
-
-libnelmisc_la_SOURCES = \
- aabbox.cpp \
- app_context.cpp \
- algo.cpp \
- async_file_manager.cpp \
- big_file.cpp \
- bit_mem_stream.cpp \
- bit_set.cpp \
- bitmap.cpp \
- bitmap_jpeg.cpp \
- bitmap_png.cpp \
- block_memory.cpp \
- bsphere.cpp \
- buf_fifo.cpp \
- class_id.cpp \
- class_registry.cpp \
- command.cpp \
- common.cpp \
- contiguous_block_allocator.cpp \
- cpu_time_stat.cpp \
- debug.cpp \
- di_event_emitter.cpp \
- di_game_device.cpp \
- di_game_device.h \
- di_keyboard_device.cpp \
- di_keyboard_device.h \
- di_mouse_device.cpp \
- di_mouse_device.h \
- diff_tool.cpp \
- displayer.cpp \
- eid_translator.cpp \
- entity_id.cpp \
- eval_num_expr.cpp \
- event_emitter.cpp \
- event_emitter_multi.cpp \
- event_listener.cpp \
- event_server.cpp \
- events.cpp \
- fast_floor.cpp \
- fast_mem.cpp \
- file.cpp \
- fixed_size_allocator.cpp \
- game_device.cpp \
- game_device_events.cpp \
- geom_ext.cpp \
- grid_traversal.cpp \
- gtk_displayer.cpp \
- heap_memory.cpp \
- hierarchical_timer.cpp \
- i18n.cpp \
- i_xml.cpp \
- input_device.cpp \
- input_device_server.cpp \
- keyboard_device.cpp \
- line.cpp \
- log.cpp \
- matrix.cpp \
- md5.cpp \
- mem_displayer.cpp \
- mem_stream.cpp \
- mouse_smoother.cpp \
- mutex.cpp \
- noise_value.cpp \
- o_xml.cpp \
- object_arena_allocator.cpp \
- object_vector.cpp \
- p_thread.cpp \
- path.cpp \
- plane.cpp \
- polygon.cpp \
- progress_callback.cpp \
- quad.cpp \
- quat.cpp \
- reader_writer.cpp \
- rect.cpp \
- report.cpp \
- rgba.cpp \
- sha1.cpp \
- shared_memory.cpp \
- sheet_id.cpp \
- smart_ptr.cpp \
- stdmisc.cpp \
- stdmisc.h \
- stl_block_allocator.cpp \
- stl_block_list.cpp \
- stop_watch.cpp \
- stream.cpp \
- string_common.cpp \
- string_id_array.cpp \
- string_mapper.cpp \
- system_info.cpp \
- system_utils.cpp \
- task_manager.cpp \
- tds.cpp \
- time_nl.cpp \
- triangle.cpp \
- uv.cpp \
- unicode.cpp \
- value_smoother.cpp \
- variable.cpp \
- vector.cpp \
- vector_2d.cpp \
- vector_2f.cpp \
- vector_h.cpp \
- vectord.cpp \
- win_displayer.cpp \
- win_event_emitter.cpp \
- win_thread.cpp \
- window_displayer.cpp \
- words_dictionary.cpp \
- dynloadlib.cpp \
- sstring.cpp \
- co_task.cpp \
- xml_pack.cpp \
- inter_window_msg_queue.cpp \
- win32_util.cpp
-
-
-noinst_HEADERS = di_game_device.h \
- di_keyboard_device.h \
- di_mouse_device.h \
- stdmisc.h
-
-
-libnelmisc_la_LIBADD = config_file/libconfig.la -lc -lpthread -lrt -ldl -lpng -ljpeg
-
-libnelmisc_la_LDFLAGS = -version-info @LIBTOOL_VERSION@
-
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = nel-misc.pc
-
-# End of Makefile.am
-
diff --git a/code/nel/src/misc/common.cpp b/code/nel/src/misc/common.cpp
index fb9a9c6f5..19be95367 100644
--- a/code/nel/src/misc/common.cpp
+++ b/code/nel/src/misc/common.cpp
@@ -30,6 +30,7 @@
#include "nel/misc/command.h"
#include "nel/misc/path.h"
+#include "nel/misc/i18n.h"
using namespace std;
@@ -526,6 +527,31 @@ void toUpper(char *str)
}
}
+std::string formatThousands(const std::string& s)
+{
+ int i, k;
+ int remaining = s.length() - 1;
+ static std::string separator = NLMISC::CI18N::get("uiThousandsSeparator").toUtf8();
+
+ // Don't add separator if the number is < 10k
+ if (remaining < 4) return s;
+
+ std::string ns;
+
+ do
+ {
+ for (i = remaining, k = 0; i >= 0 && k < 3; --i, ++k )
+ {
+ ns = s[i] + ns; // New char is added to front of ns
+ if ( i > 0 && k == 2) ns = separator + ns; // j > 0 means still more digits
+ }
+
+ remaining -= 3;
+ }
+ while (remaining >= 0);
+
+ return ns;
+}
//
// Exceptions
diff --git a/code/nel/src/misc/config_file/Makefile.am b/code/nel/src/misc/config_file/Makefile.am
deleted file mode 100644
index ee72fe42c..000000000
--- a/code/nel/src/misc/config_file/Makefile.am
+++ /dev/null
@@ -1,21 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-noinst_LTLIBRARIES = libconfig.la
-
-AM_YFLAGS = --defines=cf_gramatical.h -p cf
-
-AM_LFLAGS = -f -8 -Pcf -olex.yy.c
-
-EXTRA_DIST = cf_gramatical.h cf_bison.simple cf_flex.skl do.bat
-
-libconfig_la_SOURCES = cf_lexical.lpp \
- cf_gramatical.ypp \
- config_file.cpp
-
-#libconfig_la_SOURCES = config_file.cpp
-
-# End of Makefile.am
-
diff --git a/code/nel/src/misc/eid_translator.cpp b/code/nel/src/misc/eid_translator.cpp
index 36ea84247..e254831c4 100644
--- a/code/nel/src/misc/eid_translator.cpp
+++ b/code/nel/src/misc/eid_translator.cpp
@@ -417,6 +417,17 @@ void CEntityIdTranslator::checkEntity (const CEntityId &eid, const ucstring &ent
}
}
+void CEntityIdTranslator::removeShardFromName(ucstring& name)
+{
+ // The string must contain a '(' and a ')'
+ ucstring::size_type p0= name.find('(');
+ ucstring::size_type p1= name.find(')');
+ if (p0 == ucstring::npos || p1 == ucstring::npos || p1 <= p0)
+ return;
+
+ name = name.substr(0, p0) + name.substr(p1 + 1);
+}
+
// this callback is call when the file is changed
void cbInvalidEntityNamesFilename(const std::string &invalidEntityNamesFilename)
{
diff --git a/code/nel/src/misc/events.cpp b/code/nel/src/misc/events.cpp
index 4d3979416..7cef02f44 100644
--- a/code/nel/src/misc/events.cpp
+++ b/code/nel/src/misc/events.cpp
@@ -178,7 +178,7 @@ static const CStringConversion::CPair stringTable [] =
{ "KeyZOOM", KeyZOOM },
{ "KeyNONAME", KeyNONAME },
{ "KeyPA1", KeyPA1 },
- { "KeyOEM_CLEAR", KeyOEM_CLEAR },
+ { "KeyOEM_CLEAR", KeyOEM_CLEAR }
};
diff --git a/code/nel/src/misc/noise_value.cpp b/code/nel/src/misc/noise_value.cpp
index 89b9a8ad4..4b7cade1f 100644
--- a/code/nel/src/misc/noise_value.cpp
+++ b/code/nel/src/misc/noise_value.cpp
@@ -18,7 +18,7 @@
#include "nel/misc/noise_value.h"
#include "nel/misc/fast_floor.h"
-
+#include "nel/misc/random.h"
namespace NLMISC
@@ -45,7 +45,8 @@ public:
CRandomGrid3D()
{
//seed
- srand(0);
+ CRandom Random;
+ Random.srand(0);
// init the grid
for(uint z=0; z> 5;
+ uint v= Random.rand() >> 5;
_Texture3d[id]= v&255;
}
}
@@ -80,9 +81,9 @@ public:
// init LevelPhases.
for(i=0; ipostEvent (new CEventKeyDown ((NLMISC::TKey)wParam, getKeyButton(_AltButton, _ShiftButton, _CtrlButton), true, this));
+ }
+
// Post the message
if (wParam < KeyCount)
server->postEvent (new CEventKeyUp ((NLMISC::TKey)wParam, getKeyButton(_AltButton, _ShiftButton, _CtrlButton), this));
diff --git a/code/nel/src/net/CMakeLists.txt b/code/nel/src/net/CMakeLists.txt
index ea68efe32..c24a94215 100644
--- a/code/nel/src/net/CMakeLists.txt
+++ b/code/nel/src/net/CMakeLists.txt
@@ -24,4 +24,7 @@ IF(WITH_PCH)
ENDIF(WITH_PCH)
NL_GEN_PC(nel-net.pc)
-INSTALL(TARGETS nelnet LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+
+IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
+ INSTALL(TARGETS nelnet LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
diff --git a/code/nel/src/net/Makefile.am b/code/nel/src/net/Makefile.am
deleted file mode 100644
index ef0d956be..000000000
--- a/code/nel/src/net/Makefile.am
+++ /dev/null
@@ -1,60 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-lib_LTLIBRARIES = libnelnet.la
-
-libnelnet_la_SOURCES = buf_client.cpp \
- buf_net_base.cpp \
- buf_server.cpp \
- buf_sock.cpp \
- callback_client.cpp \
- callback_net_base.cpp \
- callback_server.cpp \
- dummy_tcp_sock.cpp \
- inet_address.cpp \
- listen_sock.cpp \
- login_client.cpp \
- login_cookie.cpp \
- login_server.cpp \
- message.cpp \
- message_recorder.cpp \
- naming_client.cpp \
- net_displayer.cpp \
- net_log.cpp \
- service.cpp \
- sock.cpp \
- tcp_sock.cpp \
- udp_sock.cpp \
- udp_sim_sock.cpp \
- unitime.cpp \
- unified_network.cpp \
- varpath.cpp \
- transport_class.cpp \
- email.cpp \
- admin.cpp \
- stdin_monitor_thread.cpp \
- stdin_monitor_thread.h \
- module.cpp \
- module_common.cpp \
- module_gateway.cpp \
- module_manager.cpp \
- module_message.cpp \
- module_socket.cpp \
- module_gateway_transport.cpp \
- module_l5_transport.cpp \
- module_local_gateway.cpp \
- stdnet.cpp
-
-noinst_HEADERS = stdnet.h
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-libnelnet_la_LIBADD = -lc -lpthread
-
-libnelnet_la_LDFLAGS = -version-info @LIBTOOL_VERSION@
-
-
-# End of Makefile.am
-
diff --git a/code/nel/src/net/transport_class.cpp b/code/nel/src/net/transport_class.cpp
index a5f826728..dca866916 100644
--- a/code/nel/src/net/transport_class.cpp
+++ b/code/nel/src/net/transport_class.cpp
@@ -77,7 +77,7 @@ string typeToString (CTransportClass::TProp type)
string conv[] = {
"PropUInt8", "PropUInt16", "PropUInt32", "PropUInt64",
"PropSInt8", "PropSInt16", "PropSInt32", "PropSInt64",
- "PropBool", "PropFloat", "PropDouble", "PropString", "PropDataSetRow", "PropSheetId", "PropUKN" };
+ "PropBool", "PropFloat", "PropDouble", "PropString", "PropDataSetRow", "PropSheetId", "PropUCString", "PropUKN" };
// "PropBool", "PropFloat", "PropDouble", "PropString", "PropDataSetRow", "PropEntityId", "PropSheetId", "PropUKN" };
if (type > CTransportClass::PropUKN)
@@ -352,6 +352,7 @@ void CTransportClass::init ()
// nlassert (PropDataSetRow < PropUKN); DummyProp[PropDataSetRow] = new CTransportClass::CRegisteredProp;
// nlassert (PropEntityId < PropUKN); DummyProp[PropEntityId] = new CTransportClass::CRegisteredProp;
nlassert (PropSheetId < PropUKN); DummyProp[PropSheetId] = new CTransportClass::CRegisteredProp;
+ nlassert (PropUCString < PropUKN); DummyProp[PropUCString] = new CTransportClass::CRegisteredProp;
// we have to know when a service comes, so add callback (put the callback before all other one because we have to send this message first)
CUnifiedNetwork::getInstance()->setServiceUpCallback("*", cbTCUpService, NULL, false);
diff --git a/code/nel/src/pacs/CMakeLists.txt b/code/nel/src/pacs/CMakeLists.txt
index 0fa059d68..62a809407 100644
--- a/code/nel/src/pacs/CMakeLists.txt
+++ b/code/nel/src/pacs/CMakeLists.txt
@@ -19,4 +19,7 @@ IF(WITH_PCH)
ENDIF(WITH_PCH)
NL_GEN_PC(nel-pacs.pc)
-INSTALL(TARGETS nelpacs LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+
+IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
+ INSTALL(TARGETS nelpacs LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
diff --git a/code/nel/src/pacs/Makefile.am b/code/nel/src/pacs/Makefile.am
deleted file mode 100644
index 0b05a2ed6..000000000
--- a/code/nel/src/pacs/Makefile.am
+++ /dev/null
@@ -1,69 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-lib_LTLIBRARIES = libnelpacs.la
-
-libnelpacs_la_SOURCES = chain.cpp \
- chain.h \
- chain_quad.cpp \
- chain_quad.h \
- collision_callback.cpp \
- collision_callback.h \
- collision_desc.cpp \
- collision_desc.h \
- collision_mesh_build.h \
- collision_ot.cpp \
- collision_ot.h \
- collision_surface_temp.cpp \
- collision_surface_temp.h \
- edge_collide.cpp \
- edge_collide.h \
- edge_quad.cpp \
- edge_quad.h \
- exterior_mesh.cpp \
- exterior_mesh.h \
- global_retriever.cpp \
- global_retriever.h \
- local_retriever.cpp \
- local_retriever.h \
- move_cell.cpp \
- move_cell.h \
- move_container.cpp \
- move_container.h \
- move_container_inline.h \
- move_element.cpp \
- move_element.h \
- move_element_inline.h \
- move_primitive.cpp \
- move_primitive.h \
- primitive_world_image.cpp \
- primitive_world_image.h \
- primitive_block_pacs.cpp \
- primitive_block.h \
- retrievable_surface.cpp \
- retrievable_surface.h \
- retriever_bank.cpp \
- retriever_bank.h \
- retriever_instance.cpp \
- retriever_instance.h \
- stdpacs.cpp \
- surface_quad.cpp \
- surface_quad.h \
- vector_2s.cpp \
- vector_2s.h \
- build_indoor.cpp \
- build_indoor.h
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-noinst_HEADERS = stdpacs.h face_grid.h quad_grid.h
-
-libnelpacs_la_LIBADD = -lc
-
-libnelpacs_la_LDFLAGS = -version-info @LIBTOOL_VERSION@
-
-
-# End of Makefile.am
-
diff --git a/code/nel/src/sound/CMakeLists.txt b/code/nel/src/sound/CMakeLists.txt
index 9497357ee..21c1de1f8 100644
--- a/code/nel/src/sound/CMakeLists.txt
+++ b/code/nel/src/sound/CMakeLists.txt
@@ -19,6 +19,9 @@ IF(WITH_PCH)
ENDIF(WITH_PCH)
NL_GEN_PC(nel-sound.pc)
-INSTALL(TARGETS nelsound LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+
+IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
+ INSTALL(TARGETS nelsound LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
ADD_SUBDIRECTORY(driver)
diff --git a/code/nel/src/sound/Makefile.am b/code/nel/src/sound/Makefile.am
deleted file mode 100644
index b919e10c4..000000000
--- a/code/nel/src/sound/Makefile.am
+++ /dev/null
@@ -1,75 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-SUBDIRS = driver
-
-lib_LTLIBRARIES = libnelsnd.la
-
-libnelsnd_la_SOURCES = async_file_manager_sound.cpp \
- async_file_manager_sound.h \
- audio_mixer_user.cpp \
- audio_mixer_user.h \
- background_sound.cpp \
- background_sound.h \
- background_sound_manager.cpp \
- background_sound_manager.h \
- background_source.cpp \
- background_source.h \
- clustered_sound.cpp \
- clustered_sound.h \
- complex_sound.cpp \
- complex_sound.h \
- complex_source.cpp \
- complex_source.h \
- context_sound.cpp \
- context_sound.h \
- listener_user.cpp \
- listener_user.h \
- mixing_track.cpp \
- mixing_track.h \
- music_channel_fader.h \
- music_channel_fader.cpp \
- music_sound.cpp \
- music_sound.h \
- music_sound_manager.cpp \
- music_sound_manager.h \
- music_source.cpp \
- music_source.h \
- sample_bank.cpp \
- sample_bank.h \
- sample_bank_manager.cpp \
- sample_bank_manager.h \
- simple_sound.cpp \
- simple_sound.h \
- simple_source.cpp \
- simple_source.h \
- sound_animation.cpp \
- sound_anim_manager.cpp \
- sound_anim_marker.cpp \
- sound_bank.cpp \
- sound_bank.h \
- sound.cpp \
- sound.h \
- sound_pattern.h \
- source_common.cpp \
- source_common.h \
- stdsound.cpp \
- stdsound.h \
- stream_source.cpp \
- stream_source.h \
- stream_sound.cpp \
- stream_sound.h
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-noinst_HEADERS = stdsound.h
-
-libnelsnd_la_LIBADD = driver/libnelsnd_lowlevel.la
-
-libnelsnd_la_LDFLAGS = -version-info @LIBTOOL_VERSION@
-
-
-# End of Makefile.am
-
diff --git a/code/nel/src/sound/driver/CMakeLists.txt b/code/nel/src/sound/driver/CMakeLists.txt
index c2ae80606..1a8391c41 100644
--- a/code/nel/src/sound/driver/CMakeLists.txt
+++ b/code/nel/src/sound/driver/CMakeLists.txt
@@ -23,7 +23,9 @@ IF(WITH_PCH)
ADD_NATIVE_PRECOMPILED_HEADER(nelsnd_lowlevel ${CMAKE_CURRENT_SOURCE_DIR}/stdsound_lowlevel.h ${CMAKE_CURRENT_SOURCE_DIR}/stdsound_lowlevel.cpp)
ENDIF(WITH_PCH)
-INSTALL(TARGETS nelsnd_lowlevel LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
+ INSTALL(TARGETS nelsnd_lowlevel LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
+ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC) OR NOT WITH_STATIC)
IF(WITH_DRIVER_OPENAL)
ADD_SUBDIRECTORY(openal)
diff --git a/code/nel/src/sound/driver/Makefile.am b/code/nel/src/sound/driver/Makefile.am
deleted file mode 100644
index 0e7325b29..000000000
--- a/code/nel/src/sound/driver/Makefile.am
+++ /dev/null
@@ -1,26 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = fmod openal dsound
-
-SUBDIRS = @SOUND_SUBDIRS@
-
-noinst_LTLIBRARIES = libnelsnd_lowlevel.la
-
-libnelsnd_lowlevel_la_SOURCES = buffer.cpp \
- buffer.h \
- effect.h \
- effect.cpp \
- listener.cpp \
- listener.h \
- sound_driver.cpp \
- sound_driver.h \
- source.cpp \
- source.h
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-# End of Makefile.am
-
diff --git a/code/nel/src/sound/driver/dsound/CMakeLists.txt b/code/nel/src/sound/driver/dsound/CMakeLists.txt
index f2d13d785..c2fc934dc 100644
--- a/code/nel/src/sound/driver/dsound/CMakeLists.txt
+++ b/code/nel/src/sound/driver/dsound/CMakeLists.txt
@@ -13,7 +13,9 @@ IF(WITH_PCH)
ADD_NATIVE_PRECOMPILED_HEADER(nel_drv_dsound_win ${CMAKE_CURRENT_SOURCE_DIR}/stddsound.h ${CMAKE_CURRENT_SOURCE_DIR}/stddsound.cpp)
ENDIF(WITH_PCH)
-INSTALL(TARGETS nel_drv_dsound_win RUNTIME DESTINATION bin LIBRARY DESTINATION ${NL_DRIVER_PREFIX} ARCHIVE DESTINATION lib COMPONENT driverssound)
-IF(WITH_MAXPLUGIN)
- INSTALL(TARGETS nel_drv_dsound_win RUNTIME DESTINATION maxplugin COMPONENT driverssound)
-ENDIF(WITH_MAXPLUGIN)
+IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC_DRIVERS) OR NOT WITH_STATIC_DRIVERS)
+ INSTALL(TARGETS nel_drv_dsound_win RUNTIME DESTINATION bin LIBRARY DESTINATION ${NL_DRIVER_PREFIX} ARCHIVE DESTINATION lib COMPONENT driverssound)
+ IF(WITH_MAXPLUGIN)
+ INSTALL(TARGETS nel_drv_dsound_win RUNTIME DESTINATION maxplugin COMPONENT driverssound)
+ ENDIF(WITH_MAXPLUGIN)
+ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC_DRIVERS) OR NOT WITH_STATIC_DRIVERS)
diff --git a/code/nel/src/sound/driver/fmod/CMakeLists.txt b/code/nel/src/sound/driver/fmod/CMakeLists.txt
index 049d8b627..e641a9277 100644
--- a/code/nel/src/sound/driver/fmod/CMakeLists.txt
+++ b/code/nel/src/sound/driver/fmod/CMakeLists.txt
@@ -13,7 +13,9 @@ IF(WITH_PCH)
ADD_NATIVE_PRECOMPILED_HEADER(nel_drv_fmod_win ${CMAKE_CURRENT_SOURCE_DIR}/stdfmod.h ${CMAKE_CURRENT_SOURCE_DIR}/stdfmod.cpp)
ENDIF(WITH_PCH)
-INSTALL(TARGETS nel_drv_fmod_win RUNTIME DESTINATION bin LIBRARY DESTINATION ${NL_DRIVER_PREFIX} ARCHIVE DESTINATION lib COMPONENT driverssound)
-IF(WITH_MAXPLUGIN)
- INSTALL(TARGETS nel_drv_fmod_win RUNTIME DESTINATION maxplugin COMPONENT driverssound)
-ENDIF(WITH_MAXPLUGIN)
+IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC_DRIVERS) OR NOT WITH_STATIC_DRIVERS)
+ INSTALL(TARGETS nel_drv_fmod_win RUNTIME DESTINATION bin LIBRARY DESTINATION ${NL_DRIVER_PREFIX} ARCHIVE DESTINATION lib COMPONENT driverssound)
+ IF(WITH_MAXPLUGIN)
+ INSTALL(TARGETS nel_drv_fmod_win RUNTIME DESTINATION maxplugin COMPONENT driverssound)
+ ENDIF(WITH_MAXPLUGIN)
+ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC_DRIVERS) OR NOT WITH_STATIC_DRIVERS)
diff --git a/code/nel/src/sound/driver/fmod/Makefile.am b/code/nel/src/sound/driver/fmod/Makefile.am
deleted file mode 100644
index 505c77173..000000000
--- a/code/nel/src/sound/driver/fmod/Makefile.am
+++ /dev/null
@@ -1,32 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-lib_LTLIBRARIES = libnel_drv_fmod.la
-
-libnel_drv_fmod_la_SOURCES = buffer_fmod.cpp \
- buffer_fmod.h \
- listener_fmod.cpp \
- listener_fmod.h \
- music_channel_fmod.cpp \
- music_channel_fmod.h \
- sound_driver_fmod.cpp \
- sound_driver_fmod.h \
- source_fmod.cpp \
- source_fmod.h \
- stdfmod.cpp \
- stdfmod.h
-
-
-AM_CXXFLAGS = -I$(top_srcdir)/src @FMOD_CFLAGS@
-
-noinst_HEADERS = stdfmod.h
-
-libnel_drv_fmod_la_LIBADD = @FMOD_LIBS@
-
-libnel_drv_fmod_la_LDFLAGS = -version-info @LIBTOOL_VERSION@
-
-
-# End of Makefile.am
-
diff --git a/code/nel/src/sound/driver/openal/CMakeLists.txt b/code/nel/src/sound/driver/openal/CMakeLists.txt
index 53b0c8c2a..47ce5b24f 100644
--- a/code/nel/src/sound/driver/openal/CMakeLists.txt
+++ b/code/nel/src/sound/driver/openal/CMakeLists.txt
@@ -44,7 +44,9 @@ IF(WITH_PCH)
ADD_NATIVE_PRECOMPILED_HEADER(${NLDRV_AL_LIB} ${CMAKE_CURRENT_SOURCE_DIR}/stdopenal.h ${CMAKE_CURRENT_SOURCE_DIR}/stdopenal.cpp)
ENDIF(WITH_PCH)
-INSTALL(TARGETS ${NLDRV_AL_LIB} RUNTIME DESTINATION bin LIBRARY DESTINATION ${NL_DRIVER_PREFIX} ARCHIVE DESTINATION lib COMPONENT driverssound)
-IF(WITH_MAXPLUGIN)
- INSTALL(TARGETS ${NLDRV_AL_LIB} RUNTIME DESTINATION maxplugin COMPONENT driverssound)
-ENDIF(WITH_MAXPLUGIN)
+IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC_DRIVERS) OR NOT WITH_STATIC_DRIVERS)
+ INSTALL(TARGETS ${NLDRV_AL_LIB} RUNTIME DESTINATION ${NL_DRIVER_PREFIX} LIBRARY DESTINATION ${NL_DRIVER_PREFIX} ARCHIVE DESTINATION lib COMPONENT driverssound)
+ IF(WITH_MAXPLUGIN)
+ INSTALL(TARGETS ${NLDRV_AL_LIB} RUNTIME DESTINATION maxplugin COMPONENT driverssound)
+ ENDIF(WITH_MAXPLUGIN)
+ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC_DRIVERS) OR NOT WITH_STATIC_DRIVERS)
diff --git a/code/nel/src/sound/driver/openal/Makefile.am b/code/nel/src/sound/driver/openal/Makefile.am
deleted file mode 100644
index 559a26370..000000000
--- a/code/nel/src/sound/driver/openal/Makefile.am
+++ /dev/null
@@ -1,30 +0,0 @@
-#
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = driver_openal.def driver_openal.dsp driver_openal.vcproj
-
-lib_LTLIBRARIES = libnel_drv_openal.la
-
-libnel_drv_openal_la_SOURCES = buffer_al.cpp \
- buffer_al.h \
- listener_al.cpp \
- listener_al.h \
- sound_driver_al.cpp \
- sound_driver_al.h \
- source_al.cpp \
- source_al.h \
- stdopenal.h
-
-AM_CXXFLAGS = -I$(top_srcdir)/src @OPENAL_CFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@
-
-noinst_HEADERS = stdopenal.h
-
-libnel_drv_openal_la_LIBADD = @OPENAL_LIBS@ @OGG_LIBS@ @VORBIS_LIBS@
-
-libnel_drv_openal_la_LDFLAGS = -version-info @LIBTOOL_VERSION@
-
-
-# End of Makefile.am
-
diff --git a/code/nel/src/sound/driver/xaudio2/CMakeLists.txt b/code/nel/src/sound/driver/xaudio2/CMakeLists.txt
index 5e45a9809..eb342a4df 100644
--- a/code/nel/src/sound/driver/xaudio2/CMakeLists.txt
+++ b/code/nel/src/sound/driver/xaudio2/CMakeLists.txt
@@ -40,7 +40,9 @@ IF(WITH_PCH)
ADD_NATIVE_PRECOMPILED_HEADER(nel_drv_xaudio2_win ${CMAKE_CURRENT_SOURCE_DIR}/stdxaudio2.h ${CMAKE_CURRENT_SOURCE_DIR}/stdxaudio2.cpp)
ENDIF(WITH_PCH)
-INSTALL(TARGETS nel_drv_xaudio2_win RUNTIME DESTINATION bin LIBRARY DESTINATION ${NL_DRIVER_PREFIX} ARCHIVE DESTINATION lib COMPONENT driverssound)
-IF(WITH_MAXPLUGIN)
- INSTALL(TARGETS nel_drv_xaudio2_win RUNTIME DESTINATION maxplugin COMPONENT driverssound)
-ENDIF(WITH_MAXPLUGIN)
+IF((WITH_INSTALL_LIBRARIES AND WITH_STATIC_DRIVERS) OR NOT WITH_STATIC_DRIVERS)
+ INSTALL(TARGETS nel_drv_xaudio2_win RUNTIME DESTINATION bin LIBRARY DESTINATION ${NL_DRIVER_PREFIX} ARCHIVE DESTINATION lib COMPONENT driverssound)
+ IF(WITH_MAXPLUGIN)
+ INSTALL(TARGETS nel_drv_xaudio2_win RUNTIME DESTINATION maxplugin COMPONENT driverssound)
+ ENDIF(WITH_MAXPLUGIN)
+ENDIF((WITH_INSTALL_LIBRARIES AND WITH_STATIC_DRIVERS) OR NOT WITH_STATIC_DRIVERS)
diff --git a/code/nel/tools/3d/Makefile.am b/code/nel/tools/3d/Makefile.am
deleted file mode 100644
index 7cde91464..000000000
--- a/code/nel/tools/3d/Makefile.am
+++ /dev/null
@@ -1,32 +0,0 @@
-#
-# $Id: Makefile.am,v 1.2 2002/05/14 13:33:59 valignat Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-DIST_SUBDIRS = build_coarse_mesh \
- build_far_bank \
- build_smallbank \
- ig_lighter_lib \
- ig_lighter \
- panoply_maker \
- zone_lib \
- zone_dependencies \
- zone_ig_lighter \
- zone_lighter \
- zone_welder
-
-SUBDIRS = build_coarse_mesh \
- build_far_bank \
- build_smallbank \
- ig_lighter_lib \
- ig_lighter \
- zone_lib \
- zone_dependencies \
- zone_ig_lighter \
- zone_lighter \
- zone_welder
-
-
-# End of Makefile.am
-
diff --git a/code/nel/tools/3d/build_coarse_mesh/Makefile.am b/code/nel/tools/3d/build_coarse_mesh/Makefile.am
deleted file mode 100644
index b161e1b59..000000000
--- a/code/nel/tools/3d/build_coarse_mesh/Makefile.am
+++ /dev/null
@@ -1,21 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2002/05/13 15:44:57 valignat Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = build.cfg \
- build_coarse_mesh.dsp
-
-bin_PROGRAMS = build_coarse_mesh
-
-build_coarse_mesh_SOURCES = build_coarse_mesh.cpp
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-build_coarse_mesh_LDADD = ../../../src/misc/libnelmisc.la \
- ../../../src/3d/libnel3d.la
-
-
-# End of Makefile.am
-
diff --git a/code/nel/tools/3d/build_far_bank/Makefile.am b/code/nel/tools/3d/build_far_bank/Makefile.am
deleted file mode 100644
index 9dd0eadec..000000000
--- a/code/nel/tools/3d/build_far_bank/Makefile.am
+++ /dev/null
@@ -1,20 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2002/05/13 15:44:57 valignat Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = build_far_bank.dsp
-
-bin_PROGRAMS = build_far_bank
-
-build_far_bank_SOURCES = build_far_bank.cpp
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-build_far_bank_LDADD = ../../../src/misc/libnelmisc.la \
- ../../../src/3d/libnel3d.la
-
-
-# End of Makefile.am
-
diff --git a/code/nel/tools/3d/build_smallbank/Makefile.am b/code/nel/tools/3d/build_smallbank/Makefile.am
deleted file mode 100644
index f70258cb6..000000000
--- a/code/nel/tools/3d/build_smallbank/Makefile.am
+++ /dev/null
@@ -1,20 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2002/05/13 15:44:57 valignat Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = build_smallbank.dsp
-
-bin_PROGRAMS = build_smallbank
-
-build_smallbank_SOURCES = build_smallbank.cpp
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-build_smallbank_LDADD = ../../../src/misc/libnelmisc.la \
- ../../../src/3d/libnel3d.la
-
-
-# End of Makefile.am
-
diff --git a/code/nel/tools/3d/ig_lighter/Makefile.am b/code/nel/tools/3d/ig_lighter/Makefile.am
deleted file mode 100644
index ccde76fd0..000000000
--- a/code/nel/tools/3d/ig_lighter/Makefile.am
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2002/05/13 15:44:57 valignat Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = config.cfg \
- ig_lighter.dsp
-
-bin_PROGRAMS = ig_lighter
-
-ig_lighter_SOURCES = ig_lighter.cpp
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-ig_lighter_LDADD = ../../../src/misc/libnelmisc.la \
- ../../../src/3d/libnel3d.la \
- ../../../src/pacs/libnelpacs.la \
- ../ig_lighter_lib/libig_lighter.la
-
-
-# End of Makefile.am
-
diff --git a/code/nel/tools/3d/ig_lighter_lib/Makefile.am b/code/nel/tools/3d/ig_lighter_lib/Makefile.am
deleted file mode 100644
index e66b9a94b..000000000
--- a/code/nel/tools/3d/ig_lighter_lib/Makefile.am
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# $Id: Makefile.am,v 1.1 2002/05/13 15:44:57 valignat Exp $
-#
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = ig_lighter_lib.dsp
-
-noinst_LTLIBRARIES = libig_lighter.la
-
-libig_lighter_la_SOURCES = ig_lighter_lib.cpp
-
-noinst_HEADERS = ig_lighter_lib.h
-
-AM_CXXFLAGS = -I$(top_srcdir)/src
-
-libig_lighter_la_LIBADD = ../../../src/misc/libnelmisc.la \
- ../../../src/3d/libnel3d.la \
- ../../../src/pacs/libnelpacs.la
-
-
-# End of Makefile.am
-
diff --git a/code/nel/tools/3d/ligo/plugin_max/DllEntry.cpp b/code/nel/tools/3d/ligo/plugin_max/DllEntry.cpp
index 3cf88f4a7..ee9964566 100644
--- a/code/nel/tools/3d/ligo/plugin_max/DllEntry.cpp
+++ b/code/nel/tools/3d/ligo/plugin_max/DllEntry.cpp
@@ -18,6 +18,7 @@
#include "nel/misc/app_context.h"
#include
#include "../../plugin_max/nel_3dsmax_shared/nel_3dsmax_shared.h"
+#include
extern ClassDesc2* GetLigoscapeDesc();
@@ -44,7 +45,9 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,ULONG fdwReason,LPVOID lpvReserved)
if (!controlsInit)
{
controlsInit = TRUE;
+#if MAX_VERSION_MAJOR < 14
InitCustomControls(hInstance); // Initialize MAX's custom controls
+#endif
InitCommonControls(); // Initialize Win95 controls
}
diff --git a/code/nel/tools/3d/ligo/plugin_max/max_to_ligo.cpp b/code/nel/tools/3d/ligo/plugin_max/max_to_ligo.cpp
index 7500b027b..eb4951991 100644
--- a/code/nel/tools/3d/ligo/plugin_max/max_to_ligo.cpp
+++ b/code/nel/tools/3d/ligo/plugin_max/max_to_ligo.cpp
@@ -17,7 +17,12 @@
#include
// From MAXSDK
-#include
+#include
+#if MAX_VERSION_MAJOR >= 14
+# include
+#else
+# include
+#endif
#include "max_to_ligo.h"
diff --git a/code/nel/tools/3d/ligo/plugin_max/script.cpp b/code/nel/tools/3d/ligo/plugin_max/script.cpp
index 5d6381303..b00de5fe4 100644
--- a/code/nel/tools/3d/ligo/plugin_max/script.cpp
+++ b/code/nel/tools/3d/ligo/plugin_max/script.cpp
@@ -19,17 +19,30 @@
#include
// Various MAX and MXS includes
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
+#include
+#if MAX_VERSION_MAJOR >= 14
+# include
+# include
+# include
+# include
+# include
+# include
+# include
+# include
+# include
+#else
+# include
+# include
+# include
+# include
+# include
+# include
+# include
+# include
+# include
+#endif
#include
#include
-#include
// Visual
#include
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/CMakeLists.txt b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/CMakeLists.txt
new file mode 100644
index 000000000..2caaa1be7
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/CMakeLists.txt
@@ -0,0 +1 @@
+ADD_SUBDIRECTORY(qtpropertybrowser)
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/CMakeLists.txt b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/CMakeLists.txt
new file mode 100644
index 000000000..f4ed13e0a
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/CMakeLists.txt
@@ -0,0 +1,98 @@
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${QT_INCLUDES})
+INCLUDE(${QT_USE_FILE})
+
+FILE(GLOB SRC *.cpp *.h)
+
+SET(QT_PROPERTY_EDITOR_HDR qtpropertybrowser.h
+ qtpropertymanager.h
+ qteditorfactory.h
+ qtvariantproperty.h
+ qttreepropertybrowser.h
+ qtbuttonpropertybrowser.h
+ qtgroupboxpropertybrowser.h
+ qtpropertybrowserutils_p.h)
+
+SET(QT_PROPERTY_EDITOR_RCS qtpropertybrowser.qrc)
+
+SET(QT_USE_QTGUI TRUE)
+
+QT4_ADD_RESOURCES(QT_PROPERTY_EDITOR_RC_SRCS ${QT_PROPERTY_EDITOR_RCS})
+QT4_WRAP_CPP(QT_PROPERTY_EDITOR_MOC_SRC ${QT_PROPERTY_EDITOR_HDR})
+
+SOURCE_GROUP(QtResources FILES ${QT_PROPERTY_EDITOR_RCS})
+SOURCE_GROUP(QtGeneratedMocSrc FILES ${QT_PROPERTY_EDITOR_MOC_SRC})
+SOURCE_GROUP("Qt Property Editor Source" FILES ${SRC})
+
+qt4_generate_moc(qtpropertymanager.cpp ${CMAKE_CURRENT_BINARY_DIR}/qtpropertymanager.moc)
+qt4_generate_moc(qteditorfactory.cpp ${CMAKE_CURRENT_BINARY_DIR}/qteditorfactory.moc)
+qt4_generate_moc(qttreepropertybrowser.cpp ${CMAKE_CURRENT_BINARY_DIR}/qttreepropertybrowser.moc)
+
+# Need to remove these so that they are not linked as they are inline included.
+LIST(REMOVE_ITEM QT_PROPERTY_EDITOR_MOC_SRC ${CMAKE_CURRENT_BINARY_DIR}/moc_qtbuttonpropertybrowser.cxx
+ ${CMAKE_CURRENT_BINARY_DIR}/moc_qteditorfactory.cxx
+ ${CMAKE_CURRENT_BINARY_DIR}/moc_qtgroupboxpropertybrowser.cxx
+ ${CMAKE_CURRENT_BINARY_DIR}/moc_qtpropertybrowser.cxx
+ ${CMAKE_CURRENT_BINARY_DIR}/moc_qtpropertymanager.cxx
+ ${CMAKE_CURRENT_BINARY_DIR}/moc_qttreepropertybrowser.cxx
+ ${CMAKE_CURRENT_BINARY_DIR}/moc_qtvariantproperty.cxx)
+
+# We need to add new depencencies on removed files because we need them to be still generated
+SET_PROPERTY(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/qtbuttonpropertybrowser.cpp APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/moc_qtbuttonpropertybrowser.cxx)
+SET_PROPERTY(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/qteditorfactory.cpp APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/moc_qteditorfactory.cxx)
+SET_PROPERTY(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/qtgroupboxpropertybrowser.cpp APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/moc_qtgroupboxpropertybrowser.cxx)
+SET_PROPERTY(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/qtpropertybrowser.cpp APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/moc_qtpropertybrowser.cxx)
+SET_PROPERTY(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/qtpropertymanager.cpp APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/moc_qtpropertymanager.cxx)
+SET_PROPERTY(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/qttreepropertybrowser.cpp APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/moc_qttreepropertybrowser.cxx)
+SET_PROPERTY(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/qtvariantproperty.cpp APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/moc_qtvariantproperty.cxx)
+
+#set(
+# qtpropertyeditor_HEADERS_ONLY_MOC
+# ${CMAKE_CURRENT_BINARY_DIR}/moc_qtpropertybrowser.cpp
+# ${CMAKE_CURRENT_BINARY_DIR}/moc_qtpropertymanager.cpp
+# ${CMAKE_CURRENT_BINARY_DIR}/moc_qteditorfactory.cpp
+# ${CMAKE_CURRENT_BINARY_DIR}/moc_qtvariantproperty.cpp
+# ${CMAKE_CURRENT_BINARY_DIR}/moc_qttreepropertybrowser.cpp
+# ${CMAKE_CURRENT_BINARY_DIR}/moc_qtbuttonpropertybrowser.cpp
+# ${CMAKE_CURRENT_BINARY_DIR}/moc_qtgroupboxpropertybrowser.cpp
+# ${CMAKE_CURRENT_BINARY_DIR}/qtpropertymanager.moc
+# ${CMAKE_CURRENT_BINARY_DIR}/qteditorfactory.moc
+# ${CMAKE_CURRENT_BINARY_DIR}/qttreepropertybrowser.moc
+#)
+#
+#set_source_files_properties(
+# ${qtpropertyeditor_HEADERS_ONLY_MOC}
+# PROPERTIES
+# HEADER_FILE_ONLY true
+#)
+#
+
+#set(
+# qtpropertyeditor_HEADERS_MOC
+# ${CMAKE_CURRENT_BINARY_DIR}/moc_qtpropertybrowserutils_p.cpp
+#)
+
+#set(
+# qtpropertyeditor_MOC
+# ${qtpropertyeditor_HEADERS_MOC}
+# ${qtpropertyeditor_HEADERS_ONLY_MOC}
+#)
+
+ADD_LIBRARY(qt_property_browser SHARED ${SRC}
+ ${QT_PROPERTY_EDITOR_MOC_SRC}
+ ${QT_PROPERTY_EDITOR_RC_SRCS}
+ ${CMAKE_CURRENT_BINARY_DIR}/qtpropertymanager.moc
+ ${CMAKE_CURRENT_BINARY_DIR}/qttreepropertybrowser.moc
+ ${CMAKE_CURRENT_BINARY_DIR}/qteditorfactory.moc)
+
+TARGET_LINK_LIBRARIES(qt_property_browser ${QT_LIBRARIES})
+
+ADD_DEFINITIONS(${QT_DEFINITIONS})
+ADD_DEFINITIONS(-DQT_DLL)
+ADD_DEFINITIONS(-DQT_QTPROPERTYBROWSER_EXPORT)
+ADD_DEFINITIONS(-DQT_PLUGIN)
+#ADD_DEFINITIONS(-DQT_NO_DEBUG)
+ADD_DEFINITIONS(-DQT_SHARED)
+
+NL_DEFAULT_PROPS(qt_property_browser "3rdParty: Qt Property Browser 2.5")
+NL_ADD_RUNTIME_FLAGS(qt_property_browser)
+NL_ADD_LIB_SUFFIX(qt_property_browser)
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/LGPL_EXCEPTION.txt b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/LGPL_EXCEPTION.txt
new file mode 100644
index 000000000..0b56ff1ef
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/LGPL_EXCEPTION.txt
@@ -0,0 +1,10 @@
+Nokia Qt LGPL Exception version 1.0
+
+As a special exception to the GNU Lesser General Public License
+version 2.1, the object code form of a "work that uses the Library"
+may incorporate material from a header file that is part of the
+Library. You may distribute such object code under terms of your
+choice, provided that the incorporated material (i) does not exceed
+more than 5% of the total size of the Library; and (ii) is limited to
+numerical parameters, data structure layouts, accessors, macros,
+inline functions and templates.
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/LICENSE.GPL3 b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/LICENSE.GPL3
new file mode 100644
index 000000000..94a9ed024
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/LICENSE.GPL3
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/LICENSE.LGPL b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/LICENSE.LGPL
new file mode 100644
index 000000000..5ab7695ab
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/LICENSE.LGPL
@@ -0,0 +1,504 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it. You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+ When we speak of free software, we are referring to freedom of use,
+not price. Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+ To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights. These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ To protect each distributor, we want to make it very clear that
+there is no warranty for the free library. Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+ Finally, software patents pose a constant threat to the existence of
+any free program. We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder. Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+ Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License. This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License. We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+ When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library. The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom. The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+ We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License. It also provides other free software developers Less
+of an advantage over competing non-free programs. These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries. However, the Lesser license provides advantages in certain
+special circumstances.
+
+ For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard. To achieve this, non-free programs must be
+allowed to use the library. A more frequent case is that a free
+library does the same job as widely used non-free libraries. In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+ In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software. For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+ Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (1) uses at run time a
+ copy of the library already present on the user's computer system,
+ rather than copying library functions into the executable, and (2)
+ will operate properly with a modified version of the library, if
+ the user installs one, as long as the modified version is
+ interface-compatible with the version that the work was made with.
+
+ c) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ d) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ e) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ 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; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ 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
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ , 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it!
+
+
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtAbstractEditorFactoryBase b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtAbstractEditorFactoryBase
new file mode 100644
index 000000000..ab4e7104a
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtAbstractEditorFactoryBase
@@ -0,0 +1 @@
+#include "qtpropertybrowser.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtAbstractPropertyBrowser b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtAbstractPropertyBrowser
new file mode 100644
index 000000000..ab4e7104a
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtAbstractPropertyBrowser
@@ -0,0 +1 @@
+#include "qtpropertybrowser.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtAbstractPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtAbstractPropertyManager
new file mode 100644
index 000000000..ab4e7104a
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtAbstractPropertyManager
@@ -0,0 +1 @@
+#include "qtpropertybrowser.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtBoolPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtBoolPropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtBoolPropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtBrowserItem b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtBrowserItem
new file mode 100644
index 000000000..ab4e7104a
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtBrowserItem
@@ -0,0 +1 @@
+#include "qtpropertybrowser.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtButtonPropertyBrowser b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtButtonPropertyBrowser
new file mode 100644
index 000000000..56e089704
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtButtonPropertyBrowser
@@ -0,0 +1 @@
+#include "qtbuttonpropertybrowser.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtCharEditorFactory b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtCharEditorFactory
new file mode 100644
index 000000000..75f35adab
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtCharEditorFactory
@@ -0,0 +1 @@
+#include "qteditorfactory.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtCharPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtCharPropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtCharPropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtCheckBoxFactory b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtCheckBoxFactory
new file mode 100644
index 000000000..75f35adab
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtCheckBoxFactory
@@ -0,0 +1 @@
+#include "qteditorfactory.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtColorEditorFactory b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtColorEditorFactory
new file mode 100644
index 000000000..75f35adab
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtColorEditorFactory
@@ -0,0 +1 @@
+#include "qteditorfactory.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtColorPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtColorPropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtColorPropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtCursorEditorFactory b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtCursorEditorFactory
new file mode 100644
index 000000000..75f35adab
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtCursorEditorFactory
@@ -0,0 +1 @@
+#include "qteditorfactory.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtCursorPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtCursorPropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtCursorPropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDateEditFactory b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDateEditFactory
new file mode 100644
index 000000000..75f35adab
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDateEditFactory
@@ -0,0 +1 @@
+#include "qteditorfactory.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDatePropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDatePropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDatePropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDateTimeEditFactory b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDateTimeEditFactory
new file mode 100644
index 000000000..75f35adab
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDateTimeEditFactory
@@ -0,0 +1 @@
+#include "qteditorfactory.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDateTimePropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDateTimePropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDateTimePropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDoublePropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDoublePropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDoublePropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDoubleSpinBoxFactory b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDoubleSpinBoxFactory
new file mode 100644
index 000000000..75f35adab
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtDoubleSpinBoxFactory
@@ -0,0 +1 @@
+#include "qteditorfactory.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtEnumEditorFactory b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtEnumEditorFactory
new file mode 100644
index 000000000..75f35adab
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtEnumEditorFactory
@@ -0,0 +1 @@
+#include "qteditorfactory.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtEnumPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtEnumPropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtEnumPropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtFlagPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtFlagPropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtFlagPropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtFontEditorFactory b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtFontEditorFactory
new file mode 100644
index 000000000..75f35adab
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtFontEditorFactory
@@ -0,0 +1 @@
+#include "qteditorfactory.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtFontPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtFontPropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtFontPropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtGroupBoxPropertyBrowser b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtGroupBoxPropertyBrowser
new file mode 100644
index 000000000..27964c080
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtGroupBoxPropertyBrowser
@@ -0,0 +1 @@
+#include "qtgroupboxpropertybrowser.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtGroupPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtGroupPropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtGroupPropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtIntPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtIntPropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtIntPropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtKeySequenceEditorFactory b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtKeySequenceEditorFactory
new file mode 100644
index 000000000..75f35adab
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtKeySequenceEditorFactory
@@ -0,0 +1 @@
+#include "qteditorfactory.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtKeySequencePropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtKeySequencePropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtKeySequencePropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtLineEditFactory b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtLineEditFactory
new file mode 100644
index 000000000..75f35adab
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtLineEditFactory
@@ -0,0 +1 @@
+#include "qteditorfactory.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtLocalePropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtLocalePropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtLocalePropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtPointFPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtPointFPropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtPointFPropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtPointPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtPointPropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtPointPropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtProperty b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtProperty
new file mode 100644
index 000000000..ab4e7104a
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtProperty
@@ -0,0 +1 @@
+#include "qtpropertybrowser.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtRectFPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtRectFPropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtRectFPropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtRectPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtRectPropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtRectPropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtScrollBarFactory b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtScrollBarFactory
new file mode 100644
index 000000000..75f35adab
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtScrollBarFactory
@@ -0,0 +1 @@
+#include "qteditorfactory.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtSizeFPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtSizeFPropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtSizeFPropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtSizePolicyPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtSizePolicyPropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtSizePolicyPropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtSizePropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtSizePropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtSizePropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtSliderFactory b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtSliderFactory
new file mode 100644
index 000000000..75f35adab
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtSliderFactory
@@ -0,0 +1 @@
+#include "qteditorfactory.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtSpinBoxFactory b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtSpinBoxFactory
new file mode 100644
index 000000000..75f35adab
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtSpinBoxFactory
@@ -0,0 +1 @@
+#include "qteditorfactory.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtStringPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtStringPropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtStringPropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtTimeEditFactory b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtTimeEditFactory
new file mode 100644
index 000000000..75f35adab
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtTimeEditFactory
@@ -0,0 +1 @@
+#include "qteditorfactory.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtTimePropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtTimePropertyManager
new file mode 100644
index 000000000..1842e431d
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtTimePropertyManager
@@ -0,0 +1 @@
+#include "qtpropertymanager.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtTreePropertyBrowser b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtTreePropertyBrowser
new file mode 100644
index 000000000..aab106c75
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtTreePropertyBrowser
@@ -0,0 +1 @@
+#include "qttreepropertybrowser.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtVariantEditorFactory b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtVariantEditorFactory
new file mode 100644
index 000000000..8118190d5
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtVariantEditorFactory
@@ -0,0 +1 @@
+#include "qtvariantproperty.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtVariantProperty b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtVariantProperty
new file mode 100644
index 000000000..8118190d5
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtVariantProperty
@@ -0,0 +1 @@
+#include "qtvariantproperty.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtVariantPropertyManager b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtVariantPropertyManager
new file mode 100644
index 000000000..8118190d5
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/QtVariantPropertyManager
@@ -0,0 +1 @@
+#include "qtvariantproperty.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/README.TXT b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/README.TXT
new file mode 100644
index 000000000..d9452cfc1
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/README.TXT
@@ -0,0 +1,19 @@
+Property Browser v2.5
+
+A property browser framework enabling the user to edit a set of
+properties.
+
+The framework provides a browser widget that displays the given
+properties with labels and corresponding editing widgets (e.g.
+line edits or comboboxes). The various types of editing widgets
+are provided by the framework's editor factories: For each
+property type, the framework provides a property manager (e.g.
+QtIntPropertyManager and QtStringPropertyManager) which can be
+associated with the preferred editor factory (e.g.
+QtSpinBoxFactory and QtLineEditFactory). The framework also
+provides a variant based property type with corresponding variant
+manager and factory. Finally, the framework provides three
+ready-made implementations of the browser widget:
+QtTreePropertyBrowser, QtButtonPropertyBrowser and
+QtGroupBoxPropertyBrowser.
+
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-arrow.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-arrow.png
new file mode 100644
index 000000000..a69ef4eb6
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-arrow.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-busy.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-busy.png
new file mode 100644
index 000000000..53717e499
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-busy.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-closedhand.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-closedhand.png
new file mode 100644
index 000000000..b78dd1dac
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-closedhand.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-cross.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-cross.png
new file mode 100644
index 000000000..fe38e7448
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-cross.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-forbidden.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-forbidden.png
new file mode 100644
index 000000000..2b08c4e2a
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-forbidden.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-hand.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-hand.png
new file mode 100644
index 000000000..d2004aefa
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-hand.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-hsplit.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-hsplit.png
new file mode 100644
index 000000000..a5667e3ff
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-hsplit.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-ibeam.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-ibeam.png
new file mode 100644
index 000000000..097fc5fa7
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-ibeam.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-openhand.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-openhand.png
new file mode 100644
index 000000000..9181c859e
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-openhand.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-sizeall.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-sizeall.png
new file mode 100644
index 000000000..69f13eb34
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-sizeall.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-sizeb.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-sizeb.png
new file mode 100644
index 000000000..f37d7b91e
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-sizeb.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-sizef.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-sizef.png
new file mode 100644
index 000000000..3b127a05d
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-sizef.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-sizeh.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-sizeh.png
new file mode 100644
index 000000000..a9f40cbc3
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-sizeh.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-sizev.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-sizev.png
new file mode 100644
index 000000000..1edbab27a
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-sizev.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-uparrow.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-uparrow.png
new file mode 100644
index 000000000..d3e70ef4c
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-uparrow.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-vsplit.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-vsplit.png
new file mode 100644
index 000000000..1beda2570
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-vsplit.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-wait.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-wait.png
new file mode 100644
index 000000000..69056c479
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-wait.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-whatsthis.png b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-whatsthis.png
new file mode 100644
index 000000000..b47601c37
Binary files /dev/null and b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/images/cursor-whatsthis.png differ
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/qtbuttonpropertybrowser.cpp b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/qtbuttonpropertybrowser.cpp
new file mode 100644
index 000000000..d5ebd4fc2
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/qtbuttonpropertybrowser.cpp
@@ -0,0 +1,676 @@
+/****************************************************************************
+**
+** This file is part of a Qt Solutions component.
+**
+** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: Qt Software Information (qt-info@nokia.com)
+**
+** Commercial Usage
+** Licensees holding valid Qt Commercial licenses may use this file in
+** accordance with the Qt Solutions Commercial License Agreement provided
+** with the Software or, alternatively, in accordance with the terms
+** contained in a written agreement between you and Nokia.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain
+** additional rights. These rights are described in the Nokia Qt LGPL
+** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+** package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+** Please note Third Party Software included with Qt Solutions may impose
+** additional restrictions and it is the user's responsibility to ensure
+** that they have met the licensing requirements of the GPL, LGPL, or Qt
+** Solutions Commercial license and the relevant license of the Third
+** Party Software they are using.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at qt-sales@nokia.com.
+**
+****************************************************************************/
+
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Qt Software Information (qt-info@nokia.com)
+**
+** This file is part of the tools applications of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the either Technology Preview License Agreement or the
+** Beta Release License Agreement.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain
+** additional rights. These rights are described in the Nokia Qt LGPL
+** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+** package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at qt-sales@nokia.com.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "qtbuttonpropertybrowser.h"
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+#if QT_VERSION >= 0x040400
+QT_BEGIN_NAMESPACE
+#endif
+
+class QtButtonPropertyBrowserPrivate
+{
+ QtButtonPropertyBrowser *q_ptr;
+ Q_DECLARE_PUBLIC(QtButtonPropertyBrowser)
+public:
+
+ void init(QWidget *parent);
+
+ void propertyInserted(QtBrowserItem *index, QtBrowserItem *afterIndex);
+ void propertyRemoved(QtBrowserItem *index);
+ void propertyChanged(QtBrowserItem *index);
+ QWidget *createEditor(QtProperty *property, QWidget *parent) const
+ { return q_ptr->createEditor(property, parent); }
+
+ void slotEditorDestroyed();
+ void slotUpdate();
+ void slotToggled(bool checked);
+
+ struct WidgetItem
+ {
+ WidgetItem() : widget(0), label(0), widgetLabel(0),
+ button(0), container(0), layout(0), /*line(0), */parent(0), expanded(false) { }
+ QWidget *widget; // can be null
+ QLabel *label; // main label with property name
+ QLabel *widgetLabel; // label substitute showing the current value if there is no widget
+ QToolButton *button; // expandable button for items with children
+ QWidget *container; // container which is expanded when the button is clicked
+ QGridLayout *layout; // layout in container
+ WidgetItem *parent;
+ QList children;
+ bool expanded;
+ };
+private:
+ void updateLater();
+ void updateItem(WidgetItem *item);
+ void insertRow(QGridLayout *layout, int row) const;
+ void removeRow(QGridLayout *layout, int row) const;
+ int gridRow(WidgetItem *item) const;
+ int gridSpan(WidgetItem *item) const;
+ void setExpanded(WidgetItem *item, bool expanded);
+ QToolButton *createButton(QWidget *panret = 0) const;
+
+ QMap m_indexToItem;
+ QMap m_itemToIndex;
+ QMap m_widgetToItem;
+ QMap m_buttonToItem;
+ QGridLayout *m_mainLayout;
+ QList m_children;
+ QList m_recreateQueue;
+};
+
+QToolButton *QtButtonPropertyBrowserPrivate::createButton(QWidget *parent) const
+{
+ QToolButton *button = new QToolButton(parent);
+ button->setCheckable(true);
+ button->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed));
+ button->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
+ button->setArrowType(Qt::DownArrow);
+ button->setIconSize(QSize(3, 16));
+ /*
+ QIcon icon;
+ icon.addPixmap(q_ptr->style()->standardPixmap(QStyle::SP_ArrowDown), QIcon::Normal, QIcon::Off);
+ icon.addPixmap(q_ptr->style()->standardPixmap(QStyle::SP_ArrowUp), QIcon::Normal, QIcon::On);
+ button->setIcon(icon);
+ */
+ return button;
+}
+
+int QtButtonPropertyBrowserPrivate::gridRow(WidgetItem *item) const
+{
+ QList siblings;
+ if (item->parent)
+ siblings = item->parent->children;
+ else
+ siblings = m_children;
+
+ int row = 0;
+ QListIterator it(siblings);
+ while (it.hasNext()) {
+ WidgetItem *sibling = it.next();
+ if (sibling == item)
+ return row;
+ row += gridSpan(sibling);
+ }
+ return -1;
+}
+
+int QtButtonPropertyBrowserPrivate::gridSpan(WidgetItem *item) const
+{
+ if (item->container && item->expanded)
+ return 2;
+ return 1;
+}
+
+void QtButtonPropertyBrowserPrivate::init(QWidget *parent)
+{
+ m_mainLayout = new QGridLayout();
+ parent->setLayout(m_mainLayout);
+ QLayoutItem *item = new QSpacerItem(0, 0,
+ QSizePolicy::Fixed, QSizePolicy::Expanding);
+ m_mainLayout->addItem(item, 0, 0);
+}
+
+void QtButtonPropertyBrowserPrivate::slotEditorDestroyed()
+{
+ QWidget *editor = qobject_cast(q_ptr->sender());
+ if (!editor)
+ return;
+ if (!m_widgetToItem.contains(editor))
+ return;
+ m_widgetToItem[editor]->widget = 0;
+ m_widgetToItem.remove(editor);
+}
+
+void QtButtonPropertyBrowserPrivate::slotUpdate()
+{
+ QListIterator itItem(m_recreateQueue);
+ while (itItem.hasNext()) {
+ WidgetItem *item = itItem.next();
+
+ WidgetItem *parent = item->parent;
+ QWidget *w = 0;
+ QGridLayout *l = 0;
+ const int oldRow = gridRow(item);
+ if (parent) {
+ w = parent->container;
+ l = parent->layout;
+ } else {
+ w = q_ptr;
+ l = m_mainLayout;
+ }
+
+ int span = 1;
+ if (!item->widget && !item->widgetLabel)
+ span = 2;
+ item->label = new QLabel(w);
+ item->label->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
+ l->addWidget(item->label, oldRow, 0, 1, span);
+
+ updateItem(item);
+ }
+ m_recreateQueue.clear();
+}
+
+void QtButtonPropertyBrowserPrivate::setExpanded(WidgetItem *item, bool expanded)
+{
+ if (item->expanded == expanded)
+ return;
+
+ if (!item->container)
+ return;
+
+ item->expanded = expanded;
+ const int row = gridRow(item);
+ WidgetItem *parent = item->parent;
+ QGridLayout *l = 0;
+ if (parent)
+ l = parent->layout;
+ else
+ l = m_mainLayout;
+
+ if (expanded) {
+ insertRow(l, row + 1);
+ l->addWidget(item->container, row + 1, 0, 1, 2);
+ item->container->show();
+ } else {
+ l->removeWidget(item->container);
+ item->container->hide();
+ removeRow(l, row + 1);
+ }
+
+ item->button->setChecked(expanded);
+ item->button->setArrowType(expanded ? Qt::UpArrow : Qt::DownArrow);
+}
+
+void QtButtonPropertyBrowserPrivate::slotToggled(bool checked)
+{
+ WidgetItem *item = m_buttonToItem.value(q_ptr->sender());
+ if (!item)
+ return;
+
+ setExpanded(item, checked);
+
+ if (checked)
+ emit q_ptr->expanded(m_itemToIndex.value(item));
+ else
+ emit q_ptr->collapsed(m_itemToIndex.value(item));
+}
+
+void QtButtonPropertyBrowserPrivate::updateLater()
+{
+ QTimer::singleShot(0, q_ptr, SLOT(slotUpdate()));
+}
+
+void QtButtonPropertyBrowserPrivate::propertyInserted(QtBrowserItem *index, QtBrowserItem *afterIndex)
+{
+ WidgetItem *afterItem = m_indexToItem.value(afterIndex);
+ WidgetItem *parentItem = m_indexToItem.value(index->parent());
+
+ WidgetItem *newItem = new WidgetItem();
+ newItem->parent = parentItem;
+
+ QGridLayout *layout = 0;
+ QWidget *parentWidget = 0;
+ int row = -1;
+ if (!afterItem) {
+ row = 0;
+ if (parentItem)
+ parentItem->children.insert(0, newItem);
+ else
+ m_children.insert(0, newItem);
+ } else {
+ row = gridRow(afterItem) + gridSpan(afterItem);
+ if (parentItem)
+ parentItem->children.insert(parentItem->children.indexOf(afterItem) + 1, newItem);
+ else
+ m_children.insert(m_children.indexOf(afterItem) + 1, newItem);
+ }
+
+ if (!parentItem) {
+ layout = m_mainLayout;
+ parentWidget = q_ptr;
+ } else {
+ if (!parentItem->container) {
+ m_recreateQueue.removeAll(parentItem);
+ WidgetItem *grandParent = parentItem->parent;
+ QWidget *w = 0;
+ QGridLayout *l = 0;
+ const int oldRow = gridRow(parentItem);
+ if (grandParent) {
+ w = grandParent->container;
+ l = grandParent->layout;
+ } else {
+ w = q_ptr;
+ l = m_mainLayout;
+ }
+ QFrame *container = new QFrame();
+ container->setFrameShape(QFrame::Panel);
+ container->setFrameShadow(QFrame::Raised);
+ parentItem->container = container;
+ parentItem->button = createButton();
+ m_buttonToItem[parentItem->button] = parentItem;
+ q_ptr->connect(parentItem->button, SIGNAL(toggled(bool)), q_ptr, SLOT(slotToggled(bool)));
+ parentItem->layout = new QGridLayout();
+ container->setLayout(parentItem->layout);
+ if (parentItem->label) {
+ l->removeWidget(parentItem->label);
+ delete parentItem->label;
+ parentItem->label = 0;
+ }
+ int span = 1;
+ if (!parentItem->widget && !parentItem->widgetLabel)
+ span = 2;
+ l->addWidget(parentItem->button, oldRow, 0, 1, span);
+ updateItem(parentItem);
+ }
+ layout = parentItem->layout;
+ parentWidget = parentItem->container;
+ }
+
+ newItem->label = new QLabel(parentWidget);
+ newItem->label->setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
+ newItem->widget = createEditor(index->property(), parentWidget);
+ if (newItem->widget) {
+ QObject::connect(newItem->widget, SIGNAL(destroyed()), q_ptr, SLOT(slotEditorDestroyed()));
+ m_widgetToItem[newItem->widget] = newItem;
+ } else if (index->property()->hasValue()) {
+ newItem->widgetLabel = new QLabel(parentWidget);
+ newItem->widgetLabel->setSizePolicy(QSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed));
+ }
+
+ insertRow(layout, row);
+ int span = 1;
+ if (newItem->widget)
+ layout->addWidget(newItem->widget, row, 1);
+ else if (newItem->widgetLabel)
+ layout->addWidget(newItem->widgetLabel, row, 1);
+ else
+ span = 2;
+ layout->addWidget(newItem->label, row, 0, span, 1);
+
+ m_itemToIndex[newItem] = index;
+ m_indexToItem[index] = newItem;
+
+ updateItem(newItem);
+}
+
+void QtButtonPropertyBrowserPrivate::propertyRemoved(QtBrowserItem *index)
+{
+ WidgetItem *item = m_indexToItem.value(index);
+
+ m_indexToItem.remove(index);
+ m_itemToIndex.remove(item);
+
+ WidgetItem *parentItem = item->parent;
+
+ const int row = gridRow(item);
+
+ if (parentItem)
+ parentItem->children.removeAt(parentItem->children.indexOf(item));
+ else
+ m_children.removeAt(m_children.indexOf(item));
+
+ const int colSpan = gridSpan(item);
+
+ m_buttonToItem.remove(item->button);
+
+ if (item->widget)
+ delete item->widget;
+ if (item->label)
+ delete item->label;
+ if (item->widgetLabel)
+ delete item->widgetLabel;
+ if (item->button)
+ delete item->button;
+ if (item->container)
+ delete item->container;
+
+ if (!parentItem) {
+ removeRow(m_mainLayout, row);
+ if (colSpan > 1)
+ removeRow(m_mainLayout, row);
+ } else if (parentItem->children.count() != 0) {
+ removeRow(parentItem->layout, row);
+ if (colSpan > 1)
+ removeRow(parentItem->layout, row);
+ } else {
+ const WidgetItem *grandParent = parentItem->parent;
+ QGridLayout *l = 0;
+ if (grandParent) {
+ l = grandParent->layout;
+ } else {
+ l = m_mainLayout;
+ }
+
+ const int parentRow = gridRow(parentItem);
+ const int parentSpan = gridSpan(parentItem);
+
+ l->removeWidget(parentItem->button);
+ l->removeWidget(parentItem->container);
+ delete parentItem->button;
+ delete parentItem->container;
+ parentItem->button = 0;
+ parentItem->container = 0;
+ parentItem->layout = 0;
+ if (!m_recreateQueue.contains(parentItem))
+ m_recreateQueue.append(parentItem);
+ if (parentSpan > 1)
+ removeRow(l, parentRow + 1);
+
+ updateLater();
+ }
+ m_recreateQueue.removeAll(item);
+
+ delete item;
+}
+
+void QtButtonPropertyBrowserPrivate::insertRow(QGridLayout *layout, int row) const
+{
+ QMap itemToPos;
+ int idx = 0;
+ while (idx < layout->count()) {
+ int r, c, rs, cs;
+ layout->getItemPosition(idx, &r, &c, &rs, &cs);
+ if (r >= row) {
+ itemToPos[layout->takeAt(idx)] = QRect(r + 1, c, rs, cs);
+ } else {
+ idx++;
+ }
+ }
+
+ const QMap::ConstIterator icend = itemToPos.constEnd();
+ for(QMap::ConstIterator it = itemToPos.constBegin(); it != icend; ++it) {
+ const QRect r = it.value();
+ layout->addItem(it.key(), r.x(), r.y(), r.width(), r.height());
+ }
+}
+
+void QtButtonPropertyBrowserPrivate::removeRow(QGridLayout *layout, int row) const
+{
+ QMap itemToPos;
+ int idx = 0;
+ while (idx < layout->count()) {
+ int r, c, rs, cs;
+ layout->getItemPosition(idx, &r, &c, &rs, &cs);
+ if (r > row) {
+ itemToPos[layout->takeAt(idx)] = QRect(r - 1, c, rs, cs);
+ } else {
+ idx++;
+ }
+ }
+
+ const QMap::ConstIterator icend = itemToPos.constEnd();
+ for(QMap::ConstIterator it = itemToPos.constBegin(); it != icend; ++it) {
+ const QRect r = it.value();
+ layout->addItem(it.key(), r.x(), r.y(), r.width(), r.height());
+ }
+}
+
+void QtButtonPropertyBrowserPrivate::propertyChanged(QtBrowserItem *index)
+{
+ WidgetItem *item = m_indexToItem.value(index);
+
+ updateItem(item);
+}
+
+void QtButtonPropertyBrowserPrivate::updateItem(WidgetItem *item)
+{
+ QtProperty *property = m_itemToIndex[item]->property();
+ if (item->button) {
+ QFont font = item->button->font();
+ font.setUnderline(property->isModified());
+ item->button->setFont(font);
+ item->button->setText(property->propertyName());
+ item->button->setToolTip(property->toolTip());
+ item->button->setStatusTip(property->statusTip());
+ item->button->setWhatsThis(property->whatsThis());
+ item->button->setEnabled(property->isEnabled());
+ }
+ if (item->label) {
+ QFont font = item->label->font();
+ font.setUnderline(property->isModified());
+ item->label->setFont(font);
+ item->label->setText(property->propertyName());
+ item->label->setToolTip(property->toolTip());
+ item->label->setStatusTip(property->statusTip());
+ item->label->setWhatsThis(property->whatsThis());
+ item->label->setEnabled(property->isEnabled());
+ }
+ if (item->widgetLabel) {
+ QFont font = item->widgetLabel->font();
+ font.setUnderline(false);
+ item->widgetLabel->setFont(font);
+ item->widgetLabel->setText(property->valueText());
+ item->widgetLabel->setToolTip(property->valueText());
+ item->widgetLabel->setEnabled(property->isEnabled());
+ }
+ if (item->widget) {
+ QFont font = item->widget->font();
+ font.setUnderline(false);
+ item->widget->setFont(font);
+ item->widget->setEnabled(property->isEnabled());
+ item->widget->setToolTip(property->valueText());
+ }
+}
+
+
+
+/*!
+ \class QtButtonPropertyBrowser
+
+ \brief The QtButtonPropertyBrowser class provides a drop down QToolButton
+ based property browser.
+
+ A property browser is a widget that enables the user to edit a
+ given set of properties. Each property is represented by a label
+ specifying the property's name, and an editing widget (e.g. a line
+ edit or a combobox) holding its value. A property can have zero or
+ more subproperties.
+
+ QtButtonPropertyBrowser provides drop down button for all nested
+ properties, i.e. subproperties are enclosed by a container associated with
+ the drop down button. The parent property's name is displayed as button text. For example:
+
+ \image qtbuttonpropertybrowser.png
+
+ Use the QtAbstractPropertyBrowser API to add, insert and remove
+ properties from an instance of the QtButtonPropertyBrowser
+ class. The properties themselves are created and managed by
+ implementations of the QtAbstractPropertyManager class.
+
+ \sa QtTreePropertyBrowser, QtAbstractPropertyBrowser
+*/
+
+/*!
+ \fn void QtButtonPropertyBrowser::collapsed(QtBrowserItem *item)
+
+ This signal is emitted when the \a item is collapsed.
+
+ \sa expanded(), setExpanded()
+*/
+
+/*!
+ \fn void QtButtonPropertyBrowser::expanded(QtBrowserItem *item)
+
+ This signal is emitted when the \a item is expanded.
+
+ \sa collapsed(), setExpanded()
+*/
+
+/*!
+ Creates a property browser with the given \a parent.
+*/
+QtButtonPropertyBrowser::QtButtonPropertyBrowser(QWidget *parent)
+ : QtAbstractPropertyBrowser(parent)
+{
+ d_ptr = new QtButtonPropertyBrowserPrivate;
+ d_ptr->q_ptr = this;
+
+ d_ptr->init(this);
+}
+
+/*!
+ Destroys this property browser.
+
+ Note that the properties that were inserted into this browser are
+ \e not destroyed since they may still be used in other
+ browsers. The properties are owned by the manager that created
+ them.
+
+ \sa QtProperty, QtAbstractPropertyManager
+*/
+QtButtonPropertyBrowser::~QtButtonPropertyBrowser()
+{
+ const QMap::ConstIterator icend = d_ptr->m_itemToIndex.constEnd();
+ for (QMap::ConstIterator it = d_ptr->m_itemToIndex.constBegin(); it != icend; ++it)
+ delete it.key();
+ delete d_ptr;
+}
+
+/*!
+ \reimp
+*/
+void QtButtonPropertyBrowser::itemInserted(QtBrowserItem *item, QtBrowserItem *afterItem)
+{
+ d_ptr->propertyInserted(item, afterItem);
+}
+
+/*!
+ \reimp
+*/
+void QtButtonPropertyBrowser::itemRemoved(QtBrowserItem *item)
+{
+ d_ptr->propertyRemoved(item);
+}
+
+/*!
+ \reimp
+*/
+void QtButtonPropertyBrowser::itemChanged(QtBrowserItem *item)
+{
+ d_ptr->propertyChanged(item);
+}
+
+/*!
+ Sets the \a item to either collapse or expanded, depending on the value of \a expanded.
+
+ \sa isExpanded(), expanded(), collapsed()
+*/
+
+void QtButtonPropertyBrowser::setExpanded(QtBrowserItem *item, bool expanded)
+{
+ QtButtonPropertyBrowserPrivate::WidgetItem *itm = d_ptr->m_indexToItem.value(item);
+ if (itm)
+ d_ptr->setExpanded(itm, expanded);
+}
+
+/*!
+ Returns true if the \a item is expanded; otherwise returns false.
+
+ \sa setExpanded()
+*/
+
+bool QtButtonPropertyBrowser::isExpanded(QtBrowserItem *item) const
+{
+ QtButtonPropertyBrowserPrivate::WidgetItem *itm = d_ptr->m_indexToItem.value(item);
+ if (itm)
+ return itm->expanded;
+ return false;
+}
+
+#if QT_VERSION >= 0x040400
+QT_END_NAMESPACE
+#endif
+
+#include "moc_qtbuttonpropertybrowser.cxx"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/qtbuttonpropertybrowser.h b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/qtbuttonpropertybrowser.h
new file mode 100644
index 000000000..518e047e8
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/qtbuttonpropertybrowser.h
@@ -0,0 +1,135 @@
+/****************************************************************************
+**
+** This file is part of a Qt Solutions component.
+**
+** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: Qt Software Information (qt-info@nokia.com)
+**
+** Commercial Usage
+** Licensees holding valid Qt Commercial licenses may use this file in
+** accordance with the Qt Solutions Commercial License Agreement provided
+** with the Software or, alternatively, in accordance with the terms
+** contained in a written agreement between you and Nokia.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain
+** additional rights. These rights are described in the Nokia Qt LGPL
+** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+** package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+** Please note Third Party Software included with Qt Solutions may impose
+** additional restrictions and it is the user's responsibility to ensure
+** that they have met the licensing requirements of the GPL, LGPL, or Qt
+** Solutions Commercial license and the relevant license of the Third
+** Party Software they are using.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at qt-sales@nokia.com.
+**
+****************************************************************************/
+
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Qt Software Information (qt-info@nokia.com)
+**
+** This file is part of the tools applications of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the either Technology Preview License Agreement or the
+** Beta Release License Agreement.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain
+** additional rights. These rights are described in the Nokia Qt LGPL
+** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+** package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at qt-sales@nokia.com.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef QTBUTTONPROPERTYBROWSER_H
+#define QTBUTTONPROPERTYBROWSER_H
+
+#include "qtpropertybrowser.h"
+
+#if QT_VERSION >= 0x040400
+QT_BEGIN_NAMESPACE
+#endif
+
+class QtButtonPropertyBrowserPrivate;
+
+class QT_QTPROPERTYBROWSER_EXPORT QtButtonPropertyBrowser : public QtAbstractPropertyBrowser
+{
+ Q_OBJECT
+public:
+
+ QtButtonPropertyBrowser(QWidget *parent = 0);
+ ~QtButtonPropertyBrowser();
+
+ void setExpanded(QtBrowserItem *item, bool expanded);
+ bool isExpanded(QtBrowserItem *item) const;
+
+Q_SIGNALS:
+
+ void collapsed(QtBrowserItem *item);
+ void expanded(QtBrowserItem *item);
+
+protected:
+ virtual void itemInserted(QtBrowserItem *item, QtBrowserItem *afterItem);
+ virtual void itemRemoved(QtBrowserItem *item);
+ virtual void itemChanged(QtBrowserItem *item);
+
+private:
+
+ QtButtonPropertyBrowserPrivate *d_ptr;
+ Q_DECLARE_PRIVATE(QtButtonPropertyBrowser)
+ Q_DISABLE_COPY(QtButtonPropertyBrowser)
+ Q_PRIVATE_SLOT(d_func(), void slotUpdate())
+ Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed())
+ Q_PRIVATE_SLOT(d_func(), void slotToggled(bool))
+
+};
+
+#if QT_VERSION >= 0x040400
+QT_END_NAMESPACE
+#endif
+
+#endif
diff --git a/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/qteditorfactory.cpp b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/qteditorfactory.cpp
new file mode 100644
index 000000000..e619cf8cb
--- /dev/null
+++ b/code/nel/tools/3d/object_viewer_qt/src/3rdparty/qtpropertybrowser/qteditorfactory.cpp
@@ -0,0 +1,2609 @@
+/****************************************************************************
+**
+** This file is part of a Qt Solutions component.
+**
+** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: Qt Software Information (qt-info@nokia.com)
+**
+** Commercial Usage
+** Licensees holding valid Qt Commercial licenses may use this file in
+** accordance with the Qt Solutions Commercial License Agreement provided
+** with the Software or, alternatively, in accordance with the terms
+** contained in a written agreement between you and Nokia.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain
+** additional rights. These rights are described in the Nokia Qt LGPL
+** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+** package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+** Please note Third Party Software included with Qt Solutions may impose
+** additional restrictions and it is the user's responsibility to ensure
+** that they have met the licensing requirements of the GPL, LGPL, or Qt
+** Solutions Commercial license and the relevant license of the Third
+** Party Software they are using.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at qt-sales@nokia.com.
+**
+****************************************************************************/
+
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Contact: Qt Software Information (qt-info@nokia.com)
+**
+** This file is part of the tools applications of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the either Technology Preview License Agreement or the
+** Beta Release License Agreement.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain
+** additional rights. These rights are described in the Nokia Qt LGPL
+** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
+** package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at qt-sales@nokia.com.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "qteditorfactory.h"
+#include "qtpropertybrowserutils_p.h"
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+#if defined(Q_CC_MSVC)
+# pragma warning(disable: 4786) /* MS VS 6: truncating debug info after 255 characters */
+#endif
+
+#if QT_VERSION >= 0x040400
+QT_BEGIN_NAMESPACE
+#endif
+
+// Set a hard coded left margin to account for the indentation
+// of the tree view icon when switching to an editor
+
+static inline void setupTreeViewEditorMargin(QLayout *lt)
+{
+ enum { DecorationMargin = 4 };
+ if (QApplication::layoutDirection() == Qt::LeftToRight)
+ lt->setContentsMargins(DecorationMargin, 0, 0, 0);
+ else
+ lt->setContentsMargins(0, 0, DecorationMargin, 0);
+}
+
+// ---------- EditorFactoryPrivate :
+// Base class for editor factory private classes. Manages mapping of properties to editors and vice versa.
+
+template
+class EditorFactoryPrivate
+{
+public:
+
+ typedef QList EditorList;
+ typedef QMap PropertyToEditorListMap;
+ typedef QMap EditorToPropertyMap;
+
+ Editor *createEditor(QtProperty *property, QWidget *parent);
+ void initializeEditor(QtProperty *property, Editor *e);
+ void slotEditorDestroyed(QObject *object);
+
+ PropertyToEditorListMap m_createdEditors;
+ EditorToPropertyMap m_editorToProperty;
+};
+
+template
+Editor *EditorFactoryPrivate::createEditor(QtProperty *property, QWidget *parent)
+{
+ Editor *editor = new Editor(parent);
+ initializeEditor(property, editor);
+ return editor;
+}
+
+template
+void EditorFactoryPrivate::initializeEditor(QtProperty *property, Editor *editor)
+{
+ Q_TYPENAME PropertyToEditorListMap::iterator it = m_createdEditors.find(property);
+ if (it == m_createdEditors.end())
+ it = m_createdEditors.insert(property, EditorList());
+ it.value().append(editor);
+ m_editorToProperty.insert(editor, property);
+}
+
+template
+void EditorFactoryPrivate::slotEditorDestroyed(QObject *object)
+{
+ const Q_TYPENAME EditorToPropertyMap::iterator ecend = m_editorToProperty.end();
+ for (Q_TYPENAME EditorToPropertyMap::iterator itEditor = m_editorToProperty.begin(); itEditor != ecend; ++itEditor) {
+ if (itEditor.key() == object) {
+ Editor *editor = itEditor.key();
+ QtProperty *property = itEditor.value();
+ const Q_TYPENAME PropertyToEditorListMap::iterator pit = m_createdEditors.find(property);
+ if (pit != m_createdEditors.end()) {
+ pit.value().removeAll(editor);
+ if (pit.value().empty())
+ m_createdEditors.erase(pit);
+ }
+ m_editorToProperty.erase(itEditor);
+ return;
+ }
+ }
+}
+
+// ------------ QtSpinBoxFactory
+
+class QtSpinBoxFactoryPrivate : public EditorFactoryPrivate
+{
+ QtSpinBoxFactory *q_ptr;
+ Q_DECLARE_PUBLIC(QtSpinBoxFactory)
+public:
+
+ void slotPropertyChanged(QtProperty *property, int value);
+ void slotRangeChanged(QtProperty *property, int min, int max);
+ void slotSingleStepChanged(QtProperty *property, int step);
+ void slotSetValue(int value);
+};
+
+void QtSpinBoxFactoryPrivate::slotPropertyChanged(QtProperty *property, int value)
+{
+ if (!m_createdEditors.contains(property))
+ return;
+ QListIterator itEditor(m_createdEditors[property]);
+ while (itEditor.hasNext()) {
+ QSpinBox *editor = itEditor.next();
+ if (editor->value() != value) {
+ editor->blockSignals(true);
+ editor->setValue(value);
+ editor->blockSignals(false);
+ }
+ }
+}
+
+void QtSpinBoxFactoryPrivate::slotRangeChanged(QtProperty *property, int min, int max)
+{
+ if (!m_createdEditors.contains(property))
+ return;
+
+ QtIntPropertyManager *manager = q_ptr->propertyManager(property);
+ if (!manager)
+ return;
+
+ QListIterator itEditor(m_createdEditors[property]);
+ while (itEditor.hasNext()) {
+ QSpinBox *editor = itEditor.next();
+ editor->blockSignals(true);
+ editor->setRange(min, max);
+ editor->setValue(manager->value(property));
+ editor->blockSignals(false);
+ }
+}
+
+void QtSpinBoxFactoryPrivate::slotSingleStepChanged(QtProperty *property, int step)
+{
+ if (!m_createdEditors.contains(property))
+ return;
+ QListIterator itEditor(m_createdEditors[property]);
+ while (itEditor.hasNext()) {
+ QSpinBox *editor = itEditor.next();
+ editor->blockSignals(true);
+ editor->setSingleStep(step);
+ editor->blockSignals(false);
+ }
+}
+
+void QtSpinBoxFactoryPrivate::slotSetValue(int value)
+{
+ QObject *object = q_ptr->sender();
+ const QMap::ConstIterator ecend = m_editorToProperty.constEnd();
+ for (QMap::ConstIterator itEditor = m_editorToProperty.constBegin(); itEditor != ecend; ++itEditor) {
+ if (itEditor.key() == object) {
+ QtProperty *property = itEditor.value();
+ QtIntPropertyManager *manager = q_ptr->propertyManager(property);
+ if (!manager)
+ return;
+ manager->setValue(property, value);
+ return;
+ }
+ }
+}
+
+/*!
+ \class QtSpinBoxFactory
+
+ \brief The QtSpinBoxFactory class provides QSpinBox widgets for
+ properties created by QtIntPropertyManager objects.
+
+ \sa QtAbstractEditorFactory, QtIntPropertyManager
+*/
+
+/*!
+ Creates a factory with the given \a parent.
+*/
+QtSpinBoxFactory::QtSpinBoxFactory(QObject *parent)
+ : QtAbstractEditorFactory(parent)
+{
+ d_ptr = new QtSpinBoxFactoryPrivate();
+ d_ptr->q_ptr = this;
+
+}
+
+/*!
+ Destroys this factory, and all the widgets it has created.
+*/
+QtSpinBoxFactory::~QtSpinBoxFactory()
+{
+ qDeleteAll(d_ptr->m_editorToProperty.keys());
+ delete d_ptr;
+}
+
+/*!
+ \internal
+
+ Reimplemented from the QtAbstractEditorFactory class.
+*/
+void QtSpinBoxFactory::connectPropertyManager(QtIntPropertyManager *manager)
+{
+ connect(manager, SIGNAL(valueChanged(QtProperty *, int)),
+ this, SLOT(slotPropertyChanged(QtProperty *, int)));
+ connect(manager, SIGNAL(rangeChanged(QtProperty *, int, int)),
+ this, SLOT(slotRangeChanged(QtProperty *, int, int)));
+ connect(manager, SIGNAL(singleStepChanged(QtProperty *, int)),
+ this, SLOT(slotSingleStepChanged(QtProperty *, int)));
+}
+
+/*!
+ \internal
+
+ Reimplemented from the QtAbstractEditorFactory class.
+*/
+QWidget *QtSpinBoxFactory::createEditor(QtIntPropertyManager *manager, QtProperty *property,
+ QWidget *parent)
+{
+ QSpinBox *editor = d_ptr->createEditor(property, parent);
+ editor->setSingleStep(manager->singleStep(property));
+ editor->setRange(manager->minimum(property), manager->maximum(property));
+ editor->setValue(manager->value(property));
+ editor->setKeyboardTracking(false);
+
+ connect(editor, SIGNAL(valueChanged(int)), this, SLOT(slotSetValue(int)));
+ connect(editor, SIGNAL(destroyed(QObject *)),
+ this, SLOT(slotEditorDestroyed(QObject *)));
+ return editor;
+}
+
+/*!
+ \internal
+
+ Reimplemented from the QtAbstractEditorFactory class.
+*/
+void QtSpinBoxFactory::disconnectPropertyManager(QtIntPropertyManager *manager)
+{
+ disconnect(manager, SIGNAL(valueChanged(QtProperty *, int)),
+ this, SLOT(slotPropertyChanged(QtProperty *, int)));
+ disconnect(manager, SIGNAL(rangeChanged(QtProperty *, int, int)),
+ this, SLOT(slotRangeChanged(QtProperty *, int, int)));
+ disconnect(manager, SIGNAL(singleStepChanged(QtProperty *, int)),
+ this, SLOT(slotSingleStepChanged(QtProperty *, int)));
+}
+
+// QtSliderFactory
+
+class QtSliderFactoryPrivate : public EditorFactoryPrivate
+{
+ QtSliderFactory *q_ptr;
+ Q_DECLARE_PUBLIC(QtSliderFactory)
+public:
+ void slotPropertyChanged(QtProperty *property, int value);
+ void slotRangeChanged(QtProperty *property, int min, int max);
+ void slotSingleStepChanged(QtProperty *property, int step);
+ void slotSetValue(int value);
+};
+
+void QtSliderFactoryPrivate::slotPropertyChanged(QtProperty *property, int value)
+{
+ if (!m_createdEditors.contains(property))
+ return;
+ QListIterator itEditor(m_createdEditors[property]);
+ while (itEditor.hasNext()) {
+ QSlider *editor = itEditor.next();
+ editor->blockSignals(true);
+ editor->setValue(value);
+ editor->blockSignals(false);
+ }
+}
+
+void QtSliderFactoryPrivate::slotRangeChanged(QtProperty *property, int min, int max)
+{
+ if (!m_createdEditors.contains(property))
+ return;
+
+ QtIntPropertyManager *manager = q_ptr->propertyManager(property);
+ if (!manager)
+ return;
+
+ QListIterator itEditor(m_createdEditors[property]);
+ while (itEditor.hasNext()) {
+ QSlider *editor = itEditor.next();
+ editor->blockSignals(true);
+ editor->setRange(min, max);
+ editor->setValue(manager->value(property));
+ editor->blockSignals(false);
+ }
+}
+
+void QtSliderFactoryPrivate::slotSingleStepChanged(QtProperty *property, int step)
+{
+ if (!m_createdEditors.contains(property))
+ return;
+ QListIterator itEditor(m_createdEditors[property]);
+ while (itEditor.hasNext()) {
+ QSlider *editor = itEditor.next();
+ editor->blockSignals(true);
+ editor->setSingleStep(step);
+ editor->blockSignals(false);
+ }
+}
+
+void QtSliderFactoryPrivate::slotSetValue(int value)
+{
+ QObject *object = q_ptr->sender();
+ const QMap::ConstIterator ecend = m_editorToProperty.constEnd();
+ for (QMap::ConstIterator itEditor = m_editorToProperty.constBegin(); itEditor != ecend; ++itEditor ) {
+ if (itEditor.key() == object) {
+ QtProperty *property = itEditor.value();
+ QtIntPropertyManager *manager = q_ptr->propertyManager(property);
+ if (!manager)
+ return;
+ manager->setValue(property, value);
+ return;
+ }
+ }
+}
+
+/*!
+ \class QtSliderFactory
+
+ \brief The QtSliderFactory class provides QSlider widgets for
+ properties created by QtIntPropertyManager objects.
+
+ \sa QtAbstractEditorFactory, QtIntPropertyManager
+*/
+
+/*!
+ Creates a factory with the given \a parent.
+*/
+QtSliderFactory::QtSliderFactory(QObject *parent)
+ : QtAbstractEditorFactory(parent)
+{
+ d_ptr = new QtSliderFactoryPrivate();
+ d_ptr->q_ptr = this;
+
+}
+
+/*!
+ Destroys this factory, and all the widgets it has created.
+*/
+QtSliderFactory::~QtSliderFactory()
+{
+ qDeleteAll(d_ptr->m_editorToProperty.keys());
+ delete d_ptr;
+}
+
+/*!
+ \internal
+
+ Reimplemented from the QtAbstractEditorFactory class.
+*/
+void QtSliderFactory::connectPropertyManager(QtIntPropertyManager *manager)
+{
+ connect(manager, SIGNAL(valueChanged(QtProperty *, int)),
+ this, SLOT(slotPropertyChanged(QtProperty *, int)));
+ connect(manager, SIGNAL(rangeChanged(QtProperty *, int, int)),
+ this, SLOT(slotRangeChanged(QtProperty *, int, int)));
+ connect(manager, SIGNAL(singleStepChanged(QtProperty *, int)),
+ this, SLOT(slotSingleStepChanged(QtProperty *, int)));
+}
+
+/*!
+ \internal
+
+ Reimplemented from the QtAbstractEditorFactory class.
+*/
+QWidget *QtSliderFactory::createEditor(QtIntPropertyManager *manager, QtProperty *property,
+ QWidget *parent)
+{
+ QSlider *editor = new QSlider(Qt::Horizontal, parent);
+ d_ptr->initializeEditor(property, editor);
+ editor->setSingleStep(manager->singleStep(property));
+ editor->setRange(manager->minimum(property), manager->maximum(property));
+ editor->setValue(manager->value(property));
+
+ connect(editor, SIGNAL(valueChanged(int)), this, SLOT(slotSetValue(int)));
+ connect(editor, SIGNAL(destroyed(QObject *)),
+ this, SLOT(slotEditorDestroyed(QObject *)));
+ return editor;
+}
+
+/*!
+ \internal
+
+ Reimplemented from the QtAbstractEditorFactory class.
+*/
+void QtSliderFactory::disconnectPropertyManager(QtIntPropertyManager *manager)
+{
+ disconnect(manager, SIGNAL(valueChanged(QtProperty *, int)),
+ this, SLOT(slotPropertyChanged(QtProperty *, int)));
+ disconnect(manager, SIGNAL(rangeChanged(QtProperty *, int, int)),
+ this, SLOT(slotRangeChanged(QtProperty *, int, int)));
+ disconnect(manager, SIGNAL(singleStepChanged(QtProperty *, int)),
+ this, SLOT(slotSingleStepChanged(QtProperty *, int)));
+}
+
+// QtSliderFactory
+
+class QtScrollBarFactoryPrivate : public EditorFactoryPrivate
+{
+ QtScrollBarFactory *q_ptr;
+ Q_DECLARE_PUBLIC(QtScrollBarFactory)
+public:
+ void slotPropertyChanged(QtProperty *property, int value);
+ void slotRangeChanged(QtProperty *property, int min, int max);
+ void slotSingleStepChanged(QtProperty *property, int step);
+ void slotSetValue(int value);
+};
+
+void QtScrollBarFactoryPrivate::slotPropertyChanged(QtProperty *property, int value)
+{
+ if (!m_createdEditors.contains(property))
+ return;
+
+ QListIterator itEditor( m_createdEditors[property]);
+ while (itEditor.hasNext()) {
+ QScrollBar *editor = itEditor.next();
+ editor->blockSignals(true);
+ editor->setValue(value);
+ editor->blockSignals(false);
+ }
+}
+
+void QtScrollBarFactoryPrivate::slotRangeChanged(QtProperty *property, int min, int max)
+{
+ if (!m_createdEditors.contains(property))
+ return;
+
+ QtIntPropertyManager *manager = q_ptr->propertyManager(property);
+ if (!manager)
+ return;
+
+ QListIterator itEditor( m_createdEditors[property]);
+ while (itEditor.hasNext()) {
+ QScrollBar *editor = itEditor.next();
+ editor->blockSignals(true);
+ editor->setRange(min, max);
+ editor->setValue(manager->value(property));
+ editor->blockSignals(false);
+ }
+}
+
+void QtScrollBarFactoryPrivate::slotSingleStepChanged(QtProperty *property, int step)
+{
+ if (!m_createdEditors.contains(property))
+ return;
+ QListIterator itEditor(m_createdEditors[property]);
+ while (itEditor.hasNext()) {
+ QScrollBar *editor = itEditor.next();
+ editor->blockSignals(true);
+ editor->setSingleStep(step);
+ editor->blockSignals(false);
+ }
+}
+
+void QtScrollBarFactoryPrivate::slotSetValue(int value)
+{
+ QObject *object = q_ptr->sender();
+ const QMap::ConstIterator ecend = m_editorToProperty.constEnd();
+ for (QMap::ConstIterator itEditor = m_editorToProperty.constBegin(); itEditor != ecend; ++itEditor)
+ if (itEditor.key() == object) {
+ QtProperty *property = itEditor.value();
+ QtIntPropertyManager *manager = q_ptr->propertyManager(property);
+ if (!manager)
+ return;
+ manager->setValue(property, value);
+ return;
+ }
+}
+
+/*!
+ \class QtScrollBarFactory
+
+ \brief The QtScrollBarFactory class provides QScrollBar widgets for
+ properties created by QtIntPropertyManager objects.
+
+ \sa QtAbstractEditorFactory, QtIntPropertyManager
+*/
+
+/*!
+ Creates a factory with the given \a parent.
+*/
+QtScrollBarFactory::QtScrollBarFactory(QObject *parent)
+ : QtAbstractEditorFactory(parent)
+{
+ d_ptr = new QtScrollBarFactoryPrivate();
+ d_ptr->q_ptr = this;
+
+}
+
+/*!
+ Destroys this factory, and all the widgets it has created.
+*/
+QtScrollBarFactory::~QtScrollBarFactory()
+{
+ qDeleteAll(d_ptr->m_editorToProperty.keys());
+ delete d_ptr;
+}
+
+/*!
+ \internal
+
+ Reimplemented from the QtAbstractEditorFactory class.
+*/
+void QtScrollBarFactory::connectPropertyManager(QtIntPropertyManager *manager)
+{
+ connect(manager, SIGNAL(valueChanged(QtProperty *, int)),
+ this, SLOT(slotPropertyChanged(QtProperty *, int)));
+ connect(manager, SIGNAL(rangeChanged(QtProperty *, int, int)),
+ this, SLOT(slotRangeChanged(QtProperty *, int, int)));
+ connect(manager, SIGNAL(singleStepChanged(QtProperty *, int)),
+ this, SLOT(slotSingleStepChanged(QtProperty *, int)));
+}
+
+/*!
+ \internal
+
+ Reimplemented from the QtAbstractEditorFactory class.
+*/
+QWidget *QtScrollBarFactory::createEditor(QtIntPropertyManager *manager, QtProperty *property,
+ QWidget *parent)
+{
+ QScrollBar *editor = new QScrollBar(Qt::Horizontal, parent);
+ d_ptr->initializeEditor(property, editor);
+ editor->setSingleStep(manager->singleStep(property));
+ editor->setRange(manager->minimum(property), manager->maximum(property));
+ editor->setValue(manager->value(property));
+ connect(editor, SIGNAL(valueChanged(int)), this, SLOT(slotSetValue(int)));
+ connect(editor, SIGNAL(destroyed(QObject *)),
+ this, SLOT(slotEditorDestroyed(QObject *)));
+ return editor;
+}
+
+/*!
+ \internal
+
+ Reimplemented from the QtAbstractEditorFactory class.
+*/
+void QtScrollBarFactory::disconnectPropertyManager(QtIntPropertyManager *manager)
+{
+ disconnect(manager, SIGNAL(valueChanged(QtProperty *, int)),
+ this, SLOT(slotPropertyChanged(QtProperty *, int)));
+ disconnect(manager, SIGNAL(rangeChanged(QtProperty *, int, int)),
+ this, SLOT(slotRangeChanged(QtProperty *, int, int)));
+ disconnect(manager, SIGNAL(singleStepChanged(QtProperty *, int)),
+ this, SLOT(slotSingleStepChanged(QtProperty *, int)));
+}
+
+// QtCheckBoxFactory
+
+class QtCheckBoxFactoryPrivate : public EditorFactoryPrivate
+{
+ QtCheckBoxFactory *q_ptr;
+ Q_DECLARE_PUBLIC(QtCheckBoxFactory)
+public:
+ void slotPropertyChanged(QtProperty *property, bool value);
+ void slotSetValue(bool value);
+};
+
+void QtCheckBoxFactoryPrivate::slotPropertyChanged(QtProperty *property, bool value)
+{
+ if (!m_createdEditors.contains(property))
+ return;
+
+ QListIterator itEditor(m_createdEditors[property]);
+ while (itEditor.hasNext()) {
+ QtBoolEdit *editor = itEditor.next();
+ editor->blockCheckBoxSignals(true);
+ editor->setChecked(value);
+ editor->blockCheckBoxSignals(false);
+ }
+}
+
+void QtCheckBoxFactoryPrivate::slotSetValue(bool value)
+{
+ QObject *object = q_ptr->sender();
+
+ const QMap::ConstIterator ecend = m_editorToProperty.constEnd();
+ for (QMap::ConstIterator itEditor = m_editorToProperty.constBegin(); itEditor != ecend; ++itEditor)
+ if (itEditor.key() == object) {
+ QtProperty *property = itEditor.value();
+ QtBoolPropertyManager *manager = q_ptr->propertyManager(property);
+ if (!manager)
+ return;
+ manager->setValue(property, value);
+ return;
+ }
+}
+
+/*!
+ \class QtCheckBoxFactory
+
+ \brief The QtCheckBoxFactory class provides QCheckBox widgets for
+ properties created by QtBoolPropertyManager objects.
+
+ \sa QtAbstractEditorFactory, QtBoolPropertyManager
+*/
+
+/*!
+ Creates a factory with the given \a parent.
+*/
+QtCheckBoxFactory::QtCheckBoxFactory(QObject *parent)
+ : QtAbstractEditorFactory(parent)
+{
+ d_ptr = new QtCheckBoxFactoryPrivate();
+ d_ptr->q_ptr = this;
+
+}
+
+/*!
+ Destroys this factory, and all the widgets it has created.
+*/
+QtCheckBoxFactory::~QtCheckBoxFactory()
+{
+ qDeleteAll(d_ptr->m_editorToProperty.keys());
+ delete d_ptr;
+}
+
+/*!
+ \internal
+
+ Reimplemented from the QtAbstractEditorFactory class.
+*/
+void QtCheckBoxFactory::connectPropertyManager(QtBoolPropertyManager *manager)
+{
+ connect(manager, SIGNAL(valueChanged(QtProperty *, bool)),
+ this, SLOT(slotPropertyChanged(QtProperty *, bool)));
+}
+
+/*!
+ \internal
+
+ Reimplemented from the QtAbstractEditorFactory class.
+*/
+QWidget *QtCheckBoxFactory::createEditor(QtBoolPropertyManager *manager, QtProperty *property,
+ QWidget *parent)
+{
+ QtBoolEdit *editor = d_ptr->createEditor(property, parent);
+ editor->setChecked(manager->value(property));
+
+ connect(editor, SIGNAL(toggled(bool)), this, SLOT(slotSetValue(bool)));
+ connect(editor, SIGNAL(destroyed(QObject *)),
+ this, SLOT(slotEditorDestroyed(QObject *)));
+ return editor;
+}
+
+/*!
+ \internal
+
+ Reimplemented from the QtAbstractEditorFactory class.
+*/
+void QtCheckBoxFactory::disconnectPropertyManager(QtBoolPropertyManager *manager)
+{
+ disconnect(manager, SIGNAL(valueChanged(QtProperty *, bool)),
+ this, SLOT(slotPropertyChanged(QtProperty *, bool)));
+}
+
+// QtDoubleSpinBoxFactory
+
+class QtDoubleSpinBoxFactoryPrivate : public EditorFactoryPrivate
+{
+ QtDoubleSpinBoxFactory *q_ptr;
+ Q_DECLARE_PUBLIC(QtDoubleSpinBoxFactory)
+public:
+
+ void slotPropertyChanged(QtProperty *property, double value);
+ void slotRangeChanged(QtProperty *property, double min, double max);
+ void slotSingleStepChanged(QtProperty *property, double step);
+ void slotDecimalsChanged(QtProperty *property, int prec);
+ void slotSetValue(double value);
+};
+
+void QtDoubleSpinBoxFactoryPrivate::slotPropertyChanged(QtProperty *property, double value)
+{
+ QList editors = m_createdEditors[property];
+ QListIterator itEditor(m_createdEditors[property]);
+ while (itEditor.hasNext()) {
+ QDoubleSpinBox *editor = itEditor.next();
+ if (editor->value() != value) {
+ editor->blockSignals(true);
+ editor->setValue(value);
+ editor->blockSignals(false);
+ }
+ }
+}
+
+void QtDoubleSpinBoxFactoryPrivate::slotRangeChanged(QtProperty *property,
+ double min, double max)
+{
+ if (!m_createdEditors.contains(property))
+ return;
+
+ QtDoublePropertyManager *manager = q_ptr->propertyManager(property);
+ if (!manager)
+ return;
+
+ QList editors = m_createdEditors[property];
+ QListIterator itEditor(editors);
+ while (itEditor.hasNext()) {
+ QDoubleSpinBox *editor = itEditor.next();
+ editor->blockSignals(true);
+ editor->setRange(min, max);
+ editor->setValue(manager->value(property));
+ editor->blockSignals(false);
+ }
+}
+
+void QtDoubleSpinBoxFactoryPrivate::slotSingleStepChanged(QtProperty *property, double step)
+{
+ if (!m_createdEditors.contains(property))
+ return;
+
+ QtDoublePropertyManager *manager = q_ptr->propertyManager(property);
+ if (!manager)
+ return;
+
+ QList editors = m_createdEditors[property];
+ QListIterator itEditor(editors);
+ while (itEditor.hasNext()) {
+ QDoubleSpinBox *editor = itEditor.next();
+ editor->blockSignals(true);
+ editor->setSingleStep(step);
+ editor->blockSignals(false);
+ }
+}
+
+void QtDoubleSpinBoxFactoryPrivate::slotDecimalsChanged(QtProperty *property, int prec)
+{
+ if (!m_createdEditors.contains(property))
+ return;
+
+ QtDoublePropertyManager *manager = q_ptr->propertyManager(property);
+ if (!manager)
+ return;
+
+ QList editors = m_createdEditors[property];
+ QListIterator itEditor(editors);
+ while (itEditor.hasNext()) {
+ QDoubleSpinBox *editor = itEditor.next();
+ editor->blockSignals(true);
+ editor->setDecimals(prec);
+ editor->setValue(manager->value(property));
+ editor->blockSignals(false);
+ }
+}
+
+void QtDoubleSpinBoxFactoryPrivate::slotSetValue(double value)
+{
+ QObject *object = q_ptr->sender();
+ const QMap::ConstIterator itcend = m_editorToProperty.constEnd();
+ for (QMap::ConstIterator itEditor = m_editorToProperty.constBegin(); itEditor != itcend; ++itEditor) {
+ if (itEditor.key() == object) {
+ QtProperty *property = itEditor.value();
+ QtDoublePropertyManager *manager = q_ptr->propertyManager(property);
+ if (!manager)
+ return;
+ manager->setValue(property, value);
+ return;
+ }
+ }
+}
+
+/*! \class QtDoubleSpinBoxFactory
+
+ \brief The QtDoubleSpinBoxFactory class provides QDoubleSpinBox
+ widgets for properties created by QtDoublePropertyManager objects.
+
+ \sa QtAbstractEditorFactory, QtDoublePropertyManager
+*/
+
+/*!
+ Creates a factory with the given \a parent.
+*/
+QtDoubleSpinBoxFactory::QtDoubleSpinBoxFactory(QObject *parent)
+ : QtAbstractEditorFactory(parent)
+{
+ d_ptr = new QtDoubleSpinBoxFactoryPrivate();
+ d_ptr->q_ptr = this;
+
+}
+
+/*!
+ Destroys this factory, and all the widgets it has created.
+*/
+QtDoubleSpinBoxFactory::~QtDoubleSpinBoxFactory()
+{
+ qDeleteAll(d_ptr->m_editorToProperty.keys());
+ delete d_ptr;
+}
+
+/*!
+ \internal
+
+ Reimplemented from the QtAbstractEditorFactory class.
+*/
+void QtDoubleSpinBoxFactory::connectPropertyManager(QtDoublePropertyManager *manager)
+{
+ connect(manager, SIGNAL(valueChanged(QtProperty *, double)),
+ this, SLOT(slotPropertyChanged(QtProperty *, double)));
+ connect(manager, SIGNAL(rangeChanged(QtProperty *, double, double)),
+ this, SLOT(slotRangeChanged(QtProperty *, double, double)));
+ connect(manager, SIGNAL(singleStepChanged(QtProperty *, double)),
+ this, SLOT(slotSingleStepChanged(QtProperty *, double)));
+ connect(manager, SIGNAL(decimalsChanged(QtProperty *, int)),
+ this, SLOT(slotDecimalsChanged(QtProperty *, int)));
+}
+
+/*!
+ \internal
+
+ Reimplemented from the QtAbstractEditorFactory class.
+*/
+QWidget *QtDoubleSpinBoxFactory::createEditor(QtDoublePropertyManager *manager,
+ QtProperty *property, QWidget *parent)
+{
+ QDoubleSpinBox *editor = d_ptr->createEditor(property, parent);
+ editor->setSingleStep(manager->singleStep(property));
+ editor->setDecimals(6);
+ editor->setRange(manager->minimum(property), manager->maximum(property));
+ editor->setValue(manager->value(property));
+ editor->setKeyboardTracking(false);
+
+ connect(editor, SIGNAL(valueChanged(double)), this, SLOT(slotSetValue(double)));
+ connect(editor, SIGNAL(destroyed(QObject *)),
+ this, SLOT(slotEditorDestroyed(QObject *)));
+ return editor;
+}
+
+/*!
+ \internal
+
+ Reimplemented from the QtAbstractEditorFactory class.
+*/
+void QtDoubleSpinBoxFactory::disconnectPropertyManager(QtDoublePropertyManager *manager)
+{
+ disconnect(manager, SIGNAL(valueChanged(QtProperty *, double)),
+ this, SLOT(slotPropertyChanged(QtProperty *, double)));
+ disconnect(manager, SIGNAL(rangeChanged(QtProperty *, double, double)),
+ this, SLOT(slotRangeChanged(QtProperty *, double, double)));
+ disconnect(manager, SIGNAL(singleStepChanged(QtProperty *, double)),
+ this, SLOT(slotSingleStepChanged(QtProperty *, double)));
+ disconnect(manager, SIGNAL(decimalsChanged(QtProperty *, int)),
+ this, SLOT(slotDecimalsChanged(QtProperty *, int)));
+}
+
+// QtLineEditFactory
+
+class QtLineEditFactoryPrivate : public EditorFactoryPrivate
+{
+ QtLineEditFactory *q_ptr;
+ Q_DECLARE_PUBLIC(QtLineEditFactory)
+public:
+
+ void slotPropertyChanged(QtProperty *property, const QString &value);
+ void slotRegExpChanged(QtProperty *property, const QRegExp ®Exp);
+ void slotSetValue(const QString &value);
+ void slotEditingFinished();
+};
+
+void QtLineEditFactoryPrivate::slotPropertyChanged(QtProperty *property,
+ const QString &value)
+{
+ if (!m_createdEditors.contains(property))
+ return;
+
+ QListIterator