-
Notifications
You must be signed in to change notification settings - Fork 21
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
ISSUE #85 : Base64-Encoder Executable #93
Open
nav-mohan
wants to merge
14
commits into
openkim:devel
Choose a base branch
from
nav-mohan:devel
base: devel
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
31d0d4f
Implement kim_base64_encode
ipcamit c3ba3f4
Build kim_base64_encode
nav-mohan 59d0100
Modified item-macros.cmake to remove the XXD fallback. It is incompat…
ipcamit 0596fa3
Relocate KIM_Base64Encode from utils/ to cpp/src/
nav-mohan 8c01bb3
Work In Progress - Port code to C++98
nav-mohan 6f0876d
CLI for kim-base64-encode
nav-mohan cd8aeeb
Complete commit for C++98 compatible KIM-API large file
ipcamit 1ddb0ed
Working version, modified to remove some compile time warnings + Cmak…
ipcamit 27200f5
Ryan's work on refactoring base64 additions
ellio167 746172b
Trigger build-workflow manually
nav-mohan b2b91fe
Explicit installation of fortran for Windows-MinGW
nav-mohan e7bfdba
debian upgrade libasan6 to libasan8
nav-mohan 78c1bfa
opensuse upgrade libasan6 to libasan8
nav-mohan d9e7f52
Upgrade MacOS from 10,11 to 13,14
nav-mohan 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 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 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 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 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 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,18 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
project(base64-encode VERSION 1.0) | ||
|
||
set(CMAKE_CXX_STANDARD 98) | ||
set(CMAKE_CXX_STANDARD_REQUIRED True) | ||
add_compile_options("-std=c++98") # Sometime the CMAKE_CXX_STANDARD does not work | ||
|
||
set(SOURCE_FILES base64-encode.cpp) | ||
|
||
# Add executable target | ||
add_executable(${PROJECT_NAME} ${SOURCE_FILES}) | ||
|
||
set_target_properties(${PROJECT_NAME} PROPERTIES | ||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/utils | ||
) | ||
|
||
install(TARGETS ${PROJECT_NAME} DESTINATION bin) |
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,23 @@ | ||
Boost Software License - Version 1.0 - August 17th, 2003 | ||
|
||
Permission is hereby granted, free of charge, to any person or organization | ||
obtaining a copy of the software and accompanying documentation covered by | ||
this license (the "Software") to use, reproduce, display, distribute, | ||
execute, and transmit the Software, and to prepare derivative works of the | ||
Software, and to permit third-parties to whom the Software is furnished to | ||
do so, all subject to the following: | ||
|
||
The copyright notices in the Software and this entire statement, including | ||
the above license grant, this restriction and the following disclaimer, | ||
must be included in all copies of the Software, in whole or in part, and | ||
all derivative works of the Software, unless such copies or derivative | ||
works are solely in the form of machine-executable object code generated by | ||
a source language processor. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT | ||
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE | ||
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
DEALINGS IN THE SOFTWARE |
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,30 @@ | ||
Base64 Encode | ||
============= | ||
|
||
`base64-encode` is a simple xxd replacement to convert files | ||
into embeddable C++ source code. Instead of using binary array | ||
it used base64 strings, which makes it much more performant | ||
for large files. Currently only -i option is supported for | ||
compatibility. More options to be released in future. C++ 98 compliant. | ||
|
||
### Usage | ||
```bash | ||
base64-encode -i file.in out.cpp | ||
``` | ||
``` | ||
Options: | ||
-h Help | ||
-v Show version information | ||
-i Convert input file to C++ source | ||
``` | ||
|
||
### Build | ||
```bash | ||
mkdir build && cd build | ||
cmake .. | ||
make | ||
sudo make install | ||
``` | ||
|
||
### License | ||
Boost Software license |
Oops, something went wrong.
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.