gnumake2: simplify repository setup

This commit is contained in:
Bjoern Michaelsen 2010-11-11 19:01:45 +01:00
parent 36cd76751c
commit 0127304341
2 changed files with 40 additions and 17 deletions

View file

@ -38,7 +38,7 @@ $(eval $(call gb_Helper_register_executables,NONE, \
g2g \
))
gb_Library_OOOLIBS +=\
$(eval $(call gb_Helper_register_libraries,OOOLIBS, \
avmedia \
basegfx \
cui \
@ -74,51 +74,54 @@ gb_Library_OOOLIBS +=\
xo \
xof \
xcr \
))
gb_Library_PLAINLIBS_URE +=\
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_URE, \
xml2 \
))
gb_Library_PLAINLIBS_OOO +=\
$(eval $(call gb_Helper_register_libraries,PLAINLIBS_OOO, \
icuuc \
))
# => OOOLIB
gb_Library_RTLIBS +=\
$(eval $(call gb_Helper_register_libraries,RTLIBS, \
comphelper \
i18nisolang1 \
i18nutil \
ucbhelper \
vos3 \
))
# => URELIB
gb_Library_RTVERLIBS +=\
$(eval $(call gb_Helper_register_libraries,RTVERLIBS, \
cppuhelper \
salhelper \
))
# => URELIB
gb_Library_STLLIBS +=\
$(eval $(call gb_Helper_register_libraries,STLLIBS, \
stl \
))
gb_Library_UNOLIBS_URE +=\
gb_Library_UNOLIBS_OOO +=\
$(eval $(call gb_Helper_register_libraries,UNOLIBS_OOO, \
fsstorage \
hatchwindowfactory \
passwordcontainer \
productregistration \
vbaswobj \
))
# => URELIB
gb_Library_UNOVERLIBS +=\
$(eval $(call gb_Helper_register_libraries,UNOVERLIBS, \
cppu \
jvmfwk \
sal \
))
gb_StaticLibrary_PLAINLIBS +=\
$(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
jpeglib \
ooopathutils \
salcpprt \
zlib \
))
# vim: set noet sw=4 ts=4:

View file

@ -126,11 +126,12 @@ endef
define gb_Helper_add_repositories
$(foreach repo,$(1),$(call gb_Helper_add_repository,$(repo)))
endef
define gb_Helper_init_registries
gb_Executable_VALIDLAYERS := UREBIN SDK OOO BRAND NONE
gb_Library_VALIDLAYERS := PLAINLIBS_URE PLAINLIBS_OOO RTLIBS RTVERLIBS STLLIBS UNOLIBS_URE UNOLIBS_OOO UNOVERLIBS
gb_Library_VALIDLAYERS := OOOLIBS PLAINLIBS_URE PLAINLIBS_OOO RTLIBS RTVERLIBS STLLIBS UNOLIBS_URE UNOLIBS_OOO UNOVERLIBS
gb_StaticLibrary_VALIDLAYERS := PLAINLIBS
gb_Library_NAMESCHEMES := OOO PLAIN RT RTVER STL UNO UNOVER
gb_StaticLibrary_NAMESCHEMES := PLAIN
@ -167,6 +168,25 @@ $$(error $(1) is not a valid layer for executables. Valid layers are: $$(gb_Exec
endif
gb_Executable_$(1) += $(2)
endef
define gb_Helper_register_libraries
ifeq ($$(filter $(1),$$(gb_Library_VALIDLAYERS)),)
$$(error $(1) is not a valid layer for layer. Valid layers are: $$(gb_Library_VALIDLAYERS))
endif
gb_Library_$(1) += $(2)
endef
define gb_Helper_register_static_libraries
ifeq ($$(filter $(1),$$(gb_StaticLibrary_VALIDLAYERS)),)
$$(error $(1) is not a valid layer for layer. Valid layers are: $$(gb_StaticLibrary_VALIDLAYERS))
endif
gb_StaticLibrary_$(1) += $(2)
endef
# vim: set noet sw=4 ts=4: