BUILD.gn 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. java_library("java") {
  19. output_name = "JavaMatterController.jar"
  20. deps = [
  21. "${chip_root}/src/controller/java",
  22. "${chip_root}/third_party/java_deps:annotation",
  23. ]
  24. sources = [
  25. "java/src/com/matter/controller/commands/common/FutureResult.java",
  26. "java/src/com/matter/controller/commands/common/RealResult.java",
  27. ]
  28. javac_flags = [ "-Xlint:deprecation" ]
  29. }
  30. kotlin_binary("java-matter-controller") {
  31. output_name = "java-matter-controller"
  32. deps = [
  33. ":java",
  34. "${chip_root}/src/controller/java:onboarding_payload",
  35. "${chip_root}/third_party/java_deps:kotlin-stdlib",
  36. ]
  37. sources = [
  38. "java/src/com/matter/controller/Main.kt",
  39. "java/src/com/matter/controller/commands/common/Argument.kt",
  40. "java/src/com/matter/controller/commands/common/ArgumentType.kt",
  41. "java/src/com/matter/controller/commands/common/Command.kt",
  42. "java/src/com/matter/controller/commands/common/CommandManager.kt",
  43. "java/src/com/matter/controller/commands/common/CredentialsIssuer.kt",
  44. "java/src/com/matter/controller/commands/common/IPAddress.kt",
  45. "java/src/com/matter/controller/commands/common/MatterCommand.kt",
  46. "java/src/com/matter/controller/commands/discover/DiscoverCommand.kt",
  47. "java/src/com/matter/controller/commands/discover/DiscoverCommissionablesCommand.kt",
  48. "java/src/com/matter/controller/commands/discover/DiscoverCommissionersCommand.kt",
  49. "java/src/com/matter/controller/commands/pairing/CloseSessionCommand.kt",
  50. "java/src/com/matter/controller/commands/pairing/DiscoveryFilterType.kt",
  51. "java/src/com/matter/controller/commands/pairing/PairAddressPaseCommand.kt",
  52. "java/src/com/matter/controller/commands/pairing/PairAlreadyDiscoveredCommand.kt",
  53. "java/src/com/matter/controller/commands/pairing/PairCodeCommand.kt",
  54. "java/src/com/matter/controller/commands/pairing/PairCodePaseCommand.kt",
  55. "java/src/com/matter/controller/commands/pairing/PairCodeThreadCommand.kt",
  56. "java/src/com/matter/controller/commands/pairing/PairCodeWifiCommand.kt",
  57. "java/src/com/matter/controller/commands/pairing/PairOnNetworkCommand.kt",
  58. "java/src/com/matter/controller/commands/pairing/PairOnNetworkCommissionerCommand.kt",
  59. "java/src/com/matter/controller/commands/pairing/PairOnNetworkCommissioningModeCommand.kt",
  60. "java/src/com/matter/controller/commands/pairing/PairOnNetworkDeviceTypeCommand.kt",
  61. "java/src/com/matter/controller/commands/pairing/PairOnNetworkFabricCommand.kt",
  62. "java/src/com/matter/controller/commands/pairing/PairOnNetworkInstanceNameCommand.kt",
  63. "java/src/com/matter/controller/commands/pairing/PairOnNetworkLongCommand.kt",
  64. "java/src/com/matter/controller/commands/pairing/PairOnNetworkLongImInvokeCommand.kt",
  65. "java/src/com/matter/controller/commands/pairing/PairOnNetworkLongImReadCommand.kt",
  66. "java/src/com/matter/controller/commands/pairing/PairOnNetworkLongImSubscribeCommand.kt",
  67. "java/src/com/matter/controller/commands/pairing/PairOnNetworkLongImWriteCommand.kt",
  68. "java/src/com/matter/controller/commands/pairing/PairOnNetworkShortCommand.kt",
  69. "java/src/com/matter/controller/commands/pairing/PairOnNetworkVendorCommand.kt",
  70. "java/src/com/matter/controller/commands/pairing/PairingCommand.kt",
  71. "java/src/com/matter/controller/commands/pairing/PairingModeType.kt",
  72. "java/src/com/matter/controller/commands/pairing/PairingNetworkType.kt",
  73. "java/src/com/matter/controller/commands/pairing/UnpairCommand.kt",
  74. ]
  75. kotlinc_flags = [ "-Xlint:deprecation" ]
  76. }
  77. group("default") {
  78. deps = [ ":java-matter-controller" ]
  79. }