Skip to content
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

Sujal-ux commit and add functionality #77

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions sujal-ux/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CXX := g++
CXX_FLAGS := -std=c++17 -ggdb
BIN := bin
SRC := src
INCLUDE :=
LIB := lib
LIBRARIES :=
EXECUTABLE := main
all: $(BIN)/$(EXECUTABLE)
run: clean all
@echo "run called"
./$(BIN)/$(EXECUTABLE)
$(BIN)/$(EXECUTABLE): $(SRC)/*.cpp
$(CXX) $(CXX_FLAGS) -I$(INCLUDE) -L$(LIB) $^ -o $ ~/imperium/$(BIN)/$(EXECUTABLE) $(LIBRARIES) -lssl -lcrypto -lstdc++fs

clean:
@echo "clean called"
@rm -rf -d ~/imperium/$(BIN)/*
1 change: 1 addition & 0 deletions sujal-ux/goorm.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"storage":"container","type":"cpp","detailedtype":"c","author":"68843492_lqd7c_github","name":"10DaysofCode","description":"Project","date":"2020/10/3 5:8:22","plugins":{"goorm.plugin.cpp":[{"plugin.cpp.compiler_type":"gcc","plugin.cpp.main":"main","plugin.cpp.source_path":"src/","plugin.cpp.makefile_path":"make","plugin.cpp.build_path":"bin/","plugin.cpp.build_option":"-g","plugin.cpp.makefile_option":"false","plugin.cpp.run_option":""}]},"is_user_plugin":false,"author_email":"[email protected]","author_name":"sujal-ux","ignore_patterns":[],"project_domain":[],"visibility":1}
16 changes: 16 additions & 0 deletions sujal-ux/scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
# sudo apt-get update
# sudo apt-get install openssl -y
# sudo apt-get install libssl-dev -y
mkdir -p ~/imperium/bin
cp imperium.sh ~/imperium
cd ..
make
cd ~/imperium/bin || echo "error"
chmod +x main
cd ..
if grep -q "source $PWD/imperium.sh" "$PWD/../.bashrc" ; then
echo 'already installed bash source';
else
echo "source $PWD/imperium.sh" >> ~/.bashrc;
fi
7 changes: 7 additions & 0 deletions sujal-ux/scripts/imperium.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function imperium(){
DIR=$PWD
export dir=$DIR
cd ~/imperium/bin || echo "Error"
./main "$@"
cd "$DIR" || echo "Error"
}
Loading