Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Switching build system to bazel #607

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build --strategy=Closure=worker
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* text=auto whitespace=blank-at-eol,tab-in-indent,trailing-space,tabwidth=2

*.bat text eol=crlf
*.sh text eol=lf
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ private/
node_modules/
node_modules/**/build/
node_modules/.bin/
yarn.lock

# coverage/etc
scratch/
Expand All @@ -67,6 +68,8 @@ build-gen/
build-bin/
build-test/

bazel-*

# ==============================================================================
# WTF
# ==============================================================================
Expand Down
15 changes: 0 additions & 15 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
[submodule "third_party/closure-compiler"]
path = third_party/closure-compiler
url = https://github.com/benvanik/google-closure-compiler-bin.git
[submodule "third_party/closure-templates"]
path = third_party/closure-templates
url = https://github.com/benvanik/google-closure-templates-bin.git
[submodule "third_party/closure-stylesheets"]
path = third_party/closure-stylesheets
url = https://github.com/benvanik/google-closure-stylesheets-bin.git
[submodule "third_party/anvil-build"]
path = third_party/anvil-build
url = https://github.com/google/anvil-build.git
[submodule "third_party/closure-linter"]
path = third_party/closure-linter
url = https://github.com/knutwalker/google-closure-linter.git
[submodule "third_party/normalize.css"]
path = third_party/normalize.css
url = https://github.com/necolas/normalize.css.git
[submodule "third_party/closure-library"]
path = third_party/closure-library
url = https://github.com/google/closure-library.git
[submodule "third_party/firefox-addon-sdk"]
path = third_party/firefox-addon-sdk
url = https://github.com/mozilla/addon-sdk.git
59 changes: 59 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Description:
# Javascript and C++ instrumentation-based profiling tools.
# https://github.com/google/tracing-framework

package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # BSD 3-clause

exports_files(["LICENSE"])

# Restricts most packages to use by WTF only.
# Selective rules we wish to support to external users are set to
# //visibility:public.
package_group(
name = "internal",
packages = [
"//addons/...",
"//app/...",
"//assets/...",
"//bin/...",
"//bindings/...",
"//extensions/...",
"//externs/...",
"//src/...",
"//test/...",
"//third_party/...",
],
)

# Exported for nodejs rules.
filegroup(
name = "node_modules",
srcs = glob(["node_modules/**/*"]),
)

# Debug; all runtime checks, verbose logging, and debug symbols.
#
# $ bazel build -c dbg ...
config_setting(
name = "dbg",
values = {"compilation_mode": "dbg"},
)

# Fast build; some runtime checks, detailed logging, and debug symbols.
# This is the default and will likely be what you want to use unless profiling.
#
# $ bazel build -c fastbuild ...
config_setting(
name = "fastbuild",
values = {"compilation_mode": "fastbuild"},
)

# Optimized; no runtime checks and terse logging.
#
# $ bazel build -c opt ...
config_setting(
name = "opt",
values = {"compilation_mode": "opt"},
)
Loading