Skip to content

Commit

Permalink
Switch to building using Bazel.
Browse files Browse the repository at this point in the history
For a complete history of changes see
pmuetschard/gapid@8d3d93d...bazel
  • Loading branch information
pmuetschard committed Feb 6, 2018
1 parent 40b5f23 commit 68f6128
Show file tree
Hide file tree
Showing 854 changed files with 19,065 additions and 15,141 deletions.
46 changes: 46 additions & 0 deletions .classpath
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="gapic/src/main"/>
<classpathentry kind="src" path="bazel-genfiles/gapic/src/main"/>
<classpathentry kind="src" path="platform_src"/>
<classpathentry kind="src" path="gapic/res"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="lib" path="gapic/third_party/guava-20.0.jar" sourcepath="gapic/third_party/guava-20.0-sources.jar"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<classpathentry kind="lib" path="gapic/third_party/grpc/okhttp-2.5.0.jar" sourcepath="gapic/third_party/grpc/okhttp-2.5.0-sources.jar"/>
<classpathentry kind="lib" path="gapic/third_party/grpc/okio-1.6.0.jar" sourcepath="gapic/third_party/grpc/okio-1.6.0-sources.jar"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<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"/>
<classpathentry kind="lib" path="gapic/third_party/lwjgl/lwjgl-opengl.jar" sourcepath="gapic/third_party/lwjgl/lwjgl-opengl-sources.jar"/>
<classpathentry kind="lib" path="gapic/third_party/lwjgl/lwjgl.jar" sourcepath="gapic/third_party/lwjgl/lwjgl-sources.jar"/>
<classpathentry kind="lib" path="platform_lib/lwjgl-natives.jar"/>
<classpathentry kind="lib" path="platform_lib/lwjgl-opengl-natives.jar"/>
<classpathentry kind="lib" path="platform_lib/swt.jar" sourcepath="platform_lib/swt-src.zip"/>
<classpathentry kind="lib" path="bazel-bin/core/data/pod/libpod_proto-speed.jar" sourcepath="bazel-genfiles/core/data/pod/pod_proto-speed-src.jar"/>
<classpathentry kind="lib" path="bazel-bin/core/image/libimage_proto-speed.jar" sourcepath="bazel-genfiles/core/image/image_proto-speed-src.jar"/>
<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"/>
<classpathentry kind="lib" path="bazel-bin/core/os/device/libdevice_proto-speed.jar" sourcepath="bazel-genfiles/core/os/device/device_proto-speed-src.jar"/>
<classpathentry kind="lib" path="bazel-bin/core/stream/libstream_proto-speed.jar" sourcepath="bazel-genfiles/core/stream/stream_proto-speed-src.jar"/>
<classpathentry kind="lib" path="bazel-bin/external/com_google_protobuf/libprotobuf_java.jar"/>
<classpathentry kind="lib" path="bazel-bin/gapidapk/pkginfo/libpkginfo_proto-speed.jar" sourcepath="bazel-genfiles/gapidapk/pkginfo/pkginfo_proto-speed-src.jar"/>
<classpathentry kind="lib" path="bazel-bin/gapis/api/libapi_proto-speed.jar" sourcepath="bazel-genfiles/gapis/api/api_proto-speed-src.jar"/>
<classpathentry kind="lib" path="bazel-bin/gapis/memory/libmemory_proto-speed.jar" sourcepath="bazel-genfiles/gapis/memory/memory_proto-speed-src.jar"/>
<classpathentry kind="lib" path="bazel-bin/gapis/service/box/libbox_proto-speed.jar" sourcepath="bazel-genfiles/gapis/service/box/box_proto-speed-src.jar"/>
<classpathentry kind="lib" path="bazel-bin/gapis/service/path/libpath_proto-speed.jar" sourcepath="bazel-genfiles/gapis/service/path/path_proto-speed-src.jar"/>
<classpathentry kind="lib" path="bazel-bin/gapis/service/libservice_proto-speed.jar" sourcepath="bazel-genfiles/gapis/service/service_proto-speed-src.jar"/>
<classpathentry kind="lib" path="bazel-bin/gapis/stringtable/libstringtable_proto-speed.jar" sourcepath="bazel-genfiles/gapis/stringtable/stringtable_proto-speed-src.jar"/>
<classpathentry kind="lib" path="bazel-bin/gapis/vertex/libvertex_proto-speed.jar" sourcepath="bazel-genfiles/gapis/vertex/vertex_proto-speed-src.jar"/>
<classpathentry kind="lib" path="bazel-bin/gapic/src/main/libservice_grpc.jar" sourcepath="bazel-bin/gapic/src/main/service_grpc-src-src.jar"/>
<classpathentry kind="output" path="gapic/bin"/>
</classpath>
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -3,9 +3,11 @@
/.idea
/.vscode
/bazel-*
/fused

# Single files
/.gapid-config
/.bazelrc

# General patterns
*.gfxtrace
Expand Down
90 changes: 0 additions & 90 deletions .gitmodules

This file was deleted.

File renamed without changes.
75 changes: 75 additions & 0 deletions BUILD.bazel
@@ -0,0 +1,75 @@
# Copyright (C) 2018 Google Inc.
#
# Licensed 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("@io_bazel_rules_go//go:def.bzl", "go_prefix")
load("@bazel_gazelle//:def.bzl", "gazelle")
load("//tools/build:rules.bzl", "copy", "copy_to")

go_prefix("github.com/google/gapid")

gazelle(
name = "gazelle",
mode = "fix",
)

# Rules to build the expected installed structure for running
filegroup(
name = "pkg",
srcs = [
":pkg-root",
":pkg-lib",
":pkg-strings",
],
)

copy_to(
name = "pkg-root",
srcs = [
"//cmd/gapid",
"//cmd/gapir/cc:gapir",
"//cmd/gapis",
"//cmd/gapit",
"//gapidapk/android/apk:arm64-v8a.apk",
"//gapidapk/android/apk:armeabi-v7a.apk",
"//gapidapk/android/apk:x86.apk",
"//tools/build:build.properties",
],
rename = {
"armeabi-v7a.apk": "gapid-armeabi.apk",
"arm64-v8a.apk": "gapid-aarch64.apk",
"x86.apk": "gapid-x86.apk",
},
to = "pkg",
)

copy_to(
name = "pkg-lib",
srcs = [
"//core/vulkan/vk_virtual_swapchain/cc:json",
"//core/vulkan/vk_virtual_swapchain/cc:libVkLayer_VirtualSwapchain",
"//gapic:gapic_deploy.jar",
"//gapii/cc:libgapii",
"//gapii/vulkan/vk_graphics_spy/cc:json",
],
rename = {
"gapic_deploy.jar": "gapic.jar",
},
to = "pkg/lib",
)

copy_to(
name = "pkg-strings",
srcs = ["//gapis/messages:stb"],
to = "pkg/strings",
)
113 changes: 0 additions & 113 deletions CMakeLists.txt

This file was deleted.

0 comments on commit 68f6128

Please sign in to comment.