Skip to content

Commit

Permalink
deploy: 尝试发布
Browse files Browse the repository at this point in the history
  • Loading branch information
Confuced committed Apr 3, 2024
1 parent df07cfd commit 7c356f1
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
Language: Cpp
BasedOnStyle: Google
...
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ bazel-out
bazel-testlogs
bazel-zalgo
bazel-zpplib

5 changes: 3 additions & 2 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**"
"${workspaceFolder}/**",
"${workspaceFolder}/bazel-zpplib/external/com_google_absl"
],
"defines": [],
"macFrameworkPath": [
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c14",
"cStandard": "c11",
"cppStandard": "c++14",
"intelliSenseMode": "macos-clang-x64"
}
Expand Down
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.associations": {
"vector": "cpp"
}
}
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,19 @@
进入这个项目目录,运行 ` bazel run //:hello_world `


# 使用本项目

在你的WORKSPACE文件中加入以下内容:
```bazel
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "com_google_absl",
urls = ["https://github.com/abseil/abseil-cpp/archive/98eb410c93ad059f9bba1bf43f5bb916fc92a5ea.zip"],
strip_prefix = "abseil-cpp-98eb410c93ad059f9bba1bf43f5bb916fc92a5ea",
)
```

df07cfd7df8dd9063cf523d0a85cf4d125b92fd4

# 维护
2 changes: 2 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
workspace(name = "person_notfresh_zpplib")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
Expand Down
13 changes: 13 additions & 0 deletions hello.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/**
* @file hello.cpp
*
* 参考 https://abseil.io/docs/cpp/quickstart
*
* @author zhengxu
* @brief
* @version 0.1
* @date 2024-04-03
*
* @copyright Copyright (c) 2024
*
*/
#include <iostream>
#include <string>
#include <vector>
Expand Down

0 comments on commit 7c356f1

Please sign in to comment.