Skip to content

Commit 68f6128

Browse files
committed
Switch to building using Bazel.
For a complete history of changes see pmuetschard/gapid@8d3d93d...bazel
1 parent 40b5f23 commit 68f6128

File tree

854 files changed

+19065
-15141
lines changed

Some content is hidden

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

854 files changed

+19065
-15141
lines changed

.classpath

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="gapic/src/main"/>
4+
<classpathentry kind="src" path="bazel-genfiles/gapic/src/main"/>
5+
<classpathentry kind="src" path="platform_src"/>
6+
<classpathentry kind="src" path="gapic/res"/>
7+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
8+
<classpathentry kind="lib" path="gapic/third_party/guava-20.0.jar" sourcepath="gapic/third_party/guava-20.0-sources.jar"/>
9+
<classpathentry kind="lib" path="gapic/third_party/grpc/grpc-context-1.0.1.jar" sourcepath="gapic/third_party/grpc/grpc-context-1.0.1-sources.jar"/>
10+
<classpathentry kind="lib" path="gapic/third_party/grpc/grpc-core-1.0.1.jar" sourcepath="gapic/third_party/grpc/grpc-core-1.0.1-sources.jar"/>
11+
<classpathentry kind="lib" path="gapic/third_party/grpc/grpc-okhttp-1.0.1.jar" sourcepath="gapic/third_party/grpc/grpc-okhttp-1.0.1-sources.jar"/>
12+
<classpathentry kind="lib" path="gapic/third_party/grpc/grpc-protobuf-1.0.1.jar" sourcepath="gapic/third_party/grpc/grpc-protobuf-1.0.1-sources.jar"/>
13+
<classpathentry kind="lib" path="gapic/third_party/grpc/grpc-protobuf-lite-1.0.1.jar" sourcepath="gapic/third_party/grpc/grpc-protobuf-lite-1.0.1-sources.jar"/>
14+
<classpathentry kind="lib" path="gapic/third_party/grpc/grpc-stub-1.0.1.jar" sourcepath="gapic/third_party/grpc/grpc-stub-1.0.1-sources.jar"/>
15+
<classpathentry kind="lib" path="gapic/third_party/grpc/okhttp-2.5.0.jar" sourcepath="gapic/third_party/grpc/okhttp-2.5.0-sources.jar"/>
16+
<classpathentry kind="lib" path="gapic/third_party/grpc/okio-1.6.0.jar" sourcepath="gapic/third_party/grpc/okio-1.6.0-sources.jar"/>
17+
<classpathentry kind="lib" path="gapic/third_party/jface/org.eclipse.core.commands_3.8.0.v20160316-1921.jar" sourcepath="gapic/third_party/jface/org.eclipse.core.commands.source_3.8.0.v20160316-1921.jar"/>
18+
<classpathentry kind="lib" path="gapic/third_party/jface/org.eclipse.core.runtime_3.12.0.v20160606-1342.jar" sourcepath="gapic/third_party/jface/org.eclipse.core.runtime.source_3.12.0.v20160606-1342.jar"/>
19+
<classpathentry kind="lib" path="gapic/third_party/jface/org.eclipse.equinox.common_3.8.0.v20160509-1230.jar" sourcepath="gapic/third_party/jface/org.eclipse.equinox.common.source_3.8.0.v20160509-1230.jar"/>
20+
<classpathentry kind="lib" path="gapic/third_party/jface/org.eclipse.jface_3.12.1.v20160923-1528.jar" sourcepath="gapic/third_party/jface/org.eclipse.jface.source_3.12.1.v20160923-1528.jar"/>
21+
<classpathentry kind="lib" path="gapic/third_party/jface/org.eclipse.jface.databinding_1.8.1.v20161026-1531.jar" sourcepath="gapic/third_party/jface/org.eclipse.jface.databinding.source_1.8.1.v20161026-1531.jar"/>
22+
<classpathentry kind="lib" path="gapic/third_party/jface/org.eclipse.jface.text_3.11.2.v20161113-1700.jar" sourcepath="gapic/third_party/jface/org.eclipse.jface.text.source_3.11.2.v20161113-1700.jar"/>
23+
<classpathentry kind="lib" path="gapic/third_party/jface/org.eclipse.osgi_3.11.2.v20161107-1947.jar" sourcepath="gapic/third_party/jface/org.eclipse.osgi.source_3.11.2.v20161107-1947.jar"/>
24+
<classpathentry kind="lib" path="gapic/third_party/jface/org.eclipse.text_3.6.0.v20160503-1849.jar" sourcepath="gapic/third_party/jface/org.eclipse.text.source_3.6.0.v20160503-1849.jar"/>
25+
<classpathentry kind="lib" path="gapic/third_party/lwjgl/lwjgl-opengl.jar" sourcepath="gapic/third_party/lwjgl/lwjgl-opengl-sources.jar"/>
26+
<classpathentry kind="lib" path="gapic/third_party/lwjgl/lwjgl.jar" sourcepath="gapic/third_party/lwjgl/lwjgl-sources.jar"/>
27+
<classpathentry kind="lib" path="platform_lib/lwjgl-natives.jar"/>
28+
<classpathentry kind="lib" path="platform_lib/lwjgl-opengl-natives.jar"/>
29+
<classpathentry kind="lib" path="platform_lib/swt.jar" sourcepath="platform_lib/swt-src.zip"/>
30+
<classpathentry kind="lib" path="bazel-bin/core/data/pod/libpod_proto-speed.jar" sourcepath="bazel-genfiles/core/data/pod/pod_proto-speed-src.jar"/>
31+
<classpathentry kind="lib" path="bazel-bin/core/image/libimage_proto-speed.jar" sourcepath="bazel-genfiles/core/image/image_proto-speed-src.jar"/>
32+
<classpathentry kind="lib" path="bazel-bin/core/log/log_pb/liblog_pb_proto-speed.jar" sourcepath="bazel-genfiles/core/log/log_pb/log_pb_proto-speed-src.jar"/>
33+
<classpathentry kind="lib" path="bazel-bin/core/os/device/libdevice_proto-speed.jar" sourcepath="bazel-genfiles/core/os/device/device_proto-speed-src.jar"/>
34+
<classpathentry kind="lib" path="bazel-bin/core/stream/libstream_proto-speed.jar" sourcepath="bazel-genfiles/core/stream/stream_proto-speed-src.jar"/>
35+
<classpathentry kind="lib" path="bazel-bin/external/com_google_protobuf/libprotobuf_java.jar"/>
36+
<classpathentry kind="lib" path="bazel-bin/gapidapk/pkginfo/libpkginfo_proto-speed.jar" sourcepath="bazel-genfiles/gapidapk/pkginfo/pkginfo_proto-speed-src.jar"/>
37+
<classpathentry kind="lib" path="bazel-bin/gapis/api/libapi_proto-speed.jar" sourcepath="bazel-genfiles/gapis/api/api_proto-speed-src.jar"/>
38+
<classpathentry kind="lib" path="bazel-bin/gapis/memory/libmemory_proto-speed.jar" sourcepath="bazel-genfiles/gapis/memory/memory_proto-speed-src.jar"/>
39+
<classpathentry kind="lib" path="bazel-bin/gapis/service/box/libbox_proto-speed.jar" sourcepath="bazel-genfiles/gapis/service/box/box_proto-speed-src.jar"/>
40+
<classpathentry kind="lib" path="bazel-bin/gapis/service/path/libpath_proto-speed.jar" sourcepath="bazel-genfiles/gapis/service/path/path_proto-speed-src.jar"/>
41+
<classpathentry kind="lib" path="bazel-bin/gapis/service/libservice_proto-speed.jar" sourcepath="bazel-genfiles/gapis/service/service_proto-speed-src.jar"/>
42+
<classpathentry kind="lib" path="bazel-bin/gapis/stringtable/libstringtable_proto-speed.jar" sourcepath="bazel-genfiles/gapis/stringtable/stringtable_proto-speed-src.jar"/>
43+
<classpathentry kind="lib" path="bazel-bin/gapis/vertex/libvertex_proto-speed.jar" sourcepath="bazel-genfiles/gapis/vertex/vertex_proto-speed-src.jar"/>
44+
<classpathentry kind="lib" path="bazel-bin/gapic/src/main/libservice_grpc.jar" sourcepath="bazel-bin/gapic/src/main/service_grpc-src-src.jar"/>
45+
<classpathentry kind="output" path="gapic/bin"/>
46+
</classpath>

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
/.idea
44
/.vscode
55
/bazel-*
6+
/fused
67

78
# Single files
89
/.gapid-config
10+
/.bazelrc
911

1012
# General patterns
1113
*.gfxtrace

.gitmodules

-90
This file was deleted.

gapic/.project .project

File renamed without changes.

BUILD.bazel

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Copyright (C) 2018 Google Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
load("@io_bazel_rules_go//go:def.bzl", "go_prefix")
16+
load("@bazel_gazelle//:def.bzl", "gazelle")
17+
load("//tools/build:rules.bzl", "copy", "copy_to")
18+
19+
go_prefix("github.com/google/gapid")
20+
21+
gazelle(
22+
name = "gazelle",
23+
mode = "fix",
24+
)
25+
26+
# Rules to build the expected installed structure for running
27+
filegroup(
28+
name = "pkg",
29+
srcs = [
30+
":pkg-root",
31+
":pkg-lib",
32+
":pkg-strings",
33+
],
34+
)
35+
36+
copy_to(
37+
name = "pkg-root",
38+
srcs = [
39+
"//cmd/gapid",
40+
"//cmd/gapir/cc:gapir",
41+
"//cmd/gapis",
42+
"//cmd/gapit",
43+
"//gapidapk/android/apk:arm64-v8a.apk",
44+
"//gapidapk/android/apk:armeabi-v7a.apk",
45+
"//gapidapk/android/apk:x86.apk",
46+
"//tools/build:build.properties",
47+
],
48+
rename = {
49+
"armeabi-v7a.apk": "gapid-armeabi.apk",
50+
"arm64-v8a.apk": "gapid-aarch64.apk",
51+
"x86.apk": "gapid-x86.apk",
52+
},
53+
to = "pkg",
54+
)
55+
56+
copy_to(
57+
name = "pkg-lib",
58+
srcs = [
59+
"//core/vulkan/vk_virtual_swapchain/cc:json",
60+
"//core/vulkan/vk_virtual_swapchain/cc:libVkLayer_VirtualSwapchain",
61+
"//gapic:gapic_deploy.jar",
62+
"//gapii/cc:libgapii",
63+
"//gapii/vulkan/vk_graphics_spy/cc:json",
64+
],
65+
rename = {
66+
"gapic_deploy.jar": "gapic.jar",
67+
},
68+
to = "pkg/lib",
69+
)
70+
71+
copy_to(
72+
name = "pkg-strings",
73+
srcs = ["//gapis/messages:stb"],
74+
to = "pkg/strings",
75+
)

CMakeLists.txt

-113
This file was deleted.

0 commit comments

Comments
 (0)