You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

module.mk 2.9 kB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. LOCAL_PATH := $(call my-dir)
  2. include $(CLEAR_VARS)
  3. LOCAL_MODULE := libparser_common
  4. LOCAL_CFLAGS += -DPROTOBUF_INLINE_NOT_IN_HEADERS=0
  5. LOCAL_CFLAGS += -Werror -Wno-deprecated-declarations -Dgoogle=ascend_private
  6. ifeq ($(DEBUG), 1)
  7. LOCAL_CFLAGS += -g -O0
  8. endif
  9. COMMON_LOCAL_SRC_FILES := \
  10. parser_factory.cc \
  11. data_op_parser.cc \
  12. op_parser_factory.cc \
  13. pre_checker.cc \
  14. register_tbe.cc \
  15. parser_api.cc \
  16. parser_inner_ctx.cc \
  17. proto_file_parser.cc \
  18. acl_graph_parser_util.cc \
  19. tbe_plugin_loader.cc \
  20. model_saver.cc \
  21. ../tensorflow/tensorflow_custom_parser_adapter.cc \
  22. ../tensorflow/tensorflow_fusion_custom_parser_adapter.cc \
  23. ../tensorflow/tensorflow_fusion_op_parser.cc \
  24. ../tensorflow/tensorflow_util.cc \
  25. convert/pb2json.cc \
  26. op_def/ir_pb_converter.cc \
  27. op_def/operator.cc \
  28. op_map.cc \
  29. parser_types.cc \
  30. pass_manager.cc \
  31. parser_fp16_t.cc \
  32. thread_pool.cc \
  33. parser_utils.cc \
  34. FMK_COMMON_SRC_FILES := \
  35. # ../../common/fmk_error_codes.cc \
  36. ../../common/auth/cipher.cc \
  37. ../../common/context/ctx.cc \
  38. ../../graph/passes/pass_manager.cc \
  39. ../../graph/common/omg_util.cc \
  40. ../../common/types.cc \
  41. ../../common/auth/file_saver.cc \
  42. ../../common/util.cc \
  43. ../../common/model_saver.cc \
  44. ../../common/fp16_t.cc \
  45. ../../common/thread_pool.cc \
  46. LOCAL_SRC_FILES := $(COMMON_LOCAL_SRC_FILES)
  47. LOCAL_SRC_FILES += $(FMK_COMMON_SRC_FILES)
  48. LOCAL_C_INCLUDES := \
  49. proto/om.proto \
  50. proto/insert_op.proto \
  51. proto/ge_ir.proto \
  52. proto/tensorflow/graph.proto \
  53. proto/tensorflow/node_def.proto \
  54. proto/tensorflow/tensor_shape.proto \
  55. proto/tensorflow/attr_value.proto \
  56. proto/tensorflow/function.proto \
  57. proto/tensorflow/op_def.proto \
  58. proto/tensorflow/resource_handle.proto \
  59. proto/tensorflow/tensor.proto \
  60. proto/tensorflow/types.proto \
  61. proto/tensorflow/versions.proto \
  62. $(LOCAL_PATH) \
  63. $(TOPDIR)inc \
  64. $(TOPDIR)metadef/inc \
  65. $(TOPDIR)graphengine/inc \
  66. $(TOPDIR)parser/inc \
  67. $(TOPDIR)inc/external \
  68. $(TOPDIR)metadef/inc/external \
  69. $(TOPDIR)graphengine/inc/external \
  70. $(TOPDIR)parser/inc/external \
  71. $(TOPDIR)metadef/inc/external/graph \
  72. $(TOPDIR)graphengine/inc/framework \
  73. $(TOPDIR)metadef/inc/common/util \
  74. $(TOPDIR)graphengine/ge \
  75. $(TOPDIR)graphengine/ge/common \
  76. $(TOPDIR)parser/parser \
  77. $(TOPDIR)parser \
  78. $(TOPDIR)libc_sec/include \
  79. $(TOPDIR)third_party/json/include \
  80. $(TOPDIR)third_party/protobuf/include \
  81. libc_sec/include \
  82. third_party/openssl/include/x86/include \
  83. LOCAL_SHARED_LIBRARIES := \
  84. libascend_protobuf \
  85. libslog \
  86. libgraph \
  87. libc_sec \
  88. liberror_manager \
  89. libregister \
  90. LOCAL_STATIC_LIBRARIES += libmmpa
  91. LOCAL_LDFLAGS := -lrt -ldl
  92. include $(BUILD_HOST_SHARED_LIBRARY)