Skip to content

Commit 417dea7

Browse files
committed
added correct build file
1 parent 07e8806 commit 417dea7

1 file changed

Lines changed: 76 additions & 0 deletions

File tree

BUILD

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2025 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Apache License Version 2.0 which is available at
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# SPDX-License-Identifier: Apache-2.0
12+
# *******************************************************************************
13+
load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
14+
load("@score_cr_checker//:cr_checker.bzl", "copyright_checker")
15+
load("@score_dash_license_checker//:dash.bzl", "dash_license_checker")
16+
load("@score_format_checker//:macros.bzl", "use_format_targets")
17+
load("@score_python_basics//:defs.bzl", "score_virtualenv")
18+
load("@score_starpls_lsp//:starpls.bzl", "setup_starpls")
19+
load("//:project_config.bzl", "PROJECT_CONFIG")
20+
21+
setup_starpls(
22+
name = "starpls_server",
23+
visibility = ["//visibility:public"],
24+
)
25+
26+
score_virtualenv(
27+
name = "ide_support",
28+
reqs = [],
29+
venv_name = ".venv",
30+
)
31+
32+
copyright_checker(
33+
name = "copyright",
34+
srcs = [
35+
"src",
36+
"tests",
37+
"//:BUILD",
38+
"//:MODULE.bazel",
39+
],
40+
config = "@score_cr_checker//resources:config",
41+
template = "@score_cr_checker//resources:templates",
42+
visibility = ["//visibility:public"],
43+
)
44+
45+
dash_license_checker(
46+
src = "//examples:cargo_lock",
47+
file_type = "", # let it auto-detect based on project_config
48+
project_config = PROJECT_CONFIG,
49+
visibility = ["//visibility:public"],
50+
)
51+
52+
# Add target for formatting checks
53+
use_format_targets()
54+
55+
# Prod/Dev config
56+
57+
# Prod and dev
58+
59+
string_flag(
60+
name = "build_type",
61+
build_setting_default = "dev",
62+
)
63+
64+
config_setting(
65+
name = "dev",
66+
flag_values = {
67+
":build_type": "dev",
68+
},
69+
)
70+
71+
config_setting(
72+
name = "prod",
73+
flag_values = {
74+
":build_type": "prod",
75+
},
76+
)

0 commit comments

Comments
 (0)