config.h.in 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
  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. #pragma once
  15. #ifndef ULTRAINFER_LIB
  16. #cmakedefine ULTRAINFER_LIB
  17. #endif
  18. #ifndef LIBRARY_NAME
  19. #cmakedefine LIBRARY_NAME @LIBRARY_NAME@
  20. #endif
  21. #ifndef PY_LIBRARY_NAME
  22. #cmakedefine PY_LIBRARY_NAME @PY_LIBRARY_NAME@
  23. #endif
  24. #ifndef ENABLE_PADDLE2ONNX
  25. #cmakedefine ENABLE_PADDLE2ONNX
  26. #endif
  27. #ifndef ENABLE_ORT_BACKEND
  28. #cmakedefine ENABLE_ORT_BACKEND
  29. #endif
  30. #ifndef ENABLE_PADDLE_BACKEND
  31. #cmakedefine ENABLE_PADDLE_BACKEND
  32. #endif
  33. #ifndef ENABLE_POROS_BACKEND
  34. #cmakedefine ENABLE_POROS_BACKEND
  35. #endif
  36. #ifndef ENABLE_OPENVINO_BACKEND
  37. #cmakedefine ENABLE_OPENVINO_BACKEND
  38. #endif
  39. #ifndef WITH_GPU
  40. #cmakedefine WITH_GPU
  41. #endif
  42. #ifndef WITH_KUNLUNXIN
  43. #cmakedefine WITH_KUNLUNXIN
  44. #endif
  45. #ifndef WITH_DIRECTML
  46. #cmakedefine WITH_DIRECTML
  47. #endif
  48. #ifndef ENABLE_TRT_BACKEND
  49. #cmakedefine ENABLE_TRT_BACKEND
  50. #endif
  51. #ifndef ENABLE_VISION
  52. #cmakedefine ENABLE_VISION
  53. #endif
  54. #ifndef ENABLE_FLYCV
  55. #cmakedefine ENABLE_FLYCV
  56. #endif
  57. #ifndef ENABLE_TEXT
  58. #cmakedefine ENABLE_TEXT
  59. #endif
  60. #ifndef ENABLE_BENCHMARK
  61. #cmakedefine ENABLE_BENCHMARK
  62. #endif
  63. #ifndef ENABLE_HORIZON_BACKEND
  64. #cmakedefine ENABLE_HORIZON_BACKEND
  65. #endif
  66. #ifndef ENABLE_TVM_BACKEND
  67. #cmakedefine ENABLE_TVM_BACKEND
  68. #endif
  69. #ifndef ENABLE_OM_BACKEND
  70. #cmakedefine ENABLE_OM_BACKEND
  71. #endif