mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Auto merge of #16762 - upsuper:buildtime-pseudo, r=emilio
Generate atom files at build-time The commits here basically do the following things: 1. move all generated files for gecko into "gecko/generated" so that we can copy all of them around 2. make regen_atoms.py generate file to the out dir rather than in-tree 3. make the build script invoke regen_atoms.py when bindgen feature is enabled <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16762) <!-- Reviewable:end -->
This commit is contained in:
commit
a5fe464e4a
14 changed files with 129 additions and 111 deletions
|
@ -8,7 +8,7 @@ import os
|
|||
import re
|
||||
|
||||
ROOT_PATH = os.path.join("..", "..", "..")
|
||||
INPUT_FILE = os.path.join(ROOT_PATH, "components", "style", "gecko_bindings", "bindings.rs")
|
||||
INPUT_FILE = os.path.join(ROOT_PATH, "components", "style", "gecko", "generated", "bindings.rs")
|
||||
OUTPUT_FILE = os.path.join(os.environ["OUT_DIR"], "check_bindings.rs")
|
||||
GLUE_FILE = os.path.join(ROOT_PATH, "ports", "geckolib", "glue.rs")
|
||||
GLUE_OUTPUT_FILE = os.path.join(os.environ["OUT_DIR"], "glue.rs")
|
||||
|
|
|
@ -46,7 +46,7 @@ fn assert_basic_pseudo_elements() {
|
|||
};
|
||||
}
|
||||
|
||||
include!("../../../components/style/gecko/generated/gecko_pseudo_element_helper.rs");
|
||||
include!("../../../components/style/gecko/generated/pseudo_element_helper.rs");
|
||||
|
||||
assert!(saw_before);
|
||||
assert!(saw_after);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue