summaryrefslogtreecommitdiff
path: root/app/BUILD.bazel
blob: cb510af9046ab22a5422b114ae22ad93c8d1a4af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright 2009 The RE2 Authors.  All Rights Reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

# Bazel (http://bazel.build/) BUILD file for RE2 app.

cc_binary(
    name = "_re2.js",
    testonly = 1,
    srcs = ["_re2.cc"],
    linkopts = [
        "--bind",
        "-sENVIRONMENT=web",
        "-sSINGLE_FILE=1",
        "-sMODULARIZE=1",
        "-sEXPORT_ES6=1",
        "-sEXPORT_NAME=loadModule",
        "-sUSE_PTHREADS=0",
    ],
    deps = [
        "//:re2",
        "//:testing",
    ],
)