Bug 1045783 - Move HOST_EXTRA_LIBS to moz.build as HOST_OS_LIBS. r=mshal

This commit is contained in:
Mike Hommey 2014-08-06 07:26:05 +09:00
Родитель d9443ec932
Коммит 1e6fb05108
7 изменённых файлов: 18 добавлений и 15 удалений

Просмотреть файл

@ -49,6 +49,7 @@ _MOZBUILD_EXTERNAL_VARIABLES := \
FINAL_LIBRARY \
HOST_CSRCS \
HOST_CMMSRCS \
HOST_EXTRA_LIBS \
HOST_LIBRARY_NAME \
HOST_PROGRAM \
HOST_SIMPLE_PROGRAMS \

Просмотреть файл

@ -28,10 +28,6 @@ EXTRA_LIBS += \
$(NULL)
endif
ifeq ($(HOST_OS_ARCH),WINNT)
HOST_EXTRA_LIBS += $(call EXPAND_LIBNAME,ws2_32)
endif
include $(topsrcdir)/config/rules.mk
ifdef CROSS_COMPILE

Просмотреть файл

@ -46,3 +46,8 @@ elif CONFIG['OS_ARCH'] == 'Darwin':
OS_LIBS += [
'-framework Security',
]
if CONFIG['HOST_OS_ARCH'] == 'WINNT':
HOST_OS_LIBS += [
'ws2_32',
]

Просмотреть файл

@ -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/.
HOST_EXTRA_LIBS += -lz
include $(topsrcdir)/config/rules.mk
ifeq (arm,$(TARGET_CPU))

Просмотреть файл

@ -28,3 +28,7 @@ DEFINES['IMPL_MFBT'] = True
DISABLE_STL_WRAPPING = True
TEST_DIRS += ['tests']
HOST_OS_LIBS += [
'z',
]

Просмотреть файл

@ -25,14 +25,6 @@
# This program is output to dist/host/bin because it is only needed by the
# build system and is not intended to be included in Mozilla distributions.
ifdef MOZ_NATIVE_BZ2
HOST_EXTRA_LIBS += $(MOZ_BZ2_LIBS)
endif
ifeq ($(HOST_OS_ARCH),WINNT)
HOST_EXTRA_LIBS += $(call EXPAND_LIBNAME,Ws2_32)
endif
include $(topsrcdir)/config/rules.mk
HOST_CXXFLAGS += $(MOZ_BZ2_CFLAGS)

Просмотреть файл

@ -10,11 +10,18 @@ HOST_SOURCES += [
HOST_PROGRAM = 'mbsdiff'
if not CONFIG['MOZ_NATIVE_BZ2']:
if CONFIG['MOZ_NATIVE_BZ2']:
HOST_OS_LIBS += CONFIG['MOZ_BZ2_LIBS']
else:
HOST_USE_LIBS += [
'hostbz2',
]
if CONFIG['HOST_OS_ARCH'] == 'WINNT':
HOST_OS_LIBS += [
'ws2_32',
]
LOCAL_INCLUDES += [
'/toolkit/mozapps/update/updater',
]