Skip to content

Commit

Permalink
Bug 875013 - Remove VPATH; r=glandium
Browse files Browse the repository at this point in the history
  • Loading branch information
mshal committed Nov 21, 2013
1 parent 1c770ca commit ddecae5
Show file tree
Hide file tree
Showing 19 changed files with 6 additions and 171 deletions.
7 changes: 0 additions & 7 deletions dom/bluetooth/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

VPATH += $(srcdir)/ipc

ifneq (,$(MOZ_B2G_BT))

ifeq (gonk,$(MOZ_WIDGET_TOOLKIT))
Expand All @@ -27,9 +25,4 @@ CFLAGS += $(MOZ_DBUS_GLIB_CFLAGS)
CXXFLAGS += $(MOZ_DBUS_GLIB_CFLAGS) -DHAVE_PTHREADS
endif #MOZ_ENABLE_DBUS
endif #MOZ_WIDGET_TOOLKIT

# Add VPATH to LOCAL_INCLUDES so we are going to include the correct backend
# subdirectory.
LOCAL_INCLUDES += $(VPATH:%=-I%)

endif #MOZ_B2G_BT
4 changes: 4 additions & 0 deletions dom/bluetooth/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ if CONFIG['MOZ_B2G_BT']:

FINAL_LIBRARY = 'gklayout'

LOCAL_INCLUDES += [
'ipc',
]

EXPORTS.mozilla.dom.bluetooth.ipc += [
'ipc/BluetoothMessageUtils.h',
]
Expand Down
5 changes: 0 additions & 5 deletions dom/contacts/Makefile.in

This file was deleted.

4 changes: 2 additions & 2 deletions dom/contacts/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ EXTRA_COMPONENTS += [
]

EXTRA_JS_MODULES += [
'ContactDB.jsm',
'fallback/ContactDB.jsm',
]

if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
EXTRA_JS_MODULES += [
'ContactService.jsm'
'fallback/ContactService.jsm'
]
2 changes: 0 additions & 2 deletions dom/plugins/test/testplugin/testplugin.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ STL_FLAGS =
# must link statically with the CRT; nptest isn't Gecko code
USE_STATIC_LIBS = 1

VPATH += $(topsrcdir)/build

ifeq ($(MOZ_WIDGET_TOOLKIT),qt)
include $(topsrcdir)/config/config.mk
CXXFLAGS += $(MOZ_QT_CFLAGS)
Expand Down
68 changes: 0 additions & 68 deletions js/src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,69 +22,7 @@ LIBS = $(NSPR_LIBS)

DIST_INSTALL = 1

VPATH += \
$(srcdir) \
$(srcdir)/builtin \
$(srcdir)/devtools \
$(srcdir)/ds \
$(srcdir)/frontend \
$(srcdir)/gc \
$(srcdir)/vm \
$(NULL)

######################################################
# BEGIN include exported headers from the JS engine
#
# Ultimately, after cleansing EXPORTS,
# these will be the ONLY headers exported by
# the js engine
#
VPATH += \
$(srcdir)/../public \
$(NULL)

###############################################
# BEGIN enable non-releasable features
#
# Ion
ifdef ENABLE_ION
VPATH += $(srcdir)/jit
VPATH += $(srcdir)/jit/shared

ifeq (86, $(findstring 86,$(TARGET_CPU)))
ifeq (x86_64, $(TARGET_CPU))
VPATH += $(srcdir)/jit/x64
else
VPATH += $(srcdir)/jit/x86
endif
endif
ifeq (arm, $(findstring arm, $(TARGET_CPU)))
VPATH += $(srcdir)/jit/arm
endif
endif #ENABLE_ION

###############################################
# BEGIN include sources for the Nitro assembler
#

VPATH += $(srcdir)/assembler \
$(srcdir)/assembler/wtf \
$(srcdir)/assembler/jit \
$(srcdir)/yarr \
$(NONE)

ifneq (,$(ENABLE_ION)$(ENABLE_YARR_JIT))
VPATH += $(srcdir)/assembler/assembler \
$(NONE)
endif

#
# END include sources for the Nitro assembler
#############################################

ifdef JS_HAS_CTYPES
VPATH += $(srcdir)/ctypes

ifdef MOZ_NATIVE_FFI
LOCAL_INCLUDES = $(MOZ_FFI_CFLAGS)
else
Expand All @@ -107,12 +45,6 @@ endif

endif # JS_HAS_CTYPES

# PerfMeasurement is available regardless of low-level support for it;
# it just doesn't necessarily do anything useful. There is one
# implementation source file per supported operating system, plus a stub
# for unsupported OSes, plus the Javascript wrapper.
VPATH += $(srcdir)/perf

DASH_R = -r

ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
Expand Down
2 changes: 0 additions & 2 deletions js/src/devtools/rootAnalysis/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

include $(topsrcdir)/config/config.mk

