Skip to content

Commit 47079df

Browse files
committed
feat: Modern constructor for shared_ptr
Signed-off-by: Yash Pandey (YP) <[email protected]> feat: Added logger and function definitions Signed-off-by: Yash Pandey (YP) <[email protected]> fix: Fixed build errors on unix Signed-off-by: Yash Pandey (YP) <[email protected]> fix: Logger path Signed-off-by: Yash Pandey (YP) <[email protected]> fix: include error Signed-off-by: Yash Pandey (YP) <[email protected]> feat: Added dummy definitions Signed-off-by: Yash Pandey (YP) <[email protected]> fix: Fixed errors fix: final fix for UNIX systems Signed-off-by: EmperorYP7 <[email protected]>
1 parent e8f4e17 commit 47079df

18 files changed

+378
-252
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ if(NOT DEFINED CMAKE_OBJECT_PATH_MAX)
3939
set(CMAKE_OBJECT_PATH_MAX 300)
4040
endif()
4141

42-
set(CMAKE_CXX_STANDARD 11)
42+
# Setting to C++ standard to C++17
43+
set(CMAKE_CXX_STANDARD 17)
4344

4445
add_subdirectory(casbin)

casbin/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
33
FILE(GLOB_RECURSE SC_FILES "*.cpp" "*.h")
44

55
add_library(casbin ${SC_FILES})
6+
7+
set_target_properties(casbin PROPERTIES PREFIX "")
8+
set_target_properties(casbin PROPERTIES SUFFIX ".o")

casbin/casbin.vcxproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@
181181
<ClCompile Include="ip_parser\parser\parseIPv6.cpp" />
182182
<ClCompile Include="ip_parser\parser\Print.cpp" />
183183
<ClCompile Include="ip_parser\parser\xtoi.cpp" />
184+
<ClCompile Include="logger.cpp" />
184185
<ClCompile Include="management_api.cpp" />
185186
<ClCompile Include="model\assertion.cpp" />
186187
<ClCompile Include="model\function.cpp" />
@@ -263,6 +264,9 @@
263264
<ClInclude Include="ip_parser\parser\pch.h" />
264265
<ClInclude Include="ip_parser\parser\Print.h" />
265266
<ClInclude Include="ip_parser\parser\xtoi.h" />
267+
<ClInclude Include="log\default_logger.h" />
268+
<ClInclude Include="log\Logger.h" />
269+
<ClInclude Include="log\log_util.h" />
266270
<ClInclude Include="model.h" />
267271
<ClInclude Include="model\assertion.h" />
268272
<ClInclude Include="model\function.h" />
@@ -298,4 +302,4 @@
298302
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
299303
<ImportGroup Label="ExtensionTargets">
300304
</ImportGroup>
301-
</Project>
305+
</Project>

casbin/casbin.vcxproj.filters

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@
261261
<ClCompile Include="enforcer_synced.cpp">
262262
<Filter>Source Files</Filter>
263263
</ClCompile>
264+
<ClCompile Include="logger.cpp">
265+
<Filter>Source Files</Filter>
266+
</ClCompile>
264267
</ItemGroup>
265268
<ItemGroup>
266269
<ClInclude Include="config\config_interface.h">
@@ -482,8 +485,17 @@
482485
<ClInclude Include="util\ticker.h">
483486
<Filter>Header Files</Filter>
484487
</ClInclude>
488+
<ClInclude Include="log\default_logger.h">
489+
<Filter>Header Files</Filter>
490+
</ClInclude>
491+
<ClInclude Include="log\log_util.h">
492+
<Filter>Header Files</Filter>
493+
</ClInclude>
494+
<ClInclude Include="log\Logger.h">
495+
<Filter>Header Files</Filter>
496+
</ClInclude>
485497
</ItemGroup>
486498
<ItemGroup>
487499
<None Include=".clang-format" />
488500
</ItemGroup>
489-
</Project>
501+
</Project>

0 commit comments

Comments
 (0)