mirror of
https://gitee.com/openharmony/third_party_libbpf
synced 2024-10-07 06:23:25 +00:00
commit
8d479ba2f5
8
BUILD.gn
8
BUILD.gn
@ -13,6 +13,10 @@
|
|||||||
|
|
||||||
import("//build/ohos.gni")
|
import("//build/ohos.gni")
|
||||||
import("//build/ohos/ndk/ndk.gni")
|
import("//build/ohos/ndk/ndk.gni")
|
||||||
|
|
||||||
|
THIRDPARTY_LIBBPF_SUBSYS_NAME = "thirdparty"
|
||||||
|
THIRDPARTY_LIBBPF_PART_NAME = "libbpf"
|
||||||
|
|
||||||
config("libbpf_config") {
|
config("libbpf_config") {
|
||||||
cflags = [
|
cflags = [
|
||||||
"-Wno-incompatible-pointer-types",
|
"-Wno-incompatible-pointer-types",
|
||||||
@ -90,8 +94,8 @@ ohos_shared_library("libbpf") {
|
|||||||
configs = [ ":libbpf_config" ]
|
configs = [ ":libbpf_config" ]
|
||||||
public_configs = [ ":libbpf_public_config" ]
|
public_configs = [ ":libbpf_public_config" ]
|
||||||
output_extension = "so"
|
output_extension = "so"
|
||||||
subsystem_name = "developtools"
|
subsystem_name = "${THIRDPARTY_LIBBPF_SUBSYS_NAME}"
|
||||||
part_name = "profiler"
|
part_name = "${THIRDPARTY_LIBBPF_PART_NAME}"
|
||||||
install_enable = true
|
install_enable = true
|
||||||
license_file = "LICENSE.BSD-2-Clause"
|
license_file = "LICENSE.BSD-2-Clause"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user