VPATH += $(srcdir)

# Tree to build and analyze, defaulting to the current tree
TARGET_JSOBJDIR ?= $(MOZ_BUILD_ROOT)

Expand Down
2 changes: 0 additions & 2 deletions js/src/gdb/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,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/.

VPATH = @srcdir@ @srcdir@/tests

LIBS = $(DEPTH)/$(LIB_PREFIX)js_static.$(LIB_SUFFIX) $(NSPR_LIBS) $(MOZ_ZLIB_LIBS)

LOCAL_INCLUDES += -I$(topsrcdir) -I..
Expand Down
2 changes: 0 additions & 2 deletions memory/jemalloc/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/.

VPATH = $(srcdir) $(srcdir)/src/src

ifdef MOZ_GLUE_PROGRAM_LDFLAGS
SDK_LIBRARY = $(REAL_LIBRARY)
DIST_INSTALL = 1
Expand Down
2 changes: 0 additions & 2 deletions memory/replace/jemalloc/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ ifdef _MSC_VER
LOCAL_INCLUDES += -I$(topsrcdir)/memory/jemalloc/src/include/msvc_compat
endif

VPATH += $(topsrcdir)/memory/build

MOZ_GLUE_LDFLAGS = # Don't link against mozglue
WRAP_LDFLAGS = # Never wrap malloc function calls with -Wl,--wrap
6 changes: 0 additions & 6 deletions netwerk/sctp/src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +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/.

VPATH = \
@srcdir@ \
@srcdir@/netinet \
@srcdir@/netinet6 \
$(NULL)

NO_PROFILE_GUIDED_OPTIMIZE = 1 # Don't PGO

ifeq ($(OS_TARGET),Darwin)
Expand Down
12 changes: 0 additions & 12 deletions netwerk/srtp/src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +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/.

VPATH = \
@srcdir@ \
@srcdir@/srtp \
@srcdir@/crypto \
@srcdir@/crypto/cipher \
@srcdir@/crypto/hash \
@srcdir@/crypto/kernel \
@srcdir@/crypto/math \
@srcdir@/crypto/replay \
@srcdir@/crypto/rng \
$(NULL)

include $(topsrcdir)/config/rules.mk

ifdef GNU_CC
Expand Down
9 changes: 0 additions & 9 deletions other-licenses/snappy/Makefile.in

This file was deleted.

7 changes: 0 additions & 7 deletions testing/gtest/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
# Avoid recursive make to avoid having to add files to the gtest/ subdirectory
# (which is third-party code), and to make the build faster.

VPATH = \
$(srcdir) \
$(srcdir)/gtest/src \
$(srcdir)/mozilla \
$(srcdir)/gmock/src \
$(NULL)

LOCAL_INCLUDES += \
-I$(srcdir)/gtest \
-I$(srcdir)/gtest/include \
Expand Down
11 changes: 0 additions & 11 deletions toolkit/components/protobuf/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +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/.

VPATH = \
@srcdir@ \
@srcdir@/google/protobuf \
@srcdir@/google/protobuf/io \
@srcdir@/google/protobuf/stubs \
$(NULL)

LOCAL_INCLUDES = \
-I$(srcdir) \
$(NULL)

include $(topsrcdir)/config/rules.mk

CXXFLAGS += $(TK_CFLAGS) -DGOOGLE_PROTOBUF_NO_RTTI
2 changes: 0 additions & 2 deletions toolkit/library/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ SHARED_LIBRARY_NAME=XUL
MAKE_FRAMEWORK=1
endif

VPATH += $(topsrcdir)/build/

ifdef MOZ_CONTENT_SANDBOX
ifeq ($(OS_ARCH),WINNT)
LOCAL_INCLUDES += -I$(srcdir)/../sandboxbroker
Expand Down
25 changes: 0 additions & 25 deletions uriloader/exthandler/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +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/.

ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
OSDIR = os2
else
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
OSDIR = win
else
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
OSDIR = mac
else
ifeq ($(MOZ_WIDGET_TOOLKIT),android)
OSDIR = android
else
ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
OSDIR = gonk
else
OSDIR = unix
endif
endif
endif
endif
endif

VPATH := $(srcdir) $(srcdir)/$(OSDIR)


LOCAL_INCLUDES = -I$(srcdir)

LOCAL_INCLUDES += -I$(topsrcdir)/dom/base \
Expand Down
5 changes: 0 additions & 5 deletions widget/gonk/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

VPATH = \
$(srcdir) \
$(srcdir)/libui \
$(NULL)

include $(topsrcdir)/config/rules.mk

CXXFLAGS += \
Expand Down
2 changes: 0 additions & 2 deletions xpcom/tests/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/.

VPATH += $(topsrcdir)/build

LIBS += $(XPCOM_LIBS)

# Make sure we have symbols in case we need to debug these.
Expand Down

0 comments on commit ddecae5

Please sign in to comment.