Skip to content

Commit

Permalink
Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up l…
Browse files Browse the repository at this point in the history
…inked in a single other library. r=gps
  • Loading branch information
glandium committed Nov 19, 2013
1 parent da965e6 commit ffe0380
Show file tree
Hide file tree
Showing 421 changed files with 509 additions and 1,193 deletions.
1 change: 0 additions & 1 deletion accessible/src/atk/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# 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/.

EXPORT_LIBRARY = ..
include $(topsrcdir)/config/rules.mk

ifdef MOZ_ENABLE_GTK
Expand Down
1 change: 1 addition & 0 deletions accessible/src/atk/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ LOCAL_INCLUDES += [
'/other-licenses/atk-1.0',
]

FINAL_LIBRARY = 'xul'
2 changes: 2 additions & 0 deletions accessible/src/base/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,5 @@ else:
LOCAL_INCLUDES += [
'../other',
]

FINAL_LIBRARY = 'xul'
2 changes: 2 additions & 0 deletions accessible/src/generic/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ else:
LOCAL_INCLUDES += [
'../other',
]

FINAL_LIBRARY = 'xul'
2 changes: 2 additions & 0 deletions accessible/src/html/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ else:
LOCAL_INCLUDES += [
'../other',
]

FINAL_LIBRARY = 'xul'
1 change: 0 additions & 1 deletion accessible/src/mac/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# 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/.

EXPORT_LIBRARY = ..
include $(topsrcdir)/config/rules.mk

ifneq ($(A11Y_LOG),0)
Expand Down
1 change: 1 addition & 0 deletions accessible/src/mac/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ LOCAL_INCLUDES += [
'/widget/xpwidgets',
]

FINAL_LIBRARY = 'xul'
1 change: 0 additions & 1 deletion accessible/src/other/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# 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/.

EXPORT_LIBRARY = ..
include $(topsrcdir)/config/rules.mk

ifneq ($(A11Y_LOG),0)
Expand Down
1 change: 1 addition & 0 deletions accessible/src/other/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ LOCAL_INCLUDES += [
'../xul',
]

