mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
bazel 9 tests for csharp, hpb, objc, php, python, rust and upb
PiperOrigin-RevId: 918164613
This commit is contained in:
parent
46a1d94e94
commit
f9e028f29f
25 changed files with 96 additions and 65 deletions
|
|
@ -8,6 +8,9 @@
|
|||
#ifndef PYUPB_DESCRIPTOR_H__
|
||||
#define PYUPB_DESCRIPTOR_H__
|
||||
|
||||
// clang-format off
|
||||
#include "Python.h"
|
||||
// clang-format on
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "python/python_api.h"
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@
|
|||
// those functions directly inside these vtables, greatly reducing the amount of
|
||||
// "adaptor" code we need to write.
|
||||
|
||||
// clang-format on
|
||||
#include "Python.h"
|
||||
// clang-format off
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "protobuf.h"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@
|
|||
#ifndef PYUPB_DESCRIPTOR_POOL_H__
|
||||
#define PYUPB_DESCRIPTOR_POOL_H__
|
||||
|
||||
// clang-format off
|
||||
#include "Python.h"
|
||||
// clang-format on
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "protobuf.h"
|
||||
|
|
|
|||
4
python/dist/python_downloads.bzl
vendored
4
python/dist/python_downloads.bzl
vendored
|
|
@ -3,6 +3,8 @@
|
|||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||
|
||||
limited_api_build_file = """
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
|
||||
cc_library(
|
||||
name = "python_headers",
|
||||
hdrs = glob(["**/Include/**/*.h"]),
|
||||
|
|
@ -33,6 +35,8 @@ def python_source_archive(version, sha256):
|
|||
)
|
||||
|
||||
nuget_build_file = """
|
||||
load("@rules_cc//cc:defs.bzl", "cc_import")
|
||||
|
||||
cc_import(
|
||||
name = "python_full_api",
|
||||
hdrs = glob(["**/*.h"]),
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@
|
|||
#ifndef PYUPB_EXTENSION_DICT_H__
|
||||
#define PYUPB_EXTENSION_DICT_H__
|
||||
|
||||
// clang-format off
|
||||
#include "Python.h"
|
||||
// clang-format on
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "python/python_api.h"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@
|
|||
#ifndef PYUPB_MAP_H__
|
||||
#define PYUPB_MAP_H__
|
||||
|
||||
// clang-format off
|
||||
#include "Python.h"
|
||||
// clang-format on
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "python/protobuf.h"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@
|
|||
#ifndef PYPB_MESSAGE_H__
|
||||
#define PYPB_MESSAGE_H__
|
||||
|
||||
// clang-format off
|
||||
#include "Python.h"
|
||||
// clang-format on
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "python/protobuf.h"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@
|
|||
#ifndef PYUPB_PROTOBUF_H__
|
||||
#define PYUPB_PROTOBUF_H__
|
||||
|
||||
// clang-format off
|
||||
#include "Python.h"
|
||||
// clang-format on
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@
|
|||
#ifndef PYUPB_REPEATED_H__
|
||||
#define PYUPB_REPEATED_H__
|
||||
|
||||
// clang-format off
|
||||
#include "Python.h"
|
||||
// chang-format on
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "python/protobuf.h"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@
|
|||
#ifndef PYUPB_UNKNOWN_FIELDS_H__
|
||||
#define PYUPB_UNKNOWN_FIELDS_H__
|
||||
|
||||
// clang-format off
|
||||
#include "Python.h"
|
||||
// clang-format on
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "python/python_api.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue