Skip to content

Commit

Permalink
Bug 1224490 - Kill LIBXUL_DIST. r=mshal
Browse files Browse the repository at this point in the history
  • Loading branch information
glandium committed Nov 17, 2015
1 parent 444e45a commit 5ab167c
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 37 deletions.
6 changes: 1 addition & 5 deletions b2g/app/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ include $(topsrcdir)/config/rules.mk

APP_ICON = app

ifeq ($(OS_ARCH),WINNT)
REDIT_PATH = $(LIBXUL_DIST)/bin
endif

APP_BINARY = $(MOZ_APP_NAME)$(BIN_SUFFIX)

ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
Expand Down Expand Up @@ -65,7 +61,7 @@ libs::
# Copy the app icon for b2g-desktop
ifeq ($(OS_ARCH),WINNT)
cp $(DIST)/branding/$(APP_ICON).ico $(DIST)/bin/chrome/icons/default/$(APP_ICON).ico
$(REDIT_PATH)/redit$(HOST_BIN_SUFFIX) $(DIST)/bin/$(APP_BINARY) $(DIST)/branding/$(APP_ICON).ico
$(DIST)/bin/redit$(HOST_BIN_SUFFIX) $(DIST)/bin/$(APP_BINARY) $(DIST)/branding/$(APP_ICON).ico
cp $(DIST)/branding/$(APP_ICON).ico $(DIST)/bin/chrome/icons/default/default.ico
else ifneq (gonk,$(MOZ_WIDGET_TOOLKIT))
cp $(DIST)/branding/default.png $(DIST)/bin/chrome/icons/default/default.png
Expand Down
6 changes: 3 additions & 3 deletions build/autoconf/nspr-build.m4
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ if test -n "$MOZ_NATIVE_NSPR" -o -n "$NSPR_CFLAGS" -o -n "$NSPR_LIBS"; then
AC_MSG_ERROR([system NSPR does not support PR_UINT64 or including prtypes.h does not provide it]))
CFLAGS=$_SAVE_CFLAGS
elif test -z "$JS_POSIX_NSPR"; then
NSPR_CFLAGS="-I${LIBXUL_DIST}/include/nspr"
NSPR_CFLAGS="-I${DIST}/include/nspr"
if test -n "$GNU_CC"; then
NSPR_LIBS="-L${LIBXUL_DIST}/lib -lnspr${NSPR_VERSION} -lplc${NSPR_VERSION} -lplds${NSPR_VERSION}"
NSPR_LIBS="-L${DIST}/lib -lnspr${NSPR_VERSION} -lplc${NSPR_VERSION} -lplds${NSPR_VERSION}"
else
NSPR_LIBS="${LIBXUL_DIST}/lib/nspr${NSPR_VERSION}.lib ${LIBXUL_DIST}/lib/plc${NSPR_VERSION}.lib ${LIBXUL_DIST}/lib/plds${NSPR_VERSION}.lib "
NSPR_LIBS="${DIST}/lib/nspr${NSPR_VERSION}.lib ${DIST}/lib/plc${NSPR_VERSION}.lib ${DIST}/lib/plds${NSPR_VERSION}.lib "
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion build/automation-build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ _CERTS_SRC_DIR = $(ABSOLUTE_TOPSRCDIR)/build/pgo/certs

AUTOMATION_PPARGS = \
-DBROWSER_PATH=$(browser_path) \
-DXPC_BIN_PATH='"$(LIBXUL_DIST)/bin"' \
-DXPC_BIN_PATH='"$(DIST)/bin"' \
-DBIN_SUFFIX='"$(BIN_SUFFIX)"' \
-DPROFILE_DIR='"$(_PROFILE_DIR)"' \
-DCERTS_SRC_DIR='"$(_CERTS_SRC_DIR)"' \
Expand Down
5 changes: 1 addition & 4 deletions config/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ endif

RM = rm -f

# LIBXUL_DIST is not defined under js/src, thus we make it mean DIST there.
LIBXUL_DIST ?= $(DIST)

