-
Notifications
You must be signed in to change notification settings - Fork 0
Update and Clean Up Project Files #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6a0d79c
Restore ZAC_SV C++17 std::string compatibility
WJiangzhi cef1d01
添加NDK,Make,VS模块支持,将单头文件版本废弃,修改CMakeLists.txt,修改错误的unsigned char判断
WJiangzhi c2d2775
删除非跨平台示例
WJiangzhi a9e6e26
fix
WJiangzhi ba47797
fix
WJiangzhi e4bb9b5
fix
WJiangzhi 037bb41
Fix library build target and safe char/index conversions
WJiangzhi 6ea4b6e
Move trie index conversion helper into Node
WJiangzhi 3e156bc
Merge pull request #12 from CZF-H/codex/fix-security-vulnerabilities-…
WJiangzhi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| cmake-build*/ | ||
| **/cmake-build*/ | ||
| /.idea | ||
| !/.idea/dictionaries | ||
| /.idea/ | ||
| !/.idea/dictionaries | ||
|
|
||
| **/localtest*/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # ZACLib/Android.mk | ||
| LOCAL_PATH := $(call my-dir) | ||
|
|
||
| include $(CLEAR_VARS) | ||
|
|
||
| LOCAL_MODULE := ZACLib | ||
| LOCAL_SRC_FILES := ZACLib.cpp | ||
| LOCAL_C_INCLUDES := $(LOCAL_PATH) | ||
|
|
||
| LOCAL_CPPFLAGS := -std=c++11 # or higher | ||
|
|
||
| include $(BUILD_STATIC_LIBRARY) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,8 @@ | ||
|
|
||
| set(CMAKE_CXX_STANDARD 11) # or higher | ||
|
|
||
| add_library(ZACLib STATIC "ZACLib.cpp") # if use source | ||
| # ZACLib/CMakeLists.txt | ||
| add_library(ZACLib STATIC "ZACLib.cpp") | ||
| target_include_directories(ZACLib PUBLIC ".") | ||
| set_target_properties(ZACLib PROPERTIES | ||
| CXX_STANDARD 11 | ||
| CXX_STANDARD 11 # or higher | ||
| CXX_STANDARD_REQUIRED YES | ||
| CXX_EXTENSIONS NO | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # ZACLib/Makefile | ||
| CXX := g++ | ||
| CXXFLAGS := -I./ \ | ||
| -std=c++11 # or higher | ||
|
|
||
| SRC := ZACLib.cpp | ||
| OBJ := $(SRC:.cpp=.o) | ||
| TARGET := libZACLib.a | ||
|
|
||
| all: $(TARGET) | ||
|
|
||
| $(TARGET): $(OBJ) | ||
| ar rcs $@ $(OBJ) | ||
|
|
||
| %.o: %.cpp | ||
| $(CXX) $(CXXFLAGS) -c $< -o $@ | ||
|
|
||
| clean: | ||
| rm -f $(OBJ) $(TARGET) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <!-- ZACLib/ZACLib.vcxproj --> | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
| <PropertyGroup> | ||
| <ConfigurationType>StaticLibrary</ConfigurationType> | ||
| <CharacterSet>Unicode</CharacterSet> | ||
| <CppStandard>c++11</CppStandard> <!-- or higher --> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <ClCompile Include="ZACLib.cpp" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <ClInclude Include=".\**\*.h*" /> | ||
| </ItemGroup> | ||
| </Project> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using a broad wildcard
.\**\*.h*can be fragile and might unintentionally include temporary or unrelated header files. It's generally safer and more explicit to list the header files directly.