Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / build / scripts / in_generator.py
index 600ba0f..72649f2 100644 (file)
@@ -78,6 +78,9 @@ class Writer(object):
         for file_name, generator in self._outputs.items():
             self._write_file(output_dir, generator(), file_name)
 
+    def set_gperf_path(self, gperf_path):
+        self.gperf_path = gperf_path
+
 
 class Maker(object):
     def __init__(self, writer_class):
@@ -92,8 +95,10 @@ class Maker(object):
 
         parser = optparse.OptionParser()
         parser.add_option("--defines")
+        parser.add_option("--gperf", default="gperf")
         parser.add_option("--output_dir", default=os.getcwd())
-        (options, args) = parser.parse_args()
+        options, args = parser.parse_args()
 
         writer = self._writer_class(args)
+        writer.set_gperf_path(options.gperf)
         writer.write_files(options.output_dir)