From 5102aa579d3d02b9c3e24008342b28c5d6fc455c Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Sat, 30 Nov 2019 09:13:54 -0500 Subject: Issue #1306 - Move bundled fonts to toolkit --- application/basilisk/fonts/README.txt | 9 --------- application/basilisk/fonts/TwemojiMozilla.ttf | Bin 1244336 -> 0 bytes application/basilisk/fonts/moz.build | 11 ----------- application/basilisk/moz.build | 1 - application/palemoon/fonts/README.txt | 9 --------- application/palemoon/fonts/TwemojiMozilla.ttf | Bin 1244336 -> 0 bytes application/palemoon/fonts/moz.build | 9 --------- application/palemoon/moz.build | 1 - old-configure.in | 2 ++ toolkit/fonts/README.txt | 9 +++++++++ toolkit/fonts/TwemojiMozilla.ttf | Bin 0 -> 1244336 bytes toolkit/fonts/moz.build | 8 ++++++++ toolkit/moz.build | 3 +++ 13 files changed, 22 insertions(+), 40 deletions(-) delete mode 100644 application/basilisk/fonts/README.txt delete mode 100644 application/basilisk/fonts/TwemojiMozilla.ttf delete mode 100644 application/basilisk/fonts/moz.build delete mode 100644 application/palemoon/fonts/README.txt delete mode 100644 application/palemoon/fonts/TwemojiMozilla.ttf delete mode 100644 application/palemoon/fonts/moz.build create mode 100644 toolkit/fonts/README.txt create mode 100644 toolkit/fonts/TwemojiMozilla.ttf create mode 100644 toolkit/fonts/moz.build diff --git a/application/basilisk/fonts/README.txt b/application/basilisk/fonts/README.txt deleted file mode 100644 index ac1f6d9de..000000000 --- a/application/basilisk/fonts/README.txt +++ /dev/null @@ -1,9 +0,0 @@ -Twemoji Mozilla -================ - -The upstream repository of Twemoji Mozilla can be found at - - https://github.com/mozilla/twemoji-colr - -Please refer commit history for the current version of the font. -This file purposely omit the version, so there is no need to update it here. diff --git a/application/basilisk/fonts/TwemojiMozilla.ttf b/application/basilisk/fonts/TwemojiMozilla.ttf deleted file mode 100644 index d79250cb0..000000000 Binary files a/application/basilisk/fonts/TwemojiMozilla.ttf and /dev/null differ diff --git a/application/basilisk/fonts/moz.build b/application/basilisk/fonts/moz.build deleted file mode 100644 index 5cb98333b..000000000 --- a/application/basilisk/fonts/moz.build +++ /dev/null @@ -1,11 +0,0 @@ -# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- -# vim: set filetype=python: -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -if CONFIG['OS_ARCH'] in ('WINNT', 'Linux'): - DIST_SUBDIR = '' - FINAL_TARGET_FILES.fonts += [ - 'TwemojiMozilla.ttf' - ] diff --git a/application/basilisk/moz.build b/application/basilisk/moz.build index 7274f48fc..2c3c95fa2 100644 --- a/application/basilisk/moz.build +++ b/application/basilisk/moz.build @@ -11,7 +11,6 @@ SPHINX_TREES['browser'] = 'docs' DIRS += [ 'base', 'components', - 'fonts', 'locales', 'modules', 'themes', diff --git a/application/palemoon/fonts/README.txt b/application/palemoon/fonts/README.txt deleted file mode 100644 index bf5cb7e6e..000000000 --- a/application/palemoon/fonts/README.txt +++ /dev/null @@ -1,9 +0,0 @@ -Twemoji Mozilla -================ - -The upstream repository of Twemoji Mozilla can be found at - - https://github.com/mozilla/twemoji-colr - -Please refer commit history for the current version of the font. -This file purposely omits the version, so there is no need to update it here. diff --git a/application/palemoon/fonts/TwemojiMozilla.ttf b/application/palemoon/fonts/TwemojiMozilla.ttf deleted file mode 100644 index d79250cb0..000000000 Binary files a/application/palemoon/fonts/TwemojiMozilla.ttf and /dev/null differ diff --git a/application/palemoon/fonts/moz.build b/application/palemoon/fonts/moz.build deleted file mode 100644 index 8840a87f8..000000000 --- a/application/palemoon/fonts/moz.build +++ /dev/null @@ -1,9 +0,0 @@ -# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- -# vim: set filetype=python: -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. - -if CONFIG['OS_ARCH'] in ('WINNT', 'Linux'): - DIST_SUBDIR = '' - FINAL_TARGET_FILES.fonts += ['TwemojiMozilla.ttf'] diff --git a/application/palemoon/moz.build b/application/palemoon/moz.build index 72e37673c..f04ad1c7d 100644 --- a/application/palemoon/moz.build +++ b/application/palemoon/moz.build @@ -9,7 +9,6 @@ CONFIGURE_SUBST_FILES += ['installer/Makefile'] DIRS += [ 'base', 'components', - 'fonts', 'locales', 'modules', 'themes', diff --git a/old-configure.in b/old-configure.in index 49f45280e..9398ef0fc 100644 --- a/old-configure.in +++ b/old-configure.in @@ -3691,6 +3691,8 @@ if test -n "$MOZ_BUNDLED_FONTS"; then AC_DEFINE(MOZ_BUNDLED_FONTS) fi +AC_SUBST(MOZ_BUNDLED_FONTS) + dnl ======================================================== dnl Verify MAR signatures dnl ======================================================== diff --git a/toolkit/fonts/README.txt b/toolkit/fonts/README.txt new file mode 100644 index 000000000..bf5cb7e6e --- /dev/null +++ b/toolkit/fonts/README.txt @@ -0,0 +1,9 @@ +Twemoji Mozilla +================ + +The upstream repository of Twemoji Mozilla can be found at + + https://github.com/mozilla/twemoji-colr + +Please refer commit history for the current version of the font. +This file purposely omits the version, so there is no need to update it here. diff --git a/toolkit/fonts/TwemojiMozilla.ttf b/toolkit/fonts/TwemojiMozilla.ttf new file mode 100644 index 000000000..d79250cb0 Binary files /dev/null and b/toolkit/fonts/TwemojiMozilla.ttf differ diff --git a/toolkit/fonts/moz.build b/toolkit/fonts/moz.build new file mode 100644 index 000000000..fb6a9b24c --- /dev/null +++ b/toolkit/fonts/moz.build @@ -0,0 +1,8 @@ +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +if CONFIG['OS_ARCH'] in ('WINNT', 'Linux'): + FINAL_TARGET_FILES.fonts += ['TwemojiMozilla.ttf'] diff --git a/toolkit/moz.build b/toolkit/moz.build index 397444828..b02d122cd 100644 --- a/toolkit/moz.build +++ b/toolkit/moz.build @@ -19,6 +19,9 @@ DIRS += [ 'themes', ] +if CONFIG['MOZ_BUNDLED_FONTS']: + DIRS += ['fonts'] + if CONFIG['MOZ_JETPACK']: DIRS += ['jetpack'] -- cgit v1.2.3 From f6fb48d086326a9cbc22aba9b5b9d73e9ffce656 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Sat, 30 Nov 2019 14:01:19 -0500 Subject: No Issue - Don't use a hard coded path for win_srcdir in comm-style configurations --- config/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.mk b/config/config.mk index 24442bfe9..5a352e529 100644 --- a/config/config.mk +++ b/config/config.mk @@ -107,7 +107,7 @@ ifeq ($(HOST_OS_ARCH),WINNT) # This means we're in comm-central's topsrcdir, so we need to adjust # WIN_TOP_SRC (which points to mozilla's topsrcdir) for the substitution # to win_srcdir. - cc_WIN_TOP_SRC := $(WIN_TOP_SRC:%/mozilla=%) + cc_WIN_TOP_SRC := $(WIN_TOP_SRC:%$(subst $(topsrcdir),,$(MOZILLA_DIR))=%) win_srcdir := $(subst $(topsrcdir),$(cc_WIN_TOP_SRC),$(srcdir)) endif BUILD_TOOLS = $(WIN_TOP_SRC)/build/unix -- cgit v1.2.3