提交 f552702f 编写于 作者: Y yejianwu

update so path

上级 6d2443a2
......@@ -123,9 +123,3 @@ android_ndk_repository(
# Android 5.0
api_level = 21,
)
new_local_repository(
name = "libmace",
path = "./",
build_file = "./mace/tools/validation/libmace.BUILD"
)
......@@ -74,3 +74,9 @@ cc_binary(
":mace_version_script.lds",
],
)
cc_library(
name = "libmace",
srcs = ["libmace.so"],
visibility = ["//visibility:public"],
)
......@@ -55,7 +55,7 @@ cc_binary(
":statistics",
"//external:gflags_nothreads",
"//mace/codegen:generated_mace_engine_factory",
"@libmace//:libmace",
"//mace:libmace",
],
)
......
......@@ -34,6 +34,6 @@ cc_binary(
"//external:gflags_nothreads",
"//mace/codegen:generated_mace_engine_factory",
"//mace/utils:utils",
"@libmace//:libmace",
"//mace:libmace",
],
)
cc_library(
name = "libmace",
srcs = ["bazel-bin/mace/libmace.so"],
visibility = ["//visibility:public"],
)
......@@ -596,12 +596,10 @@ def update_libmace_shared_library(serial_num,
project_name,
build_output_dir,
library_output_dir):
libmace_name = "libmace.so"
library_dir = "%s/%s/%s/%s" % (
build_output_dir, project_name, library_output_dir, abi)
libmace_file = "%s/%s" % (library_dir, libmace_name)
if os.path.exists(libmace_file):
if os.path.exists(library_dir):
sh.rm("-rf", library_dir)
sh.mkdir("-p", library_dir)
sh.cp("-f", "bazel-bin/mace/libmace.so", library_dir)
......@@ -610,6 +608,10 @@ def update_libmace_shared_library(serial_num,
(os.environ["ANDROID_NDK"], abi),
library_dir)
if os.path.exists("mace/libmace.so"):
sh.rm("-f", "mace/libmace.so")
sh.cp("-f", "bazel-bin/mace/libmace.so", "mace/")
def tuning_run(abi,
serialno,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册