On 4/29/2014 9:34 AM, xunxun wrote:
> Hi,
>
>    I noticed that WebRTC's mozmake.py (
> media/webrtc/trunk/tools/gyp/pylib/gyp/generator/mozmake.py ) has been
> removed since 29.0
>
>    In the past, I usually modify the mozmake.py like this for something to
> do:
> ---------------------------------------------------------------------------------------------------------
> diff -r 5bc2235cc3e7 -r 342c28d308fa
> media/webrtc/trunk/tools/gyp/pylib/gyp/generator/mozmake.py
> --- a/media/webrtc/trunk/tools/gyp/pylib/gyp/generator/mozmake.py    Tue
> Mar 04 18:42:18 2014 +0800
> +++ b/media/webrtc/trunk/tools/gyp/pylib/gyp/generator/mozmake.py    Sun
> Mar 16 17:24:31 2014 +0800
> @@ -44,6 +44,11 @@
>  COMMON_FOOTER = """
>
>  include %(common_mk_path)s
> +
> +CC = cl
> +CXX = cl
> +CFLAGS += -O2 -arch:SSE2 -fp:fast -Zp16
> +CXXFLAGS += -O2 -arch:SSE2 -fp:fast -Zp16
>  """
>
>  COMMON_MK = """# This file was generated by mozmake.py. Do not edit it
> directly.
> ---------------------------------------------------------------------------------------------------------
>
>  Then now how to change the similar value?
>
The build system has been changed to integrate gyp projects into the
same framework that reads moz.build files, so the new code is
gyp_reader.py. It looks like it honors "cflags_mozilla" from gyp files
as extra CXXFLAGS:
http://mxr.mozilla.org/mozilla-central/source/python/mozbuild/mozbuild/frontend/gyp_reader.py#191

-Ted

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to