Bug 937224 - Part b: Move LOCAL_INCLUDES to moz.build in widget/; r=mshal

This commit is contained in:
Ms2ger 2013-11-28 15:17:25 +01:00
Родитель 4c502efb62
Коммит 8fdf40f7fd
22 изменённых файлов: 107 добавлений и 116 удалений

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

@ -1,16 +0,0 @@
# 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 $(topsrcdir)/config/rules.mk
LOCAL_INCLUDES += \
-I$(topsrcdir)/widget/xpwidgets \
-I$(topsrcdir)/widget/shared \
-I$(topsrcdir)/dom/system/android \
-I$(topsrcdir)/docshell/base \
-I$(topsrcdir)/content/events/src \
-I$(topsrcdir)/netwerk/cache \
-I$(topsrcdir)/widget/android/android \
-I$(srcdir) \
$(NULL)

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

@ -47,4 +47,14 @@ include('/ipc/chromium/chromium-config.mozbuild')
FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'/content/events/src',
'/docshell/base',
'/dom/system/android',
'/netwerk/cache',
'/widget/android/android',
'/widget/shared',
'/widget/xpwidgets',
]
#DEFINES['DEBUG_WIDGETS'] = True

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

@ -30,11 +30,4 @@ endif
export::
$(INSTALL) $(srcdir)/cursors $(DIST)/bin/res
LOCAL_INCLUDES = \
$(TK_CFLAGS) \
-I$(srcdir)/../xpwidgets \
-I$(srcdir)/../shared \
-I$(topsrcdir)/layout/forms \
-I$(topsrcdir)/layout/generic \
-I$(topsrcdir)/layout/xul/base/src \
$(NULL)
CXXFLAGS += $(TK_CFLAGS)

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

@ -70,3 +70,11 @@ if CONFIG['TARGET_CPU'] == 'x86_64':
]
FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'../shared',
'../xpwidgets',
'/layout/forms',
'/layout/generic',
'/layout/xul/base/src',
]

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

@ -19,16 +19,9 @@ VPATH = \
include $(topsrcdir)/config/rules.mk
LOCAL_INCLUDES += \
CXXFLAGS += \
-I$(ANDROID_SOURCE)/hardware/libhardware/include \
-I$(ANDROID_SOURCE)/hardware/libhardware_legacy/include \
-I$(ANDROID_SOURCE)/frameworks/native/opengl/include \
-I$(topsrcdir)/widget/xpwidgets \
-I$(topsrcdir)/widget/shared \
-I$(topsrcdir)/dom/system/android \
-I$(topsrcdir)/content/events/src \
-I$(topsrcdir)/gfx/skia/include/core \
-I$(topsrcdir)/gfx/skia/include/config \
-I$(topsrcdir)/content/media/omx/mediaresourcemanager \
-I$(srcdir) \
$(NULL)

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

@ -12,19 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
VPATH = \
$(srcdir) \
$(NULL)
STL_FLAGS=
include $(topsrcdir)/config/rules.mk
LOCAL_INCLUDES += \
CXXFLAGS += \
-I$(ANDROID_SOURCE)/hardware/libhardware/include \
-I$(ANDROID_SOURCE)/hardware/libhardware_legacy/include \
-I$(ANDROID_SOURCE)/frameworks/native/include/gui \
-I$(ANDROID_SOURCE)/frameworks/native/opengl/include \
-I$(ANDROID_SOURCE)/system/core/libsuspend/include \
-I$(srcdir) \
$(NULL)

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

@ -64,6 +64,16 @@ include('/ipc/chromium/chromium-config.mozbuild')
FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'/content/events/src',
'/content/media/omx/mediaresourcemanager',
'/dom/system/android',
'/gfx/skia/include/config',
'/gfx/skia/include/core',
'/widget/shared',
'/widget/xpwidgets',
]
DEFINES['HAVE_OFF64_T'] = True
DEFINES['SK_BUILD_FOR_ANDROID_NDK'] = True

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

