Compare commits
3 Commits
c25abec6ba
...
02bab6ed87
| Author | SHA1 | Date | |
|---|---|---|---|
| 02bab6ed87 | |||
| ea8478275b | |||
| 29177bc94d |
10
.vscode/c_cpp_properties.json
vendored
Normal file
10
.vscode/c_cpp_properties.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "JMinos",
|
||||||
|
"cppStandard": "c++20",
|
||||||
|
"compileCommands": ".vscode/compile_commands.json"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"version": 4
|
||||||
|
}
|
||||||
@@ -4,13 +4,6 @@
|
|||||||
|
|
||||||
You need to install xmake and have a compiler with c++20 compatibility
|
You need to install xmake and have a compiler with c++20 compatibility
|
||||||
|
|
||||||
### Install the necessary dependencies
|
|
||||||
|
|
||||||
``xrepo install sfml``
|
|
||||||
|
|
||||||
Package location (on Linux) for IntelliSense:
|
|
||||||
``home/<user>/.xmake/packages/**``
|
|
||||||
|
|
||||||
### Build the project
|
### Build the project
|
||||||
|
|
||||||
``cd jminos``
|
``cd jminos``
|
||||||
|
|||||||
21
xmake.lua
21
xmake.lua
@@ -1,19 +1,26 @@
|
|||||||
|
add_rules("mode.debug", "mode.release")
|
||||||
|
|
||||||
|
add_requires("sfml 3.0.0")
|
||||||
|
|
||||||
set_languages("c++20")
|
set_languages("c++20")
|
||||||
set_optimize("fastest")
|
|
||||||
set_rundir(".")
|
set_rundir(".")
|
||||||
add_requires("sfml")
|
|
||||||
|
target("core")
|
||||||
|
set_kind("$(kind)")
|
||||||
|
add_files("src/Pieces/*.cpp")
|
||||||
|
add_files("src/Core/*.cpp")
|
||||||
|
|
||||||
target("text")
|
target("text")
|
||||||
set_kind("binary")
|
set_kind("binary")
|
||||||
add_files("./src/Pieces/*.cpp")
|
set_default(false)
|
||||||
add_files("./src/Core/*.cpp")
|
|
||||||
add_files("./src/TextUI/*.cpp")
|
add_files("./src/TextUI/*.cpp")
|
||||||
|
add_deps("core")
|
||||||
|
|
||||||
target("graph")
|
target("graph")
|
||||||
set_kind("binary")
|
set_kind("binary")
|
||||||
add_files("./src/Pieces/*.cpp")
|
add_files("./src/GraphicalUI/**.cpp")
|
||||||
add_files("./src/Core/*.cpp")
|
add_deps("core")
|
||||||
add_files("./src/GraphicalUI/*.cpp")
|
|
||||||
add_packages("sfml")
|
add_packages("sfml")
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|||||||
Reference in New Issue
Block a user