Bug 1036864 - Remove EXPORT_LIBRARY. r=mshal

This commit is contained in:
Mike Hommey 2014-07-11 19:06:55 +09:00
parent dbf9b286cd
commit 07267c6f7f
20 changed files with 3 additions and 59 deletions

View File

@ -74,6 +74,7 @@ _MOZBUILD_EXTERNAL_VARIABLES := \
_DEPRECATED_VARIABLES := \
ANDROID_RESFILES \
EXPORT_LIBRARY \
LIBXUL_LIBRARY \
MOCHITEST_A11Y_FILES \
MOCHITEST_BROWSER_FILES \
@ -345,7 +346,6 @@ endif
ifdef XPI_NAME
ifdef IS_COMPONENT
EXPORT_LIBRARY=
FORCE_STATIC_LIB=
FORCE_SHARED_LIB=1
endif

View File

@ -5,19 +5,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/.
ifdef EXPORT_LIBRARY
ifeq ($(EXPORT_LIBRARY),1)
ifdef IS_COMPONENT
EXPORT_LIBRARY = $(DEPTH)/staticlib/components
else
EXPORT_LIBRARY = $(DEPTH)/staticlib
endif
else
# If EXPORT_LIBRARY has a value, we'll be installing there. We also need to cleanup there
GARBAGE += $(foreach lib,$(LIBRARY),$(EXPORT_LIBRARY)/$(lib))
endif
endif # EXPORT_LIBRARY
binaries libs:: $(SUBMAKEFILES) $(TARGETS)
ifndef NO_DIST_INSTALL
ifdef SHARED_LIBRARY
@ -41,12 +28,6 @@ INSTALL_TARGETS += PROGRAMS
endif
ifdef LIBRARY
ifdef EXPORT_LIBRARY
LIBRARY_FILES = $(LIBRARY)
LIBRARY_DEST ?= $(EXPORT_LIBRARY)
LIBRARY_TARGET = binaries libs
INSTALL_TARGETS += LIBRARY
endif
ifdef DIST_INSTALL
ifdef IS_COMPONENT
$(error Shipping static component libs makes no sense.)

View File

@ -833,7 +833,7 @@ $(filter %.$(LIB_SUFFIX),$(LIBRARY)): $(OBJS) $(EXTRA_DEPS) $(GLOBAL_DEPS)
$(filter-out %.$(LIB_SUFFIX),$(LIBRARY)): $(filter %.$(LIB_SUFFIX),$(LIBRARY)) $(OBJS) $(EXTRA_DEPS) $(GLOBAL_DEPS)
# When we only build a library descriptor, blow out any existing library
$(REPORT_BUILD)
$(if $(filter %.$(LIB_SUFFIX),$(LIBRARY)),,$(RM) $(REAL_LIBRARY) $(EXPORT_LIBRARY:%=%/$(REAL_LIBRARY)))
$(if $(filter %.$(LIB_SUFFIX),$(LIBRARY)),,$(RM) $(REAL_LIBRARY))
$(EXPAND_LIBS_GEN) -o $@ $(OBJS) $(SHARED_LIBRARY_LIBS)
ifeq ($(OS_ARCH),WINNT)

View File

@ -18,8 +18,6 @@ if CONFIG['MOZ_WEBM_ENCODER']:
'TestWebMWriter.cpp',
]
EXPORT_LIBRARY = True
include('/ipc/chromium/chromium-config.mozbuild')
LOCAL_INCLUDES += [

View File

@ -39,8 +39,6 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'windows':
'TestRect.cpp',
]
EXPORT_LIBRARY = True
include('/ipc/chromium/chromium-config.mozbuild')
LOCAL_INCLUDES += [

View File

@ -11,8 +11,6 @@ if CONFIG['MOZ_NFC']:
'Nfc.cpp',
]
EXPORT_LIBRARY = True
include('/ipc/chromium/chromium-config.mozbuild')
FINAL_LIBRARY = 'xul'

View File

@ -3,8 +3,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 = $(DIST)/lib
ifeq (WINNT,$(OS_TARGET))
EXTRA_DSO_LDOPTS = $(MOZALLOC_LIB) $(NSPR_LIBS)
OS_LIBS += $(call EXPAND_LIBNAME,usp10 ole32)

View File

@ -222,7 +222,6 @@ class TreeMetadataEmitter(LoggingMixin):
'ANDROID_RES_DIRS',
'CPP_UNIT_TESTS',
'DISABLE_STL_WRAPPING',
'EXPORT_LIBRARY',
'EXTRA_ASSEMBLER_FLAGS',
'EXTRA_COMPILE_FLAGS',
'EXTRA_COMPONENTS',

View File

@ -183,10 +183,6 @@ VARIABLES = {
disabled.
""", 'binaries'),
'EXPORT_LIBRARY': (bool, bool,
"""Install the library to the static libraries folder.
""", None),
'EXTRA_COMPONENTS': (StrictOrderingOnAppendList, list,
"""Additional component files to distribute.

View File

@ -35,7 +35,6 @@ MSVC_ENABLE_PGO = True
NO_DIST_INSTALL = True
FORCE_SHARED_LIB = True
EXPORT_LIBRARY = True
IS_COMPONENT = True
NO_VISIBILITY_FLAGS = True

View File

@ -160,7 +160,6 @@ class TestEmitterBasic(unittest.TestCase):
CSRCS=['fans.c', 'tans.c'],
CPP_UNIT_TESTS=['foo.cpp'],
DISABLE_STL_WRAPPING=True,
EXPORT_LIBRARY=True,
EXTRA_COMPONENTS=['fans.js', 'tans.js'],
EXTRA_PP_COMPONENTS=['fans.pp.js', 'tans.pp.js'],
EXTRA_JS_MODULES=['bar.jsm', 'foo.jsm'],

View File

@ -1,11 +0,0 @@
#! gmake
#
# 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/.
include $(DEPTH)/config/autoconf.mk
EXPORT_LIBRARY = 1
include $(topsrcdir)/config/rules.mk

View File

@ -10,7 +10,6 @@ if CONFIG['OS_ARCH'] == 'Linux':
elif CONFIG['OS_ARCH'] == 'WINNT':
LIBRARY_NAME = 'sandbox_s'
EXPORT_LIBRARY = True
FORCE_STATIC_LIB = True
DIRS += [

View File

@ -5,7 +5,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
LIBRARY_NAME = 'sandboxbroker'
EXPORT_LIBRARY = True
SOURCES += [
'sandboxBroker.cpp',

View File

@ -68,8 +68,6 @@ if CONFIG['ENABLE_TESTS']:
'mozilla/SanityTest.cpp',
]
EXPORT_LIBRARY = True
LOCAL_INCLUDES += [
'gmock',
'gmock/include',

View File

@ -17,5 +17,4 @@ SOURCES += [
'lz4.cpp',
]
EXPORT_LIBRARY = True
FINAL_LIBRARY = 'xul'

View File

@ -93,7 +93,7 @@ ifdef MOZ_DMD
EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME_PATH,dmd,$(DIST)/lib)
endif
EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME_PATH,gkmedias,$(DIST)/lib)
EXTRA_DSO_LDOPTS += $(call EXPAND_LIBNAME_PATH,gkmedias,$(DEPTH)/layout/media)
ifdef MOZ_WEBRTC
ifeq (WINNT,$(OS_TARGET))

View File

@ -14,8 +14,6 @@ SOURCES += [
LIBRARY_NAME = 'jprof'
EXPORT_LIBRARY = True
FORCE_SHARED_LIB = True
DEFINES['_IMPL_JPROF_API'] = True

View File

@ -11,8 +11,6 @@ if CONFIG['OS_TARGET'] in ('Android', 'Linux'):
'LulTest.cpp',
]
EXPORT_LIBRARY = True
LOCAL_INCLUDES += [
'/tools/profiler',
]

View File

@ -17,6 +17,4 @@ FAIL_ON_WARNINGS = True
LIBRARY_NAME = 'xpcom_glue_gtest'
EXPORT_LIBRARY = True
FINAL_LIBRARY = 'xul-gtest'