Fix BUILD.gn sysroot path for embedded
This commit is contained in:
parent
287bc1ee92
commit
3a8d0a8f2e
@ -13,24 +13,24 @@
|
||||
|
||||
import("//build/ohos.gni")
|
||||
import("//build/ohos_var.gni")
|
||||
import("//build/config/sysroot.gni")
|
||||
|
||||
# 建立所需头文件链接
|
||||
exec_script("//build/openeuler/script/link.py", [ "--src_target", "/usr/include/safwk/system_ability.h", "--dest_target",
|
||||
exec_script("//build/openeuler/script/link.py", [ "--src_target", "${sysroot}/usr/include/safwk/system_ability.h", "--dest_target",
|
||||
rebase_path("//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk/system_ability.h") ], "string")
|
||||
|
||||
exec_script("//build/openeuler/script/link.py", [ "--src_target", "/usr/include/safwk", "--dest_target",
|
||||
exec_script("//build/openeuler/script/link.py", [ "--src_target", "${sysroot}/usr/include/safwk", "--dest_target",
|
||||
rebase_path("//foundation/systemabilitymgr/safwk/services/safwk/include") ], "string")
|
||||
|
||||
config("system_ability_config") {
|
||||
visibility = [ ":*" ]
|
||||
include_dirs = [
|
||||
"../../../services/safwk/include",
|
||||
"//foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk",
|
||||
"${sysroot}/usr/include/safwk",
|
||||
]
|
||||
}
|
||||
|
||||
ohos_prebuilt_shared_library("system_ability_fwk") {
|
||||
source = "/usr/lib64/libsystem_ability_fwk.z.so"
|
||||
source = "${sysroot}/usr/lib64/libsystem_ability_fwk.z.so"
|
||||
|
||||
public_configs = [ ":system_ability_config" ]
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
|
||||
Name: systemabilitymgr_safwk
|
||||
Version: 1.0.0
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: System ability manager
|
||||
License: Apache-2.0
|
||||
Url: https://gitee.com/openharmony/systemabilitymgr_safwk
|
||||
@ -109,6 +109,9 @@ ln -s /usr/include/safwk/system_ability.h %{safwk_path}/interfaces/innerkits/saf
|
||||
%{build_opt}/*
|
||||
|
||||
%changelog
|
||||
* Tue Apr 2 2024 s_c_c <shichuchao@huawei.com> - 1.0.0-5
|
||||
- Fix BUILD.gn sysroot path for embedded
|
||||
|
||||
* Mon Apr 1 2024 s_c_c <shichuchao@huawei.com> - 1.0.0-4
|
||||
- Fix config_safwk include_dirs for embedded
|
||||
|
||||
|
||||
@ -12,9 +12,10 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/ohos.gni")
|
||||
import("//build/config/sysroot.gni")
|
||||
|
||||
ohos_prebuilt_executable("sa_main") {
|
||||
source = "/usr/bin/sa_main"
|
||||
source = "${sysroot}/usr/bin/sa_main"
|
||||
install_enable = true
|
||||
|
||||
part_name = "safwk"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user