BUILD.gn 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # Copyright (c) 2022-2023 Project CHIP Authors
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. import("//build_overrides/build.gni")
  15. import("//build_overrides/chip.gni")
  16. import("${chip_root}/build/chip/java/rules.gni")
  17. import("${chip_root}/build/chip/tools.gni")
  18. kotlin_binary("java-matter-controller") {
  19. output_name = "java-matter-controller"
  20. deps = [
  21. "${chip_root}/src/controller/java",
  22. "${chip_root}/src/controller/java:onboarding_payload",
  23. "${chip_root}/third_party/java_deps:annotation",
  24. "${chip_root}/third_party/java_deps:kotlin-stdlib",
  25. ]
  26. sources = [
  27. "java/src/com/matter/controller/Main.kt",
  28. "java/src/com/matter/controller/commands/common/Argument.kt",
  29. "java/src/com/matter/controller/commands/common/ArgumentType.kt",
  30. "java/src/com/matter/controller/commands/common/Command.kt",
  31. "java/src/com/matter/controller/commands/common/CommandManager.kt",
  32. "java/src/com/matter/controller/commands/common/CredentialsIssuer.kt",
  33. "java/src/com/matter/controller/commands/common/FutureResult.kt",
  34. "java/src/com/matter/controller/commands/common/IPAddress.kt",
  35. "java/src/com/matter/controller/commands/common/MatterCommand.kt",
  36. "java/src/com/matter/controller/commands/common/RealResult.kt",
  37. "java/src/com/matter/controller/commands/discover/DiscoverCommand.kt",
  38. "java/src/com/matter/controller/commands/discover/DiscoverCommissionablesCommand.kt",
  39. "java/src/com/matter/controller/commands/discover/DiscoverCommissionersCommand.kt",
  40. "java/src/com/matter/controller/commands/pairing/CloseSessionCommand.kt",
  41. "java/src/com/matter/controller/commands/pairing/DiscoveryFilterType.kt",
  42. "java/src/com/matter/controller/commands/pairing/PairAddressPaseCommand.kt",
  43. "java/src/com/matter/controller/commands/pairing/PairAlreadyDiscoveredCommand.kt",
  44. "java/src/com/matter/controller/commands/pairing/PairCodeCommand.kt",
  45. "java/src/com/matter/controller/commands/pairing/PairCodePaseCommand.kt",
  46. "java/src/com/matter/controller/commands/pairing/PairCodeThreadCommand.kt",
  47. "java/src/com/matter/controller/commands/pairing/PairCodeWifiCommand.kt",
  48. "java/src/com/matter/controller/commands/pairing/PairOnNetworkCommand.kt",
  49. "java/src/com/matter/controller/commands/pairing/PairOnNetworkCommissionerCommand.kt",
  50. "java/src/com/matter/controller/commands/pairing/PairOnNetworkCommissioningModeCommand.kt",
  51. "java/src/com/matter/controller/commands/pairing/PairOnNetworkDeviceTypeCommand.kt",
  52. "java/src/com/matter/controller/commands/pairing/PairOnNetworkFabricCommand.kt",
  53. "java/src/com/matter/controller/commands/pairing/PairOnNetworkInstanceNameCommand.kt",
  54. "java/src/com/matter/controller/commands/pairing/PairOnNetworkLongCommand.kt",
  55. "java/src/com/matter/controller/commands/pairing/PairOnNetworkLongImInvokeCommand.kt",
  56. "java/src/com/matter/controller/commands/pairing/PairOnNetworkLongImReadCommand.kt",
  57. "java/src/com/matter/controller/commands/pairing/PairOnNetworkLongImSubscribeCommand.kt",
  58. "java/src/com/matter/controller/commands/pairing/PairOnNetworkLongImWriteCommand.kt",
  59. "java/src/com/matter/controller/commands/pairing/PairOnNetworkShortCommand.kt",
  60. "java/src/com/matter/controller/commands/pairing/PairOnNetworkVendorCommand.kt",
  61. "java/src/com/matter/controller/commands/pairing/PairingCommand.kt",
  62. "java/src/com/matter/controller/commands/pairing/PairingModeType.kt",
  63. "java/src/com/matter/controller/commands/pairing/PairingNetworkType.kt",
  64. "java/src/com/matter/controller/commands/pairing/UnpairCommand.kt",
  65. ]
  66. kotlinc_flags = [ "-Xlint:deprecation" ]
  67. }
  68. group("default") {
  69. deps = [ ":java-matter-controller" ]
  70. }