diff --git a/build/premake/premake4.lua b/build/premake/premake4.lua index 16b7210a35..0cddf81d2d 100644 --- a/build/premake/premake4.lua +++ b/build/premake/premake4.lua @@ -597,8 +597,9 @@ function setup_all_libs () } extern_libs = { "iconv", + "boost", } - setup_third_party_static_lib_project("tinygettext", source_dirs, extern_libs, { no_pch = 1 }) + setup_third_party_static_lib_project("tinygettext", source_dirs, extern_libs, { } ) -- it's an external library and we don't want to modify its source to fix warnings, so we just disable them to avoid noise in the compile output if _ACTION == "vs2005" or _ACTION == "vs2008" or _ACTION == "vs2010" or _ACTION == "vs2012" or _ACTION == "vs2013" then diff --git a/source/pch/tinygettext/precompiled.cpp b/source/pch/tinygettext/precompiled.cpp new file mode 100644 index 0000000000..dd9cdff675 --- /dev/null +++ b/source/pch/tinygettext/precompiled.cpp @@ -0,0 +1,18 @@ +/* Copyright (C) 2014 Wildfire Games. + * This file is part of 0 A.D. + * + * 0 A.D. 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. + * + * 0 A.D. 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 0 A.D. If not, see . + */ + +#include "precompiled.h" diff --git a/source/pch/tinygettext/precompiled.h b/source/pch/tinygettext/precompiled.h new file mode 100644 index 0000000000..6624ac58e4 --- /dev/null +++ b/source/pch/tinygettext/precompiled.h @@ -0,0 +1,18 @@ +/* Copyright (C) 2014 Wildfire Games. + * This file is part of 0 A.D. + * + * 0 A.D. 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. + * + * 0 A.D. 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 0 A.D. If not, see . + */ + +#include "lib/precompiled.h" // common precompiled header diff --git a/source/third_party/tinygettext/src/dictionary.cpp b/source/third_party/tinygettext/src/dictionary.cpp index 9765d751d6..39d2fefafb 100644 --- a/source/third_party/tinygettext/src/dictionary.cpp +++ b/source/third_party/tinygettext/src/dictionary.cpp @@ -15,6 +15,8 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +#include "precompiled.h" + #include #include "log_stream.hpp" #include "dictionary.hpp" diff --git a/source/third_party/tinygettext/src/dictionary_manager.cpp b/source/third_party/tinygettext/src/dictionary_manager.cpp index f923470f74..b136ac9d1a 100644 --- a/source/third_party/tinygettext/src/dictionary_manager.cpp +++ b/source/third_party/tinygettext/src/dictionary_manager.cpp @@ -15,6 +15,8 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +#include "precompiled.h" + #include "dictionary_manager.hpp" #include diff --git a/source/third_party/tinygettext/src/iconv.cpp b/source/third_party/tinygettext/src/iconv.cpp index c0b8b60722..d41d575046 100644 --- a/source/third_party/tinygettext/src/iconv.cpp +++ b/source/third_party/tinygettext/src/iconv.cpp @@ -15,6 +15,8 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +#include "precompiled.h" + #include #include #include diff --git a/source/third_party/tinygettext/src/language.cpp b/source/third_party/tinygettext/src/language.cpp index 561e97d76f..0678610480 100644 --- a/source/third_party/tinygettext/src/language.cpp +++ b/source/third_party/tinygettext/src/language.cpp @@ -15,6 +15,8 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +#include "precompiled.h" + #include "language.hpp" #include diff --git a/source/third_party/tinygettext/src/log.cpp b/source/third_party/tinygettext/src/log.cpp index 55c89df493..68e7e440a4 100644 --- a/source/third_party/tinygettext/src/log.cpp +++ b/source/third_party/tinygettext/src/log.cpp @@ -15,6 +15,8 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +#include "precompiled.h" + #include #include "log.hpp" diff --git a/source/third_party/tinygettext/src/plural_forms.cpp b/source/third_party/tinygettext/src/plural_forms.cpp index 8271437b7d..d7532e9581 100644 --- a/source/third_party/tinygettext/src/plural_forms.cpp +++ b/source/third_party/tinygettext/src/plural_forms.cpp @@ -15,6 +15,8 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +#include "precompiled.h" + #include "plural_forms.hpp" #include diff --git a/source/third_party/tinygettext/src/po_parser.cpp b/source/third_party/tinygettext/src/po_parser.cpp index ec73eedac9..146c3ed585 100644 --- a/source/third_party/tinygettext/src/po_parser.cpp +++ b/source/third_party/tinygettext/src/po_parser.cpp @@ -15,6 +15,8 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +#include "precompiled.h" + #include "po_parser.hpp" #include diff --git a/source/third_party/tinygettext/src/tinygettext.cpp b/source/third_party/tinygettext/src/tinygettext.cpp index 7f5adc8aef..331a7232fc 100644 --- a/source/third_party/tinygettext/src/tinygettext.cpp +++ b/source/third_party/tinygettext/src/tinygettext.cpp @@ -14,6 +14,7 @@ // 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. +#include "precompiled.h" namespace tinygettext { diff --git a/source/third_party/tinygettext/src/unix_file_system.cpp b/source/third_party/tinygettext/src/unix_file_system.cpp index b3413c71f0..33cd1c1f72 100644 --- a/source/third_party/tinygettext/src/unix_file_system.cpp +++ b/source/third_party/tinygettext/src/unix_file_system.cpp @@ -15,6 +15,8 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +#include "precompiled.h" + #include "unix_file_system.hpp" #include diff --git a/source/third_party/tinygettext/src/win32/dirent.c b/source/third_party/tinygettext/src/win32/dirent.c index 12a2547bfa..5aeb94a460 100644 --- a/source/third_party/tinygettext/src/win32/dirent.c +++ b/source/third_party/tinygettext/src/win32/dirent.c @@ -8,6 +8,8 @@ */ +#include "precompiled.h" + #include "dirent.h" #include #include /* _findfirst and _findnext set errno iff they return -1 */