Skip to content

Commit

Permalink
Bug 1203477 - Moved Mozilla specific files to glue directory, and thi…
Browse files Browse the repository at this point in the history
…rd party files to hyphen directory. Adjusted moz.build files. r=glandium

--HG--
rename : intl/hyphenation/hnjalloc.h => intl/hyphenation/glue/hnjalloc.h
rename : intl/hyphenation/hnjstdio.cpp => intl/hyphenation/glue/hnjstdio.cpp
rename : intl/hyphenation/moz.build => intl/hyphenation/glue/moz.build
rename : intl/hyphenation/nsHyphenationManager.cpp => intl/hyphenation/glue/nsHyphenationManager.cpp
rename : intl/hyphenation/nsHyphenationManager.h => intl/hyphenation/glue/nsHyphenationManager.h
rename : intl/hyphenation/nsHyphenator.cpp => intl/hyphenation/glue/nsHyphenator.cpp
rename : intl/hyphenation/nsHyphenator.h => intl/hyphenation/glue/nsHyphenator.h
rename : intl/hyphenation/COPYING => intl/hyphenation/hyphen/COPYING
rename : intl/hyphenation/COPYING.LGPL => intl/hyphenation/hyphen/COPYING.LGPL
rename : intl/hyphenation/COPYING.MPL => intl/hyphenation/hyphen/COPYING.MPL
rename : intl/hyphenation/README => intl/hyphenation/hyphen/README
rename : intl/hyphenation/README.compound => intl/hyphenation/hyphen/README.compound
rename : intl/hyphenation/README.hyphen => intl/hyphenation/hyphen/README.hyphen
rename : intl/hyphenation/README.nonstandard => intl/hyphenation/hyphen/README.nonstandard
rename : intl/hyphenation/hyphen.c => intl/hyphenation/hyphen/hyphen.c
rename : intl/hyphenation/hyphen.h => intl/hyphenation/hyphen/hyphen.h
rename : intl/hyphenation/moz.build => intl/hyphenation/hyphen/moz.build
  • Loading branch information
astx30 committed Sep 16, 2015
1 parent 3054507 commit 9aabf6a
Show file tree
Hide file tree
Showing 20 changed files with 27 additions and 29 deletions.
17 changes: 1 addition & 16 deletions intl/hyphenation/README.mozilla
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
About the hyphenation code in this directory
============================================

The core hyphenation code (files "hyphen.c" and "hyphen.h") comes from the
Hyphen library, part of the hunspell project. The various COPYING* and README*
files (except this README.mozilla) are likewise from the hunspell distribution
of Hyphen:

The hyphen directory comes from the Hyphen library, part of the hunspell project.
http://sourceforge.net/projects/hunspell/files/Hyphen/.

This code is distributed under the GPL 2.0/LGPL 2.1/MPL 1.1 tri-license, as
Expand All @@ -15,14 +11,3 @@ Note that we do not include other tools and resources found in the complete
Hyphen package from upstream, so the original README.* files may refer to
additional files that are not present in the Mozilla source tree.


The other source files here:

hnjalloc.h
hnjstdio.cpp
nsHyphenationManager.cpp
nsHyphenator.cpp

as well as the build files (Makefile.in and moz.build) are Mozilla-authored
code, and the standard MPL 2.0 applies to these, as noted in the comments
within the files.
File renamed without changes.
File renamed without changes.
15 changes: 4 additions & 11 deletions intl/hyphenation/moz.build → intl/hyphenation/glue/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,10 @@ UNIFIED_SOURCES += [
# These files cannot be built in unified mode because they include hnjalloc.h.
SOURCES += [
'hnjstdio.cpp',
'hyphen.c',
]

FINAL_LIBRARY = 'xul'

# Suppress warnings in third-party code.
if CONFIG['GNU_CC']:
CFLAGS += [
'-Wno-sign-compare',
'-Wno-type-limits',
]
LOCAL_INCLUDES += [
'../hyphen',
]

if not CONFIG['GNU_CXX']:
ALLOW_COMPILER_WARNINGS = True
FINAL_LIBRARY = 'xul'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions intl/hyphenation/hyphen/moz.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- 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/.

# These files cannot be built in unified mode because they include hnjalloc.h.
SOURCES += [
'hyphen.c',
]

FINAL_LIBRARY = 'xul'

LOCAL_INCLUDES += [
'../glue',
]

# Suppress warnings in third-party code.
ALLOW_COMPILER_WARNINGS = True
3 changes: 2 additions & 1 deletion intl/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DIRS += [
'hyphenation',
'hyphenation/hyphen',
'hyphenation/glue',
'locale',
'locales',
'lwbrk',
Expand Down
2 changes: 1 addition & 1 deletion tools/rewriting/ThirdPartyPaths.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ gfx/ots/
gfx/qcms/
gfx/skia/
gfx/ycbcr/
intl/hyphenation/
intl/hyphenation/hyphen/
intl/icu/
ipc/chromium/
js/src/ctypes/libffi/
Expand Down

0 comments on commit 9aabf6a

Please sign in to comment.