# FINAL_TARGET specifies the location into which we copy end-user-shipped
# build products (typelibs, components, chrome). It may already be specified by
# a moz.build file.
Expand Down Expand Up @@ -581,7 +578,7 @@ EN_US_OR_L10N_FILE = $(firstword \
EN_US_OR_L10N_FILES = $(foreach f,$(1),$(call EN_US_OR_L10N_FILE,$(f)))

ifneq (WINNT,$(OS_ARCH))
RUN_TEST_PROGRAM = $(LIBXUL_DIST)/bin/run-mozilla.sh
RUN_TEST_PROGRAM = $(DIST)/bin/run-mozilla.sh
endif # ! WINNT

#
Expand Down
23 changes: 12 additions & 11 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ EOF
break
fi
MOZ_BUILD_ROOT=`pwd -W 2>/dev/null || pwd`
DIST="$MOZ_BUILD_ROOT/dist"

MOZ_PYTHON

Expand Down Expand Up @@ -972,7 +973,7 @@ TARGET_MD_ARCH=unix
DIRENT_INO=d_ino
MOZ_USER_DIR=".mozilla"

MOZ_FIX_LINK_PATHS='-Wl,-rpath-link,$(LIBXUL_DIST)/bin -Wl,-rpath-link,$(prefix)/lib'
MOZ_FIX_LINK_PATHS="-Wl,-rpath-link,${DIST}/bin -Wl,-rpath-link,${prefix}/lib"

MOZ_FS_LAYOUT=unix

Expand Down Expand Up @@ -2035,7 +2036,7 @@ case "$target" in
fi
LDFLAGS=$_SAVE_LDFLAGS

MOZ_FIX_LINK_PATHS='-Wl,-executable_path,$(LIBXUL_DIST)/bin'
MOZ_FIX_LINK_PATHS="-Wl,-executable_path,${DIST}/bin"
;;

ia64*-hpux*)
Expand Down Expand Up @@ -2063,13 +2064,13 @@ ia64*-hpux*)
DSO_LDOPTS='-b -Wl,+s'
DSO_CFLAGS=""
DSO_PIC_CFLAGS="+Z"
MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_LDOPTS) -L$(LIBXUL_DIST)/bin -o $@'
MKCSHLIB='$(LD) -b +s -L$(LIBXUL_DIST)/bin -o $@'
MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_LDOPTS) -L$(DIST)/bin -o $@'
MKCSHLIB='$(LD) -b +s -L$(DIST)/bin -o $@'
CXXFLAGS="$CXXFLAGS -Wc,-ansi_for_scope,on"
else
DSO_LDOPTS='-b -E +s'
MKSHLIB='$(LD) $(DSO_LDOPTS) -L$(LIBXUL_DIST)/bin -L$(LIBXUL_DIST)/lib -o $@'
MKCSHLIB='$(LD) $(DSO_LDOPTS) -L$(LIBXUL_DIST)/bin -L$(LIBXUL_DIST)/lib -o $@'
MKSHLIB='$(LD) $(DSO_LDOPTS) -L$(DIST)/bin -L$(DIST)/lib -o $@'
MKCSHLIB='$(LD) $(DSO_LDOPTS) -L$(DIST)/bin -L$(DIST)/lib -o $@'
fi
MOZ_POST_PROGRAM_COMMAND='chatr +s enable'
AC_DEFINE(NSCAP_DISABLE_DEBUG_PTR_TYPES)
Expand Down Expand Up @@ -2389,7 +2390,10 @@ ia64*-hpux*)
else
DLL_SUFFIX=".so.1.0"
fi
MOZ_FIX_LINK_PATHS='-Wl,-rpath-link,$(LIBXUL_DIST)/bin -Wl,-rpath-link,$(prefix)/lib -Wl,-rpath-link,$(if $(X11BASE),$(X11BASE),/usr/X11R6)/lib'
if test -z "$X11BASE"; then
X11BASE=/usr/X11R6
fi
MOZ_FIX_LINK_PATHS="$MOZ_FIX_LINK_PATHS -Wl,-rpath-link,${X11BASE}/lib"
DSO_CFLAGS=''
DSO_PIC_CFLAGS='-fPIC'
DSO_LDOPTS='-shared -fPIC'
Expand Down Expand Up @@ -3354,9 +3358,6 @@ MOZ_ARG_WITH_STRING(libxul-sdk,
[ --with-libxul-sdk=PFX Use the libXUL SDK at <PFX>],
AC_MSG_ERROR([--with-libxul-sdk is not supported anymore.]))

LIBXUL_DIST="$MOZ_BUILD_ROOT/dist"
AC_SUBST(LIBXUL_DIST)

MOZ_CONFIG_NSPR()

dnl set GRE_MILESTONE
Expand Down Expand Up @@ -8190,7 +8191,7 @@ fi
AC_SUBST(HAVE_INTTYPES_H)

if test "$MOZ_TREE_CAIRO"; then
MOZ_CAIRO_CFLAGS='-I$(LIBXUL_DIST)/include/cairo'
MOZ_CAIRO_CFLAGS="-I${DIST}/include/cairo"
AC_DEFINE(MOZ_TREE_CAIRO)

if test "$OS_ARCH" = "WINNT"; then
Expand Down
14 changes: 7 additions & 7 deletions js/src/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ if test "$JS_STANDALONE" = no; then
JS_STANDALONE=
else
JS_STANDALONE=1
LIBXUL_DIST="$MOZ_BUILD_ROOT/dist"
AC_DEFINE(JS_STANDALONE)
fi
DIST="$MOZ_BUILD_ROOT/dist"
AC_SUBST(JS_STANDALONE)
BUILDING_JS=1
AC_SUBST(autoconfmk)
Expand Down Expand Up @@ -769,7 +769,7 @@ TARGET_MD_ARCH=unix
DIRENT_INO=d_ino
MOZ_USER_DIR=".mozilla"

MOZ_FIX_LINK_PATHS='-Wl,-rpath-link,$(LIBXUL_DIST)/bin -Wl,-rpath-link,$(prefix)/lib'
MOZ_FIX_LINK_PATHS="-Wl,-rpath-link,${DIST}/bin -Wl,-rpath-link,${prefix}/lib"

