-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
46 additions
and
17 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,41 @@ | ||
@echo off | ||
setlocal enabledelayedexpansion | ||
|
||
REM Set up paths for directories | ||
rem Set up paths for directories | ||
set SRC_DIR=src\cpp | ||
set BIN_DIR=src\yacht | ||
|
||
REM Create bin directory if it doesn't exist | ||
rem Create bin directory if it doesn't exist | ||
if not exist %BIN_DIR% ( | ||
mkdir %BIN_DIR% | ||
) | ||
|
||
REM Compile the main.cpp file using g++ from MinGW or another suitable compiler | ||
g++ -std=c++17 -Wsign-compare -Wall -O3 -o %BIN_DIR%\run_yacht_train_core.exe %SRC_DIR%\main.cpp | ||
rem Compile source files into object files | ||
set OBJ_FILES= | ||
for %%f in (%SRC_DIR%\*.cpp) do ( | ||
g++ -std=c++17 -Wall -O3 -Wsign-compare -c %%f -o %%~nf.o | ||
if %errorlevel% neq 0 ( | ||
echo Compilation failed for %%f! | ||
exit /b %errorlevel% | ||
) | ||
set OBJ_FILES=!OBJ_FILES! %%~nf.o | ||
) | ||
|
||
rem Create yacht_train_core.exe | ||
g++ %OBJ_FILES% -o %BIN_DIR%\yacht_train_core.exe | ||
if %errorlevel% neq 0 ( | ||
echo Linking failed for yacht_train_core.exe! | ||
exit /b %errorlevel% | ||
) | ||
|
||
REM Check if compilation succeeded | ||
rem Create yacht_run_compute_similarity.exe | ||
g++ %OBJ_FILES% -o %BIN_DIR%\yacht_run_compute_similarity.exe | ||
if %errorlevel% neq 0 ( | ||
echo Compilation failed! | ||
echo Linking failed for yacht_run_compute_similarity.exe! | ||
exit /b %errorlevel% | ||
) | ||
|
||
echo Compilation successful. Executable created at %BIN_DIR%\run_yacht_train_core.exe | ||
rem Clean up object files | ||
del *.o | ||
|
||
echo Compilation successful. Executables created in %BIN_DIR%. |
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 |
---|---|---|
|
@@ -20,7 +20,6 @@ dependencies: | |
- pytaxonkit | ||
- requests | ||
- pip | ||
- sourmash_plugin_branchwater | ||
- pip: | ||
- openpyxl | ||
- ruff |
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