Update build settings
This commit is contained in:
parent
c73f0d9449
commit
440d0a5f31
8 changed files with 120 additions and 42 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -160,7 +160,7 @@ code/build/*
|
||||||
code/build-2010/*
|
code/build-2010/*
|
||||||
build/*
|
build/*
|
||||||
install/*
|
install/*
|
||||||
build_vc*
|
build_*
|
||||||
code/nel/tools/build_gamedata/configuration/buildsite.py
|
code/nel/tools/build_gamedata/configuration/buildsite.py
|
||||||
|
|
||||||
# Linux nel compile
|
# Linux nel compile
|
||||||
|
|
|
@ -12,20 +12,26 @@ jobs:
|
||||||
sudo apt-get install gcc-8 g++-8 -y
|
sudo apt-get install gcc-8 g++-8 -y
|
||||||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60
|
||||||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 60
|
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 60
|
||||||
sudo apt-get install libmysqlclient-dev -y
|
|
||||||
sudo apt-get install bison autoconf automake -y
|
sudo apt-get install bison autoconf automake -y
|
||||||
sudo apt-get install libpng12-dev libjpeg62-dev -y
|
sudo apt-get install libpng12-dev -y
|
||||||
|
sudo apt-get install libjpeg-dev -y
|
||||||
|
sudo apt-get install libgif-dev libfreetype6-dev -y
|
||||||
|
sudo apt-get install freeglut3-dev -y
|
||||||
sudo apt-get install liblua5.1-dev libluabind-dev libcpptest-dev -y
|
sudo apt-get install liblua5.1-dev libluabind-dev libcpptest-dev -y
|
||||||
sudo apt-get install libogg-dev libvorbis-dev libopenal-dev -y
|
sudo apt-get install libogg-dev libvorbis-dev libopenal-dev -y
|
||||||
sudo apt-get install libgif-dev libfreetype6-dev -y
|
sudo apt-get install libavcodec-dev libavformat-dev libavdevice-dev libswscale-dev libpostproc-dev -y
|
||||||
|
sudo apt-get install libmysqlclient-dev -y
|
||||||
sudo apt-get install libxml2-dev -y
|
sudo apt-get install libxml2-dev -y
|
||||||
sudo apt-get install libcurl4-openssl-dev -y
|
sudo apt-get install libcurl4-openssl-dev libssl-dev -y
|
||||||
|
sudo apt-get install libsquish-dev -y
|
||||||
|
sudo apt-get install liblzma-dev -y
|
||||||
|
sudo apt-get install libgsf-1-dev -y
|
||||||
displayName: 'Dependencies'
|
displayName: 'Dependencies'
|
||||||
- script: |
|
- script: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cmake --version
|
cmake --version
|
||||||
cd build
|
cd build
|
||||||
cmake -DWITH_NEL_TESTS=OFF -DWITH_NEL_SAMPLES=ON -DWITH_LUA51=ON -DWITH_RYZOM_SERVER=ON -DWITH_RYZOM_TOOLS=OFF -DWITH_NEL_TOOLS=OFF ../code
|
cmake -DWITH_STATIC=ON -DWITH_NEL_TESTS=OFF -DWITH_NEL_SAMPLES=ON -DWITH_LUA51=ON -DWITH_RYZOM_SERVER=ON -DWITH_RYZOM_TOOLS=OFF -DWITH_NEL_TOOLS=ON -DWITH_LIBGSF=ON ../code
|
||||||
cat CMakeCache.txt
|
cat CMakeCache.txt
|
||||||
displayName: 'CMake'
|
displayName: 'CMake'
|
||||||
- script: |
|
- script: |
|
||||||
|
|
51
code/CMakeModules/FindGOBJECT2.cmake
Normal file
51
code/CMakeModules/FindGOBJECT2.cmake
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
# - Try to find GObject2
|
||||||
|
# Find GObject2 headers, libraries and the answer to all questions.
|
||||||
|
#
|
||||||
|
# GOBJECT2_FOUND True if GOBJECT2 got found
|
||||||
|
# GOBJECT2_INCLUDE_DIRS Location of GOBJECT2 headers
|
||||||
|
# GOBJECT2_LIBRARIES List of libraries to use GOBJECT2
|
||||||
|
#
|
||||||
|
# Copyright (c) 2008 Bjoern Ricks <bjoern.ricks@googlemail.com>
|
||||||
|
#
|
||||||
|
# Redistribution and use is allowed according to the terms of the New
|
||||||
|
# BSD license.
|
||||||
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||||
|
#
|
||||||
|
|
||||||
|
INCLUDE( FindPkgConfig )
|
||||||
|
|
||||||
|
IF ( GOBJECT2_FIND_REQUIRED )
|
||||||
|
SET( _pkgconfig_REQUIRED "REQUIRED" )
|
||||||
|
ELSE( GOBJECT2_FIND_REQUIRED )
|
||||||
|
SET( _pkgconfig_REQUIRED "" )
|
||||||
|
ENDIF ( GOBJECT2_FIND_REQUIRED )
|
||||||
|
|
||||||
|
IF ( GOBJECT2_MIN_VERSION )
|
||||||
|
PKG_SEARCH_MODULE( GOBJECT2 ${_pkgconfig_REQUIRED} gobject-2.0>=${GOBJECT2_MIN_VERSION} )
|
||||||
|
ELSE ( GOBJECT2_MIN_VERSION )
|
||||||
|
PKG_SEARCH_MODULE( GOBJECT2 ${_pkgconfig_REQUIRED} gobject-2.0 )
|
||||||
|
ENDIF ( GOBJECT2_MIN_VERSION )
|
||||||
|
|
||||||
|
|
||||||
|
IF( NOT GOBJECT2_FOUND AND NOT PKG_CONFIG_FOUND )
|
||||||
|
FIND_PATH( GOBJECT2_INCLUDE_DIRS gobject/gobject.h PATH_SUFFIXES glib-2.0)
|
||||||
|
FIND_LIBRARY( GOBJECT2_LIBRARIES gobject-2.0 )
|
||||||
|
|
||||||
|
# Report results
|
||||||
|
IF ( GOBJECT2_LIBRARIES AND GOBJECT2_INCLUDE_DIRS )
|
||||||
|
SET( GOBJECT2_FOUND 1 )
|
||||||
|
IF ( NOT GOBJECT2_FIND_QUIETLY )
|
||||||
|
MESSAGE( STATUS "Found GOBJECT2: ${GOBJECT2_LIBRARIES}" )
|
||||||
|
ENDIF ( NOT GOBJECT2_FIND_QUIETLY )
|
||||||
|
ELSE ( GOBJECT2_LIBRARIES AND GOBJECT2_INCLUDE_DIRS )
|
||||||
|
IF ( GOBJECT2_FIND_REQUIRED )
|
||||||
|
MESSAGE( SEND_ERROR "Could NOT find GOBJECT2" )
|
||||||
|
ELSE ( GOBJECT2_FIND_REQUIRED )
|
||||||
|
IF ( NOT GOBJECT2_FIND_QUIETLY )
|
||||||
|
MESSAGE( STATUS "Could NOT find GOBJECT2" )
|
||||||
|
ENDIF ( NOT GOBJECT2_FIND_QUIETLY )
|
||||||
|
ENDIF ( GOBJECT2_FIND_REQUIRED )
|
||||||
|
ENDIF ( GOBJECT2_LIBRARIES AND GOBJECT2_INCLUDE_DIRS )
|
||||||
|
ENDIF( NOT GOBJECT2_FOUND AND NOT PKG_CONFIG_FOUND )
|
||||||
|
|
||||||
|
MARK_AS_ADVANCED( GOBJECT2_LIBRARIES GOBJECT2_INCLUDE_DIRS )
|
|
@ -5,6 +5,12 @@ IF (NOT (LIBGSF_INCLUDE_DIR AND LIBGSF_LIBRARIES))
|
||||||
MESSAGE(FATAL_ERROR "LIBGSF not found!")
|
MESSAGE(FATAL_ERROR "LIBGSF not found!")
|
||||||
ENDIF (NOT (LIBGSF_INCLUDE_DIR AND LIBGSF_LIBRARIES))
|
ENDIF (NOT (LIBGSF_INCLUDE_DIR AND LIBGSF_LIBRARIES))
|
||||||
|
|
||||||
|
FIND_PACKAGE(GOBJECT2)
|
||||||
|
|
||||||
|
if (NOT GOBJECT2_FOUND)
|
||||||
|
MESSAGE(FATAL_ERROR "GOBJECT2 not found!")
|
||||||
|
ENDIF (NOT GOBJECT2_FOUND)
|
||||||
|
|
||||||
FIND_PACKAGE(GLIB2)
|
FIND_PACKAGE(GLIB2)
|
||||||
|
|
||||||
if (NOT GLIB2_FOUND)
|
if (NOT GLIB2_FOUND)
|
||||||
|
@ -25,6 +31,7 @@ NL_TARGET_LIB(pipeline_max
|
||||||
TARGET_LINK_LIBRARIES(pipeline_max
|
TARGET_LINK_LIBRARIES(pipeline_max
|
||||||
${LIBGSF_LIBRARIES}
|
${LIBGSF_LIBRARIES}
|
||||||
${GLIB2_LIBRARIES}
|
${GLIB2_LIBRARIES}
|
||||||
|
${GOBJECT2_LIBRARIES}
|
||||||
nelmisc
|
nelmisc
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,12 @@ IF (NOT (LIBGSF_INCLUDE_DIR AND LIBGSF_LIBRARIES))
|
||||||
MESSAGE(FATAL_ERROR "LIBGSF not found!")
|
MESSAGE(FATAL_ERROR "LIBGSF not found!")
|
||||||
ENDIF (NOT (LIBGSF_INCLUDE_DIR AND LIBGSF_LIBRARIES))
|
ENDIF (NOT (LIBGSF_INCLUDE_DIR AND LIBGSF_LIBRARIES))
|
||||||
|
|
||||||
|
FIND_PACKAGE(GOBJECT2)
|
||||||
|
|
||||||
|
if (NOT GOBJECT2_FOUND)
|
||||||
|
MESSAGE(FATAL_ERROR "GOBJECT2 not found!")
|
||||||
|
ENDIF (NOT GOBJECT2_FOUND)
|
||||||
|
|
||||||
FIND_PACKAGE(GLIB2)
|
FIND_PACKAGE(GLIB2)
|
||||||
|
|
||||||
if (NOT GLIB2_FOUND)
|
if (NOT GLIB2_FOUND)
|
||||||
|
@ -25,6 +31,7 @@ ADD_EXECUTABLE(pipeline_max_dump
|
||||||
TARGET_LINK_LIBRARIES(pipeline_max_dump
|
TARGET_LINK_LIBRARIES(pipeline_max_dump
|
||||||
${LIBGSF_LIBRARIES}
|
${LIBGSF_LIBRARIES}
|
||||||
${GLIB2_LIBRARIES}
|
${GLIB2_LIBRARIES}
|
||||||
|
${GOBJECT2_LIBRARIES}
|
||||||
pipeline_max
|
pipeline_max
|
||||||
nelmisc
|
nelmisc
|
||||||
)
|
)
|
||||||
|
|
|
@ -38,26 +38,26 @@
|
||||||
#include <nel/misc/file.h>
|
#include <nel/misc/file.h>
|
||||||
#include <nel/misc/vector.h>
|
#include <nel/misc/vector.h>
|
||||||
|
|
||||||
#include "../max/storage_stream.h"
|
#include "../pipeline_max/storage_stream.h"
|
||||||
#include "../max/storage_object.h"
|
#include "../pipeline_max/storage_object.h"
|
||||||
#include "../max/dll_directory.h"
|
#include "../pipeline_max/dll_directory.h"
|
||||||
#include "../max/class_directory_3.h"
|
#include "../pipeline_max/class_directory_3.h"
|
||||||
#include "../max/class_data.h"
|
#include "../pipeline_max/class_data.h"
|
||||||
#include "../max/config.h"
|
#include "../pipeline_max/config.h"
|
||||||
#include "../max/scene.h"
|
#include "../pipeline_max/scene.h"
|
||||||
#include "../max/scene_class_registry.h"
|
#include "../pipeline_max/scene_class_registry.h"
|
||||||
|
|
||||||
// Testing
|
// Testing
|
||||||
#include "../max/builtin/builtin.h"
|
#include "../pipeline_max/builtin/builtin.h"
|
||||||
#include "../max/update1/update1.h"
|
#include "../pipeline_max/update1/update1.h"
|
||||||
#include "../max/epoly/epoly.h"
|
#include "../pipeline_max/epoly/epoly.h"
|
||||||
|
|
||||||
#include "../max/builtin/storage/app_data.h"
|
#include "../pipeline_max/builtin/storage/app_data.h"
|
||||||
#include "../max/builtin/storage/geom_buffers.h"
|
#include "../pipeline_max/builtin/storage/geom_buffers.h"
|
||||||
#include "../max/builtin/scene_impl.h"
|
#include "../pipeline_max/builtin/scene_impl.h"
|
||||||
#include "../max/builtin/i_node.h"
|
#include "../pipeline_max/builtin/i_node.h"
|
||||||
#include "../max/update1/editable_mesh.h"
|
#include "../pipeline_max/update1/editable_mesh.h"
|
||||||
#include "../max/epoly/editable_poly.h"
|
#include "../pipeline_max/epoly/editable_poly.h"
|
||||||
|
|
||||||
using namespace PIPELINE::MAX;
|
using namespace PIPELINE::MAX;
|
||||||
using namespace PIPELINE::MAX::BUILTIN;
|
using namespace PIPELINE::MAX::BUILTIN;
|
||||||
|
@ -71,7 +71,7 @@ using namespace PIPELINE::MAX::EPOLY;
|
||||||
//static const char *filename = "/home/kaetemi/3dsMax/scenes/teapot_test_scene.max";
|
//static const char *filename = "/home/kaetemi/3dsMax/scenes/teapot_test_scene.max";
|
||||||
//static const char *filename = "/home/kaetemi/3dsMax/scenes/testplane.max";
|
//static const char *filename = "/home/kaetemi/3dsMax/scenes/testplane.max";
|
||||||
//static const char *filename = "/home/kaetemi/3dsMax/scenes/geomobjects.max";
|
//static const char *filename = "/home/kaetemi/3dsMax/scenes/geomobjects.max";
|
||||||
static const char *filename = "/mnt/tsurugi/ryzom-assets/database/landscape/ligo/desert/max/zonematerial-converted-165_eg.max";
|
static const char *filename = "/mnt/tsurugi/ryzom-assets/database/landscape/ligo/desert/pipeline_max/zonematerial-converted-165_eg.max";
|
||||||
static const char *streamname = "Scene";
|
static const char *streamname = "Scene";
|
||||||
|
|
||||||
#define PBMS_GEOM_BUFFERS_POLY_A_VERTEX_CHUNK_ID 0x0100
|
#define PBMS_GEOM_BUFFERS_POLY_A_VERTEX_CHUNK_ID 0x0100
|
||||||
|
|
|
@ -5,6 +5,12 @@ IF (NOT (LIBGSF_INCLUDE_DIR AND LIBGSF_LIBRARIES))
|
||||||
MESSAGE(FATAL_ERROR "LIBGSF not found!")
|
MESSAGE(FATAL_ERROR "LIBGSF not found!")
|
||||||
ENDIF (NOT (LIBGSF_INCLUDE_DIR AND LIBGSF_LIBRARIES))
|
ENDIF (NOT (LIBGSF_INCLUDE_DIR AND LIBGSF_LIBRARIES))
|
||||||
|
|
||||||
|
FIND_PACKAGE(GOBJECT2)
|
||||||
|
|
||||||
|
if (NOT GOBJECT2_FOUND)
|
||||||
|
MESSAGE(FATAL_ERROR "GOBJECT2 not found!")
|
||||||
|
ENDIF (NOT GOBJECT2_FOUND)
|
||||||
|
|
||||||
FIND_PACKAGE(GLIB2)
|
FIND_PACKAGE(GLIB2)
|
||||||
|
|
||||||
if (NOT GLIB2_FOUND)
|
if (NOT GLIB2_FOUND)
|
||||||
|
@ -25,6 +31,7 @@ ADD_EXECUTABLE(pipeline_max_rewrite_assets
|
||||||
TARGET_LINK_LIBRARIES(pipeline_max_rewrite_assets
|
TARGET_LINK_LIBRARIES(pipeline_max_rewrite_assets
|
||||||
${LIBGSF_LIBRARIES}
|
${LIBGSF_LIBRARIES}
|
||||||
${GLIB2_LIBRARIES}
|
${GLIB2_LIBRARIES}
|
||||||
|
${GOBJECT2_LIBRARIES}
|
||||||
pipeline_max
|
pipeline_max
|
||||||
nelmisc
|
nelmisc
|
||||||
)
|
)
|
||||||
|
|
|
@ -47,26 +47,26 @@
|
||||||
#include "nel/misc/file.h"
|
#include "nel/misc/file.h"
|
||||||
#include "nel/misc/mem_stream.h"
|
#include "nel/misc/mem_stream.h"
|
||||||
|
|
||||||
#include "../max/storage_stream.h"
|
#include "../pipeline_max/storage_stream.h"
|
||||||
#include "../max/storage_object.h"
|
#include "../pipeline_max/storage_object.h"
|
||||||
#include "../max/dll_directory.h"
|
#include "../pipeline_max/dll_directory.h"
|
||||||
#include "../max/class_directory_3.h"
|
#include "../pipeline_max/class_directory_3.h"
|
||||||
#include "../max/class_data.h"
|
#include "../pipeline_max/class_data.h"
|
||||||
#include "../max/config.h"
|
#include "../pipeline_max/config.h"
|
||||||
#include "../max/scene.h"
|
#include "../pipeline_max/scene.h"
|
||||||
#include "../max/scene_class_registry.h"
|
#include "../pipeline_max/scene_class_registry.h"
|
||||||
|
|
||||||
// Testing
|
// Testing
|
||||||
#include "../max/builtin/builtin.h"
|
#include "../pipeline_max/builtin/builtin.h"
|
||||||
#include "../max/update1/update1.h"
|
#include "../pipeline_max/update1/update1.h"
|
||||||
#include "../max/epoly/epoly.h"
|
#include "../pipeline_max/epoly/epoly.h"
|
||||||
|
|
||||||
#include "../max/builtin/storage/app_data.h"
|
#include "../pipeline_max/builtin/storage/app_data.h"
|
||||||
#include "../max/builtin/storage/geom_buffers.h"
|
#include "../pipeline_max/builtin/storage/geom_buffers.h"
|
||||||
#include "../max/builtin/scene_impl.h"
|
#include "../pipeline_max/builtin/scene_impl.h"
|
||||||
#include "../max/builtin/i_node.h"
|
#include "../pipeline_max/builtin/i_node.h"
|
||||||
#include "../max/update1/editable_mesh.h"
|
#include "../pipeline_max/update1/editable_mesh.h"
|
||||||
#include "../max/epoly/editable_poly.h"
|
#include "../pipeline_max/epoly/editable_poly.h"
|
||||||
|
|
||||||
#include <boost/algorithm/string.hpp>
|
#include <boost/algorithm/string.hpp>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
@ -1506,7 +1506,7 @@ int main(int argc, char **argv)
|
||||||
//handleFile(nativeDatabasePath("w:\\database\\stuff\\generique\\agents\\accessories\\ge_fy_wea_trib_grand_bouclier.max"));
|
//handleFile(nativeDatabasePath("w:\\database\\stuff\\generique\\agents\\accessories\\ge_fy_wea_trib_grand_bouclier.max"));
|
||||||
//handleFile(nativeDatabasePath("w:\\database\\stuff\\generique\\agents\\accessories\\ge_mission_entrepot.max"));
|
//handleFile(nativeDatabasePath("w:\\database\\stuff\\generique\\agents\\accessories\\ge_mission_entrepot.max"));
|
||||||
//handleFile(nativeDatabasePath("w:\\database\\stuff\\generique\\agents\\accessories\\mesh_wip\\all_trib_weapons.max"));
|
//handleFile(nativeDatabasePath("w:\\database\\stuff\\generique\\agents\\accessories\\mesh_wip\\all_trib_weapons.max"));
|
||||||
//handleFile("/srv/work/database/landscape/ligo/jungle/max/zonematerial-foret-ruine_boss.max");
|
//handleFile("/srv/work/database/landscape/ligo/jungle/pipeline_max/zonematerial-foret-ruine_boss.max");
|
||||||
//handleFile("/srv/work/database/stuff/fyros/agents/actors/male/animation/anims_non_utilisees/fy_hom_assis_boire_verre.max");
|
//handleFile("/srv/work/database/stuff/fyros/agents/actors/male/animation/anims_non_utilisees/fy_hom_assis_boire_verre.max");
|
||||||
//handleFile("/home/kaetemi/3dsMax/scenes/test_clear_add_uvw.max");
|
//handleFile("/home/kaetemi/3dsMax/scenes/test_clear_add_uvw.max");
|
||||||
//runScanner();
|
//runScanner();
|
||||||
|
|
Loading…
Reference in a new issue