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

added paxo-debug-bridge get version #1

Open
wants to merge 176 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
c65b7d8
fix, old paxo
paxo-rch Sep 1, 2023
e72c4d3
Merge branch 'main' of github.com:paxo-phone/paxos_8
paxo-rch Sep 1, 2023
bbbeb23
lua available on paxo
paxo-rch Sep 1, 2023
b8f0337
new file system
paxo-rch Sep 2, 2023
5a179fe
Added compatibility for macOS emulator build.
b5i Sep 2, 2023
eff6e24
Merge pull request #16 from b5i/main
b5i Sep 2, 2023
aa87e51
lua apps support
paxo-rch Sep 2, 2023
2c50303
Merge branch 'main' of github.com:paxo-phone/paxos_8
paxo-rch Sep 2, 2023
be08abc
Fixed listdir bugged listing and added a "onlyDirs" option.
b5i Sep 2, 2023
9e7bb3a
Merge pull request #17 from b5i/main
paxo-rch Sep 2, 2023
8e96b95
lua error managing added, lua function for files added
paxo-rch Sep 3, 2023
fddb80b
Added git-standard LICENSE file
DarkBrines Sep 3, 2023
3e68a33
Delete old LICENCE.md
DarkBrines Sep 3, 2023
7bac8ee
📝 Add license on README
Ahhj93 Sep 3, 2023
c9a97c9
adding web for paxo
paxo-rch Sep 4, 2023
b65da3b
Merge branch 'main' of github.com:paxo-phone/paxos_8
paxo-rch Sep 4, 2023
f2ba14f
http added to emu
paxo-rch Sep 5, 2023
f295716
Fixed PaxOS8 not building on macOS
b5i Sep 5, 2023
aa9174b
clean gui
paxo-rch Sep 6, 2023
7a0ce01
Merge branch 'main' of github.com:paxo-phone/paxos_8
paxo-rch Sep 6, 2023
e245a77
Merge pull request #18 from Ahhj93/patch-1
paxo-project Sep 7, 2023
6ba7b4c
Refactoring lua support for apps: making things idiomatic
HmzLakh Sep 12, 2023
bbe60eb
Merge pull request #19 from HmzLakh/main
paxo-project Sep 12, 2023
93a787b
add label editable mode
paxo-rch Sep 13, 2023
f24b898
Merge branch 'main' of github.com:paxo-phone/paxos_8
paxo-rch Sep 13, 2023
53637f3
Refactoring lua support for apps: Removing dynamic_cast due to incomp…
HmzLakh Sep 15, 2023
1765c3f
Merge branch 'paxo-phone:main' into main
HmzLakh Sep 15, 2023
ec276d4
Merge pull request #20 from HmzLakh/main
paxo-project Sep 15, 2023
218b240
fix esp compilation with dynamic casts
paxo-rch Sep 15, 2023
dbb0095
add canvas into lua
paxo-rch Sep 16, 2023
17591bc
add neper
paxo-rch Sep 27, 2023
fb73807
neper
paxo-rch Sep 27, 2023
d56633c
optimizing scroll
paxo-rch Sep 27, 2023
ddd46f4
add web to neper
paxo-rch Sep 28, 2023
10dc245
Added troubleshoot for another SDL issue with cmake
b5i Oct 15, 2023
6cee685
Merge pull request #21 from b5i/main
b5i Oct 15, 2023
9eb8bc1
change uint to uint16_t
RaphaelGoutmann Oct 22, 2023
581a8f6
add Neper as submodule
RaphaelGoutmann Oct 22, 2023
9b6cdef
remove obsolete macro
RaphaelGoutmann Oct 22, 2023
1e8b029
improve .gitignore
RaphaelGoutmann Oct 24, 2023
36d1c04
add chat messages to gitignore
RaphaelGoutmann Oct 24, 2023
5f0c61d
work on the tree structure in progress... && remove some warnings (in…
RaphaelGoutmann Oct 24, 2023
dba1fcf
✨ Improve README;md ✨
RaphaelGoutmann Oct 24, 2023
f86343a
🎨 Add a dynamic contributors list to README.md 🎨
RaphaelGoutmann Oct 24, 2023
5ed10dc
Make the .gitignore more structured
RaphaelGoutmann Oct 24, 2023
c924d86
Add nlohmann json library
RaphaelGoutmann Oct 25, 2023
d8c1ed8
remove Neper submodule
RaphaelGoutmann Oct 25, 2023
4b355d3
make Neper a submodule
RaphaelGoutmann Oct 25, 2023
ed12484
make everything up to date
RaphaelGoutmann Oct 25, 2023
6add9ad
add PaxoINI as submodule
RaphaelGoutmann Oct 28, 2023
eaa12e9
➕ Add readline function to the filesystem ➕
RaphaelGoutmann Oct 28, 2023
2a8cb6d
Improve filesystem
RaphaelGoutmann Oct 28, 2023
b37476d
split memory.hpp into filetree.hpp and filestream.hpp && change LFile…
RaphaelGoutmann Oct 29, 2023
48b309c
I'd forgotten about macros...
RaphaelGoutmann Oct 29, 2023
49ea1ce
add cmake_clean.sh file && add documentation to filesystem && remove …
RaphaelGoutmann Oct 29, 2023
d24b687
update ini submodule
RaphaelGoutmann Oct 29, 2023
e43d02e
just .ino
paxo-rch Oct 30, 2023
087644c
update submodule
RaphaelGoutmann Oct 30, 2023
631dbdb
Make it working again
RaphaelGoutmann Nov 1, 2023
4bccc80
Improve build system
RaphaelGoutmann Nov 1, 2023
a870e8d
remove include cpp
paxo-rch Nov 12, 2023
335255f
Fixed duplicate errors
b5i Nov 12, 2023
df1c2cc
Fixed duplicate errors 2
b5i Nov 12, 2023
2b9c984
Merge pull request #24 from b5i/main
b5i Nov 12, 2023
6420ade
Ca compile! enfin (note a moi meme, ne plus jamais include des cpp)
paxo-rch Nov 12, 2023
1b113be
arduino compile sans l'inclusion des cpp
paxo-rch Nov 17, 2023
dd03be1
clean set_arduino.sh file
RaphaelGoutmann Nov 18, 2023
7bd78c6
Supprime les panneaux publicitaires
RaphaelGoutmann Nov 18, 2023
d5d388a
Review light
RaphaelGoutmann Nov 18, 2023
7222908
Suppression d'un fichier obsolète
RaphaelGoutmann Nov 18, 2023
088a2d4
review interface.hpp
RaphaelGoutmann Nov 18, 2023
d2964b9
correction après raphael...
paxo-rch Nov 18, 2023
e09c1c6
label 2
paxo-rch Nov 19, 2023
3548c5a
Amélioration du système de compilation
RaphaelGoutmann Nov 22, 2023
3ae334b
Nettoyage des restes
RaphaelGoutmann Nov 22, 2023
e904bc2
Réinstallation du submodule ini (1/2)
RaphaelGoutmann Nov 22, 2023
1c24c77
Réinstallation de PaxoINI (2/2)
RaphaelGoutmann Nov 22, 2023
ab5fe20
Réinstallation ini (1/2)
RaphaelGoutmann Nov 22, 2023
1de104b
Réinstallation ini (2/2)
RaphaelGoutmann Nov 22, 2023
b7dbb96
Suppresion includes.h && Modification des macros multiplateforme
RaphaelGoutmann Nov 22, 2023
2cb4215
fix bug
RaphaelGoutmann Nov 23, 2023
93d3692
fix: lib std::filesystem introuvable
mendoc Nov 23, 2023
32d1724
Merge pull request #26 from mendoc/fix-init-build
RaphaelGoutmann Nov 24, 2023
53eddc2
Fixed macOS compilation and troubleshooting.
b5i Nov 24, 2023
fd7246d
Merge pull request #27 from b5i/main
RaphaelGoutmann Nov 25, 2023
c18b71a
Déplacement des scripts dans un dossier dédié && Modification de la r…
RaphaelGoutmann Nov 25, 2023
947b699
Nettoyage de interface/home_button
RaphaelGoutmann Nov 25, 2023
a87e3b7
Nettoyage interface/screen
RaphaelGoutmann Nov 25, 2023
d7b6a26
fix
paxo-rch Nov 25, 2023
4ace757
fix crash
paxo-rch Nov 25, 2023
dd97ddb
Merge branch 'main' of github.com:paxo-phone/PaxOS-8
paxo-rch Nov 25, 2023
fbc70c8
last edit to label2 before replacing label
paxo-rch Nov 25, 2023
611e86a
label fully implemented
paxo-rch Nov 25, 2023
47d41d5
Merge branch 'main' of https://github.com/paxo-phone/PaxOS-8
RaphaelGoutmann Nov 25, 2023
ad6b7e2
Adapte le shell aux derniers commit
RaphaelGoutmann Nov 26, 2023
31ca3fc
lua
paxo-rch Nov 26, 2023
eb804e7
Merge branch 'main' of github.com:paxo-phone/PaxOS-8
paxo-rch Nov 26, 2023
8a1748b
lua update
paxo-rch Nov 26, 2023
03db79b
Amélioration de l'interface console
RaphaelGoutmann Nov 26, 2023
1e52607
Désactivation du shell (inutilisé)
RaphaelGoutmann Nov 28, 2023
ffe8e20
Renommage de FileStream.cpp en filestream.cpp
RaphaelGoutmann Nov 28, 2023
80f2805
Modification interface/home_button (non définitif)
RaphaelGoutmann Nov 28, 2023
501a970
correction de la logique du bouton
paxo-rch Nov 28, 2023
49f8192
fix
paxo-rch Nov 28, 2023
cd58dae
clavier automatique opérationnel
paxo-rch Nov 28, 2023
3ee1adf
mise a jour de lua
paxo-rch Nov 28, 2023
5fb3b24
ajout des images a lua
paxo-rch Nov 29, 2023
cfde577
Nettoyage du module network && modification du nom de la target de Pa…
RaphaelGoutmann Nov 30, 2023
ba911bf
Suppression de la touch_zone && renommage ddes fichiers touch_manager…
RaphaelGoutmann Nov 30, 2023
92f8f27
mise a jour lua et fichiers
paxo-rch Dec 1, 2023
b2aeaca
Merge branch 'main' of github.com:paxo-phone/PaxOS-8
paxo-rch Dec 1, 2023
0d82d17
mise a jour lua
paxo-rch Dec 1, 2023
cad39d5
mise a jour lua
paxo-rch Dec 2, 2023
d848ff6
Suppression des thèmes dans le module widget
RaphaelGoutmann Dec 4, 2023
2925f14
répartition des éléments de color.hpp dans les bons fichiers
RaphaelGoutmann Dec 4, 2023
c016d6b
Correction d'un include
RaphaelGoutmann Dec 4, 2023
d9880be
Simulation du boutton home
devalnor Dec 6, 2023
5463c96
Merge pull request #28 from devalnor/home_button
RaphaelGoutmann Dec 7, 2023
62408bf
Update README.md
Charlito33 Dec 7, 2023
0874799
Updated CMakeLists.txt
Charlito33 Dec 7, 2023
52ee461
Added curl for Windows
Charlito33 Dec 7, 2023
e47f1aa
Updated .gitignore
Charlito33 Dec 7, 2023
388dfa9
Updated CMakeLists.txt
Charlito33 Dec 7, 2023
e705ff7
typedef error fix
Charlito33 Dec 7, 2023
5dab006
uint fix for Windows
Charlito33 Dec 7, 2023
4c72350
localtime_r fix for Windows
Charlito33 Dec 7, 2023
bb5a430
Added dynamic-libs directory for Windows
Charlito33 Dec 7, 2023
242308f
Disabled callbacks for Windows (issue)
Charlito33 Dec 7, 2023
b230b05
Added Windows DLLs
Charlito33 Dec 7, 2023
8a628a0
Updated Windows instructions
Charlito33 Dec 7, 2023
e6b1813
Merge branch 'main' into windows
Charlito33 Dec 7, 2023
47442a7
Create cmake-single-platform.yml
Charlito33 Dec 7, 2023
9c8a60a
Update cmake-single-platform.yml
Charlito33 Dec 7, 2023
27e22eb
Delete .github/workflows/cmake-single-platform.yml
Charlito33 Dec 7, 2023
933dc2f
Merge pull request #29 from paxo-phone/windows
Charlito33 Dec 9, 2023
0ae7878
nettoyage de widgets
paxo-rch Dec 9, 2023
3c75f18
Update README.md
DarkBrines Dec 9, 2023
f66482c
Suppression du label2 (ancienne version obsolète)
RaphaelGoutmann Dec 9, 2023
fc046ae
Create FUNDING.yml
DarkBrines Dec 9, 2023
a44dd99
Merge pull request #30 from paxo-phone/Fixed-typo-on-README.md
Charlito33 Dec 9, 2023
6fcdc5d
Suppression de la fonction obsolète free dans les widgets
RaphaelGoutmann Dec 10, 2023
9ca0f7a
Déplacement de la fonction d'initialisation de l'écran
RaphaelGoutmann Dec 10, 2023
f2bc00b
Renommage de gui.cpp en gui_class.cpp && Déplacement de gui_class dan…
RaphaelGoutmann Dec 10, 2023
3def984
Suppression de l'"inercie" (avec une jolie faute)
RaphaelGoutmann Dec 11, 2023
547fbc3
Suppression de la variable gloable reload_after_unlock (obsolète)
RaphaelGoutmann Dec 11, 2023
9eea02d
Suppression de commentaires (obsolètes)
RaphaelGoutmann Dec 11, 2023
8f7b586
boost de la vitesse de rendu
paxo-rch Dec 12, 2023
5239b6e
boost de la vitesse de rendu
paxo-rch Dec 12, 2023
6005db0
boost de la vitesse de rendu (fix)
paxo-rch Dec 12, 2023
df0b4d0
Avancement
kstzl Dec 16, 2023
047e256
Meilleur gestion du mode veille
RaphaelGoutmann Dec 16, 2023
43f3080
avancement
kstzl Dec 16, 2023
af79eba
Remplacement par CApp
kstzl Dec 16, 2023
59875b9
wip
kstzl Dec 16, 2023
e2ff6bb
Merge branch 'main' into bug/corrections-non-intrusives
kstzl Dec 16, 2023
5502db0
correction conflit
kstzl Dec 16, 2023
0207c88
Correction du cmake et correction de la faute d'ortographe
kstzl Dec 16, 2023
948b3a5
Corrections LUA: label et chrono
kstzl Dec 16, 2023
6cfcc05
Merge pull request #34 from paxo-phone/fundings
paxo-rch Dec 17, 2023
b753b53
Correction de compatibilité des dll de WinMG dll pour les Devs Windows
RedAlex Dec 17, 2023
d13d695
Mise a jours Readme & ajout d'un lien pour MinGW & Visual Studio Code
RedAlex Dec 17, 2023
f2d9a3a
Merge pull request #36 from RedAlex/main
RaphaelGoutmann Dec 17, 2023
f2df677
Merge branch 'main' into bug/corrections-non-intrusives
RaphaelGoutmann Dec 17, 2023
4a5a4b4
Merge pull request #35 from kstzl/bug/corrections-non-intrusives
RaphaelGoutmann Dec 17, 2023
9d15d4f
Delete resources/libcurl-x64.dll
RaphaelGoutmann Dec 17, 2023
e4263eb
Correction du nouveau système d'apps
RaphaelGoutmann Dec 17, 2023
3377779
correction bugs mineurs
paxo-rch Dec 17, 2023
63cd307
correction bugs mineurs
paxo-rch Dec 17, 2023
a779cc8
Résolution du conflit avec le mot clé main
RaphaelGoutmann Dec 17, 2023
058d654
nouveau système lua
paxo-rch Dec 27, 2023
40a2f39
LUA 2!
paxo-rch Jan 10, 2024
de33f46
fix lua listDir
paxo-rch Jan 14, 2024
028621c
ajout de math a lua
paxo-rch Jan 14, 2024
a76a1d7
ajout de la lib table a lua
paxo-rch Jan 14, 2024
1a0dc87
ajout de button pour lua
paxo-rch Jan 14, 2024
ffa7fcb
ajout de button pour lua
paxo-rch Jan 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: https://tribee.fr/cagnotte/01H7DFJGAQHNWSH4SC77A9X2ZV/participation
29 changes: 23 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
# Visual Studio Code
.vscode
*/DS_Store
paxos_8.code-workspace

# Build
build/
a.out
/CMakeFiles/
PaxOS8
PaxOS
Arduino/

# MacOS
.DS_Store
PaxOS8.xcodeproj

# CMake
/CMakeFiles/
CMakeCache.txt
cmake_install.cmake
Makefile
CMakeLists.txt
CMakeScripts
Debug
PaxOS8.xcodeproj
build
cmake-build-debug-mingw

# JetBrain
.idea

# PaxOS
storage/apps/message/chats/
storage/apps/contact/contact.txt

# Other
Debug
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "src/widgets/gui/iframe/Neper"]
path = src/widgets/gui/iframe/Neper
url = https://github.com/paxo-phone/Neper-Light.git
[submodule "src/lib/ini"]
path = src/lib/ini
url = https://github.com/paxo-phone/PaxoINI.git
117 changes: 71 additions & 46 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,77 +1,102 @@
cmake_minimum_required(VERSION 3.18)
project(PaxOS8)
project(PaxOS)

