Skip to content

Commit

Permalink
Bug 1042878 - part 2 - move MOZ_CAIRO_CFLAGS et al additions to C*FLA…
Browse files Browse the repository at this point in the history
…GS into moz.build; r=glandium
  • Loading branch information
froydnj committed Jul 24, 2014
1 parent 2ed4280 commit 12c76f1
Show file tree
Hide file tree
Showing 161 changed files with 288 additions and 724 deletions.
14 changes: 0 additions & 14 deletions accessible/atk/Makefile.in

This file was deleted.

7 changes: 7 additions & 0 deletions accessible/atk/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,10 @@ LOCAL_INCLUDES += [
]

FINAL_LIBRARY = 'xul'

if CONFIG['MOZ_ENABLE_GTK']:
CFLAGS += CONFIG['TK_CFLAGS']
CXXFLAGS += CONFIG['TK_CFLAGS']

if CONFIG['MOZ_ENABLE_DBUS']:
CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
9 changes: 0 additions & 9 deletions accessible/base/Makefile.in

This file was deleted.

3 changes: 3 additions & 0 deletions accessible/base/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,6 @@ else:
]

FINAL_LIBRARY = 'xul'

if CONFIG['MOZ_ENABLE_GTK']:
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
11 changes: 0 additions & 11 deletions browser/components/shell/Makefile.in

This file was deleted.

2 changes: 2 additions & 0 deletions browser/components/shell/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ EXTRA_COMPONENTS += [

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

CXXFLAGS += CONFIG['TK_CFLAGS']
10 changes: 0 additions & 10 deletions chrome/Makefile.in

This file was deleted.

3 changes: 3 additions & 0 deletions chrome/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ LOCAL_INCLUDES += [
'/netwerk/protocol/res',
'/xpcom/components'
]

if CONFIG['MOZ_ENABLE_GTK']:
CXXFLAGS += CONFIG['TK_CFLAGS']
8 changes: 0 additions & 8 deletions content/media/Makefile.in

This file was deleted.

10 changes: 0 additions & 10 deletions content/media/gstreamer/Makefile.in

This file was deleted.

2 changes: 2 additions & 0 deletions content/media/gstreamer/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ LOCAL_INCLUDES += [
'/content/html/content/src',
]

CFLAGS += CONFIG['GSTREAMER_CFLAGS']
CXXFLAGS += CONFIG['GSTREAMER_CFLAGS']
3 changes: 3 additions & 0 deletions content/media/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,6 @@ if CONFIG['MOZ_OMX_DECODER']:

if CONFIG['ANDROID_VERSION'] > '15':
DEFINES['MOZ_OMX_WEBM_DECODER'] = True

CFLAGS += CONFIG['GSTREAMER_CFLAGS']
CXXFLAGS += CONFIG['GSTREAMER_CFLAGS']
10 changes: 0 additions & 10 deletions content/media/webm/Makefile.in

This file was deleted.

2 changes: 2 additions & 0 deletions content/media/webm/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ if CONFIG['MOZ_WEBM_ENCODER']:
'WebMWriter.cpp',
]

CXXFLAGS += CONFIG['MOZ_LIBVPX_CFLAGS']

FAIL_ON_WARNINGS = True

FINAL_LIBRARY = 'xul'
10 changes: 0 additions & 10 deletions dom/base/Makefile.in

This file was deleted.

3 changes: 3 additions & 0 deletions dom/base/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -190,3 +190,6 @@ if CONFIG['MOZ_BUILD_APP'] in ['browser', 'mobile/android', 'xulrunner']:

MOCHITEST_MANIFESTS += ['test/mochitest.ini']
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']

if CONFIG['MOZ_X11']:
CXXFLAGS += CONFIG['TK_CFLAGS']
28 changes: 0 additions & 28 deletions dom/bluetooth/Makefile.in

This file was deleted.

5 changes: 5 additions & 0 deletions dom/bluetooth/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ if CONFIG['MOZ_B2G_BT']:

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
if CONFIG['MOZ_B2G_BT_BLUEZ']:
CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
SOURCES += [
'bluez/BluetoothA2dpManager.cpp',
'bluez/BluetoothDBusService.cpp',
Expand Down Expand Up @@ -71,6 +72,10 @@ if CONFIG['MOZ_B2G_BT']:

DEFINES['MOZ_B2G_BT_BLUEDROID'] = True
elif CONFIG['MOZ_ENABLE_DBUS']:
CFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
CFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
SOURCES += [
'bluez/BluetoothDBusService.cpp',
'bluez/BluetoothHfpManager.cpp',
Expand Down
28 changes: 0 additions & 28 deletions dom/bluetooth2/Makefile.in

This file was deleted.

5 changes: 5 additions & 0 deletions dom/bluetooth2/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ if CONFIG['MOZ_B2G_BT']:

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
if CONFIG['MOZ_B2G_BT_BLUEZ']:
CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
SOURCES += [
'bluez/BluetoothA2dpManager.cpp',
'bluez/BluetoothDBusService.cpp',
Expand Down Expand Up @@ -73,6 +74,10 @@ if CONFIG['MOZ_B2G_BT']:

DEFINES['MOZ_B2G_BT_BLUEDROID'] = True
elif CONFIG['MOZ_ENABLE_DBUS']:
CFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
CFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
SOURCES += [
'bluez/BluetoothDBusService.cpp',
'bluez/BluetoothHfpManager.cpp',
Expand Down
9 changes: 0 additions & 9 deletions dom/canvas/Makefile.in

This file was deleted.

3 changes: 3 additions & 0 deletions dom/canvas/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,6 @@ LOCAL_INCLUDES += [
'/layout/style',
'/layout/xul',
]

CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
CXXFLAGS += CONFIG['TK_CFLAGS']
7 changes: 0 additions & 7 deletions dom/ipc/Makefile.in

This file was deleted.

2 changes: 2 additions & 0 deletions dom/ipc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,5 @@ JAR_MANIFESTS += ['jar.mn']

MOCHITEST_CHROME_MANIFESTS += ['tests/chrome.ini']
MOCHITEST_MANIFESTS += ['tests/mochitest.ini']

CXXFLAGS += CONFIG['TK_CFLAGS']
11 changes: 0 additions & 11 deletions dom/plugins/base/Makefile.in

This file was deleted.

8 changes: 0 additions & 8 deletions dom/plugins/base/android/Makefile.in

This file was deleted.

2 changes: 2 additions & 0 deletions dom/plugins/base/android/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ LOCAL_INCLUDES += [
]

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

CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
3 changes: 3 additions & 0 deletions dom/plugins/base/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,6 @@ include('/ipc/chromium/chromium-config.mozbuild')
DEFINES['SK_BUILD_FOR_ANDROID_NDK'] = True

FINAL_LIBRARY = 'xul'

CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
CXXFLAGS += CONFIG['TK_CFLAGS']
16 changes: 0 additions & 16 deletions dom/plugins/ipc/Makefile.in

This file was deleted.

7 changes: 7 additions & 0 deletions dom/plugins/ipc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,10 @@ LOCAL_INCLUDES += [

DEFINES['FORCE_PR_LOG'] = True

if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gtk3':
CXXFLAGS += CONFIG['TK_CFLAGS']
else:
# Force build against gtk+2 for struct offsets and such.
CXXFLAGS += CONFIG['MOZ_GTK2_CFLAGS']

CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
4 changes: 0 additions & 4 deletions dom/plugins/test/testplugin/testplugin.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

ifeq ($(MOZ_WIDGET_TOOLKIT),qt)
include $(topsrcdir)/config/config.mk
CXXFLAGS += $(MOZ_QT_CFLAGS)
CFLAGS += $(MOZ_QT_CFLAGS)
OS_LIBS += \
$(MOZ_QT_LIBS) \
$(XLDFLAGS) \
Expand Down Expand Up @@ -38,7 +36,5 @@ endif
include $(topsrcdir)/config/rules.mk

ifneq (,$(filter gtk2 gtk3,$(MOZ_WIDGET_TOOLKIT)))
CXXFLAGS += $(MOZ_GTK2_CFLAGS)
CFLAGS += $(MOZ_GTK2_CFLAGS)
OS_LIBS += $(MOZ_GTK2_LIBS) $(XLDFLAGS) $(XLIBS) $(XEXT_LIBS)
endif
8 changes: 8 additions & 0 deletions dom/plugins/test/testplugin/testplugin.mozbuild
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,11 @@ if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa' and '64' in CONFIG['OS_TEST']:
EXTRA_DSO_LDOPTS += ['-framework Carbon']

if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('gtk2', 'gtk3'):
CXXFLAGS += CONFIG['MOZ_GTK2_CFLAGS']
CFLAGS += CONFIG['MOZ_GTK2_CFLAGS']

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
CXXFLAGS += CONFIG['MOZ_QT_CFLAGS']
CFLAGS += CONFIG['MOZ_QT_CFLAGS']
9 changes: 0 additions & 9 deletions dom/src/geolocation/Makefile.in

This file was deleted.

1 change: 1 addition & 0 deletions dom/src/geolocation/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ if CONFIG['MOZ_ENABLE_QT5GEOPOSITION']:
LOCAL_INCLUDES += [
'/dom/system/qt',
]
CXXFLAGS += CONFIG['MOZ_QT_CFLAGS']

if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
LOCAL_INCLUDES += [
Expand Down
9 changes: 0 additions & 9 deletions dom/system/qt/Makefile.in

This file was deleted.

Loading

0 comments on commit 12c76f1

Please sign in to comment.