代码拉取完成,页面将自动刷新
同步操作将从 openEuler/sysmaster 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
// Copyright (c) 2022 Huawei Technologies Co.,Ltd. All rights reserved.
//
// sysMaster is licensed under Mulan PSL v2.
// You can use this software according to the terms and conditions of the Mulan
// PSL v2.
// You may obtain a copy of Mulan PSL v2 at:
// http://license.coscl.org.cn/MulanPSL2
// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY
// KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
// See the Mulan PSL v2 for more details.
//! do prepared actions for build
// if use env out_dir need add build.rs
use std::{env, process::Command};
macro_rules! warn {
($message:expr) => {
println!("cargo:warning={}", $message);
};
}
fn main() {
let m_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
let s_cmd = format!("{m_dir}/build.sh");
let out_dir = env::var("OUT_DIR").unwrap();
let t: Vec<_> = out_dir.split("build").collect();
println!("{:?},{:?}", s_cmd, t[0]);
let result = Command::new(&s_cmd)
.args(&[t[0].to_string()])
.status()
.unwrap();
warn!(format!("{result:?}"));
// warn!(format!(
// "{:?}",
// pkg_config::Config::new().probe("liblmdb").is_ok()
// ));
//println!("cargo:rust-flags = -C prefer-dynamic -C target-feature=-crt-static");
//pkg_config::Config::new().probe("lmdb").unwrap();
// println!("cargo:rustc-link-search=native=/usr/lib");
// println!("cargo:rustc-link-lib=dylib=lmdb");
println!("cargo:rerun-if-changed=build.sh");
println!("cargo:rerun-if-changed=build.rs");
// println!("cargo:rerun-if-changed=config.service");
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。