Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: Source/core/scripts/templates/macros.tmpl

Issue 15095002: Use jinja2 for make_runtime_features and make_internal_runtime_flags (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Updated for Eric's suggestions Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/scripts/templates/RuntimeEnabledFeatures.h.tmpl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/scripts/templates/macros.tmpl
diff --git a/Source/wtf/text/StringStatics.h b/Source/core/scripts/templates/macros.tmpl
similarity index 85%
copy from Source/wtf/text/StringStatics.h
copy to Source/core/scripts/templates/macros.tmpl
index 73097bc5cdbaf2e17318bd93cdcb1c445f676b27..ce927432acafb4c70af3b7bba98f1ca814e144c3 100644
--- a/Source/wtf/text/StringStatics.h
+++ b/Source/core/scripts/templates/macros.tmpl
@@ -1,3 +1,17 @@
+{% macro wrap_with_condition(condition) %}
+{%- if condition %}
+#if ENABLE({{condition}})
+{{- caller() }}
+#endif
+{%- else %}
+{{- caller() }}
+{%- endif %}
+{%- endmacro %}
+
+{#
+ FIXME: Do we need to put license blocks in generated files?
+#}
+{% macro license() -%}
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
@@ -27,20 +41,4 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-
-#ifndef StringStatics_h
-#define StringStatics_h
-
-namespace WTF {
-
-class StringStatics {
-public:
- static void init();
-
-private:
- StringStatics();
-};
-
-}
-
-#endif
+{%- endmacro %}
« no previous file with comments | « Source/core/scripts/templates/RuntimeEnabledFeatures.h.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698