Bug 940226 - Build image/src in unified mode. r=seth

This commit is contained in:
Chris Peterson 2013-11-18 22:03:36 -08:00
parent f8f457130a
commit a0a6a1af78
5 changed files with 23 additions and 6 deletions

View File

@ -4,6 +4,9 @@
* 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/. */
#ifndef ImageMetadata_h___
#define ImageMetadata_h___
#include <stdint.h>
#include "mozilla/Maybe.h"
#include "nsSize.h"
@ -72,3 +75,5 @@ private:
} // namespace image
} // namespace mozilla
#endif // ImageMetadata_h___

View File

@ -28,6 +28,9 @@
#include "mozilla/dom/SVGAnimatedLength.h"
#include "nsMimeTypes.h"
// undef the GetCurrentTime macro defined in WinBase.h from the MS Platform SDK
#undef GetCurrentTime
using namespace mozilla::dom;
namespace mozilla {

View File

@ -25,6 +25,8 @@ struct nsIntSize;
#define OBSERVER_SVC_CID "@mozilla.org/observer-service;1"
// undef the GetCurrentTime macro defined in WinBase.h from the MS Platform SDK
#undef GetCurrentTime
namespace mozilla {
namespace dom {

View File

@ -26,6 +26,9 @@
#include "nsIDOMEventListener.h"
#include "SurfaceCache.h"
// undef the GetCurrentTime macro defined in WinBase.h from the MS Platform SDK
#undef GetCurrentTime
namespace mozilla {
using namespace dom;

View File

@ -12,7 +12,7 @@ EXPORTS += [
'Orientation.h',
]
SOURCES += [
UNIFIED_SOURCES += [
'ClippedImage.cpp',
'Decoder.cpp',
'DiscardTracker.cpp',
@ -26,19 +26,23 @@ SOURCES += [
'ImageOps.cpp',
'ImageWrapper.cpp',
'imgFrame.cpp',
'imgLoader.cpp',
'imgRequest.cpp',
'imgRequestProxy.cpp',
'imgStatusTracker.cpp',
'imgTools.cpp',
'OrientedImage.cpp',
'RasterImage.cpp',
'ScriptedNotificationObserver.cpp',
'SurfaceCache.cpp',
'SVGDocumentWrapper.cpp',
'VectorImage.cpp',
]
# These files can't be unified because of ImageLogging.h #include order issues.
SOURCES += [
'imgLoader.cpp',
'imgRequest.cpp',
'imgRequestProxy.cpp',
'imgStatusTracker.cpp',
'RasterImage.cpp',
]
FAIL_ON_WARNINGS = True
include('/ipc/chromium/chromium-config.mozbuild')