@ -12,13 +12,3 @@ CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PIXMAN_CFLAGS) \
CFLAGS += $(TK_CFLAGS)
CXXFLAGS += $(TK_CFLAGS)
INCLUDES += \
-I$(srcdir)/../xpwidgets \
-I$(srcdir)/../shared \
-I$(topsrcdir)/layout/generic \
-I$(topsrcdir)/layout/xul/base/src \
-I$(topsrcdir)/other-licenses/atk-1.0 \
$(NULL)
ifdef MOZ_X11
INCLUDES += -I$(srcdir)/../shared/x11
endif

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

@ -81,6 +81,19 @@ include('/ipc/chromium/chromium-config.mozbuild')
FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'../shared',
'../xpwidgets',
'/layout/generic',
'/layout/xul/base/src',
'/other-licenses/atk-1.0',
]
if CONFIG['MOZ_X11']:
LOCAL_INCLUDES += [
'../shared/x11',
]
DEFINES['CAIRO_GFX'] = True
DEFINES['MOZ_APP_NAME'] = '"%s"' % CONFIG['MOZ_APP_NAME']

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

@ -10,6 +10,3 @@ ifdef MOZ_ENABLE_GTK2
CFLAGS += $(MOZ_GTK2_CFLAGS)
endif
INCLUDES += \
-I$(srcdir) \
$(NULL)

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

@ -9,8 +9,6 @@ include $(topsrcdir)/config/rules.mk
CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PIXMAN_CFLAGS)
LOCAL_INCLUDES = -I. -I$(srcdir)/../xpwidgets -I$(srcdir)
install-readme: README.$(MOZ_APP_NAME)
ifneq (,$(filter-out xulrunner sunbird,$(MOZ_APP_NAME)))
cp -f $^ $(DIST)/bin/README.txt

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

@ -28,6 +28,10 @@ SOURCES += [
LIBRARY_NAME = 'wdgtos2'
FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'../xpwidgets',
]
DEFINES['USE_OS2_TOOLKIT_HEADERS'] = True

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

@ -9,14 +9,3 @@ CXXFLAGS += $(MOZ_QT_CFLAGS) $(GLIB_CFLAGS) $(MOZ_CAIRO_CFLAGS) \
$(MOZ_PIXMAN_CFLAGS)
CFLAGS += $(MOZ_QT_CFLAGS) $(GLIB_CFLAGS) $(MOZ_CAIRO_CFLAGS) \
$(MOZ_PIXMAN_CFLAGS)
LOCAL_INCLUDES += \
-I$(topsrcdir)/widget/shared \
-I$(topsrcdir)/widget/xpwidgets \
-I$(topsrcdir)/widget/qt/faststartupqt \
-I$(srcdir) \
$(NULL)
ifdef MOZ_X11
INCLUDES += -I$(srcdir)/../shared/x11
endif
INCLUDES += -I$(srcdir)/../shared

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

@ -5,11 +5,6 @@
DIST_INSTALL = 1
STL_FLAGS=
LOCAL_INCLUDES += \
-I$(topsrcdir)/xpcom/build \
-I$(topsrcdir)/widget/qt \
$(NULL)
EXPORT_SOURCES = \
$(topsrcdir)/widget/qt/moziqwidget.h \
$(topsrcdir)/toolkit/xre/nsQAppInstance.h \
@ -21,6 +16,8 @@ GARBAGE += $(EXPORT_SOURCES)
export:: $(EXPORT_SOURCES)
$(INSTALL) $^ .
LOCAL_INCLUDES += \
include $(topsrcdir)/config/rules.mk
CXXFLAGS += \
$(MOZ_QT_CFLAGS) \
$(NULL)

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

@ -21,6 +21,12 @@ SOURCES += [
FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'/widget/qt',
'/xpcom/build',
]
DEFINES['LIBRARY_FILENAME'] = '%s%s%s' % (
CONFIG['DLL_PREFIX'],
LIBRARY_NAME,

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

@ -62,6 +62,18 @@ include('/ipc/chromium/chromium-config.mozbuild')
FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'../shared',
'/widget/qt/faststartupqt',
'/widget/shared',
'/widget/xpwidgets',
]
if CONFIG['MOZ_X11']:
LOCAL_INCLUDES += [
'../shared/x11',
]
#DEFINES['DEBUG_WIDGETS'] = True
if CONFIG['OS_ARCH'] == 'Linux':

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

