From a29787a02712758c7610c0442fd2bad59291d188 Mon Sep 17 00:00:00 2001 From: Markus Becker Date: Wed, 10 Nov 2021 08:42:32 +0100 Subject: [PATCH] Remove BUILD.gn from example This was only used during development, when the procedure to create the shared library wasn't clear. --- examples/lighting-app/python/BUILD.gn | 101 -------------------------- 1 file changed, 101 deletions(-) delete mode 100644 examples/lighting-app/python/BUILD.gn diff --git a/examples/lighting-app/python/BUILD.gn b/examples/lighting-app/python/BUILD.gn deleted file mode 100644 index c0fbc0e25a5551..00000000000000 --- a/examples/lighting-app/python/BUILD.gn +++ /dev/null @@ -1,101 +0,0 @@ -# Copyright (c) 2021 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//build_overrides/chip.gni") - -import("${chip_root}/build/chip/tools.gni") -import("${chip_root}/src/app/common_flags.gni") - -assert(chip_build_tools) - -import("${chip_root}/examples/common/pigweed/pigweed_rpcs.gni") - -if (chip_enable_pw_rpc) { - import("//build_overrides/pigweed.gni") - import("$dir_pw_build/target_types.gni") -} - -config("includes") { - include_dirs = [ - ".", - "include", - "${chip_root}/zzz_generated/lighting-app/", - ] -} - -shared_library("chip-lighting-app") { - sources = [ - # "${chip_root}/src/controller/python/chip/setup_payload/Generator.cpp", - # "${chip_root}/src/controller/python/chip/server/ServerInit.cpp", - # "${chip_root}/src/controller/python/chip/server/Options.cpp", - # "${chip_root}/src/controller/python/chip/setup_payload/Parser.cpp", - ] - - public_deps = [ - #"${chip_root}/examples/lighting-app/lighting-common", - "${chip_root}/src/controller/python", - #"${chip_root}/src/controller/", - #"${chip_root}/src/lib", - ] - - include_dirs = [ "include" ] - - if (chip_enable_pw_rpc) { - defines = [ "PW_RPC_ENABLED" ] - - sources += [ - "${dir_pigweed}/targets/host/system_rpc_server.cc", - "Rpc.cpp", - ] - - deps += [ - "$dir_pw_hdlc:pw_rpc", - "$dir_pw_hdlc:rpc_channel_output", - "$dir_pw_log", - "$dir_pw_rpc:server", - "$dir_pw_rpc:synchronized_channel_output", - "$dir_pw_rpc/system_server:facade", - "$dir_pw_stream:socket_stream", - "$dir_pw_stream:sys_io_stream", - "$dir_pw_sync:mutex", - "${chip_root}/config/linux/lib/pw_rpc:pw_rpc", - "${chip_root}/examples/common/pigweed:button_service.nanopb_rpc", - "${chip_root}/examples/common/pigweed:device_service.nanopb_rpc", - "${chip_root}/examples/lighting-app/lighting-common:lighting_service.nanopb_rpc", - ] - - deps += pw_build_LINK_DEPS - } else { - # The system_rpc_server.cc file is in pigweed and doesn't compile with - # -Wconversion, remove check for RPC build only. - cflags = [ "-Wconversion" ] - } - - output_dir = root_out_dir -} - -group("linux") { - deps = [ ":chip-lighting-app" ] - - if (chip_enable_pw_rpc) { - deps += [ - "${chip_root}/examples/common/pigweed/rpc_console/py:chip_rpc.install", - "${chip_root}/examples/common/pigweed/rpc_console/py:chip_rpc_wheel", - ] - } -} - -group("default") { - deps = [ ":linux" ] -}