mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 05:08:36 +02:00
Linking Rust code against the updatecommon library is not well supported by our build system, but it should be possible. The changes to updatecommon's moz.build will cause updatecommon.lib to be created, which Rust can link against. The build.rs script tells cargo which shared Windows libraries are needed for linking, and where updatecommon.lib can be found. The change to config/recurse.mk enforces the dependency of the update agent on updatecommon, so that we do not attempt to link the agent before updatecommon has been built. Differential Revision: https://phabricator.services.mozilla.com/D70207
13 lines
477 B
Rust
13 lines
477 B
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
fn main() {
|
|
println!("cargo:rustc-link-lib=shell32");
|
|
println!("cargo:rustc-link-lib=shlwapi");
|
|
println!("cargo:rustc-link-lib=rpcrt4");
|
|
println!(
|
|
"cargo:rustc-link-search={}/toolkit/mozapps/update/common",
|
|
env!("MOZ_TOPOBJDIR")
|
|
);
|
|
}
|