diff options
Diffstat (limited to 'gn/compile_processors.py')
-rwxr-xr-x | gn/compile_processors.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gn/compile_processors.py b/gn/compile_processors.py new file mode 100755 index 0000000000..482031a915 --- /dev/null +++ b/gn/compile_processors.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python +# +# Copyright 2017 Google Inc. +# +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import os +import subprocess +import sys + +skslc = sys.argv[1] +processors = sys.argv[2:] +for p in processors: + path, _ = os.path.splitext(p) + subprocess.check_call([skslc, p, path + ".h"]) + subprocess.check_call([skslc, p, path + ".cpp"]) |