Skip to content

Commit

Permalink
Bug 950130 - Move more INCLUDES / LOCAL_INCLUDES to moz.build; r=mshal
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Dec 31, 2013
1 parent 7208342 commit 561cae4
Show file tree
Hide file tree
Showing 89 changed files with 299 additions and 331 deletions.
5 changes: 0 additions & 5 deletions browser/components/feeds/src/Makefile.in

This file was deleted.

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

for var in ('MOZ_APP_NAME', 'MOZ_MACBUNDLE_NAME'):
DEFINES[var] = CONFIG[var]

LOCAL_INCLUDES += [
'../../build',
]

1 change: 0 additions & 1 deletion build/stlport/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ LIBRARY = $(LIB_PREFIX)$(LIBRARY_NAME).$(LIB_SUFFIX)
include $(topsrcdir)/config/rules.mk

CXXFLAGS += -fuse-cxa-atexit
INCLUDES += -I$(srcdir)/stlport
5 changes: 5 additions & 0 deletions build/stlport/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ SOURCES += [
]

DEFINES['_GNU_SOURCE'] = True

LOCAL_INCLUDES += [
'stlport',
]

2 changes: 0 additions & 2 deletions extensions/spellcheck/hunspell/src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

include $(topsrcdir)/config/rules.mk

INCLUDES += -I$(topsrcdir)/extensions/spellcheck/src

ifdef MOZ_NATIVE_HUNSPELL
# MOZ_HUNSPELL_CFLAGS is extracted through pkgconfig during configure,
# even though the variable doesn't show up in configure.in.
Expand Down
5 changes: 5 additions & 0 deletions extensions/spellcheck/hunspell/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ if not CONFIG['MOZ_NATIVE_HUNSPELL']:
DEFINES['HUNSPELL_STATIC'] = True

FINAL_LIBRARY = 'spellchecker'

LOCAL_INCLUDES += [
'/extensions/spellcheck/src',
]

11 changes: 0 additions & 11 deletions extensions/spellcheck/src/Makefile.in

This file was deleted.

6 changes: 6 additions & 0 deletions extensions/spellcheck/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ UNIFIED_SOURCES += [
LIBRARY_NAME = 'spellchecker'

FINAL_LIBRARY = 'xul'

LOCAL_INCLUDES += [
'../hunspell/src',
'/content/base/src',
'/editor/libeditor/base',
]
6 changes: 0 additions & 6 deletions extensions/universalchardet/src/xpcom/Makefile.in

This file was deleted.

4 changes: 4 additions & 0 deletions extensions/universalchardet/src/xpcom/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ UNIFIED_SOURCES += [
LIBRARY_NAME = 'universalchardet'

FINAL_LIBRARY = 'xul'

LOCAL_INCLUDES += [
'../base',
]
13 changes: 0 additions & 13 deletions ipc/glue/Makefile.in

This file was deleted.

9 changes: 9 additions & 0 deletions ipc/glue/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,12 @@ FINAL_LIBRARY = 'xul'

for var in ('MOZ_CHILD_PROCESS_NAME', 'MOZ_CHILD_PROCESS_BUNDLE'):
DEFINES[var] = '"%s"' % CONFIG[var]

LOCAL_INCLUDES += [
'/toolkit/crashreporter',
]

if CONFIG['MOZ_CONTENT_SANDBOX'] and CONFIG['OS_ARCH'] == 'WINNT':
LOCAL_INCLUDES += [
'/security/sandbox/win/src/sandboxbroker',
]
12 changes: 0 additions & 12 deletions js/ipc/Makefile.in

This file was deleted.

8 changes: 8 additions & 0 deletions js/ipc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ include('/ipc/chromium/chromium-config.mozbuild')
FINAL_LIBRARY = 'xul'

DEFINES['BIN_SUFFIX'] = '"%s"' % CONFIG['BIN_SUFFIX']

LOCAL_INCLUDES += [
'/dom/base',
'/js/ipc',
'/js/public',
'/js/xpconnect/src',
]

2 changes: 0 additions & 2 deletions js/src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,6 @@ DIST_GARBAGE = config.cache config.log config.status* \
distclean::
$(RM) $(DIST_GARBAGE)

INCLUDES += -I$(srcdir)

ifneq (,$(filter WINNT,$(OS_ARCH)))
# _CRT_RAND_S must be #defined before #including stdlib.h to get rand_s()
DEFINES += -D_CRT_RAND_S
Expand Down
9 changes: 0 additions & 9 deletions js/xpconnect/loader/Makefile.in

This file was deleted.

7 changes: 7 additions & 0 deletions js/xpconnect/loader/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ MSVC_ENABLE_PGO = True
FINAL_LIBRARY = 'xpconnect_s'

DEFINES['JS_THREADSAFE'] = True

LOCAL_INCLUDES += [
'../src',
'../wrappers',
'/content/base/src',
]

4 changes: 0 additions & 4 deletions js/xpconnect/shell/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@

SDK_BINARY = $(PROGRAM)

LOCAL_INCLUDES += \
-I$(topsrcdir)/toolkit/xre \
$(NULL)

LIBS = \
$(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
$(LIBXUL_LIBS) \
Expand Down
7 changes: 6 additions & 1 deletion js/xpconnect/shell/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ if CONFIG['MOZ_CALLGRIND']:
if CONFIG['MOZ_VTUNE']:
DEFINES['MOZ_VTUNE'] = True

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

LOCAL_INCLUDES += [
'/toolkit/xre',
]

23 changes: 0 additions & 23 deletions js/xpconnect/src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +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/.

LOCAL_INCLUDES = \
-I$(srcdir)/../wrappers \
-I$(srcdir)/../loader \
-I$(topsrcdir)/caps/include \
-I$(topsrcdir)/content/base/src \
-I$(topsrcdir)/content/base/public \
-I$(topsrcdir)/content/events/src \
-I$(topsrcdir)/content/html/content/src \
-I$(topsrcdir)/content/html/document/src \
-I$(topsrcdir)/content/svg/content/src \
-I$(topsrcdir)/layout/style \
-I$(topsrcdir)/layout/base \
-I$(topsrcdir)/dom/base \
-I$(topsrcdir)/xpcom/ds \
-I$(topsrcdir)/js/ipc \
$(NULL)

ifdef MOZ_B2G_BT
LOCAL_INCLUDES += \
-I$(topsrcdir)/dom/bluetooth \
$(NULL)
endif

EXTRA_MDDEPEND_FILES = dom_qsgen.pp dictionary_helper_gen.pp event_impl_gen.pp

INSTALL_TARGETS += extra_export_files
Expand Down
22 changes: 22 additions & 0 deletions js/xpconnect/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,25 @@ DEFINES['JS_THREADSAFE'] = True

if CONFIG['MOZ_JSDEBUGGER']:
DEFINES['MOZ_JSDEBUGGER'] = True

LOCAL_INCLUDES += [
'../loader',
'../wrappers',
'/caps/include',
'/content/base/public',
'/content/base/src',
'/content/events/src',
'/content/html/content/src',
'/content/html/document/src',
'/content/svg/content/src',
'/dom/base',
'/js/ipc',
'/layout/base',
'/layout/style',
'/xpcom/ds',
]

if CONFIG['MOZ_B2G_BT']:
LOCAL_INCLUDES += [
'/dom/bluetooth',
]
7 changes: 0 additions & 7 deletions js/xpconnect/wrappers/Makefile.in

This file was deleted.

6 changes: 6 additions & 0 deletions js/xpconnect/wrappers/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ FAIL_ON_WARNINGS = not CONFIG['_MSC_VER']
MSVC_ENABLE_PGO = True

FINAL_LIBRARY = 'xpconnect_s'

LOCAL_INCLUDES += [
'../../../dom/base',
'../src',
]

5 changes: 0 additions & 5 deletions media/libtremor/lib/Makefile.in

This file was deleted.

5 changes: 5 additions & 0 deletions media/libtremor/lib/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ if CONFIG['OS_ARCH'] == 'AIX':

if CONFIG['TARGET_CPU'] == 'arm' and CONFIG['GNU_CC'] and not CONFIG['MOZ_THUMB2']:
DEFINES['_ARM_ASSEM_'] = True

LOCAL_INCLUDES += [
'/media/libtremor/include/tremor',
]

11 changes: 1 addition & 10 deletions media/omx-plugin/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,13 @@ ifdef GNU_CXX
CXXFLAGS += -Wno-multichar
endif

INCLUDES += \
-I$(srcdir)/../../content/media/plugins \
$(NULL)

ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
EXTRA_DSO_LDOPTS += \
-lutils -lstagefright -lmedia -lstagefright_omx -lbinder -lui \
-lhardware -lcutils \
$(NULL)

INCLUDES += \
CXXFLAGS += \
-I$(ANDROID_SOURCE)/dalvik/libnativehelper/include/nativehelper \
-I$(ANDROID_SOURCE)/frameworks/base/include/ \
-I$(ANDROID_SOURCE)/frameworks/base/include/binder/ \
Expand All @@ -56,9 +52,4 @@ EXTRA_DSO_LDOPTS += \
-L$(DEPTH)/media/omx-plugin/lib/ics/libvideoeditorplayer \
-lvideoeditorplayer \
$(NULL)

INCLUDES += \
-I$(srcdir)/include/ics \
-I$(srcdir)/include/ics/media/stagefright/openmax \
$(NULL)
endif
8 changes: 0 additions & 8 deletions media/omx-plugin/froyo/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ USE_STATIC_LIBS = 1

include $(topsrcdir)/config/rules.mk

INCLUDES += \
-I$(srcdir)/../../../content/media/plugins \
$(NULL)

EXTRA_DSO_LDOPTS += \
-L$(DEPTH)/media/omx-plugin/lib/gb/libutils \
-lutils \
Expand All @@ -33,7 +29,3 @@ EXTRA_DSO_LDOPTS += \
-lstagefright_color_conversion \
$(NULL)

INCLUDES += \
-I$(srcdir)/../include/froyo \
-I$(srcdir)/../include/froyo/media/stagefright/openmax \
$(NULL)
7 changes: 7 additions & 0 deletions media/omx-plugin/froyo/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ SOURCES += [
LIBRARY_NAME = 'omxpluginfroyo'

FORCE_SHARED_LIB = True

LOCAL_INCLUDES += [
'../../../content/media/plugins',
'../include/froyo',
'../include/froyo/media/stagefright/openmax',
]

8 changes: 0 additions & 8 deletions media/omx-plugin/gb/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ USE_STATIC_LIBS = 1

include $(topsrcdir)/config/rules.mk

INCLUDES += \
-I$(srcdir)/../../../content/media/plugins \
$(NULL)

EXTRA_DSO_LDOPTS += \
-L$(DEPTH)/media/omx-plugin/lib/gb/libutils \
-lutils \
Expand All @@ -33,7 +29,3 @@ EXTRA_DSO_LDOPTS += \
-lstagefright_color_conversion \
$(NULL)

INCLUDES += \
-I$(srcdir)/../include/gb \
-I$(srcdir)/../include/gb/media/stagefright/openmax \
$(NULL)
7 changes: 7 additions & 0 deletions media/omx-plugin/gb/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ SOURCES += [
LIBRARY_NAME = 'omxplugingb'

FORCE_SHARED_LIB = True

LOCAL_INCLUDES += [
'../../../content/media/plugins',
'../include/gb',
'../include/gb/media/stagefright/openmax',
]

8 changes: 0 additions & 8 deletions media/omx-plugin/gb235/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ USE_STATIC_LIBS = 1

include $(topsrcdir)/config/rules.mk

INCLUDES += \
-I$(srcdir)/../../../content/media/plugins \
$(NULL)

EXTRA_DSO_LDOPTS += \
-L$(DEPTH)/media/omx-plugin/lib/gb/libutils \
-lutils \
Expand All @@ -33,7 +29,3 @@ EXTRA_DSO_LDOPTS += \
-lstagefright_color_conversion \
$(NULL)

INCLUDES += \
-I$(srcdir)/../include/gb \
-I$(srcdir)/../include/gb/media/stagefright/openmax \
$(NULL)
7 changes: 7 additions & 0 deletions media/omx-plugin/gb235/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ SOURCES += [
LIBRARY_NAME = 'omxplugingb235'

FORCE_SHARED_LIB = True

LOCAL_INCLUDES += [
'../../../content/media/plugins',
'../include/gb',
'../include/gb/media/stagefright/openmax',
]

Loading

0 comments on commit 561cae4

Please sign in to comment.