提交 9dbe284f 编写于 作者: C changcheng-weng 提交者: Gitee

update BUILD.gn.

上级 a0a535a0
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//build/lite/config/component/lite_component.gni") import("//build/lite/config/component/lite_component.gni")
import("//build/lite/config/subsystem/aafwk/config.gni")
lite_component("appspawn_lite") { lite_component("appspawn_lite") {
features = [ features = [
...@@ -28,6 +29,10 @@ executable("appspawn") { ...@@ -28,6 +29,10 @@ executable("appspawn") {
"src/appspawn_adapter.c", "src/appspawn_adapter.c",
] ]
ldflags = [
"-lstdc++",
]
cflags = [ cflags = [
"-Wall", "-Wall",
"-Wno-format", "-Wno-format",
...@@ -39,17 +44,29 @@ executable("appspawn") { ...@@ -39,17 +44,29 @@ executable("appspawn") {
"//utils/native/lite/include", "//utils/native/lite/include",
"//foundation/distributedschedule/interfaces/kits/samgr_lite/samgr", "//foundation/distributedschedule/interfaces/kits/samgr_lite/samgr",
"//foundation/distributedschedule/interfaces/kits/samgr_lite/registry", "//foundation/distributedschedule/interfaces/kits/samgr_lite/registry",
"//foundation/aafwk/interfaces/innerkits/abilitymgr_lite",
"//third_party/bounds_checking_function/include/", "//third_party/bounds_checking_function/include/",
"//third_party/cJSON", "//third_party/cJSON",
] ]
deps = [ deps = [
"//third_party/bounds_checking_function:libsec_shared", "//third_party/bounds_checking_function:libsec_shared",
"//foundation/aafwk/frameworks/ability_lite:aafwk_abilitykit_lite",
"//foundation/distributedschedule/services/samgr_lite/samgr:samgr", "//foundation/distributedschedule/services/samgr_lite/samgr:samgr",
"//foundation/communication/frameworks/ipc_lite:liteipc_adapter", "//foundation/communication/frameworks/ipc_lite:liteipc_adapter",
"//third_party/cJSON:cjson_shared", "//third_party/cJSON:cjson_shared",
"//utils/native/lite/kv_store:kv_store",
] ]
if (enable_ohos_appexecfwk_feature_ability == true) {
deps += [
"//foundation/ace/frameworks/lite:ace_lite",
"//foundation/graphic/lite/frameworks/ui:ui",
"//foundation/graphic/lite/utils:graphic_utils",
"//foundation/graphic/lite/frameworks/surface",
]
}
if (ohos_kernel_type == "liteos_a") { if (ohos_kernel_type == "liteos_a") {
include_dirs += [ include_dirs += [
"//kernel/liteos_a/kernel/include", "//kernel/liteos_a/kernel/include",
...@@ -61,7 +78,6 @@ executable("appspawn") { ...@@ -61,7 +78,6 @@ executable("appspawn") {
} }
if (ohos_kernel_type == "linux") { if (ohos_kernel_type == "linux") {
ldflags = ["-lstdc++"]
include_dirs += [ include_dirs += [
] ]
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册