USE_DEPENDENT_LIBS=1

Expand Down Expand Up @@ -1596,7 +1596,7 @@ case "$target" in

LDFLAGS=$_SAVE_LDFLAGS
fi
MOZ_FIX_LINK_PATHS='-Wl,-executable_path,$(LIBXUL_DIST)/bin'
MOZ_FIX_LINK_PATHS="-Wl,-executable_path,${DIST}/bin"
;;

ia64*-hpux*)
Expand Down Expand Up @@ -1624,13 +1624,13 @@ ia64*-hpux*)
DSO_LDOPTS='-b -Wl,+s'
DSO_CFLAGS=""
DSO_PIC_CFLAGS="+Z"
MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_LDOPTS) -L$(LIBXUL_DIST)/bin -o $@'
MKCSHLIB='$(LD) -b +s -L$(LIBXUL_DIST)/bin -o $@'
MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_LDOPTS) -L$(DIST)/bin -o $@'
MKCSHLIB='$(LD) -b +s -L$(DIST)/bin -o $@'
CXXFLAGS="$CXXFLAGS -Wc,-ansi_for_scope,on"
else
DSO_LDOPTS='-b -E +s'
MKSHLIB='$(LD) $(DSO_LDOPTS) -L$(LIBXUL_DIST)/bin -L$(LIBXUL_DIST)/lib -o $@'
MKCSHLIB='$(LD) $(DSO_LDOPTS) -L$(LIBXUL_DIST)/bin -L$(LIBXUL_DIST)/lib -o $@'
MKSHLIB='$(LD) $(DSO_LDOPTS) -L$(DIST)/bin -L$(DIST)/lib -o $@'
MKCSHLIB='$(LD) $(DSO_LDOPTS) -L$(DIST)/bin -L$(DIST)/lib -o $@'
fi
MOZ_POST_PROGRAM_COMMAND='chatr +s enable'
AC_DEFINE(NSCAP_DISABLE_DEBUG_PTR_TYPES)
Expand Down
2 changes: 1 addition & 1 deletion testing/testsuite-targets.mk
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ GARBAGE += $(addsuffix .log,$(MOCHITESTS) reftest crashtest jstestbrowser)
ifeq ($(OS_ARCH),Darwin)
xpcshell_path = $(TARGET_DIST)/$(MOZ_MACBUNDLE_NAME)/Contents/MacOS/xpcshell
else
xpcshell_path = $(LIBXUL_DIST)/bin/xpcshell
xpcshell_path = $(DIST)/bin/xpcshell
endif

# Execute all xpcshell tests in the directories listed in the manifest.
Expand Down
2 changes: 1 addition & 1 deletion toolkit/mozapps/installer/packager.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def is_native(path):
if is_native(args.source):
launcher.tooldir = args.source
elif not buildconfig.substs['CROSS_COMPILE']:
launcher.tooldir = buildconfig.substs['LIBXUL_DIST']
launcher.tooldir = mozpath.join(buildconfig.topobjdir, 'dist')

with errors.accumulate():
finder_args = dict(
Expand Down
4 changes: 2 additions & 2 deletions tools/update-packaging/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ else
PACKAGE_DIR = $(PACKAGE_BASE_DIR)/$(MOZ_PKG_DIR)
endif

MAR_BIN = $(LIBXUL_DIST)/host/bin/mar$(HOST_BIN_SUFFIX)
MBSDIFF_BIN = $(LIBXUL_DIST)/host/bin/mbsdiff$(HOST_BIN_SUFFIX)
MAR_BIN = $(DIST)/host/bin/mar$(HOST_BIN_SUFFIX)
MBSDIFF_BIN = $(DIST)/host/bin/mbsdiff$(HOST_BIN_SUFFIX)

OVERRIDE_DEFAULT_GOAL := full-update
full-update:: complete-patch
Expand Down
4 changes: 2 additions & 2 deletions xulrunner/installer/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ GARBAGE += debian/changelog

DEBDESTDIR=debian/$(MOZ_BUILD_APP)

GRE_BUILDID = $(shell $(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(LIBXUL_DIST)/bin/platform.ini Build BuildID)
GRE_BUILDID = $(shell $(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(DIST)/bin/platform.ini Build BuildID)
MOZ_DEB_TIMESTAMP = "$(shell date +"%a, %d %b %Y %T %z" )"

DEFINES += \
Expand All @@ -108,7 +108,7 @@ DEFINES += \
$(NULL)

ifeq ($(OS_TARGET),Linux)
debian/changelog: $(srcdir)/debian/changelog.in $(LIBXUL_DIST)/bin/platform.ini
debian/changelog: $(srcdir)/debian/changelog.in $(DIST)/bin/platform.ini
$(call py_action,preprocessor, \
$(AUTOMATION_PPARGS) $(DEFINES) $(ACDEFINES) $^ -o $@)

Expand Down

0 comments on commit 5ab167c

Please sign in to comment.