build.rs 579 B

123456789101112131415161718
  1. #[cfg(feature = "cheddar")]
  2. extern crate cheddar;
  3. #[cfg(feature = "cheddar")]
  4. fn main() {
  5. cheddar::Cheddar::new().expect("could not read manifest")
  6. .module("capi").expect("invalid module path")
  7. .insert_code("// This Source Code Form is subject to the terms of the Mozilla Public\n")
  8. .insert_code("// License, v. 2.0. If a copy of the MPL was not distributed with this\n")
  9. .insert_code("// file, You can obtain one at https://mozilla.org/MPL/2.0/.")
  10. .run_build("include/mp4parse.h");
  11. }
  12. #[cfg(not(feature = "cheddar"))]
  13. fn main() {
  14. }