FINAL_LIBRARY = 'xul'
3 changes: 1 addition & 2 deletions accessible/src/windows/ia2/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,4 @@ LOCAL_INCLUDES += [

LIBRARY_NAME = 'accessibility_toolkit_ia2_s'

EXPORT_LIBRARY = True

FINAL_LIBRARY = 'xul'
3 changes: 1 addition & 2 deletions accessible/src/windows/msaa/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ LOCAL_INCLUDES += [

LIBRARY_NAME = 'accessibility_toolkit_msaa_s'

EXPORT_LIBRARY = True

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'xul'
3 changes: 1 addition & 2 deletions accessible/src/windows/sdn/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ DEFINES['NOMINMAX'] = True

LIBRARY_NAME = 'accessibility_toolkit_sdn_s'

EXPORT_LIBRARY = True

FINAL_LIBRARY = 'xul'
2 changes: 0 additions & 2 deletions accessible/src/windows/uia/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# 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/.

EXPORT_LIBRARY = ..

# The midl generated code include Windows headers which defines min and max
# macros which conflicts with std::min/max. Suppress the macros:
OS_CXXFLAGS += -DNOMINMAX
Expand Down
1 change: 1 addition & 0 deletions accessible/src/windows/uia/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ LOCAL_INCLUDES += [

LIBRARY_NAME = 'accessibility_toolkit_uia_s'

FINAL_LIBRARY = 'xul'
2 changes: 2 additions & 0 deletions accessible/src/xpcom/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ else:
LOCAL_INCLUDES += [
'../other',
]

FINAL_LIBRARY = 'xul'
2 changes: 2 additions & 0 deletions accessible/src/xul/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ else:
LOCAL_INCLUDES += [
'../other',
]

FINAL_LIBRARY = 'xul'
2 changes: 2 additions & 0 deletions browser/components/about/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ SOURCES += [
LIBRARY_NAME = 'browserabout_s'

FORCE_STATIC_LIB = True

FINAL_LIBRARY = 'browsercomps'
11 changes: 0 additions & 11 deletions browser/components/build/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ ifeq ($(OS_ARCH),WINNT)
OS_LIBS += $(call EXPAND_LIBNAME,version)
endif

SHARED_LIBRARY_LIBS = \
../feeds/src/$(LIB_PREFIX)browser_feeds_s.$(LIB_SUFFIX) \
../about/$(LIB_PREFIX)browserabout_s.$(LIB_SUFFIX) \
../dirprovider/$(LIB_PREFIX)browserdir_s.$(LIB_SUFFIX) \
$(NULL)

ifneq (,$(filter windows cocoa gtk2 gtk3, $(MOZ_WIDGET_TOOLKIT)))
SHARED_LIBRARY_LIBS += ../shell/src/$(LIB_PREFIX)shellservice_s.$(LIB_SUFFIX)
endif

EXTRA_DSO_LDOPTS += \
$(call EXPAND_LIBNAME_PATH,unicharutil_external_s,$(LIBXUL_DIST)/lib) \
$(XPCOM_STATICRUNTIME_GLUE_LDOPTS) \
Expand All @@ -42,7 +32,6 @@ EXTRA_DSO_LDOPTS += $(MOZ_JS_LIBS)
endif

LOCAL_INCLUDES += -I$(srcdir)/../migration/src
SHARED_LIBRARY_LIBS += ../migration/src/$(LIB_PREFIX)migration_s.$(LIB_SUFFIX)

# Mac: Need to link with CoreFoundation for Mac Migrators (PList reading code)
# GTK2: Need to link with glib for GNOME shell service
Expand Down
2 changes: 2 additions & 0 deletions browser/components/dirprovider/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ XPCSHELL_TESTS_MANIFESTS += [
]

FORCE_STATIC_LIB = True

FINAL_LIBRARY = 'browsercomps'
2 changes: 2 additions & 0 deletions browser/components/feeds/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ EXTRA_PP_COMPONENTS += [
LIBRARY_NAME = 'browser_feeds_s'

FORCE_STATIC_LIB = True

FINAL_LIBRARY = 'browsercomps'
2 changes: 2 additions & 0 deletions browser/components/migration/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ EXTRA_PP_JS_MODULES += [
]

FORCE_STATIC_LIB = True

FINAL_LIBRARY = 'browsercomps'
2 changes: 2 additions & 0 deletions browser/components/shell/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ EXTRA_COMPONENTS += [
]

FORCE_STATIC_LIB = True

FINAL_LIBRARY = 'browsercomps'
2 changes: 2 additions & 0 deletions caps/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ LOCAL_INCLUDES += [
'/dom/base',
'/js/xpconnect/src',
]

FINAL_LIBRARY = 'gklayout'
1 change: 1 addition & 0 deletions chrome/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ LIBRARY_NAME = 'chrome_s'

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'xpcom_core'
32 changes: 0 additions & 32 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -6129,7 +6129,6 @@ if test -n "$MOZ_TREE_FREETYPE"; then
CAIRO_FT_CFLAGS='-I$(topsrcdir)/modules/freetype2/include'
FT2_LIBS='$(call EXPAND_LIBNAME_PATH,freetype,$(DEPTH)/modules/freetype2/.libs)'
CAIRO_FT_OSLIBS=''
CAIRO_FT_LIBS='$(call EXPAND_LIBNAME_PATH,freetype,$(DEPTH)/modules/freetype2/.libs)'
AC_DEFINE(HAVE_FT_BITMAP_SIZE_Y_PPEM)
AC_DEFINE(HAVE_FT_GLYPHSLOT_EMBOLDEN)
AC_DEFINE(HAVE_FT_LOAD_SFNT_TABLE)
Expand Down Expand Up @@ -7954,7 +7953,6 @@ if test "$MOZ_TREE_CAIRO"; then
MOZ_ENABLE_CAIRO_FT=1
CAIRO_FT_CFLAGS="-I${MZFTCFGFT2}/include"
CAIRO_FT_OSLIBS="-L${MZFTCFGFT2}/lib -lmozft -lmzfntcfg"
CAIRO_FT_LIBS=""
;;
esac
if test "$USE_FC_FREETYPE"; then
Expand Down Expand Up @@ -7987,7 +7985,6 @@ if test "$MOZ_TREE_CAIRO"; then
AC_SUBST(QT_SURFACE_FEATURE)
AC_SUBST(TEE_SURFACE_FEATURE)

MOZ_CAIRO_LIBS='$(call EXPAND_LIBNAME_PATH,mozcairo,$(DEPTH)/gfx/cairo/cairo/src)'" $CAIRO_FT_LIBS"
MOZ_CAIRO_OSLIBS='${CAIRO_FT_OSLIBS}'

if test "$MOZ_X11"; then
Expand All @@ -8014,36 +8011,10 @@ AC_SUBST(MOZ_CAIRO_LIBS)
AC_SUBST(MOZ_CAIRO_OSLIBS)
AC_SUBST(MOZ_TREE_PIXMAN)

dnl ========================================================
dnl qcms
dnl ========================================================

QCMS_LIBS='$(DEPTH)/gfx/qcms/$(LIB_PREFIX)mozqcms.$(LIB_SUFFIX)'
AC_SUBST(QCMS_LIBS)

dnl ========================================================
dnl HarfBuzz
dnl ========================================================
MOZ_HARFBUZZ_LIBS='$(DEPTH)/gfx/harfbuzz/src/$(LIB_PREFIX)mozharfbuzz.$(LIB_SUFFIX)'
AC_SUBST(MOZ_HARFBUZZ_LIBS)

dnl ========================================================
dnl SIL Graphite
dnl ========================================================
MOZ_GRAPHITE_LIBS='$(DEPTH)/gfx/graphite2/src/$(LIB_PREFIX)mozgraphite2.$(LIB_SUFFIX)'
AC_SUBST(MOZ_GRAPHITE_LIBS)

dnl ========================================================
dnl OTS
dnl ========================================================
MOZ_OTS_LIBS='$(DEPTH)/gfx/ots/src/$(LIB_PREFIX)mozots.$(LIB_SUFFIX)'
AC_SUBST(MOZ_OTS_LIBS)

dnl ========================================================
dnl Skia
dnl ========================================================
if test "$MOZ_ENABLE_SKIA"; then
MOZ_SKIA_LIBS='$(DEPTH)/gfx/skia/$(LIB_PREFIX)skia.$(LIB_SUFFIX)'
AC_DEFINE(MOZ_ENABLE_SKIA)
AC_DEFINE(USE_SKIA)
if test "${MOZ_WIDGET_TOOLKIT}" = "android" -o x"$MOZ_WIDGET_TOOLKIT" = x"gonk"; then
Expand All @@ -8058,11 +8029,8 @@ if test "$MOZ_ENABLE_SKIA"; then
AC_DEFINE(USE_SKIA_GPU)
AC_SUBST(MOZ_ENABLE_SKIA_GPU)
fi
else
MOZ_SKIA_LIBS=
fi
AC_SUBST(MOZ_ENABLE_SKIA)
AC_SUBST(MOZ_SKIA_LIBS)

dnl ========================================================
dnl disable xul
Expand Down
1 change: 1 addition & 0 deletions content/base/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ LIBRARY_NAME = 'gkconbase_s'

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'gklayout'
LOCAL_INCLUDES += [
'/caps/include',
'/content/events/src',
Expand Down
1 change: 1 addition & 0 deletions content/canvas/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ LIBRARY_NAME = 'gkconcvs_s'

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'gklayout'
LOCAL_INCLUDES += [
'/content/base/src',
'/content/html/content/src',
Expand Down
1 change: 1 addition & 0 deletions content/events/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ LIBRARY_NAME = 'gkconevents_s'

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'gklayout'
LOCAL_INCLUDES += [
'/content/base/src',
'/content/html/content/src',
Expand Down
1 change: 1 addition & 0 deletions content/html/content/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ LIBRARY_NAME = 'gkconhtmlcon_s'

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'gklayout'
LOCAL_INCLUDES += [
'/content/base/src',
'/content/canvas/src',
Expand Down
2 changes: 2 additions & 0 deletions content/html/document/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ LOCAL_INCLUDES += [
'/layout/style',
'/xpcom/ds',
]

FINAL_LIBRARY = 'gklayout'
1 change: 1 addition & 0 deletions content/mathml/content/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ LIBRARY_NAME = 'gkcontentmathml_s'

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'gklayout'
LOCAL_INCLUDES += [
'/content/base/src',
]
Expand Down
1 change: 1 addition & 0 deletions content/media/apple/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ FAIL_ON_WARNINGS = True

LIBXUL_LIBRARY = True

FINAL_LIBRARY = 'gklayout'
1 change: 1 addition & 0 deletions content/media/directshow/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ LIBXUL_LIBRARY = True

LIBRARY_NAME = 'gkcondirectshow_s'

FINAL_LIBRARY = 'gklayout'
LOCAL_INCLUDES += [
'/media/webrtc/trunk/webrtc/modules/video_capture/windows',
]
Expand Down
1 change: 1 addition & 0 deletions content/media/encoder/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ FAIL_ON_WARNINGS = True

LIBXUL_LIBRARY = True

FINAL_LIBRARY = 'gklayout'
1 change: 1 addition & 0 deletions content/media/gstreamer/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ FAIL_ON_WARNINGS = True

LIBXUL_LIBRARY = True

FINAL_LIBRARY = 'gklayout'
LOCAL_INCLUDES += [
'/content/base/src',
'/content/html/content/src',
Expand Down
1 change: 1 addition & 0 deletions content/media/mediasource/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ LIBXUL_LIBRARY = True

LIBRARY_NAME = 'gkconmediasource_s'

FINAL_LIBRARY = 'gklayout'
1 change: 1 addition & 0 deletions content/media/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ LIBRARY_NAME = 'gkconmedia_s'

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'gklayout'
LOCAL_INCLUDES += [
'/content/base/src',
'/layout/generic',
Expand Down
1 change: 1 addition & 0 deletions content/media/ogg/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ FAIL_ON_WARNINGS = True

LIBXUL_LIBRARY = True

FINAL_LIBRARY = 'gklayout'
2 changes: 2 additions & 0 deletions content/media/omx/mediaresourcemanager/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ LIBRARY_NAME = 'mediaresourcemanager'
include('/ipc/chromium/chromium-config.mozbuild')

FORCE_STATIC_LIB = True

FINAL_LIBRARY = 'gklayout'
1 change: 1 addition & 0 deletions content/media/omx/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ LIBRARY_NAME = 'gkconomx_s'

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'gklayout'
LOCAL_INCLUDES += [
'/content/base/src',
'/content/html/content/src',
Expand Down
2 changes: 2 additions & 0 deletions content/media/plugins/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ LOCAL_INCLUDES += [
'/content/base/src',
'/content/html/content/src',
]

FINAL_LIBRARY = 'gklayout'
2 changes: 2 additions & 0 deletions content/media/raw/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ LOCAL_INCLUDES += [
'/content/base/src',
'/content/html/content/src',
]

FINAL_LIBRARY = 'gklayout'
1 change: 1 addition & 0 deletions content/media/wave/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ FAIL_ON_WARNINGS = True

LIBXUL_LIBRARY = True

FINAL_LIBRARY = 'gklayout'
1 change: 1 addition & 0 deletions content/media/webaudio/blink/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ LIBRARY_NAME = 'gkconwebaudio_blink_s'

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'gklayout'
LOCAL_INCLUDES += [
'/content/media/webaudio',
]
Expand Down
1 change: 1 addition & 0 deletions content/media/webaudio/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,4 @@ LIBRARY_NAME = 'gkconwebaudio_s'

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'gklayout'
1 change: 1 addition & 0 deletions content/media/webm/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ FAIL_ON_WARNINGS = True

LIBXUL_LIBRARY = True

FINAL_LIBRARY = 'gklayout'
1 change: 1 addition & 0 deletions content/media/webrtc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ LIBRARY_NAME = 'gkconwebrtc_s'

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'gklayout'
if CONFIG['OS_ARCH'] == 'WINNT':
DEFINES['NOMINMAX'] = True
2 changes: 2 additions & 0 deletions content/media/webspeech/recognition/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ LOCAL_INCLUDES += [
]

include('/ipc/chromium/chromium-config.mozbuild')

FINAL_LIBRARY = 'gklayout'
Loading

0 comments on commit ffe0380

Please sign in to comment.