summaryrefslogtreecommitdiff
authorTor Lillqvist <tml@iki.fi>2012-08-23 19:23:33 (GMT)
committer Tor Lillqvist <tml@iki.fi>2012-08-23 19:26:01 (GMT)
commita1aed54fee058fdedb7d50b96291af701a327e57 (patch) (side-by-side diff)
tree6905adb5b1612dbbeced9e28dbb4010b0a9b9120
parent0d2ed78dad772e62ce8e50be95e445a86742ab9b (diff)
downloadcore-a1aed54fee058fdedb7d50b96291af701a327e57.zip
core-a1aed54fee058fdedb7d50b96291af701a327e57.tar.gz
Build basebmp as a static library for Android
Reduces shared library count by one... This is tedious. Change-Id: I3bdc0a5c4ee4cabf9bbcedc469ca6e94d0103d6b
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Library_merged.mk5
-rw-r--r--Repository.mk7
-rw-r--r--android/experimental/DocumentLoader/Makefile1
-rw-r--r--android/experimental/LibreOffice4Android/Makefile1
-rw-r--r--android/qa/desktop/Makefile1
-rw-r--r--android/qa/sc/Makefile1
-rw-r--r--basebmp/CppunitTest_basebmp.mk9
-rw-r--r--basebmp/Module_basebmp.mk9
-rw-r--r--basebmp/StaticLibrary_basebmp.mk37
-rw-r--r--vcl/Library_vcl.mk2
10 files changed, 66 insertions, 7 deletions
diff --git a/Library_merged.mk b/Library_merged.mk
index 1ac02e5..b793544 100644
--- a/Library_merged.mk
+++ b/Library_merged.mk
@@ -123,8 +123,11 @@ $(eval $(call gb_Library_use_externals,merged,\
endif
ifeq ($(OS),ANDROID)
-$(eval $(call gb_Library_use_libraries,merged,\
+$(eval $(call gb_Library_use_static_libraries,merged,\
basebmp \
+))
+
+$(eval $(call gb_Library_use_libraries,merged,\
libotouch \
))
diff --git a/Repository.mk b/Repository.mk
index c8f9692..df57a96 100644
--- a/Repository.mk
+++ b/Repository.mk
@@ -215,7 +215,9 @@ $(eval $(call gb_Helper_register_libraries,OOOLIBS, \
analysis \
animcore \
basctl \
- basebmp \
+ $(if $(filter $(OS),ANDROID),, \
+ basebmp \
+ ) \
bib \
canvastools \
communi \
@@ -628,6 +630,9 @@ $(eval $(call gb_Helper_register_libraries,EXTENSIONLIBS, \
))
$(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
+ $(if $(filter $(OS),ANDROID), \
+ basebmp \
+ ) \
basegfx_s \
codemaker \
codemaker_cpp \
diff --git a/android/experimental/DocumentLoader/Makefile b/android/experimental/DocumentLoader/Makefile
index a6a2898..063bef2 100644
--- a/android/experimental/DocumentLoader/Makefile
+++ b/android/experimental/DocumentLoader/Makefile
@@ -52,7 +52,6 @@ copy-stuff:
#
for F in $(strip \
analysislo \
- basebmplo \
basegfxlo \
bootstrap.uno \
comphelpgcc3 \
diff --git a/android/experimental/LibreOffice4Android/Makefile b/android/experimental/LibreOffice4Android/Makefile
index 837f930..baeabdf 100644
--- a/android/experimental/LibreOffice4Android/Makefile
+++ b/android/experimental/LibreOffice4Android/Makefile
@@ -21,7 +21,6 @@ copy-stuff:
#
for F in $(strip \
analysislo \
- basebmplo \
basegfxlo \
bootstrap.uno \
chartcontrollerlo \
diff --git a/android/qa/desktop/Makefile b/android/qa/desktop/Makefile
index 2fbd815..734cb56 100644
--- a/android/qa/desktop/Makefile
+++ b/android/qa/desktop/Makefile
@@ -92,7 +92,6 @@ copy-stuff: buildrcs
#
for F in $(strip \
analysislo \
- basebmplo \
basegfxlo \
bootstrap.uno \
comphelpgcc3 \
diff --git a/android/qa/sc/Makefile b/android/qa/sc/Makefile
index b77c5cf..a455939 100644
--- a/android/qa/sc/Makefile
+++ b/android/qa/sc/Makefile
@@ -61,7 +61,6 @@ copy-stuff:
#
for F in $(strip \
analysislo \
- basebmplo \
basegfxlo \
bootstrap.uno \
comphelpgcc3 \
diff --git a/basebmp/CppunitTest_basebmp.mk b/basebmp/CppunitTest_basebmp.mk
index cbdfef6..f11b462 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 f6080f6..b1c45fe 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 0000000..29f3d59
--- a/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:
diff --git a/vcl/Library_vcl.mk b/vcl/Library_vcl.mk
index f8e7fa8..77ea232 100644
--- a/vcl/Library_vcl.mk
+++ b/vcl/Library_vcl.mk
@@ -568,7 +568,7 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\
$(vcl_headless_code) \
))
-$(eval $(call gb_Library_use_libraries,vcl,\
+$(eval $(call gb_Library_use_static_libraries,vcl,\
basebmp \
))