Closed Bug 555088 Opened 14 years ago Closed 14 years ago

Support building freetype2 on other platforms

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9.3a4

People

(Reporter: mwu, Assigned: mwu)

References

Details

Attachments

(2 files, 2 obsolete files)

The in-tree freetype2 currently only builds for a single platform. Other platforms, like Android, should be supported.
Attachment #435021 - Flags: review?(ted.mielczarek)
Unbitrot patch after bug 553433
Attachment #435021 - Attachment is obsolete: true
Attachment #435236 - Flags: review?(ted.mielczarek)
Attachment #435021 - Flags: review?(ted.mielczarek)
Comment on attachment 435236 [details] [diff] [review]
Support building FT2 on other platforms, v2

>diff --git a/configure.in b/configure.in
>--- a/configure.in
>+++ b/configure.in
>@@ -6125,8 +6125,8 @@
>    FT_FONT_FEATURE="#define CAIRO_HAS_FT_FONT 1"
>    FT2_CFLAGS='-I$(topsrcdir)/modules/freetype2/include'
>    CAIRO_FT_CFLAGS='-I$(topsrcdir)/modules/freetype2/include'
>-   FT2_LIBS='$(LIBXUL_DIST)/lib/freetype2.lib'
>-   CAIRO_FT_LIBS='$(LIBXUL_DIST)/lib/freetype2.lib'
>+   FT2_LIBS='$(LIBXUL_DIST)/lib/$(LIB_PREFIX)freetype2.$(LIB_SUFFIX)'
>+   CAIRO_FT_LIBS='$(LIBXUL_DIST)/lib/$(LIB_PREFIX)freetype2.$(LIB_SUFFIX)'

Please make these '$(call EXPAND_LIBNAME_PATH,freetype2,$(LIBXUL_DIST)/lib)' while you're here.

>diff --git a/modules/freetype2/Makefile.in b/modules/freetype2/Makefile.in
>--- a/modules/freetype2/Makefile.in
>+++ b/modules/freetype2/Makefile.in
>@@ -42,12 +42,12 @@
> 
> include $(DEPTH)/config/autoconf.mk
> 
>-MODULE	= freetype2
>-LIBRARY_NAME	= freetype2
>-GRE_MODULE	= 1
>-LIBXUL_LIBRARY = 1
>-DIST_INSTALL = 1
>-FORCE_STATIC_LIB = 1
>+MODULE	          = freetype2
>+LIBRARY_NAME      = freetype2
>+GRE_MODULE        = 1
>+LIBXUL_LIBRARY    = 1
>+DIST_INSTALL      = 1
>+BUILD_STATIC_LIBS = 1

This is really not right. BUILD_STATIC_LIBS == --enable-static, it's not the same as FORCE_STATIC_LIB.
Attachment #435236 - Flags: review?(ted.mielczarek) → review-
(In reply to comment #2)
> (From update of attachment 435236 [details] [diff] [review])
> >diff --git a/configure.in b/configure.in
> >--- a/configure.in
> >+++ b/configure.in
> >@@ -6125,8 +6125,8 @@
> >    FT_FONT_FEATURE="#define CAIRO_HAS_FT_FONT 1"
> >    FT2_CFLAGS='-I$(topsrcdir)/modules/freetype2/include'
> >    CAIRO_FT_CFLAGS='-I$(topsrcdir)/modules/freetype2/include'
> >-   FT2_LIBS='$(LIBXUL_DIST)/lib/freetype2.lib'
> >-   CAIRO_FT_LIBS='$(LIBXUL_DIST)/lib/freetype2.lib'
> >+   FT2_LIBS='$(LIBXUL_DIST)/lib/$(LIB_PREFIX)freetype2.$(LIB_SUFFIX)'
> >+   CAIRO_FT_LIBS='$(LIBXUL_DIST)/lib/$(LIB_PREFIX)freetype2.$(LIB_SUFFIX)'
> 
> Please make these '$(call EXPAND_LIBNAME_PATH,freetype2,$(LIBXUL_DIST)/lib)'
> while you're here.
> 
Ok.

> >diff --git a/modules/freetype2/Makefile.in b/modules/freetype2/Makefile.in
> >--- a/modules/freetype2/Makefile.in
> >+++ b/modules/freetype2/Makefile.in
> >@@ -42,12 +42,12 @@
> > 
> > include $(DEPTH)/config/autoconf.mk
> > 
> >-MODULE	= freetype2
> >-LIBRARY_NAME	= freetype2
> >-GRE_MODULE	= 1
> >-LIBXUL_LIBRARY = 1
> >-DIST_INSTALL = 1
> >-FORCE_STATIC_LIB = 1
> >+MODULE	          = freetype2
> >+LIBRARY_NAME      = freetype2
> >+GRE_MODULE        = 1
> >+LIBXUL_LIBRARY    = 1
> >+DIST_INSTALL      = 1
> >+BUILD_STATIC_LIBS = 1
> 
> This is really not right. BUILD_STATIC_LIBS == --enable-static, it's not the
> same as FORCE_STATIC_LIB.
Looks like we build ok without the change. The android port just happened to use BUILD_STATIC_LIBS before bug 547521 landed.
Attachment #435236 - Attachment is obsolete: true
Attachment #435673 - Flags: review?(ted.mielczarek)
Attachment #435673 - Flags: review?(ted.mielczarek) → review+
http://hg.mozilla.org/mozilla-central/rev/8e7e274d3915
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
Target Milestone: --- → mozilla1.9.3a4
Attachment #436237 - Attachment description: (Bv1-CC) Copy (the useful part of) it to comm-central → (Bv1-CC) Copy (the useful part of) it to comm-central, (m-1.9.2+)
Comment on attachment 436237 [details] [diff] [review]
(Bv1-CC) Copy (the useful part of) it to comm-central
[Checkin: See comment 8]

assuming this DOES work just fine on 1.9.2. r+ [if you did not test, or can't you can apply r+ to a 1.9.2 ifdef inserted.]
Attachment #436237 - Flags: review?(bugspam.Callek) → review+
Attachment #435673 - Attachment description: Support building FT2 on other platforms, v3 → Support building FT2 on other platforms, v3 [Checkin: Comment 5]
Comment on attachment 436237 [details] [diff] [review]
(Bv1-CC) Copy (the useful part of) it to comm-central
[Checkin: See comment 8]


http://hg.mozilla.org/comm-central/rev/6eac7ef88f77
Bv1-CC, with comment 7 suggestion(s).
Attachment #436237 - Attachment description: (Bv1-CC) Copy (the useful part of) it to comm-central, (m-1.9.2+) → (Bv1-CC) Copy (the useful part of) it to comm-central [Checkin: See comment 8]
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: