Closed
Bug 555088
Opened 15 years ago
Closed 15 years ago
Support building freetype2 on other platforms
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.9.3a4
People
(Reporter: mwu, Assigned: mwu)
References
Details
Attachments
(2 files, 2 obsolete files)
683 bytes,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
1.01 KB,
patch
|
Callek
:
review+
|
Details | Diff | Splinter Review |
The in-tree freetype2 currently only builds for a single platform. Other platforms, like Android, should be supported.
Attachment #435021 -
Flags: review?(ted.mielczarek)
Assignee | ||
Comment 1•15 years ago
|
||
Unbitrot patch after bug 553433
Attachment #435021 -
Attachment is obsolete: true
Attachment #435236 -
Flags: review?(ted.mielczarek)
Attachment #435021 -
Flags: review?(ted.mielczarek)
Comment 2•15 years ago
|
||
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-
Assignee | ||
Comment 3•15 years ago
|
||
(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.
Assignee | ||
Comment 4•15 years ago
|
||
Attachment #435236 -
Attachment is obsolete: true
Attachment #435673 -
Flags: review?(ted.mielczarek)
Updated•15 years ago
|
Attachment #435673 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Comment 5•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Flags: in-testsuite-
Target Milestone: --- → mozilla1.9.3a4
Comment 6•15 years ago
|
||
Attachment #436237 -
Flags: review?(bugspam.Callek)
Updated•15 years ago
|
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 7•15 years ago
|
||
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+
Updated•15 years ago
|
Attachment #435673 -
Attachment description: Support building FT2 on other platforms, v3 → Support building FT2 on other platforms, v3
[Checkin: Comment 5]
Comment 8•15 years ago
|
||
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]
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•