Kaydet (Commit) a1aed54f authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Build basebmp as a static library for Android

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

Change-Id: I3bdc0a5c4ee4cabf9bbcedc469ca6e94d0103d6b
üst 0d2ed78d
......@@ -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 \
))
......
......@@ -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 \
......
......@@ -52,7 +52,6 @@ copy-stuff:
#
for F in $(strip \
analysislo \
basebmplo \
basegfxlo \
bootstrap.uno \
comphelpgcc3 \
......
......@@ -21,7 +21,6 @@ copy-stuff:
#
for F in $(strip \
analysislo \
basebmplo \
basegfxlo \
bootstrap.uno \
chartcontrollerlo \
......
......@@ -92,7 +92,6 @@ copy-stuff: buildrcs
#
for F in $(strip \
analysislo \
basebmplo \
basegfxlo \
bootstrap.uno \
comphelpgcc3 \
......
......@@ -61,7 +61,6 @@ copy-stuff:
#
for F in $(strip \
analysislo \
basebmplo \
basegfxlo \
bootstrap.uno \
comphelpgcc3 \
......
......@@ -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) \
......
......@@ -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 \
))
......
# -*- 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:
......@@ -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 \
))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment