Skip to content

Commit

Permalink
Add bazel build on Linux initially (#509)
Browse files Browse the repository at this point in the history
Co-authored-by: edwardewang <[email protected]>
  • Loading branch information
Edward-Elric233 and edwardewang authored Apr 1, 2024
1 parent 90e3b2f commit 4d4f8c2
Show file tree
Hide file tree
Showing 5 changed files with 722 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
build --copt=-std=c99
build --cxxopt=-std=c++11
build --define BUILD_SHARED=ON
build --define BUILD_STATIC=ON
build --define BUILD_EXAMPLES=ON
build --define BUILD_UNITTEST=OFF
build --define WITH_PROTOCOL=OFF
build --define WITH_EVPP=ON
build --define WITH_HTTP=ON
build --define WITH_HTTP_SERVER=ON
build --define WITH_HTTP_CLIENT=ON
build --define WITH_MQTT=OFF
build --define ENABLE_UDS=OFF
build --define USE_MULTIMAP=OFF
build --define WITH_CURL=OFF
build --define WITH_NGHTTP2=OFF
build --define WITH_OPENSSL=OFF
build --define WITH_GNUTLS=OFF
build --define WITH_MBEDTLS=OFF
build --define WITH_KCP=OFF
build --define WITH_WEPOLL=ON
build --define ENABLE_WINDUMP=OFF
build --define BUILD_FOR_MT=OFF

5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Bazel
bazel-*
MODULE.bazel
MODULE.bazel.lock

# Compiled Object files
*.o
*.lo
Expand Down
Loading

0 comments on commit 4d4f8c2

Please sign in to comment.