Skip to content

Commit

Permalink
[Update}: Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
harshfeudal committed Sep 13, 2023
1 parent 8e6520f commit e9b1da7
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yaml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Harshie CMake Build
name: Harshie CI Build Test

on: [ push, pull_request ]

Expand Down
17 changes: 17 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
#
# Copyright (C) 2023 harshfeudal
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.
#

cmake_minimum_required(VERSION 3.15)

set(PROJECT_NAME "Harshie")
Expand Down
5 changes: 5 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
* along with this program. If not, see https://www.gnu.org/licenses/.
*/

#pragma warning(disable: 4251)
#pragma warning(disable: 6385)
#pragma warning(disable: 6285)
#pragma warning(disable: 4700)

#include <dpp/dpp.h>
#include <spdlog/spdlog.h>

Expand Down
2 changes: 0 additions & 2 deletions start-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ cd build

# Run CMake to generate build files
cmake ..

# Compile with 8 parallel jobs
make -j8

# Check if the compilation was successful, then run
Expand Down
24 changes: 23 additions & 1 deletion start-premake.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
@echo off
setlocal

set "open_sln=false"

rem Check for command-line arguments: `--open:true` to open Visual Studio directly
for %%i in (%*) do (
if /I "%%i"=="--open:true" (
set "open_sln=true"
)
)

rem Check if premake5.exe exists in the current directory
if not exist premake5.exe (
echo Error: premake5.exe not found in the current directory.
Expand All @@ -10,4 +19,17 @@ if not exist premake5.exe (
rem Run Premake to generate Visual Studio 2022 project files
premake5 vs2022

endlocal
rem Check if the .sln file was generated successfully
if exist "Harshie.sln" (
echo Visual Studio solution file generated successfully.

rem If the "--open:true" argument was provided, open the generated solution file
if %open_sln%==true (
start "Visual Studio Solution" "Harshie.sln"
)
) else (
echo Error: Visual Studio solution file not generated.
exit /b 1
)

endlocal

0 comments on commit e9b1da7

Please sign in to comment.