gnumake4: #i117610#: add RepositoryExternal.mk, and use it. [hg:62e2f8dc95a7]
This commit is contained in:
parent
f3ef6ed540
commit
990111d87a
5 changed files with 7 additions and 86 deletions
|
@ -47,22 +47,6 @@ $(eval $(call gb_Library_set_defs,cairocanvas,\
|
||||||
))
|
))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(SYSTEM_CAIRO),YES)
|
|
||||||
# FREETYPE_CLAGS from environment if ENABLE_CAIRO is used
|
|
||||||
# $(CAIRO_CFLAGS) currently not set; taking usr/include directly
|
|
||||||
$(eval $(call gb_Library_set_include,cairocanvas,\
|
|
||||||
$$(INCLUDE) \
|
|
||||||
$(FREETYPE_CFLAGS) \
|
|
||||||
-I/usr/include \
|
|
||||||
))
|
|
||||||
else
|
|
||||||
$(eval $(call gb_Library_set_include,cairocanvas,\
|
|
||||||
$$(INCLUDE) \
|
|
||||||
-I$(OUTDIR)/inc/cairo \
|
|
||||||
$(FREETYPE_CFLAGS) \
|
|
||||||
))
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(eval $(call gb_Library_add_linked_libs,cairocanvas,\
|
$(eval $(call gb_Library_add_linked_libs,cairocanvas,\
|
||||||
sal \
|
sal \
|
||||||
stl \
|
stl \
|
||||||
|
@ -96,6 +80,7 @@ $(eval $(call gb_Library_add_exception_objects,cairocanvas,\
|
||||||
canvas/source/cairo/cairo_textlayout \
|
canvas/source/cairo/cairo_textlayout \
|
||||||
))
|
))
|
||||||
|
|
||||||
|
$(call gb_Library_use_external,cairocanvas,cairo)
|
||||||
|
|
||||||
ifeq ($(OS),WNT)
|
ifeq ($(OS),WNT)
|
||||||
|
|
||||||
|
@ -103,18 +88,12 @@ $(eval $(call gb_Library_add_exception_objects,cairocanvas,\
|
||||||
canvas/source/cairo/cairo_win32_cairo \
|
canvas/source/cairo/cairo_win32_cairo \
|
||||||
))
|
))
|
||||||
$(eval $(call gb_Library_add_linked_libs,cairocanvas,\
|
$(eval $(call gb_Library_add_linked_libs,cairocanvas,\
|
||||||
cairo \
|
|
||||||
gdi32 \
|
gdi32 \
|
||||||
user32 \
|
user32 \
|
||||||
))
|
))
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
$(eval $(call gb_Library_add_linked_libs,cairocanvas,\
|
|
||||||
cairo \
|
|
||||||
pixman-1 \
|
|
||||||
))
|
|
||||||
|
|
||||||
ifeq ($(OS),MACOSX)
|
ifeq ($(OS),MACOSX)
|
||||||
$(eval $(call gb_Library_add_exception_objects,cairocanvas,\
|
$(eval $(call gb_Library_add_exception_objects,cairocanvas,\
|
||||||
canvas/source/cairo/cairo_quartz_cairo \
|
canvas/source/cairo/cairo_quartz_cairo \
|
||||||
|
|
|
@ -39,13 +39,6 @@ $(eval $(call gb_Library_set_defs,expwrap,\
|
||||||
$$(DEFS) \
|
$$(DEFS) \
|
||||||
))
|
))
|
||||||
|
|
||||||
ifeq ($(SYSTEM_ZLIB),YES)
|
|
||||||
$(eval $(call gb_Library_set_defs,expwrap,\
|
|
||||||
$$(DEFS) \
|
|
||||||
-DSYSTEM_ZLIB \
|
|
||||||
))
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(eval $(call gb_Library_add_linked_libs,expwrap,\
|
$(eval $(call gb_Library_add_linked_libs,expwrap,\
|
||||||
sal \
|
sal \
|
||||||
cppu \
|
cppu \
|
||||||
|
@ -54,24 +47,7 @@ $(eval $(call gb_Library_add_linked_libs,expwrap,\
|
||||||
$(gb_STDLIBS) \
|
$(gb_STDLIBS) \
|
||||||
))
|
))
|
||||||
|
|
||||||
ifeq ($(SYSTEM_EXPAT),YES)
|
$(call gb_Library_use_external,expwrap,expat_utf16)
|
||||||
$(eval $(call gb_Library_set_defs,expwrap,\
|
|
||||||
$$(DEFS) \
|
|
||||||
-DSYSTEM_EXPAT \
|
|
||||||
))
|
|
||||||
$(eval $(call gb_Library_add_linked_libs,expwrap,\
|
|
||||||
expat \
|
|
||||||
))
|
|
||||||
else
|
|
||||||
$(eval $(call gb_Library_set_defs,expwrap,\
|
|
||||||
$$(DEFS) \
|
|
||||||
-DXML_UNICODE \
|
|
||||||
))
|
|
||||||
$(eval $(call gb_Library_add_linked_static_libs,expwrap,\
|
|
||||||
expat_xmlparse \
|
|
||||||
expat_xmltok \
|
|
||||||
))
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(eval $(call gb_Library_add_exception_objects,expwrap,\
|
$(eval $(call gb_Library_add_exception_objects,expwrap,\
|
||||||
sax/source/expatwrap/attrlistimpl \
|
sax/source/expatwrap/attrlistimpl \
|
||||||
|
|
|
@ -55,20 +55,7 @@ $(eval $(call gb_Library_set_defs,fastsax,\
|
||||||
))
|
))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(SYSTEM_EXPAT),YES)
|
$(call gb_Library_use_external,fastsax,expat_utf8)
|
||||||
$(eval $(call gb_Library_set_defs,fastsax,\
|
|
||||||
$$(DEFS) \
|
|
||||||
-DSYSTEM_EXPAT \
|
|
||||||
))
|
|
||||||
$(eval $(call gb_Library_add_linked_libs,fastsax,\
|
|
||||||
expat \
|
|
||||||
))
|
|
||||||
else
|
|
||||||
$(eval $(call gb_Library_add_linked_static_libs,fastsax,\
|
|
||||||
expat_xmlparse \
|
|
||||||
expat_xmltok \
|
|
||||||
))
|
|
||||||
endif
|
|
||||||
|
|
||||||
# re-uses xml2utf object from sax.uno lib (see below)
|
# re-uses xml2utf object from sax.uno lib (see below)
|
||||||
$(eval $(call gb_Library_add_exception_objects,fastsax,\
|
$(eval $(call gb_Library_add_exception_objects,fastsax,\
|
||||||
|
|
|
@ -58,7 +58,6 @@ $(eval $(call gb_Library_add_linked_libs,svt,\
|
||||||
cppuhelper \
|
cppuhelper \
|
||||||
i18nisolang1 \
|
i18nisolang1 \
|
||||||
i18nutil \
|
i18nutil \
|
||||||
icuuc \
|
|
||||||
jvmfwk \
|
jvmfwk \
|
||||||
sal \
|
sal \
|
||||||
sot \
|
sot \
|
||||||
|
@ -73,18 +72,10 @@ $(eval $(call gb_Library_add_linked_libs,svt,\
|
||||||
$(gb_STDLIBS) \
|
$(gb_STDLIBS) \
|
||||||
))
|
))
|
||||||
|
|
||||||
ifeq ($(SYSTEM_JPEG),YES)
|
$(call gb_Library_use_externals,svt,\
|
||||||
$(eval $(call gb_Library_add_linked_libs,svt,\
|
icuuc \
|
||||||
jpeg \
|
jpeg \
|
||||||
))
|
)
|
||||||
$(eval $(call gb_Library_set_ldflags,svt,\
|
|
||||||
$$(filter-out -L/usr/lib/jvm%,$$(LDFLAGS)) \
|
|
||||||
))
|
|
||||||
else
|
|
||||||
$(eval $(call gb_Library_add_linked_static_libs,svt,\
|
|
||||||
jpeglib \
|
|
||||||
))
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(eval $(call gb_Library_add_exception_objects,svt,\
|
$(eval $(call gb_Library_add_exception_objects,svt,\
|
||||||
svtools/source/brwbox/brwbox1 \
|
svtools/source/brwbox/brwbox1 \
|
||||||
|
|
|
@ -126,19 +126,7 @@ $(eval $(call gb_Library_add_exception_objects,tl,\
|
||||||
))
|
))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(SYSTEM_ZLIB),YES)
|
$(call gb_Library_use_external,tl,zlib)
|
||||||
$(eval $(call gb_Library_set_cxxflags,tl,\
|
|
||||||
$$(CXXFLAGS) \
|
|
||||||
-DSYSTEM_ZLIB \
|
|
||||||
))
|
|
||||||
$(eval $(call gb_Library_add_linked_libs,tl,\
|
|
||||||
z \
|
|
||||||
))
|
|
||||||
else
|
|
||||||
$(eval $(call gb_Library_add_linked_static_libs,tl,\
|
|
||||||
zlib \
|
|
||||||
))
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(OS),WNT)
|
ifeq ($(OS),WNT)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue