Bug 910754 - Add a header to moz.build indicating that it shouldn't be edited by mortals r=vlad DONTBUILD
authorGeorge Wright <george@mozilla.com>
Wed, 19 Feb 2014 17:10:33 -0500
changeset 169603 2216fa1ce96edd1c688827c9b3f313c77dd03f34
parent 169602 ad1d8b7022f7c4e0d7850ac70f9ddfa49132d523
child 169604 257ba5b4593a3682cbfcec5c128c9c49bd0156d9
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersvlad
bugs910754
milestone30.0a1
Bug 910754 - Add a header to moz.build indicating that it shouldn't be edited by mortals r=vlad DONTBUILD
gfx/skia/generate_mozbuild.py
gfx/skia/moz.build
--- a/gfx/skia/generate_mozbuild.py
+++ b/gfx/skia/generate_mozbuild.py
@@ -1,15 +1,20 @@
 #!/usr/bin/env python
 
 import os
 
 import locale
 locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
 
+header = """
+# Please note this file is autogenerated from generate_mozbuild.py, so do not modify it directly
+
+"""
+
 footer = """
 
 # left out of UNIFIED_SOURCES for now; that's not C++ anyway, nothing else to unify it with
 if not CONFIG['INTEL_ARCHITECTURE'] and CONFIG['CPU_ARCH'] == 'arm' and CONFIG['GNU_CC']:
     SOURCES += [
         'trunk/src/opts/memset.arm.S',
     ]
 
@@ -247,16 +252,17 @@ def write_list(f, name, values, indent):
 
   write_indent(4)
   f.write(']\n')
 
 def write_mozbuild(includes, sources):
   filename = 'moz.build'
   f = open(filename, 'w')
 
+  f.write(header)
 
   write_list(f, 'EXPORTS.skia', includes, 0)
 
   write_list(f, 'SOURCES', sources['common'], 0)
 
   f.write("if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gonk'):\n")
   write_list(f, 'SOURCES', sources['android'], 4)
 
--- a/gfx/skia/moz.build
+++ b/gfx/skia/moz.build
@@ -1,8 +1,10 @@
+# Please note this file is autogenerated from generate_mozbuild.py, so do not modify it directly
+
 EXPORTS.skia += [
     'trunk/include/animator/SkAnimator.h',
     'trunk/include/animator/SkAnimatorView.h',
     'trunk/include/config/SkUserConfig.h',
     'trunk/include/core/Sk64.h',
     'trunk/include/core/SkAdvancedTypefaceMetrics.h',
     'trunk/include/core/SkAnnotation.h',
     'trunk/include/core/SkBitmap.h',