if(WIN32)
message("> Building for Windows")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")

if (WIN32)
message("> Building for Windows")
elseif(APPLE)
message("> Building for macOS")
else()
if(__APPLE__)
message("> Building for macOS")
else()
message("> Building for Linux")
endif()
message("> Building for Linux")
endif()

set(CMAKE_CXX_STANDARD 17)

if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc") # Enable exceptions for CLang
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc") # Enable exceptions for CLang
endif()

file(GLOB src RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} CONFIGURE_DEPENDS
*.cpp

interface/LovyanGFX/LGFX_SDL.cpp

interface/LovyanGFX/lgfx/Fonts/efont/*.c
interface/LovyanGFX/lgfx/Fonts/IPA/*.c
interface/LovyanGFX/lgfx/utility/*.c
interface/LovyanGFX/lgfx/v1/*.cpp
interface/LovyanGFX/lgfx/v1/misc/*.cpp
interface/LovyanGFX/lgfx/v1/panel/Panel_Device.cpp
interface/LovyanGFX/lgfx/v1/panel/Panel_FrameBufferBase.cpp
interface/LovyanGFX/lgfx/v1/platforms/sdl/*.cpp
interface/LovyanGFX/LGFX_SDL.cpp
src/*.c

file(GLOB_RECURSE src RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} CONFIGURE_DEPENDS
"./src/*.cpp"
"./src/*.c"
)

file(GLOB_RECURSE ignored_src RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} CONFIGURE_DEPENDS
"./src/interface/LovyanGFX/*.cpp"
"./src/interface/LovyanGFX/*.c"
"./src/lib/curl-8.5.0_1-win64-mingw/*.cpp"
"./src/lib/curl-8.5.0_1-win64-mingw/*.c"
)

list(REMOVE_ITEM src ${ignored_src})

file(GLOB gfx_src RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} CONFIGURE_DEPENDS
"./src/interface/LovyanGFX/LGFX_SDL.cpp"
"./src/interface/LovyanGFX/lgfx/Fonts/efont/*.c"
"./src/interface/LovyanGFX/lgfx/Fonts/IPA/*.c"
"./src/interface/LovyanGFX/lgfx/utility/*.c"
"./src/interface/LovyanGFX/lgfx/v1/*.cpp"
"./src/interface/LovyanGFX/lgfx/v1/misc/*.cpp"
"./src/interface/LovyanGFX/lgfx/v1/panel/Panel_Device.cpp"
"./src/interface/LovyanGFX/lgfx/v1/panel/Panel_FrameBufferBase.cpp"
"./src/interface/LovyanGFX/lgfx/v1/platforms/sdl/*.cpp"
"./src/interface/LovyanGFX/LGFX_SDL.cpp"
)

add_definitions(-DLGFX_SDL)

add_executable(PaxOS8 ${src})
add_executable(PaxOS ${src} ${gfx_src})

target_include_directories(PaxOS8 PUBLIC "interface/LovyanGFX")
target_include_directories(PaxOS PUBLIC "src/interface/LovyanGFX")

IF (CMAKE_SYSTEM_NAME MATCHES "Linux")
find_package(SDL2 REQUIRED SDL2)
find_package(SDL2 REQUIRED SDL2)
find_package(CURL REQUIRED) # Add this line to find cURL

include_directories(${SDL2_INCLUDE_DIRS})
target_link_libraries(PaxOS8 PUBLIC -lpthread ${SDL2_LIBRARIES})
include_directories(${SDL2_INCLUDE_DIRS})
target_link_libraries(PaxOS PUBLIC -lpthread ${SDL2_LIBRARIES} CURL::libcurl -lstdc++fs) # Link to cURL

target_link_libraries(PaxOS8 PRIVATE m)
target_link_libraries(PaxOS PRIVATE m)
ELSEIF (CMAKE_SYSTEM_NAME MATCHES "Windows")
target_include_directories(PaxOS8 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/lib/SDL2-2.28.2/include")

target_link_libraries(PaxOS8 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/lib/SDL2-2.28.2/lib/x64/SDL2main.lib")
target_link_libraries(PaxOS8 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/lib/SDL2-2.28.2/lib/x64/SDL2.lib")
target_include_directories(PaxOS PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src/lib/SDL2-2.28.2/include")
target_include_directories(PaxOS PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src/lib/curl-8.5.0_1-win64-mingw/include")

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/Zc:__cplusplus>")
target_link_libraries(PaxOS PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src/lib/SDL2-2.28.2/lib/x64/SDL2main.lib")
target_link_libraries(PaxOS PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src/lib/SDL2-2.28.2/lib/x64/SDL2.lib")
target_link_libraries(PaxOS PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src/lib/curl-8.5.0_1-win64-mingw/lib/libcurl.dll.a")
ELSEIF (CMAKE_SYSTEM_NAME MATCHES "Darwin")
find_package(SDL2 REQUIRED COMPONENTS SDL2)
find_package(SDL2 REQUIRED COMPONENTS SDL2)

find_package(CURL REQUIRED) # Add this line to find cURL

target_link_libraries(PaxOS8 PRIVATE SDL2::SDL2)
target_link_libraries(PaxOS PUBLIC -lpthread ${SDL2_LIBRARIES} CURL::libcurl) # Link to cURL

target_link_libraries(PaxOS8 PRIVATE m)
target_link_libraries(PaxOS PRIVATE SDL2::SDL2)

target_link_libraries(PaxOS PRIVATE m)
ENDIF ()

target_compile_features(PaxOS8 PUBLIC cxx_std_17)
target_compile_features(PaxOS PUBLIC cxx_std_17)

if(WIN32)
include_directories(lib/dirent-1.23.2/include)
endif()
# COPIER STORAGE/
file(COPY ressources/storage DESTINATION ${CMAKE_CURRENT_BINARY_DIR})

# Méthode pour copier un DLL de ressources/ vers l'endroit où se trouve PaxOS.exe
macro(copy_dll DLLName)
file(COPY ressources/dll/${DLLName} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
endmacro()

file(COPY resources/storage DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
copy_dll(libcurl-x64.dll)
copy_dll(libgcc_s_seh-1.dll)
copy_dll(libstdc++-6.dll)
copy_dll(libwinpthread-1.dll)

if (WIN32)
file(COPY resources/SDL2.dll DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
include_directories(src/lib/dirent-1.23.2/include)
copy_dll(SDL2.dll)
file(GLOB WIN_DLLS resources/*.dll)
message(">> Copying DLLs: ${WIN_DLLS}")
file(COPY ${WIN_DLLS} DESTINATION /)
endif()
Loading