Files
pytorch/c10/mobile/build.bzl
mikey dagitses 41690d7804 define //c10/mobile targets (#70861)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/70861

ghstack-source-id: 147642549

Test Plan: Should be a no-op. Rely on CI to validate.

Reviewed By: malfet

Differential Revision: D33329870

fbshipit-source-id: 7dbccaa994737c5fe7195d02dffd61eeceb19ceb
(cherry picked from commit 2b5264ebc49e4a5445c066e07f15bad041f42ac8)
2022-01-27 07:34:52 +00:00

33 lines
900 B
Python

def define_targets(rules):
rules.cc_library(
name = "CPUCachingAllocator",
srcs = ["CPUCachingAllocator.cpp"],
hdrs = ["CPUCachingAllocator.h"],
linkstatic = True,
local_defines = ["C10_BUILD_MAIN_LIB"],
visibility = ["//visibility:public"],
deps = [
"//c10/core:alloc_cpu",
"//c10/util:base",
],
)
rules.cc_library(
name = "CPUProfilingAllocator",
srcs = ["CPUProfilingAllocator.cpp"],
hdrs = ["CPUProfilingAllocator.h"],
linkstatic = True,
local_defines = ["C10_BUILD_MAIN_LIB"],
visibility = ["//visibility:public"],
deps = [
"//c10/core:alloc_cpu",
"//c10/util:base",
],
)
rules.filegroup(
name = "headers",
srcs = rules.glob(["*.h"]),
visibility = ["//c10:__pkg__"],
)