aaara si, makes, cmakes i gitignores com toca

This commit is contained in:
2025-03-24 12:15:59 +01:00
parent e1485435e7
commit 152554c39b
4 changed files with 73 additions and 2 deletions

71
.gitignore vendored
View File

@@ -1,3 +1,4 @@
demo1_pixels_wave
build/
# ---> C++
@@ -34,3 +35,73 @@ build/
*.out
*.app
# ---> macOS
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
# ---> Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp
# Windows shortcuts
*.lnk
# ---> Linux
*~
# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*
# KDE directory preferences
.directory
# Linux trash folder which might appear on any partition or disk
.Trash-*
# .nfs files are created when an open file is removed but is still being accessed
.nfs*

View File

@@ -17,7 +17,7 @@ if (NOT SDL3_FOUND)
endif()
# Archivos fuente
file(GLOB SOURCE_FILES *.cpp)
file(GLOB SOURCE_FILES source/*.cpp)
# Comprobar si se encontraron archivos fuente
if(NOT SOURCE_FILES)

View File

@@ -1,5 +1,5 @@
# Variables comunes
SOURCE := demo1_pixels_wave.cpp
SOURCE := source/*.cpp
EXECUTABLE_NAME := demo1_pixels_wave
CXXFLAGS := -std=c++20 -Wall -Os -ffunction-sections -fdata-sections # Opciones comunes de compilación
LDFLAGS := -lSDL3 # Flags de enlace comunes