fix few problems with gbuildized liborcus
Change-Id: Ic8717085f0f71470eadc225eb062c1dee24d24f7
This commit is contained in:
@@ -1909,19 +1909,12 @@ endef
|
||||
|
||||
else # !SYSTEM_LIBORCUS
|
||||
|
||||
$(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
|
||||
orcus \
|
||||
))
|
||||
|
||||
define gb_LinkTarget__use_orcus
|
||||
$(call gb_LinkTarget_use_unpacked,$(1),orcus)
|
||||
$(call gb_LinkTarget_set_include,$(1),\
|
||||
-I$(call gb_UnpackedTarball_get_dir,orcus/include) \
|
||||
$$(INCLUDE) \
|
||||
)
|
||||
$(call gb_LinkTarget_use_static_libraries,$(1),\
|
||||
orcus \
|
||||
)
|
||||
$(call gb_LinkTarget_use_static_external_library,$(1),orcus,liborcus)
|
||||
endef
|
||||
|
||||
endif # SYSTEM_LIBORCUS
|
||||
|
@@ -41,7 +41,7 @@ $(call gb_ExternalProject_get_state_target,liborcus,build) :
|
||||
$(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
|
||||
&& $(GNUMAKE) \
|
||||
&& cp src/liborcus/.libs/liborcus-0.2.a $(OUTDIR)/lib \
|
||||
&& ln -s $(OUTDIR)/lib/liborcus.a liborcus-0.2.a \
|
||||
&& ln -s liborcus-0.2.a $(OUTDIR)/lib/liborcus.a \
|
||||
&& touch $@
|
||||
|
||||
endif
|
||||
|
@@ -745,18 +745,12 @@ $$(foreach lib,$(2),$$(call gb_StaticLibrary_get_headers_target,$$(lib)))
|
||||
|
||||
endef
|
||||
|
||||
define gb_LinkTarget_add_linked_static_external_libs
|
||||
$$(call gb_Output_error,\
|
||||
gb_LinkTarget_add_linked_static_external_libs: use gb_LinkTarget_use_static_external_libraries instead.)
|
||||
endef
|
||||
|
||||
# TODO: why do we need this?
|
||||
define gb_LinkTarget_use_static_external_libraries
|
||||
|
||||
# gb_LinkTarget_use_static_external_library linktarget library externalproject
|
||||
define gb_LinkTarget_use_static_external_library
|
||||
$(call gb_LinkTarget_get_target,$(1)) : LINKED_STATIC_LIBS += $(2)
|
||||
|
||||
$(call gb_LinkTarget_get_target,$(1)) : $$(foreach lib,$(2),$$(call gb_ExternalLibs_get_target,$$(lib)))
|
||||
$(call gb_LinkTarget_get_external_headers_target,$(1)) : $$(foreach lib,$(2),$$(call gb_ExternalLibs_get_target,$$(lib)))
|
||||
$(call gb_LinkTarget_get_target,$(1)) : $(call gb_ExternalProject_get_target,$(3))
|
||||
$(call gb_LinkTarget_get_external_headers_target,$(1)) : $(call gb_ExternalProject_get_target,$(3))
|
||||
|
||||
endef
|
||||
|
||||
|
Reference in New Issue
Block a user