--input $(srcdir)/swr_context.h \
--output swr_context_llvm.h
-rasterizer/codegen/gen_knobs.cpp: rasterizer/codegen/gen_knobs.py rasterizer/codegen/knob_defs.py rasterizer/codegen/templates/knobs.template
+rasterizer/codegen/gen_knobs.cpp: rasterizer/codegen/gen_knobs.py rasterizer/codegen/knob_defs.py rasterizer/codegen/templates/knobs_template.cpp
$(MKDIR_GEN)
$(PYTHON_GEN) \
$(srcdir)/rasterizer/codegen/gen_knobs.py \
- --input $(srcdir)/rasterizer/codegen/templates/knobs.template \
+ --input $(srcdir)/rasterizer/codegen/templates/knobs_template.cpp \
--output rasterizer/codegen/gen_knobs.cpp \
--gen_cpp
-rasterizer/codegen/gen_knobs.h: rasterizer/codegen/gen_knobs.py rasterizer/codegen/knob_defs.py rasterizer/codegen/templates/knobs.template
+rasterizer/codegen/gen_knobs.h: rasterizer/codegen/gen_knobs.py rasterizer/codegen/knob_defs.py rasterizer/codegen/templates/knobs_template.cpp
$(MKDIR_GEN)
$(PYTHON_GEN) \
$(srcdir)/rasterizer/codegen/gen_knobs.py \
- --input $(srcdir)/rasterizer/codegen/templates/knobs.template \
+ --input $(srcdir)/rasterizer/codegen/templates/knobs_template.cpp \
--output rasterizer/codegen/gen_knobs.h \
--gen_h
rasterizer/codegen/mako/runtime.py \
rasterizer/codegen/mako/template.py \
rasterizer/codegen/mako/util.py \
- rasterizer/codegen/templates/knobs.template \
+ rasterizer/codegen/templates/knobs_template.cpp \
rasterizer/codegen/templates/ar_event_h.template \
rasterizer/codegen/templates/ar_event_cpp.template \
rasterizer/codegen/templates/ar_eventhandler_h.template \
env.CodeGenerate(
target = 'rasterizer/codegen/gen_knobs.cpp',
script = swrroot + 'rasterizer/codegen/gen_knobs.py',
- source = 'rasterizer/codegen/templates/knobs.template',
+ source = 'rasterizer/codegen/templates/knobs_template.cpp',
command = python_cmd + ' $SCRIPT --input $SOURCE --output $TARGET --gen_cpp'
)
env.CodeGenerate(
target = 'rasterizer/codegen/gen_knobs.h',
script = swrroot + 'rasterizer/codegen/gen_knobs.py',
- source = 'rasterizer/codegen/templates/knobs.template',
+ source = 'rasterizer/codegen/templates/knobs_template.cpp',
command = python_cmd + ' $SCRIPT --input $SOURCE --output $TARGET --gen_h'
)
write_template_to_file(
templateCpp,
baseCppName % str(fileNum),
+ cmdline=sys.argv,
fileNum=fileNum,
funcList=chunkedList[fileNum])
write_template_to_file(
templateCmake,
cmakeFile,
+ cmdline=sys.argv,
numFiles=numFiles,
baseCppName=baseCppName.replace('\\','/'))
if args.gen_h:
write_template_to_file(args.input,
args.output,
+ cmdline=sys.argv,
filename='gen_knobs',
knobs=knob_defs.KNOBS,
includes=['core/knobs_init.h', 'common/os.h', 'sstream', 'iomanip'],
if args.gen_cpp:
write_template_to_file(args.input,
args.output,
+ cmdline=sys.argv,
filename='gen_knobs',
knobs=knob_defs.KNOBS,
includes=['core/knobs_init.h', 'common/os.h', 'sstream', 'iomanip'],
write_template_to_file(
template,
output_filename,
+ cmdline=sys.argv,
comment='Builder IR Wrappers',
filename=filename,
functions=templfuncs,
write_template_to_file(
template,
output_filename,
+ cmdline=sys.argv,
comment='x86 intrinsics',
filename=filename,
functions=functions,
//
// DO NOT EDIT
//
+// Generation Command Line:
+// ${'\n// '.join(cmdline)}
+//
//============================================================================
#include "core/backend.h"
//
// DO NOT EDIT
//
+// Generation Command Line:
+// ${'\n// '.join(cmdline)}
+//
//============================================================================
#pragma once
%>/******************************************************************************
*
-* Copyright 2015-2016
+* Copyright 2015-2017
* Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
*
* ======================= AUTO GENERATED: DO NOT EDIT !!! ====================
*
+* Generation Command Line:
+* ${'\n* '.join(cmdline)}
+*
******************************************************************************/
%if gen_header:
#pragma once