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.

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