From 202ec8a8c8524a8d7e7d3545d95a291d781ed041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 19 Jun 2018 13:30:04 +0200 Subject: [PATCH] style: Generate different files for different structs. Bug: 1468651 Reviewed-by: heycam MozReview-Commit-ID: KEDJ1zJVwMx --- components/style/properties/build.py | 63 +++++++++++++++++-- .../style/properties/properties.mako.rs | 45 +++---------- 2 files changed, 66 insertions(+), 42 deletions(-) diff --git a/components/style/properties/build.py b/components/style/properties/build.py index 04418723ee4..34c1b3560a6 100644 --- a/components/style/properties/build.py +++ b/components/style/properties/build.py @@ -19,6 +19,34 @@ import data RE_PYTHON_ADDR = re.compile(r'<.+? object at 0x[0-9a-fA-F]+>') +OUT_DIR = os.environ.get("OUT_DIR", "") + +STYLE_STRUCT_LIST = [ + "background", + "border", + "box", + "color", + "column", + "counters", + "effects", + "font", + "inherited_box", + "inherited_table", + "inherited_text", + "inherited_ui", + "inherited_svg", + "list", + "margin", + "outline", + "padding", + "position", + "table", + "text", + "ui", + "svg", + "xul", +] + def main(): usage = "Usage: %s [ servo | gecko ] [ style-crate | geckolib