Build basebmp as a static library for Android

Reduces shared library count by one... This is tedious.

Change-Id: I3bdc0a5c4ee4cabf9bbcedc469ca6e94d0103d6b
This commit is contained in:
Tor Lillqvist
2012-08-23 22:23:33 +03:00
parent 0d2ed78dad
commit a1aed54fee
10 changed files with 66 additions and 7 deletions

View File

@@ -123,8 +123,11 @@ $(eval $(call gb_Library_use_externals,merged,\
endif endif
ifeq ($(OS),ANDROID) ifeq ($(OS),ANDROID)
$(eval $(call gb_Library_use_libraries,merged,\ $(eval $(call gb_Library_use_static_libraries,merged,\
basebmp \ basebmp \
))
$(eval $(call gb_Library_use_libraries,merged,\
libotouch \ libotouch \
)) ))

View File

@@ -215,7 +215,9 @@ $(eval $(call gb_Helper_register_libraries,OOOLIBS, \
analysis \ analysis \
animcore \ animcore \
basctl \ basctl \
basebmp \ $(if $(filter $(OS),ANDROID),, \
basebmp \
) \
bib \ bib \
canvastools \ canvastools \
communi \ communi \
@@ -628,6 +630,9 @@ $(eval $(call gb_Helper_register_libraries,EXTENSIONLIBS, \
)) ))
$(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \ $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
$(if $(filter $(OS),ANDROID), \
basebmp \
) \
basegfx_s \ basegfx_s \
codemaker \ codemaker \
codemaker_cpp \ codemaker_cpp \

View File

@@ -52,7 +52,6 @@ copy-stuff:
# #
for F in $(strip \ for F in $(strip \
analysislo \ analysislo \
basebmplo \
basegfxlo \ basegfxlo \
bootstrap.uno \ bootstrap.uno \
comphelpgcc3 \ comphelpgcc3 \

View File

@@ -21,7 +21,6 @@ copy-stuff:
# #
for F in $(strip \ for F in $(strip \
analysislo \ analysislo \
basebmplo \
basegfxlo \ basegfxlo \
bootstrap.uno \ bootstrap.uno \
chartcontrollerlo \ chartcontrollerlo \

View File

@@ -92,7 +92,6 @@ copy-stuff: buildrcs
# #
for F in $(strip \ for F in $(strip \
analysislo \ analysislo \
basebmplo \
basegfxlo \ basegfxlo \
bootstrap.uno \ bootstrap.uno \
comphelpgcc3 \ comphelpgcc3 \

View File

@@ -61,7 +61,6 @@ copy-stuff:
# #
for F in $(strip \ for F in $(strip \
analysislo \ analysislo \
basebmplo \
basegfxlo \ basegfxlo \
bootstrap.uno \ bootstrap.uno \
comphelpgcc3 \ comphelpgcc3 \

View File

@@ -14,8 +14,17 @@ $(eval $(call gb_CppunitTest_set_include,basebmp_cpputest,\
$$(INCLUDE) \ $$(INCLUDE) \
)) ))
ifeq ($(OS),ANDROID)
$(eval $(call gb_CppunitTest_use_static_libraries,basebmp_cpputest,\
basebmp \
))
else
$(eval $(call gb_CppunitTest_use_libraries,basebmp_cpputest,\ $(eval $(call gb_CppunitTest_use_libraries,basebmp_cpputest,\
basebmp \ basebmp \
))
endif
$(eval $(call gb_CppunitTest_use_libraries,basebmp_cpputest,\
basegfx \ basegfx \
sal \ sal \
$(gb_STDLIBS) \ $(gb_STDLIBS) \

View File

@@ -9,8 +9,17 @@
$(eval $(call gb_Module_Module,basebmp)) $(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,\ $(eval $(call gb_Module_add_targets,basebmp,\
Library_basebmp \ Library_basebmp \
))
endif
$(eval $(call gb_Module_add_targets,basebmp,\
Package_inc \ Package_inc \
)) ))

View File

@@ -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:

View File

@@ -568,7 +568,7 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\
$(vcl_headless_code) \ $(vcl_headless_code) \
)) ))
$(eval $(call gb_Library_use_libraries,vcl,\ $(eval $(call gb_Library_use_static_libraries,vcl,\
basebmp \ basebmp \
)) ))