Skip to content

Commit 0d4de87

Browse files
committed
Squashed 'third_party/flatbuffers/' content from commit 187240970
git-subtree-dir: third_party/flatbuffers git-subtree-split: 187240970746d00bbd26b0f5873ed54d2477f9f3
0 parents  commit 0d4de87

File tree

1,890 files changed

+348120
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,890 files changed

+348120
-0
lines changed

.bazelci/presubmit.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
buildifier: latest
3+
matrix:
4+
bazel:
5+
- 7.x
6+
- 8.x
7+
tasks:
8+
verify_ubuntu2004:
9+
platform: ubuntu2004
10+
bazel: ${{ bazel }}
11+
environment:
12+
CC: clang
13+
SWIFT_VERSION: "5.9"
14+
SWIFT_HOME: "$HOME/swift-$SWIFT_VERSION"
15+
PATH: "$PATH:$SWIFT_HOME/usr/bin"
16+
shell_commands:
17+
- "echo --- Downloading and extracting Swift $SWIFT_VERSION to $SWIFT_HOME"
18+
- "mkdir $SWIFT_HOME"
19+
- "curl https://download.swift.org/swift-${SWIFT_VERSION}-release/ubuntu2004/swift-${SWIFT_VERSION}-RELEASE/swift-${SWIFT_VERSION}-RELEASE-ubuntu20.04.tar.gz | tar xvz --strip-components=1 -C $SWIFT_HOME"
20+
build_targets:
21+
- "//..."
22+
test_targets:
23+
- "//..."
24+
verify_ubuntu2204:
25+
platform: ubuntu2204
26+
bazel: ${{ bazel }}
27+
environment:
28+
CC: clang
29+
SWIFT_VERSION: "5.9"
30+
SWIFT_HOME: "$HOME/swift-$SWIFT_VERSION"
31+
PATH: "$PATH:$SWIFT_HOME/usr/bin"
32+
shell_commands:
33+
- "echo --- Downloading and extracting Swift $SWIFT_VERSION to $SWIFT_HOME"
34+
- "mkdir $SWIFT_HOME"
35+
- "curl https://download.swift.org/swift-${SWIFT_VERSION}-release/ubuntu2204/swift-${SWIFT_VERSION}-RELEASE/swift-${SWIFT_VERSION}-RELEASE-ubuntu22.04.tar.gz | tar xvz --strip-components=1 -C $SWIFT_HOME"
36+
build_targets:
37+
- "//..."
38+
test_targets:
39+
- "//..."
40+
test_module_cpp:
41+
platform: ubuntu2204
42+
bazel: ${{ bazel }}
43+
working_directory: tests/bazel_repository_test_dir
44+
build_targets:
45+
- "//..."
46+
test_module_ts:
47+
platform: ubuntu2204
48+
bazel: ${{ bazel }}
49+
working_directory: tests/ts/bazel_repository_test_dir
50+
test_targets:
51+
- "//..."
52+
verify_macos:
53+
platform: macos
54+
bazel: ${{ bazel }}
55+
xcode_version: "15.2"
56+
build_targets:
57+
- "//:flatbuffers"
58+
- "//:flatc"
59+
test_targets:
60+
- "//tests:flatbuffers_test"

.bazelignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ts/node_modules
2+
3+
# Test workspaces
4+
tests/bazel_repository_test_dir
5+
tests/ts/bazel_repository_test_dir

.bazelrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# We cannot use "common" here because the "version" command doesn't support
2+
# --deleted_packages. We need to specify it for both build and query instead.
3+
build --deleted_packages=tests/bazel_repository_test_dir,tests/ts/bazel_repository_test_dir
4+
query --deleted_packages=tests/bazel_repository_test_dir,tests/ts/bazel_repository_test_dir
5+
# Point tools such as coursier (used in rules_jvm_external) to Bazel's internal JDK
6+
# suggested in https://github.com/bazelbuild/rules_jvm_external/issues/445
7+
common --repo_env=JAVA_HOME=../bazel_tools/jdk
8+
common --action_env=JAVA_HOME=../bazel_tools/jdk
9+
# Workaround "Error: need --enable_runfiles on Windows for to support rules_js"
10+
common:windows --enable_runfiles
11+
# Swift is not required on Windows
12+
common:windows --deleted_packages=swift
13+
# Ignore warnings in external dependencies
14+
build --per_file_copt=external/.*@-Wno-everything --host_per_file_copt=external/.*@-Wno-everything
15+
# Honor the setting of `skipLibCheck` in the tsconfig.json file.
16+
common --@aspect_rules_ts//ts:skipLibCheck=honor_tsconfig
17+
# Use "tsc" as the transpiler when ts_project has no `transpiler` set.
18+
common --@aspect_rules_ts//ts:default_to_tsc_transpiler

.clang-format

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
Language: Cpp
3+
BasedOnStyle: Google
4+
...
5+

0 commit comments

Comments
 (0)