10b966c5eSopenharmony_ci# Copyright (c) 2020, HiHope Community. 20b966c5eSopenharmony_ci# 30b966c5eSopenharmony_ci# Redistribution and use in source and binary forms, with or without 40b966c5eSopenharmony_ci# modification, are permitted provided that the following conditions are met: 50b966c5eSopenharmony_ci# 60b966c5eSopenharmony_ci# 1. Redistributions of source code must retain the above copyright notice, this 70b966c5eSopenharmony_ci# list of conditions and the following disclaimer. 80b966c5eSopenharmony_ci# 90b966c5eSopenharmony_ci# 2. Redistributions in binary form must reproduce the above copyright notice, 100b966c5eSopenharmony_ci# this list of conditions and the following disclaimer in the documentation 110b966c5eSopenharmony_ci# and/or other materials provided with the distribution. 120b966c5eSopenharmony_ci# 130b966c5eSopenharmony_ci# 3. Neither the name of the copyright holder nor the names of its 140b966c5eSopenharmony_ci# contributors may be used to endorse or promote products derived from 150b966c5eSopenharmony_ci# this software without specific prior written permission. 160b966c5eSopenharmony_ci# 170b966c5eSopenharmony_ci# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 180b966c5eSopenharmony_ci# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 190b966c5eSopenharmony_ci# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 200b966c5eSopenharmony_ci# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 210b966c5eSopenharmony_ci# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 220b966c5eSopenharmony_ci# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 230b966c5eSopenharmony_ci# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 240b966c5eSopenharmony_ci# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 250b966c5eSopenharmony_ci# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 260b966c5eSopenharmony_ci# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 270b966c5eSopenharmony_ci 280b966c5eSopenharmony_ciimport("//kernel/liteos_m/liteos.gni") 290b966c5eSopenharmony_ci 300b966c5eSopenharmony_cimodule_switch = defined(LOSCFG_HALS_COMMUCATION_WIFI_LITE) 310b966c5eSopenharmony_ci 320b966c5eSopenharmony_cimodule_name = get_path_info(rebase_path("."), "name") 330b966c5eSopenharmony_ci 340b966c5eSopenharmony_cikernel_module(module_name) { 350b966c5eSopenharmony_ci sources = [ 360b966c5eSopenharmony_ci "source/ble_server_demo.c", 370b966c5eSopenharmony_ci "source/example.c", 380b966c5eSopenharmony_ci ] 390b966c5eSopenharmony_ci deps = [ "//foundation/communication/wifi_lite:wifi" ] 400b966c5eSopenharmony_ci visibility += [ "../../.." ] 410b966c5eSopenharmony_ci include_dirs = [ 420b966c5eSopenharmony_ci "//commonlibrary/utils_lite/include", 430b966c5eSopenharmony_ci "//foundation/communication/bluetooth/interfaces/innerkits/native_c/include", 440b966c5eSopenharmony_ci "//device/soc/winnermicro/hals/communication/bt_lite/ble/source", 450b966c5eSopenharmony_ci "./source", 460b966c5eSopenharmony_ci ] 470b966c5eSopenharmony_ci} 48