-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
complete core program implementation
- Loading branch information
Showing
11 changed files
with
1,394 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Submodule 307lib
updated
13 files
+1 −1 | 307modules | |
+25 −0 | TermAPI/examples/color-sync_example.cpp | |
+29 −17 | TermAPI/include/EnableANSI.hpp | |
+171 −0 | TermAPI/include/color-sync.hpp | |
+14 −14 | TermAPI/include/palette.hpp | |
+38 −8 | TermAPI/include/setcolor.hpp | |
+25 −12 | TermAPI/src/EnableANSI.cpp | |
+1 −1 | filelib/include/fileo.hpp | |
+28 −0 | filelib/include/xfile.hpp | |
+18 −80 | shared/include/make_exception.hpp | |
+4 −4 | shared/include/math.hpp | |
+24 −5 | shared/include/sysarch.h | |
+37 −0 | shared/include/vstring.hpp |
This file contains 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 @@ | ||
# ckconv/ | ||
cmake_minimum_required (VERSION 3.20) | ||
|
||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/307lib/307modules") | ||
|
||
include(VersionTag) | ||
set(ENV{ckconv_VERSION} "0.0.0") | ||
|
||
project("ckconv" VERSION "${ckconv_VERSION}" LANGUAGES CXX) | ||
|
||
add_subdirectory("307lib") | ||
add_subdirectory("ckconv") |
This file contains 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,101 @@ | ||
{ | ||
"version": 3, | ||
"configurePresets": [ | ||
{ | ||
"name": "windows-base", | ||
"hidden": true, | ||
"generator": "Ninja", | ||
"binaryDir": "${sourceDir}/out/build/${presetName}", | ||
"installDir": "${sourceDir}/out/install/${presetName}", | ||
"cacheVariables": { | ||
"CMAKE_C_COMPILER": "cl.exe", | ||
"CMAKE_CXX_COMPILER": "cl.exe" | ||
}, | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Windows" | ||
} | ||
}, | ||
{ | ||
"name": "x64-debug", | ||
"displayName": "x64 Debug", | ||
"inherits": "windows-base", | ||
"architecture": { | ||
"value": "x64", | ||
"strategy": "external" | ||
}, | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
} | ||
}, | ||
{ | ||
"name": "x64-release", | ||
"displayName": "x64 Release", | ||
"inherits": "x64-debug", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Release" | ||
} | ||
}, | ||
{ | ||
"name": "x86-debug", | ||
"displayName": "x86 Debug", | ||
"inherits": "windows-base", | ||
"architecture": { | ||
"value": "x86", | ||
"strategy": "external" | ||
}, | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
} | ||
}, | ||
{ | ||
"name": "x86-release", | ||
"displayName": "x86 Release", | ||
"inherits": "x86-debug", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Release" | ||
} | ||
}, | ||
{ | ||
"name": "linux-debug", | ||
"displayName": "Linux Debug", | ||
"generator": "Ninja", | ||
"binaryDir": "${sourceDir}/out/build/${presetName}", | ||
"installDir": "${sourceDir}/out/install/${presetName}", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
}, | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Linux" | ||
}, | ||
"vendor": { | ||
"microsoft.com/VisualStudioRemoteSettings/CMake/1.0": { | ||
"sourceDir": "$env{HOME}/.vs/$ms{projectDirName}" | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "macos-debug", | ||
"displayName": "macOS Debug", | ||
"generator": "Ninja", | ||
"binaryDir": "${sourceDir}/out/build/${presetName}", | ||
"installDir": "${sourceDir}/out/install/${presetName}", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
}, | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Darwin" | ||
}, | ||
"vendor": { | ||
"microsoft.com/VisualStudioRemoteSettings/CMake/1.0": { | ||
"sourceDir": "$env{HOME}/.vs/$ms{projectDirName}" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains 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,49 @@ | ||
# ckconv/ckconv | ||
cmake_minimum_required (VERSION 3.20) | ||
|
||
file(GLOB HEADERS | ||
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
CONFIGURE_DEPENDS | ||
"*.h*" | ||
) | ||
file(GLOB SRCS | ||
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" | ||
CONFIGURE_DEPENDS | ||
"*.c*" | ||
) | ||
|
||
file(MAKE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/rc") | ||
|
||
MAKE_VERSION_HEADER("${CMAKE_CURRENT_SOURCE_DIR}/rc/version.h" "ckconv" "${ckconv_VERSION}") | ||
|
||
if (WIN32) | ||
set(ckconv_rc "${CMAKE_CURRENT_SOURCE_DIR}/rc/ckconv.rc") | ||
include(ResourceMaker) | ||
|
||
MAKE_STRINGRC_ICON(ckconv_stringrc_icon "${CMAKE_CURRENT_SOURCE_DIR}/rc/ckconv.ico") | ||
MAKE_STRINGRC_VERSIONINFO(ckconv_stringrc_versioninfo | ||
"${ckconv_VERSION}" | ||
"GNU General Public License v3 @ radj307" | ||
"radj307" | ||
"ckconv" | ||
"Commandline unit converter for Bethesda games." | ||
) | ||
|
||
MAKE_RESOURCE("${ckconv_rc}" "${ckconv_stringrc_icon}" "${ckconv_stringrc_versioninfo}") | ||
endif() | ||
|
||
add_executable (ckconv "${SRCS}" "${ckconv_rc}" "rc/version.h") | ||
|
||
set_property(TARGET ckconv PROPERTY CXX_STANDARD 20) | ||
set_property(TARGET ckconv PROPERTY CXX_STANDARD_REQUIRED ON) | ||
|
||
if (MSVC) | ||
target_compile_options(ckconv PRIVATE "/Zc:__cplusplus" "/Zc:preprocessor") | ||
endif() | ||
|
||
target_sources(ckconv PRIVATE "${HEADERS}") | ||
|
||
target_link_libraries(ckconv PRIVATE TermAPI optlib filelib) | ||
|
||
include(PackageInstaller) | ||
INSTALL_EXECUTABLE(ckconv "${CMAKE_INSTALL_PREFIX}") |
Oops, something went wrong.