aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/build.rs
Commit message (Collapse)AuthorAgeFilesLines
* Update python detection in codegen (#31873)Samson2024-03-261-2/+2
| | | | | * Update python detection in codegen * Update build.rs
* clippy: fix warnings in various modules in components (#31568)eri2024-03-081-4/+4
| | | | | | | | | * clippy: fix warnings in various modules in components * fix: unit tests * fix: build on android * fix: all samplers use new_boxed
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-4/+4
| | | | | * strict imports formatting * Reformat all imports
* Port some code to Python3Vincent Ricard2021-02-181-4/+4
|
* Update error message.Josh Matthews2020-05-041-1/+1
|
* Use PYTHON2 variable for script's codegen.Josh Matthews2020-05-041-1/+1
|
* Update rand to 0.7 (fixes #24448)Anthony Ramine2019-10-231-6/+5
|
* Don’t rely on `$CARGO_TARGET_DIR` in build scriptsSimon Sapin2019-09-301-2/+0
|
* WebIDL codegen: Replace cmake with a single Python scriptSimon Sapin2019-09-271-21/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | When playing around with Cargo’s new timing visualization: https://internals.rust-lang.org/t/exploring-crate-graph-build-times-with-cargo-build-ztimings/10975/21 … I was surprised to see the `script` crate’s build script take 76 seconds. I did not expect WebIDL bindings generation to be *that* computationally intensive. It turns out almost all of this time is overhead. The build script uses CMake to generate bindings for each WebIDL file in parallel, but that causes a lot of work to be repeated 366 times: * Starting up a Python VM * Importing (parts of) the Python standard library * Importing ~16k lines of our Python code * Recompiling the latter to bytecode, since we used `python -B` to disable writing `.pyc` file * Deserializing with `cPickle` and recreating in memory the results of parsing all WebIDL files ---- This commit remove the use of CMake and cPickle for the `script` crate. Instead, all WebIDL bindings generation is done sequentially in a single Python process. This takes 2 to 3 seconds.
* Remove usage of various unsafe keywordmarmeladema2019-08-091-1/+1
|
* Generate apis.html and css-properties.json for docs as part of crates’ ↵Simon Sapin2019-07-301-4/+2
| | | | | | | | build scripts … rather than as an extra step after `cargo doc`. This helps always using the correct set of CSS properties (for layout 2013 v.s. 2020).
* Stylo: replace product={gecko,servo} with engine={gecko,servo-2013,servo-2020}Simon Sapin2019-07-291-3/+1
| | | | Renaming the variable helped make sure I looked at every use.
* Auto-generate CSSStyleDeclaration.webidl for CSS properties based on the ↵Simon Sapin2019-07-291-1/+8
| | | | style crate
* DefineDOMInterfaceMethod now takes a SafeJSContext instead of a JSContextmarmeladema2019-07-241-1/+1
| | | | as first argument.
* Remove restrictions on cross-compiling on Windows.Josh Matthews2019-05-241-48/+0
|
* Auto merge of #23211 - jdm:win-cross, r=SimonSapinbors-servo2019-04-261-0/+36
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Windows x86 build job. This will make it easier to start working on Hololens embedding work without having to deal with a broken build first. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] There are tests for these changes <!-- 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/23211) <!-- Reviewable:end -->
| * Add Windows x86 build job.Josh Matthews2019-04-261-0/+36
| |
* | Force the use of clang-cl.exe for Windows builds.Josh Matthews2019-04-251-5/+0
|/
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-081-2/+0
| | | | A `crate_name::foo` path always works in 2018
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-6/+4
|
* Format remaining filesPyfisch2018-11-061-1/+2
|
* Add a workaround for a rustc ICEOliver Scherer2018-10-221-3/+4
|
* Format script componentchansuke2018-09-191-7/+22
|
* Use env::var_os to read paths from the environmentMatt Brubeck2017-10-201-2/+2
| | | | | This avoids unnecessary UTF-8 validation on OsStrings that we just pass back to the OS.
* order derivable traits listsClément DAVID2017-08-231-1/+1
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Fix hardcoded path to link.exeUK9922017-02-031-1/+3
|
* script codegen: Avoid modifying in-place a generated file.Simon Sapin2017-01-191-22/+12
|
* Remove usage of phf_macros.Simon Sapin2017-01-181-0/+48
| | | | | | | | | It’s a compiler plugin that uses unstable compiler APIs that are not on a path to stabilization. With this changes, there is one less thing that might break when we update the compiler. For example: https://github.com/sfackler/rust-phf/pull/101
* Native MSVC windows build, convert to cmakeVladimir Vukicevic2016-08-171-7/+26
|
* Generate multiple DOM bindings in parallel.Josh Matthews2016-07-221-1/+6
|
* Fix build scripts warnings.Simon Sapin2015-03-181-9/+4
|
* Upgrade to rustc ba2f13ef0 2015-02-04Simon Sapin2015-02-111-0/+18