1# Copyright (c) 2023 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. 13 14cups_path = rebase_path("//third_party/cups") 15exec_script("install.sh", [ "$cups_path" ]) 16print("cups installed successfully") 17 18CUPS_SERVICE_DATA_DIR = "/data/service/el1/public/cups" 19 20cups_bin_dir = "bin" 21cups_sbin_dir = "bin" 22cups_serverbin_dir = "bin/cups" 23cups_data_dir = "$CUPS_SERVICE_DATA_DIR/share" 24init_service_cfg_path = "etc/init" 25 26cups_defines = [ 27 "CUPS_BINDIR = \"/system/$cups_bin_dir\"", 28 "CUPS_SBINDIR = \"/system/$cups_sbin_dir\"", 29 "CUPS_SERVERBIN = \"/system/bin/cups\"", 30 31 "CUPS_DATADIR = \"/system/etc/cups/share\"", 32 "CUPS_DOCROOT = \"$CUPS_SERVICE_DATA_DIR/doc\"", 33 "CUPS_LOCALEDIR = \"$CUPS_SERVICE_DATA_DIR/locale\"", 34 "CUPS_LOGDIR = \"$CUPS_SERVICE_DATA_DIR/log/\"", 35 36 "CUPS_SERVERROOT = \"$CUPS_SERVICE_DATA_DIR/\"", 37 "CUPS_CACHEDIR = \"$CUPS_SERVICE_DATA_DIR/cache\"", 38 "CUPS_REQUESTS = \"$CUPS_SERVICE_DATA_DIR/spool\"", 39 "CUPS_STATEDIR = \"$CUPS_SERVICE_DATA_DIR/run\"", 40] 41