From d4346ef7712a51f9a2c55935c9bff5fec75c78d0 Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 2 Sep 2010 09:31:24 +0200 Subject: [PATCH] Changed: Added PCH to nelligo --- code/nel/src/ligo/ligo_config.cpp | 1 + code/nel/src/ligo/ligo_error.cpp | 1 + code/nel/src/ligo/ligo_material.cpp | 1 + code/nel/src/ligo/primitive.cpp | 1 + code/nel/src/ligo/primitive_class.cpp | 1 + code/nel/src/ligo/primitive_configuration.cpp | 1 + code/nel/src/ligo/primitive_utils.cpp | 2 +- code/nel/src/ligo/stdligo.cpp | 24 +++++++ code/nel/src/ligo/stdligo.h | 63 +++++++++++++++++++ code/nel/src/ligo/transition.cpp | 1 + code/nel/src/ligo/zone_bank.cpp | 1 + code/nel/src/ligo/zone_edge.cpp | 1 + code/nel/src/ligo/zone_region.cpp | 1 + code/nel/src/ligo/zone_template.cpp | 1 + 14 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 code/nel/src/ligo/stdligo.cpp create mode 100644 code/nel/src/ligo/stdligo.h diff --git a/code/nel/src/ligo/ligo_config.cpp b/code/nel/src/ligo/ligo_config.cpp index e68197572..8d4b730f0 100644 --- a/code/nel/src/ligo/ligo_config.cpp +++ b/code/nel/src/ligo/ligo_config.cpp @@ -14,6 +14,7 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . +#include "stdligo.h" #include "nel/ligo/ligo_config.h" #include "nel/ligo/primitive.h" diff --git a/code/nel/src/ligo/ligo_error.cpp b/code/nel/src/ligo/ligo_error.cpp index bebaaddfe..1330a60a7 100644 --- a/code/nel/src/ligo/ligo_error.cpp +++ b/code/nel/src/ligo/ligo_error.cpp @@ -14,6 +14,7 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . +#include "stdligo.h" #include "ligo_error.h" namespace NLLIGO diff --git a/code/nel/src/ligo/ligo_material.cpp b/code/nel/src/ligo/ligo_material.cpp index 3b125c1d9..121a30127 100644 --- a/code/nel/src/ligo/ligo_material.cpp +++ b/code/nel/src/ligo/ligo_material.cpp @@ -14,6 +14,7 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . +#include "stdligo.h" #include "ligo_material.h" // Ligo include diff --git a/code/nel/src/ligo/primitive.cpp b/code/nel/src/ligo/primitive.cpp index 3b33aa51d..4c1b3f9dd 100644 --- a/code/nel/src/ligo/primitive.cpp +++ b/code/nel/src/ligo/primitive.cpp @@ -14,6 +14,7 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . +#include "stdligo.h" #include "nel/misc/types_nl.h" #include "nel/misc/hierarchical_timer.h" #include "nel/ligo/primitive.h" diff --git a/code/nel/src/ligo/primitive_class.cpp b/code/nel/src/ligo/primitive_class.cpp index a9b208162..528653786 100644 --- a/code/nel/src/ligo/primitive_class.cpp +++ b/code/nel/src/ligo/primitive_class.cpp @@ -14,6 +14,7 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . +#include "stdligo.h" #include "nel/ligo/primitive_class.h" #include "nel/ligo/primitive.h" #include "nel/ligo/ligo_config.h" diff --git a/code/nel/src/ligo/primitive_configuration.cpp b/code/nel/src/ligo/primitive_configuration.cpp index b03eeb0dc..00de1dc7b 100644 --- a/code/nel/src/ligo/primitive_configuration.cpp +++ b/code/nel/src/ligo/primitive_configuration.cpp @@ -14,6 +14,7 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . +#include "stdligo.h" #include "nel/ligo/primitive_configuration.h" #include "nel/ligo/ligo_config.h" #include "nel/ligo/primitive.h" diff --git a/code/nel/src/ligo/primitive_utils.cpp b/code/nel/src/ligo/primitive_utils.cpp index 2172980dd..455599730 100644 --- a/code/nel/src/ligo/primitive_utils.cpp +++ b/code/nel/src/ligo/primitive_utils.cpp @@ -1,5 +1,5 @@ - +#include "stdligo.h" #include "nel/ligo/primitive_utils.h" diff --git a/code/nel/src/ligo/stdligo.cpp b/code/nel/src/ligo/stdligo.cpp new file mode 100644 index 000000000..c0f179857 --- /dev/null +++ b/code/nel/src/ligo/stdligo.cpp @@ -0,0 +1,24 @@ +// NeL - MMORPG Framework +// Copyright (C) 2010 Winch Gate Property Limited +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +#include "stdligo.h" + + +// leave not static else this workaround don't work +void dummyToAvoidStupidCompilerWarning_std_ligo_cpp() +{ +} + diff --git a/code/nel/src/ligo/stdligo.h b/code/nel/src/ligo/stdligo.h new file mode 100644 index 000000000..01e82a4a3 --- /dev/null +++ b/code/nel/src/ligo/stdligo.h @@ -0,0 +1,63 @@ +// NeL - MMORPG Framework +// Copyright (C) 2010 Winch Gate Property Limited +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero 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 Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +#include "nel/misc/types_nl.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Include from libxml2 +#include + +#include "nel/misc/debug.h" +#include "nel/misc/common.h" +#include "nel/misc/fast_mem.h" +#include "nel/misc/system_info.h" +#include "nel/misc/mem_displayer.h" +#include "nel/misc/matrix.h" +#include "nel/misc/stream.h" +#include "nel/misc/path.h" +#include "nel/misc/string_common.h" +#include "nel/misc/config_file.h" +#include "nel/misc/i_xml.h" +#include "nel/misc/o_xml.h" +#include "nel/misc/hierarchical_timer.h" +#include "nel/misc/vector.h" +#include "nel/misc/rgba.h" +#include "nel/misc/file.h" diff --git a/code/nel/src/ligo/transition.cpp b/code/nel/src/ligo/transition.cpp index 5158f5b87..571bed290 100644 --- a/code/nel/src/ligo/transition.cpp +++ b/code/nel/src/ligo/transition.cpp @@ -14,6 +14,7 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . +#include "stdligo.h" #include "transition.h" // Ligo include diff --git a/code/nel/src/ligo/zone_bank.cpp b/code/nel/src/ligo/zone_bank.cpp index 240ec23a1..38b2ca5d6 100644 --- a/code/nel/src/ligo/zone_bank.cpp +++ b/code/nel/src/ligo/zone_bank.cpp @@ -15,6 +15,7 @@ // along with this program. If not, see . +#include "stdligo.h" #include "zone_bank.h" diff --git a/code/nel/src/ligo/zone_edge.cpp b/code/nel/src/ligo/zone_edge.cpp index 235ba0880..b635da499 100644 --- a/code/nel/src/ligo/zone_edge.cpp +++ b/code/nel/src/ligo/zone_edge.cpp @@ -14,6 +14,7 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . +#include "stdligo.h" // Ligo include #include "zone_edge.h" #include "nel/ligo/ligo_config.h" diff --git a/code/nel/src/ligo/zone_region.cpp b/code/nel/src/ligo/zone_region.cpp index ff19aa536..222940100 100644 --- a/code/nel/src/ligo/zone_region.cpp +++ b/code/nel/src/ligo/zone_region.cpp @@ -14,6 +14,7 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . +#include "stdligo.h" #include "zone_region.h" using namespace NLMISC; diff --git a/code/nel/src/ligo/zone_template.cpp b/code/nel/src/ligo/zone_template.cpp index a42ae50aa..2680ee9e9 100644 --- a/code/nel/src/ligo/zone_template.cpp +++ b/code/nel/src/ligo/zone_template.cpp @@ -14,6 +14,7 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . +#include "stdligo.h" #include "zone_template.h" #include "ligo_error.h" #include "nel/ligo/ligo_config.h"