Skip to content

Commit c5268fd

Browse files
Merge pull request #35 from Neko-Box-Coder/SeparateGitLocalSource
Separating git and local source options
2 parents 7d80db8 + 6bc7cab commit c5268fd

20 files changed

+350
-744
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@
2525
[submodule "CppOverride"]
2626
path = External/CppOverride
2727
url = https://github.com/Neko-Box-Coder/CppOverride.git
28+
[submodule "variant"]
29+
path = External/variant
30+
url = https://github.com/mpark/variant.git

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/External/rapidyaml")
6969
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/External/filesystem")
7070
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/External/System2")
7171
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/External/dylib")
72+
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/External/variant")
7273

7374
# Copy cfgpath.h
7475
configure_file( "${CMAKE_CURRENT_LIST_DIR}/External/cfgpath/cfgpath.h"
@@ -124,6 +125,8 @@ add_library(runcpp2 STATIC
124125
"${CMAKE_CURRENT_LIST_DIR}/Src/runcpp2/Data/DependencyInfo.cpp"
125126
"${CMAKE_CURRENT_LIST_DIR}/Src/runcpp2/Data/DependencyLinkProperty.cpp"
126127
"${CMAKE_CURRENT_LIST_DIR}/Src/runcpp2/Data/DependencySource.cpp"
128+
"${CMAKE_CURRENT_LIST_DIR}/Src/runcpp2/Data/GitSource.cpp"
129+
"${CMAKE_CURRENT_LIST_DIR}/Src/runcpp2/Data/LocalSource.cpp"
127130
"${CMAKE_CURRENT_LIST_DIR}/Src/runcpp2/Data/FileProperties.cpp"
128131
"${CMAKE_CURRENT_LIST_DIR}/Src/runcpp2/Data/FlagsOverrideInfo.cpp"
129132
"${CMAKE_CURRENT_LIST_DIR}/Src/runcpp2/Data/ProfilesCommands.cpp"
@@ -150,7 +153,7 @@ add_library(runcpp2 STATIC
150153

151154
target_include_directories(runcpp2 PUBLIC "${CMAKE_CURRENT_LIST_DIR}/Include")
152155
target_link_libraries(runcpp2 PRIVATE ssLogger System2 CppOverride dylib)
153-
target_link_libraries(runcpp2 PUBLIC ghc_filesystem ryml::ryml)
156+
target_link_libraries(runcpp2 PUBLIC ghc_filesystem ryml::ryml mpark_variant)
154157

155158
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
156159
set(STANDARD_COMPILE_FLAGS "/utf-8;/W1;/DGHC_WIN_DISABLE_WSTRING_STORAGE_TYPE=1")

DefaultYAMLs/DefaultScriptInfo.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,16 @@ Dependencies:
124124
# The source of getting the dependency (Git, Local)
125125
Source:
126126
# Git: Dependency exists in a git server, and needs to be cloned
127-
# Local: Dependency exists in local filesystem
128-
Type: Git
127+
Git:
128+
# Git repository URL
129+
URL: "https://github.com/MyUser/MyLibrary.git"
129130

130-
# Git URL for Git type, path to a directory for Local type
131-
Value: "https://github.com/MyUser/MyLibrary.git"
132-
131+
# Local: Dependency exists in local filesystem
132+
# Local:
133+
# # Path to the library directory
134+
# Path: "./libs/LocalLibrary"
135+
136+
133137
# Library Type (Static, Object, Shared, Header)
134138
LibraryType: Static
135139

DefaultYAMLs/OldScriptInfoSchema.json

Lines changed: 0 additions & 192 deletions
This file was deleted.

0 commit comments

Comments
 (0)