You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
graphengine/ge/ge_local_engine/module.mk

170 lines
5.3 KiB

LOCAL_PATH := $(call my-dir)
local_lib_src_files := engine/ge_local_engine.cc \
ops_kernel_store/ge_local_ops_kernel_info.cc \
ops_kernel_store/op/op_factory.cc \
ops_kernel_store/op/op.cc \
ops_kernel_store/op/ge_deleted_op.cc \
ops_kernel_store/op/no_op.cc \
ops_kernel_builder_src_files := ops_kernel_store/ge_local_ops_kernel_builder.cc \
ops_kernel_store/op/op_factory.cc \
ops_kernel_store/op/op.cc \
ops_kernel_store/op/ge_deleted_op.cc \
ops_kernel_store/op/no_op.cc \
local_lib_inc_path := proto/task.proto \
${LOCAL_PATH} \
${TOPDIR}inc \
${TOPDIR}metadef/inc \
${TOPDIR}graphengine/inc \
${TOPDIR}inc/external \
${TOPDIR}metadef/inc/external \
${TOPDIR}graphengine/inc/external \
${TOPDIR}metadef/inc/external/graph \
$(TOPDIR)libc_sec/include \
${TOPDIR}third_party/protobuf/include \
${TOPDIR}graphengine/inc/framework \
$(TOPDIR)graphengine/ge \
#compiler for host
include $(CLEAR_VARS)
LOCAL_MODULE := libge_local_engine
LOCAL_CFLAGS += -Werror
LOCAL_CFLAGS += -std=c++11 -Dgoogle=ascend_private
LOCAL_LDFLAGS :=
LOCAL_STATIC_LIBRARIES :=
LOCAL_SHARED_LIBRARIES := libascend_protobuf \
libc_sec \
libslog \
libgraph \
libregister \
libruntime
LOCAL_SRC_FILES := $(local_lib_src_files)
LOCAL_C_INCLUDES := $(local_lib_inc_path)
include ${BUILD_HOST_SHARED_LIBRARY}
#compiler for atc
include $(CLEAR_VARS)
LOCAL_MODULE := atclib/libge_local_engine
LOCAL_CFLAGS += -Werror
LOCAL_CFLAGS += -std=c++11 -DCOMPILE_OMG_PACKAGE -Dgoogle=ascend_private
LOCAL_LDFLAGS :=
LOCAL_STATIC_LIBRARIES :=
LOCAL_SHARED_LIBRARIES := libascend_protobuf \
libc_sec \
libslog \
libgraph \
libregister \
libruntime_compile
LOCAL_SRC_FILES := $(local_lib_src_files)
LOCAL_C_INCLUDES := $(local_lib_inc_path)
include ${BUILD_HOST_SHARED_LIBRARY}
#compiler for libge_local_opskernel_builder.so
include $(CLEAR_VARS)
LOCAL_MODULE := libge_local_opskernel_builder
LOCAL_CFLAGS += -Werror
LOCAL_CFLAGS += -std=c++11 -Dgoogle=ascend_private
LOCAL_LDFLAGS :=
LOCAL_STATIC_LIBRARIES :=
LOCAL_SHARED_LIBRARIES := libascend_protobuf \
libc_sec \
libslog \
libregister \
libgraph
LOCAL_SRC_FILES := $(ops_kernel_builder_src_files)
LOCAL_C_INCLUDES := $(local_lib_inc_path)
include ${BUILD_HOST_SHARED_LIBRARY}
#compiler for device libge_local_opskernel_builder.so
include $(CLEAR_VARS)
LOCAL_MODULE := libge_local_opskernel_builder
LOCAL_CFLAGS += -Werror
LOCAL_CFLAGS += -std=c++11 -Dgoogle=ascend_private
LOCAL_LDFLAGS :=
LOCAL_STATIC_LIBRARIES :=
LOCAL_SHARED_LIBRARIES := libascend_protobuf \
libc_sec \
libslog \
libregister \
libgraph
LOCAL_SRC_FILES := $(ops_kernel_builder_src_files)
LOCAL_C_INCLUDES := $(local_lib_inc_path)
include ${BUILD_SHARED_LIBRARY}
#compiler for libge_local_opskernel_builder.so in atc
include $(CLEAR_VARS)
LOCAL_MODULE := atclib/libge_local_opskernel_builder
LOCAL_CFLAGS += -Werror
LOCAL_CFLAGS += -std=c++11 -Dgoogle=ascend_private
LOCAL_LDFLAGS :=
LOCAL_STATIC_LIBRARIES :=
LOCAL_SHARED_LIBRARIES := libascend_protobuf \
libc_sec \
libslog \
libregister \
libgraph
LOCAL_SRC_FILES := $(ops_kernel_builder_src_files)
LOCAL_C_INCLUDES := $(local_lib_inc_path)
include ${BUILD_HOST_SHARED_LIBRARY}
#compiler for libge_local_opskernel_builder.a
include $(CLEAR_VARS)
LOCAL_MODULE := libge_local_opskernel_builder
LOCAL_CFLAGS += -Werror
LOCAL_CFLAGS += -std=c++11 -Dgoogle=ascend_private
LOCAL_LDFLAGS :=
LOCAL_STATIC_LIBRARIES := libascend_protobuf \
libregister \
libgraph \
LOCAL_SHARED_LIBRARIES := libc_sec \
libslog \
LOCAL_SRC_FILES := $(ops_kernel_builder_src_files)
LOCAL_C_INCLUDES := $(local_lib_inc_path)
include ${BUILD_HOST_STATIC_LIBRARY}
#compiler for device libge_local_opskernel_builder.a
include $(CLEAR_VARS)
LOCAL_MODULE := libge_local_opskernel_builder
LOCAL_CFLAGS += -Werror
LOCAL_CFLAGS += -std=c++11 -Dgoogle=ascend_private
LOCAL_LDFLAGS :=
LOCAL_STATIC_LIBRARIES := libascend_protobuf \
libregister \
libgraph \
LOCAL_SHARED_LIBRARIES := libc_sec \
libslog \
LOCAL_SRC_FILES := $(ops_kernel_builder_src_files)
LOCAL_C_INCLUDES := $(local_lib_inc_path)
include ${BUILD_STATIC_LIBRARY}