1# Copyright (c) 2020 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13import("//build/lite/config/component/lite_component.gni") 14 15generate_notice_file("bundle_daemon_lite_notice_file") { 16 module_name = "bundle_daemon_lite" 17 module_source_dir_list = [ 18 "//third_party/cJSON", 19 "//third_party/zlib", 20 ] 21} 22 23executable("bundle_daemon") { 24 sources = [ 25 "../src/extractor_util.cpp", 26 "../src/zip_file.cpp", 27 "src/bundle_daemon.cpp", 28 "src/bundle_daemon_handler.cpp", 29 "src/bundle_file_utils.cpp", 30 "src/bundlems_client.cpp", 31 "src/main.cpp", 32 ] 33 34 cflags = [ 35 "-Wall", 36 "-Wno-format", 37 ] 38 cflags_cc = cflags 39 40 ldflags = [ 41 "-lstdc++", 42 "-Wl,-Map=bundle_daemon_tool.map", 43 ] 44 45 deps = [ 46 "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared", 47 "//build/lite/config/component/zlib:zlib_shared", 48 "//foundation/distributedschedule/samgr_lite/samgr:samgr", 49 ] 50 51 include_dirs = [ 52 "include", 53 "${appexecfwk_lite_path}/interfaces/innerkits/bundlemgr_lite", 54 "${appexecfwk_lite_path}/utils/bundle_lite", 55 "${appexecfwk_lite_path}/services/bundlemgr_lite/include", 56 "//foundation/distributedschedule/samgr_lite/interfaces/innerkits/samgr", 57 "//foundation/distributedschedule/samgr_lite/interfaces/innerkits/registry", 58 "//third_party/zlib/contrib/minizip", 59 "//utils/native/lite/include", 60 ] 61} 62