C#: Remove unneeded source folder from Bazel build scripts

This commit is contained in:
Tamas Vajk
2024-06-07 15:23:45 +02:00
parent 0ab67d1790
commit beffc2a49d
19 changed files with 4 additions and 23 deletions

View File

@@ -7,7 +7,6 @@ codeql_xunit_test(
name = "Semmle.Autobuild.CSharp.Tests", name = "Semmle.Autobuild.CSharp.Tests",
srcs = glob([ srcs = glob([
"*.cs", "*.cs",
"Properties/*.cs",
]), ]),
deps = [ deps = [
"//csharp/autobuilder/Semmle.Autobuild.CSharp:bin/Semmle.Autobuild.CSharp", "//csharp/autobuilder/Semmle.Autobuild.CSharp:bin/Semmle.Autobuild.CSharp",

View File

@@ -7,7 +7,6 @@ codeql_csharp_binary(
name = "Semmle.Autobuild.CSharp", name = "Semmle.Autobuild.CSharp",
srcs = glob([ srcs = glob([
"*.cs", "*.cs",
"Properties/*.cs",
]), ]),
visibility = ["//csharp:__subpackages__"], visibility = ["//csharp:__subpackages__"],
deps = [ deps = [

View File

@@ -7,7 +7,6 @@ codeql_xunit_test(
name = "Semmle.Autobuild.Cpp.Tests", name = "Semmle.Autobuild.Cpp.Tests",
srcs = glob([ srcs = glob([
"*.cs", "*.cs",
"Properties/*.cs",
]), ]),
deps = [ deps = [
"//csharp/autobuilder/Semmle.Autobuild.Cpp:bin/Semmle.Autobuild.Cpp", "//csharp/autobuilder/Semmle.Autobuild.Cpp:bin/Semmle.Autobuild.Cpp",

View File

@@ -7,7 +7,6 @@ codeql_csharp_binary(
name = "Semmle.Autobuild.Cpp", name = "Semmle.Autobuild.Cpp",
srcs = glob([ srcs = glob([
"*.cs", "*.cs",
"Properties/*.cs",
]), ]),
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
deps = [ deps = [

View File

@@ -7,7 +7,6 @@ codeql_csharp_library(
name = "Semmle.Autobuild.Shared", name = "Semmle.Autobuild.Shared",
srcs = glob([ srcs = glob([
"*.cs", "*.cs",
"Properties/*.cs",
]), ]),
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
deps = [ deps = [

View File

@@ -7,7 +7,6 @@ codeql_csharp_library(
name = "Semmle.Extraction.CSharp.DependencyFetching", name = "Semmle.Extraction.CSharp.DependencyFetching",
srcs = glob([ srcs = glob([
"*.cs", "*.cs",
"Properties/*.cs",
"SourceGenerators/**/*.cs", "SourceGenerators/**/*.cs",
]), ]),
allow_unsafe_blocks = True, allow_unsafe_blocks = True,

View File

@@ -1,4 +0,0 @@
using System.Runtime.CompilerServices;
// Expose internals for testing purposes.
[assembly: InternalsVisibleTo("Semmle.Extraction.Tests")]

View File

@@ -6,6 +6,8 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Semmle.Util\Semmle.Util.csproj" /> <ProjectReference Include="..\Semmle.Util\Semmle.Util.csproj" />
<ProjectReference Include="..\Semmle.Extraction\Semmle.Extraction.csproj" /> <ProjectReference Include="..\Semmle.Extraction\Semmle.Extraction.csproj" />
<InternalsVisibleTo Include="Semmle.Extraction.Tests" />
</ItemGroup> </ItemGroup>
<Import Project="..\..\.paket\Paket.Restore.targets" /> <Import Project="..\..\.paket\Paket.Restore.targets" />
</Project> </Project>

View File

@@ -7,7 +7,6 @@ codeql_csharp_binary(
name = "Semmle.Extraction.CSharp.DependencyStubGenerator", name = "Semmle.Extraction.CSharp.DependencyStubGenerator",
srcs = glob([ srcs = glob([
"*.cs", "*.cs",
"Properties/*.cs",
]), ]),
visibility = ["//csharp:__pkg__"], visibility = ["//csharp:__pkg__"],
deps = [ deps = [

View File

@@ -7,7 +7,6 @@ codeql_csharp_binary(
name = "Semmle.Extraction.CSharp.Driver", name = "Semmle.Extraction.CSharp.Driver",
srcs = glob([ srcs = glob([
"*.cs", "*.cs",
"Properties/*.cs",
]), ]),
visibility = ["//csharp:__pkg__"], visibility = ["//csharp:__pkg__"],
deps = [ deps = [

View File

@@ -7,7 +7,6 @@ codeql_csharp_binary(
name = "Semmle.Extraction.CSharp.Standalone", name = "Semmle.Extraction.CSharp.Standalone",
srcs = glob([ srcs = glob([
"*.cs", "*.cs",
"Properties/*.cs",
]), ]),
visibility = ["//csharp:__subpackages__"], visibility = ["//csharp:__subpackages__"],
deps = [ deps = [

View File

@@ -7,7 +7,6 @@ codeql_csharp_library(
name = "Semmle.Extraction.CSharp.StubGenerator", name = "Semmle.Extraction.CSharp.StubGenerator",
srcs = glob([ srcs = glob([
"*.cs", "*.cs",
"Properties/*.cs",
]), ]),
internals_visible_to = ["Semmle.Extraction.Tests"], internals_visible_to = ["Semmle.Extraction.Tests"],
visibility = ["//csharp:__subpackages__"], visibility = ["//csharp:__subpackages__"],

View File

@@ -1,4 +0,0 @@
using System.Runtime.CompilerServices;
// Expose internals for testing purposes.
[assembly: InternalsVisibleTo("Semmle.Extraction.Tests")]

View File

@@ -4,6 +4,8 @@
<ProjectReference Include="..\Semmle.Util\Semmle.Util.csproj" /> <ProjectReference Include="..\Semmle.Util\Semmle.Util.csproj" />
<ProjectReference Include="..\Semmle.Extraction.CSharp.DependencyFetching\Semmle.Extraction.CSharp.DependencyFetching.csproj" /> <ProjectReference Include="..\Semmle.Extraction.CSharp.DependencyFetching\Semmle.Extraction.CSharp.DependencyFetching.csproj" />
<ProjectReference Include="..\Semmle.Extraction.CSharp.Util\Semmle.Extraction.CSharp.Util.csproj" /> <ProjectReference Include="..\Semmle.Extraction.CSharp.Util\Semmle.Extraction.CSharp.Util.csproj" />
<InternalsVisibleTo Include="Semmle.Extraction.Tests" />
</ItemGroup> </ItemGroup>
<Import Project="..\..\.paket\Paket.Restore.targets" /> <Import Project="..\..\.paket\Paket.Restore.targets" />
</Project> </Project>

View File

@@ -6,7 +6,6 @@ load(
codeql_csharp_library( codeql_csharp_library(
name = "Semmle.Extraction.CSharp.Util", name = "Semmle.Extraction.CSharp.Util",
srcs = glob([ srcs = glob([
"Properties/*.cs",
"*.cs", "*.cs",
]), ]),
visibility = ["//csharp:__subpackages__"], visibility = ["//csharp:__subpackages__"],

View File

@@ -7,7 +7,6 @@ codeql_xunit_test(
name = "Semmle.Extraction.Tests", name = "Semmle.Extraction.Tests",
srcs = glob([ srcs = glob([
"*.cs", "*.cs",
"Properties/*.cs",
]), ]),
deps = [ deps = [
"//csharp/extractor/Semmle.Extraction", "//csharp/extractor/Semmle.Extraction",

View File

@@ -15,7 +15,6 @@ codeql_csharp_library(
srcs = glob([ srcs = glob([
"Entities/**/*.cs", "Entities/**/*.cs",
"Extractor/**/*.cs", "Extractor/**/*.cs",
"Properties/*.cs",
"*.cs", "*.cs",
]), ]),
# enable via -c dbg on the bazel command line/in .bazelrc.local # enable via -c dbg on the bazel command line/in .bazelrc.local

View File

@@ -7,7 +7,6 @@ codeql_xunit_test(
name = "Semmle.Util.Tests", name = "Semmle.Util.Tests",
srcs = glob([ srcs = glob([
"*.cs", "*.cs",
"Properties/*.cs",
]), ]),
deps = [ deps = [
"//csharp/extractor/Semmle.Util", "//csharp/extractor/Semmle.Util",

View File

@@ -9,7 +9,6 @@ codeql_csharp_library(
"Logging/**/*.cs", "Logging/**/*.cs",
"ToolStatusPage/**/*.cs", "ToolStatusPage/**/*.cs",
"*.cs", "*.cs",
"Properties/*.cs",
]), ]),
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
deps = [ deps = [