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