blob: 723e11bd5bcafe29614b21d6dbf7bae0dd8ca810 [file]
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "_pyfory",
srcs = ["pyfory.cc"],
hdrs = ["pyfory.h"],
alwayslink=True,
linkstatic=True,
strip_include_prefix = "/python/pyfory/cpp",
include_prefix = "fory/python",
deps = [
"//cpp/fory/type:fory_type",
"//cpp/fory/util:fory_util",
"@rules_python//python/cc:current_py_cc_headers",
],
visibility = ["//visibility:public"],
)