Kaydet (Commit) 424a03e7 authored tarafından David Tardon's avatar David Tardon

simplify pagein creation

üst 0b7f8b54
......@@ -27,7 +27,7 @@
$(eval $(call gb_Pagein_Pagein,calc))
$(eval $(call gb_Pagein_add_libs,calc,\
$(eval $(call gb_Pagein_add_objects,calc,\
sc \
scui \
svx \
......
......@@ -28,7 +28,10 @@
$(eval $(call gb_Pagein_Pagein,common))
# sorted in approx. reverse load order (ld.so.1)
$(eval $(call gb_Pagein_add_libs,common,\
# TODO: Hmm, so it looks like there are duplicates in the list... Moreover,
# some that are conditional above are not conditional here (e.g., icule).
# I have doubts about gconfbe, desktopbe and localebe too.
$(eval $(call gb_Pagein_add_objects,common,\
i18npool \
$(if $(findstring YES,$(SYSTEM_ICU)),,\
icui18n \
......@@ -52,9 +55,6 @@ $(eval $(call gb_Pagein_add_libs,common,\
sot \
xcr \
sb \
))
$(eval $(call gb_Pagein_add_libs_with_dir,common,\
stocservices \
bootstrap \
reg \
......@@ -63,10 +63,6 @@ $(eval $(call gb_Pagein_add_libs_with_dir,common,\
cppuhelper \
cppu \
sal \
,../ure-link/lib \
))
$(eval $(call gb_Pagein_add_libs,common,\
ucbhelper \
comphelper \
tl \
......@@ -74,18 +70,9 @@ $(eval $(call gb_Pagein_add_libs,common,\
svl \
vcl \
tk \
))
$(eval $(call gb_Pagein_add_objects,common,\
../ure-link/share/misc/types.rdb \
services.rdb \
oovbaapi.rdb \
))
# TODO: Hmm, so it looks like there are duplicates in the list... Moreover,
# some that are conditional above are not conditional here (e.g., icule).
# I have doubts about gconfbe, desktopbe and localebe too.
$(eval $(call gb_Pagein_add_libs,common,\
deployment \
deploymentmisc \
ucb1 \
......
......@@ -27,7 +27,7 @@
$(eval $(call gb_Pagein_Pagein,draw))
$(eval $(call gb_Pagein_add_libs,draw,\
$(eval $(call gb_Pagein_add_objects,draw,\
sd \
sdui \
svx \
......
......@@ -27,7 +27,7 @@
$(eval $(call gb_Pagein_Pagein,impress))
$(eval $(call gb_Pagein_add_libs,impress,\
$(eval $(call gb_Pagein_add_objects,impress,\
sd \
sdui \
svx \
......
......@@ -27,7 +27,7 @@
$(eval $(call gb_Pagein_Pagein,writer))
$(eval $(call gb_Pagein_add_libs,writer,\
$(eval $(call gb_Pagein_add_objects,writer,\
sw \
swui \
svx \
......
......@@ -25,20 +25,16 @@
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
gb_Pagein__istype = $(findstring $(2),$(call gb_Pagein__prefix,$(1)))
gb_Pagein__prefix = $(firstword $(subst :, ,$(1)))
gb_Pagein__suffix = $(lastword $(subst :, ,$(1)))
gb_Pagein__object = $(call gb_Pagein__suffix,$(1))
gb_Pagein__dir = $(call gb_Pagein__prefix,$(1))
gb_Pagein__libname = $(notdir $(call gb_Library_get_target,$(call gb_Pagein__suffix,$(1))))
gb_Pagein__libpath = $(call gb_Pagein__dir,$(1))/$(call gb_Pagein__libname,$(1))
gb_Pagein_UREPATH := ../ure-link/lib/
gb_Pagein__is_library = $(filter $(1),$(gb_Library_KNOWNLIBS))
gb_Pagein__get_libdir = $(if $(filter URELIB,$(call gb_Library_get_layer,$(1))),$(call gb_Pagein_UREPATH))
gb_Pagein__make_library_path = $(call gb_Pagein__get_libdir,$(1))$(call gb_Library_get_runtime_filename,$(1))
gb_Pagein__make_path = \
$(if $(call gb_Pagein__istype,$(1),OBJ),\
$(call gb_Pagein__object,$(1)),\
$(if $(call gb_Pagein__istype,$(1),LIB),\
$(call gb_Pagein__libname,$(1)),\
$(call gb_Pagein__libpath,$(1))))
$(if $(call gb_Pagein__is_library,$(1)),$(call gb_Pagein__make_library_path,$(1)),$(1))
define gb_Pagein__command
$(call gb_Output_announce,$(2),$(true),PAG,5)
......@@ -62,33 +58,14 @@ $(call gb_Pagein_get_outdir_target,%) : $(call gb_Pagein_get_target,%)
define gb_Pagein_Pagein
$(call gb_Pagein_get_target,$(1)) : OBJECTS :=
$(call gb_Pagein_get_target,$(1)) : $(realpath $(lastword $(MAKEFILE_LIST)))
$$(eval $$(call gb_Module_register_target,$(call gb_Pagein_get_outdir_target,$(1)),$(call gb_Pagein_get_clean_target,$(1))))
$(call gb_Pagein_get_outdir_target,$(1)) : $(call gb_Pagein_get_target,$(1))
endef
define gb_Pagein_add_lib
$(call gb_Pagein_get_target,$(1)) : OBJECTS += LIB:$(2)
endef
define gb_Pagein_add_lib_with_dir
$(call gb_Pagein_get_target,$(1)) : OBJECTS += $(strip $(3)):$(2)
endef
define gb_Pagein_add_object
$(call gb_Pagein_get_target,$(1)) : OBJECTS += OBJ:$(2)
endef
define gb_Pagein_add_libs
$(foreach lib,$(2),$(call gb_Pagein_add_lib,$(1),$(lib)))
endef
define gb_Pagein_add_libs_with_dir
$(foreach lib,$(2),$(call gb_Pagein_add_lib_with_dir,$(1),$(lib),$(3)))
$(call gb_Pagein_get_target,$(1)) : OBJECTS += $(2)
endef
......
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