summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-06-26 15:45:25 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-12-10 14:46:44 +0100
commit38a4163075549677a49b34d3aee8e4dfe080acbb (patch)
treeda4bf5e0cfb76d9b47f9b91ac3f9360a9c9549b3 /sal
parentd29a5b367c20c979ec9349dda85a4b947742cb2a (diff)
testing PCH support in sal
Change-Id: Ie8c981a0d02f06738d2082abf6ef345f24449ffa
Diffstat (limited to 'sal')
-rw-r--r--sal/Library_sal.mk3
-rw-r--r--sal/inc/pch/precompiled_sal.cxx12
-rw-r--r--sal/inc/pch/precompiled_sal.hxx25
3 files changed, 40 insertions, 0 deletions
diff --git a/sal/Library_sal.mk b/sal/Library_sal.mk
index d4fae981585e..b2504f922c84 100644
--- a/sal/Library_sal.mk
+++ b/sal/Library_sal.mk
@@ -34,8 +34,11 @@ $(eval $(call gb_Library_use_packages,sal,\
sal_inc \
))
+$(eval $(call gb_Library_add_precompiled_header,sal,$(SRCDIR)/sal/inc/pch/precompiled_sal))
+
$(eval $(call gb_Library_set_include,sal,\
$$(INCLUDE) \
+ -I$(SRCDIR)/sal/inc/pch \
-I$(SRCDIR)/sal/inc \
))
diff --git a/sal/inc/pch/precompiled_sal.cxx b/sal/inc/pch/precompiled_sal.cxx
new file mode 100644
index 000000000000..5386a69d778e
--- /dev/null
+++ b/sal/inc/pch/precompiled_sal.cxx
@@ -0,0 +1,12 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include "precompiled_sal.hxx"
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sal/inc/pch/precompiled_sal.hxx b/sal/inc/pch/precompiled_sal.hxx
new file mode 100644
index 000000000000..d9ab2232f831
--- /dev/null
+++ b/sal/inc/pch/precompiled_sal.hxx
@@ -0,0 +1,25 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifdef PRECOMPILED_HEADERS
+
+#include <vector>
+#include <map>
+#include <iterator>
+#include <memory>
+#include <deque>
+#include <stdio.h>
+#include <iostream>
+#include <boost/shared_ptr.hpp>
+#include <boost/unordered_map.hpp>
+#include <boost/ptr_container/ptr_vector.hpp>
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */