Skip to content

Commit

Permalink
Link FTXUI into X - seems to work - though need to fix the global -DU…
Browse files Browse the repository at this point in the history
…NICODE / -D_UNICODE later in FTXUI
  • Loading branch information
dstanev-atvi committed Jan 6, 2024
1 parent 2fcab46 commit ae7511b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ build:windows --copt="-D_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS"
# Use this define, instead of disabling 4996 - /wd4996
build:windows --copt="-D_WINSOCK_DEPRECATED_NO_WARNINGS"

# fix ftxui later
build:windows --copt="-DUNICODE"
build:windows --copt="-D_UNICODE"

# --copt="/wd4996"

# --config=asan : Address Sanitizer.
Expand Down
13 changes: 13 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,17 @@ filegroup(name="files",srcs=glob(["**/*"]),visibility=["//visibility:public"])
"""
)

http_archive(
name = "ftxui",
# integrity = ""
strip_prefix = "FTXUI-d5d9e587bf638699d56a1b6d89635d7e3e8002ee",
integrity = "sha256-JOyhFUi5TxI97IRCIbjROH4XAHzcPH6hcmi2rZSH7p0=",
type = "zip",
urls = [
"https://codeload.github.com/malkia/FTXUI/zip/d5d9e587bf638699d56a1b6d89635d7e3e8002ee"
]
)

# https://dl.grafana.com/oss/release/grafana-10.2.3.windows-amd64.zip

# Use clang-cl for compilation. The alternative form is now in the .bazelrc, this is kept here just for reference
Expand All @@ -92,3 +103,5 @@ filegroup(name="files",srcs=glob(["**/*"]),visibility=["//visibility:public"])
# register_toolchains(
# "@local_config_cc//:cc-toolchain-x64_windows-clang-cl",
# )


2 changes: 2 additions & 0 deletions x/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,7 @@ cc_test(
"//exporters/otlp:otlp_grpc_metric_exporter",
"//sdk/src/trace",
"//sdk/src/metrics",

"@ftxui//src:component",
]),
)

0 comments on commit ae7511b

Please sign in to comment.