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") 14import( 15 "//foundation/bundlemanager/bundle_framework_lite/bundle_framework_lite.gni") 16 17generate_notice_file("bundle_daemon_lite_notice_file") { 18 module_name = "bundle_daemon_lite" 19 module_source_dir_list = [ 20 "//third_party/cJSON", 21 "//third_party/zlib", 22 ] 23} 24 25executable("bundle_daemon") { 26 sources = [ 27 "../src/extractor_util.cpp", 28 "../src/zip_file.cpp", 29 "src/bundle_daemon.cpp", 30 "src/bundle_daemon_handler.cpp", 31 "src/bundle_file_utils.cpp", 32 "src/bundlems_client.cpp", 33 "src/main.cpp", 34 ] 35 36 cflags = [ 37 "-Wall", 38 "-Wno-format", 39 ] 40 cflags_cc = cflags 41 42 ldflags = [ 43 "-lstdc++", 44 "-Wl,-Map=bundle_daemon_tool.map", 45 ] 46 47 deps = [ 48 "${hilog_lite_path}/frameworks/featured:hilog_shared", 49 "${samgr_lite_path}/samgr:samgr", 50 "//build/lite/config/component/zlib:zlib_shared", 51 ] 52 53 include_dirs = [ 54 "include", 55 "${appexecfwk_lite_path}/interfaces/inner_api/bundlemgr_lite", 56 "${appexecfwk_lite_path}/utils/bundle_lite", 57 "${appexecfwk_lite_path}/services/bundlemgr_lite/include", 58 "${samgr_lite_path}/interfaces/innerkits/samgr", 59 "${samgr_lite_path}/interfaces/innerkits/registry", 60 "//third_party/zlib/contrib/minizip", 61 "${utils_lite_path}/include", 62 ] 63} 64