summaryrefslogtreecommitdiff
path: root/basebmp
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-08-23 22:23:33 +0300
committerTor Lillqvist <tml@iki.fi>2012-08-23 22:26:01 +0300
commita1aed54fee058fdedb7d50b96291af701a327e57 (patch)
tree6905adb5b1612dbbeced9e28dbb4010b0a9b9120 /basebmp
parent0d2ed78dad772e62ce8e50be95e445a86742ab9b (diff)
Build basebmp as a static library for Android
Reduces shared library count by one... This is tedious. Change-Id: I3bdc0a5c4ee4cabf9bbcedc469ca6e94d0103d6b
Diffstat (limited to 'basebmp')
-rw-r--r--basebmp/CppunitTest_basebmp.mk9
-rw-r--r--basebmp/Module_basebmp.mk9
-rw-r--r--basebmp/StaticLibrary_basebmp.mk37
3 files changed, 55 insertions, 0 deletions
diff --git a/basebmp/CppunitTest_basebmp.mk b/basebmp/CppunitTest_basebmp.mk
index cbdfef63a0c1..f11b46297e30 100644
--- a/basebmp/CppunitTest_basebmp.mk
+++ b/basebmp/CppunitTest_basebmp.mk
@@ -14,8 +14,17 @@ $(eval $(call gb_CppunitTest_set_include,basebmp_cpputest,\
$$(INCLUDE) \
))
+ifeq ($(OS),ANDROID)
+$(eval $(call gb_CppunitTest_use_static_libraries,basebmp_cpputest,\
+ basebmp \
+))
+else
$(eval $(call gb_CppunitTest_use_libraries,basebmp_cpputest,\
basebmp \
+))
+endif
+
+$(eval $(call gb_CppunitTest_use_libraries,basebmp_cpputest,\
basegfx \
sal \
$(gb_STDLIBS) \
diff --git a/basebmp/Module_basebmp.mk b/basebmp/Module_basebmp.mk
index f6080f656571..b1c45fed11fb 100644
--- a/basebmp/Module_basebmp.mk
+++ b/basebmp/Module_basebmp.mk
@@ -9,8 +9,17 @@
$(eval $(call gb_Module_Module,basebmp))
+ifeq ($(OS),ANDROID)
+$(eval $(call gb_Module_add_targets,basebmp,\
+ StaticLibrary_basebmp \
+))
+else
$(eval $(call gb_Module_add_targets,basebmp,\
Library_basebmp \
+))
+endif
+
+$(eval $(call gb_Module_add_targets,basebmp,\
Package_inc \
))
diff --git a/basebmp/StaticLibrary_basebmp.mk b/basebmp/StaticLibrary_basebmp.mk
new file mode 100644
index 000000000000..29f3d5906bb0
--- /dev/null
+++ b/basebmp/StaticLibrary_basebmp.mk
@@ -0,0 +1,37 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# 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/.
+#
+
+$(eval $(call gb_StaticLibrary_StaticLibrary,basebmp))
+
+$(eval $(call gb_StaticLibrary_use_package,basebmp,basebmp_inc))
+
+$(eval $(call gb_StaticLibrary_use_sdk_api,basebmp))
+
+$(eval $(call gb_StaticLibrary_use_libraries,basebmp,\
+ basegfx \
+ sal \
+ $(gb_STDLIBS) \
+))
+
+$(eval $(call gb_StaticLibrary_set_include,basebmp,\
+ -I$(SRCDIR)/basebmp/inc/ \
+ $$(INCLUDE) \
+))
+
+$(eval $(call gb_StaticLibrary_add_defs,basebmp,\
+ -DBASEBMP_DLLIMPLEMENTATION \
+))
+
+$(eval $(call gb_StaticLibrary_add_exception_objects,basebmp,\
+ basebmp/source/bitmapdevice \
+ basebmp/source/debug \
+ basebmp/source/polypolygonrenderer \
+))
+
+# vim: set noet sw=4 ts=4: