Skip to content

Commit

Permalink
chore: Disable targets for cross-compilation.
Browse files Browse the repository at this point in the history
This way we can do bazel build //... when cross-compiling.
  • Loading branch information
iphydf committed Dec 24, 2023
1 parent 7d9fcc4 commit 0c9b7b3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ cc_library(
":res",
":translations",
],
tags = ["no-cross"],
visibility = ["//qtox:__subpackages__"],
alwayslink = True,
)

cc_binary(
name = "qtox",
tags = ["no-cross"],
visibility = ["//qtox:__subpackages__"],
deps = ["//qtox/src:main"],
)
4 changes: 4 additions & 0 deletions audio/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,21 @@ qt_moc(
],
hdrs = glob(["**/*.h"]),
mocopts = ["-Iqtox/audio/include"],
tags = ["no-cross"],
deps = ["//qtox/util"],
)

qt_rcc(
name = "audio_res",
srcs = ["resources/audio_res.qrc"],
data = glob(["resources/*.pcm"]),
tags = ["no-cross"],
)

cc_library(
name = "audio_res_lib",
srcs = [":audio_res"],
tags = ["no-cross"],
visibility = ["//qtox:__subpackages__"],
alwayslink = True,
)
Expand Down Expand Up @@ -52,6 +55,7 @@ cc_library(
"UPDATE_CHECK_ENABLED",
],
includes = ["include"],
tags = ["no-cross"],
visibility = ["//qtox:__subpackages__"],
deps = [
":audio_res_lib",
Expand Down
4 changes: 4 additions & 0 deletions src/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ qt_moc(
"-Iqtox",
"-Iqtox/util/include",
],
tags = ["no-cross"],
deps = [
"//qtox/util",
"@qt//:qt_widgets",
Expand All @@ -126,6 +127,7 @@ qt_moc(
qt_uic(
name = "src_ui",
srcs = glob(["**/*.ui"]),
tags = ["no-cross"],
)

objc_library(
Expand Down Expand Up @@ -220,6 +222,7 @@ cc_library(
"//tools/config:osx": ["-framework IOKit"],
"//tools/config:windows": [],
}),
tags = ["no-cross"],
visibility = ["//qtox:__subpackages__"],
deps = [
"//c-toxcore",
Expand Down Expand Up @@ -265,6 +268,7 @@ cc_library(
"//tools/config:osx": [],
"//tools/config:windows": [],
}),
tags = ["no-cross"],
visibility = ["//qtox:__subpackages__"],
deps = [
":src",
Expand Down
2 changes: 2 additions & 0 deletions test/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ qt_moc(
"-Iqtox",
"-Iqtox/util/include",
],
tags = ["no-cross"],
deps = [
"//qtox/src",
"//qtox/util",
Expand All @@ -25,6 +26,7 @@ cc_library(
"//tools/config:windows": [],
}),
includes = ["mock/include"],
tags = ["no-cross"],
deps = ["//qtox/src"],
)

Expand Down
1 change: 1 addition & 0 deletions util/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ cc_library(
"UPDATE_CHECK_ENABLED",
],
includes = ["include"],
tags = ["no-cross"],
visibility = ["//qtox:__subpackages__"],
deps = [
"//c-toxcore",
Expand Down

0 comments on commit 0c9b7b3

Please sign in to comment.