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.

123456789101112131415161718192021222324252627282930313233
  1. load("//brain/megbrain/lite:flags.bzl","pthread_select", "lite_opts")
  2. cc_library(
  3. name = "mgblar",
  4. srcs = glob(["src/**/*.cpp"], exclude = ["src/main.cpp"]),
  5. hdrs = glob(["src/**/*.h"]),
  6. includes = ["src"],
  7. features = if_opt([
  8. "no_rtti",
  9. ]),
  10. deps = ["//brain/megbrain/lite:lite_static_test"]+
  11. pthread_select(
  12. ["@com_github_gflags_gflags//:gflags_nothreads"],
  13. ["//external:gflags"]
  14. ),
  15. copts = ["-std=c++14"] + lite_opts,
  16. alwayslink = 1,
  17. visibility = ["//visibility:public"],
  18. )
  19. cc_megvii_binary(
  20. name = "load_and_run",
  21. copts = ["-std=c++14"],
  22. srcs = ["src/main.cpp"],
  23. features = if_opt([
  24. "no_exceptions",
  25. "no_rtti",
  26. ]),
  27. internal_deps = [":mgblar"],
  28. visibility = ["//visibility:public"],
  29. )