Debian Codegraph @

build.rs

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 fn main() {
2 let source_files = vec![
3 "src/cache.rs",
4 "src/progress.rs",
5 "src/config.rs",
6 "src/util.rs",
7 "src/records.rs",
8 "src/depcache.rs",
9 "src/pkgmanager.rs",
10 "src/error.rs",
11 "src/acquire.rs",
12 "src/iterators/package.rs",
13 "src/iterators/version.rs",
14 "src/iterators/dependency.rs",
15 "src/iterators/provider.rs",
16 "src/iterators/files.rs",
17 ];
18
19 let mut cc_files = vec!["apt-pkg-c/error.cc"];
20
21 cxx_build::bridges(&source_files)
22 .files(&cc_files)
23 .flag_if_supported("-std=c++14")
24 .compile("rust-apt");
25
26 println!("cargo:rustc-link-lib=apt-pkg");
27 for file in source_files {
28 println!("cargo:rerun-if-changed={file}")
29 }
30
31 cc_files.extend_from_slice(&[
32 "apt-pkg-c/cache.h",
33 "apt-pkg-c/progress.h",
34 "apt-pkg-c/configuration.h",
35 "apt-pkg-c/util.h",
36 "apt-pkg-c/records.h",
37 "apt-pkg-c/depcache.h",
38 "apt-pkg-c/package.h",
39 "apt-pkg-c/pkgmanager.h",
40 "apt-pkg-c/error.h",
41 "apt-pkg-c/types.h",
42 "apt-pkg-c/acquire.h",
43 ]);
44
45 for file in cc_files {
46 println!("cargo:rerun-if-changed={file}")
47 }
48 }