@ -5,18 +5,6 @@
RESFILE = widget.res
LOCAL_INCLUDES = \
-I. \
-I$(srcdir)/../xpwidgets \
-I$(srcdir)/../shared \
-I$(srcdir) \
-I$(topsrcdir)/layout/generic \
-I$(topsrcdir)/layout/xul/base/src \
-I$(topsrcdir)/toolkit/xre \
-I$(topsrcdir)/xpcom/base \
-I$(topsrcdir)/content/events/src \
$(NULL)
include $(topsrcdir)/config/rules.mk
CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PIXMAN_CFLAGS)

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

@ -89,6 +89,16 @@ include('/ipc/chromium/chromium-config.mozbuild')
FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'../shared',
'../xpwidgets',
'/content/events/src',
'/layout/generic',
'/layout/xul/base/src',
'/toolkit/xre',
'/xpcom/base',
]
DEFINES['MOZ_UNICODE'] = True
for var in ('MOZ_ENABLE_D3D9_LAYER', 'MOZ_ENABLE_D3D10_LAYER'):

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

@ -2,18 +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/.
LOCAL_INCLUDES = \
-I. \
-I$(srcdir)/../../shared \
-I$(srcdir)/../../xpwidgets \
-I$(srcdir) \
-I$(srcdir)/../ \
-I$(topsrcdir)/layout/generic \
-I$(topsrcdir)/layout/xul/base/src \
-I$(topsrcdir)/toolkit/xre \
-I$(topsrcdir)/xpcom/base \
$(NULL)
MIDL_GENERATED_FILES = \
UIABridge_i.c \
UIABridge_p.c \

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

@ -29,6 +29,16 @@ include('/ipc/chromium/chromium-config.mozbuild')
FINAL_LIBRARY = 'xul'
LOCAL_INCLUDES += [
'../',
'../../shared',
'../../xpwidgets',
'/layout/generic',
'/layout/xul/base/src',
'/toolkit/xre',
'/xpcom/base',
]
DEFINES['MOZ_UNICODE'] = True
for var in ('MOZ_ENABLE_D3D9_LAYER', 'MOZ_ENABLE_D3D10_LAYER'):

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

@ -3,27 +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/.
ifneq (,$(filter gtk3 gtk2,$(MOZ_WIDGET_TOOLKIT)))
# gtk3 shares includes with gtk2
LOCAL_INCLUDES += \
-I$(srcdir)/../gtk \
$(NULL)
else
LOCAL_INCLUDES += \
-I$(srcdir)/../$(MOZ_WIDGET_TOOLKIT) \
$(NULL)
endif
LOCAL_INCLUDES += \
-I$(srcdir)/../shared \
-I$(topsrcdir)/layout/base \
-I$(topsrcdir)/layout/forms \
-I$(topsrcdir)/layout/generic \
-I$(topsrcdir)/layout/xul/base/src \
-I$(topsrcdir)/view/src \
-I$(srcdir) \
$(NULL)
include $(topsrcdir)/config/rules.mk
CXXFLAGS += $(TK_CFLAGS)

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

@ -69,6 +69,23 @@ LIBRARY_NAME = 'xpwidgets_s'
include('/ipc/chromium/chromium-config.mozbuild')
LOCAL_INCLUDES += [
'../shared',
'/layout/base',
'/layout/forms',
'/layout/generic',
'/layout/xul/base/src',
'/view/src',
]
widget_dir = CONFIG['MOZ_WIDGET_TOOLKIT']
if widget_dir in ('gtk3', 'gtk2'):
# gtk3 shares includes with gtk2
widget_dir = 'gtk'
LOCAL_INCLUDES += [
'../%s' % widget_dir,
]
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
FINAL_LIBRARY = 'widget_mac'
elif CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gonk', 'android', 'qt', 'gtk2', 'gtk3'):