Merge branch 'main' into development
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -4,6 +4,10 @@ out/
|
|||||||
# Visual studio directory #
|
# Visual studio directory #
|
||||||
.vs/
|
.vs/
|
||||||
|
|
||||||
|
# VSC and manual build folders #
|
||||||
|
.vscode/
|
||||||
|
build/
|
||||||
|
|
||||||
# Excludes binary outputs in root dir #
|
# Excludes binary outputs in root dir #
|
||||||
*.exe
|
*.exe
|
||||||
*.ilk
|
*.ilk
|
||||||
|
|||||||
24
README.md
24
README.md
@@ -7,22 +7,38 @@ the documentation for the language (and compiler) can be found [here WIP](https:
|
|||||||
|
|
||||||
##### Windows
|
##### Windows
|
||||||
|
|
||||||
|
Requirements:
|
||||||
|
- Git `winget install git.git`
|
||||||
|
- Ninja(recommended) `winget intall ninja-build.ninja`
|
||||||
|
- Windows SDK, can be downloaded via [VS22 C++ software development](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&channel=Release&version=VS2022&source=VSLandingPage&passive=false&cid=2030)
|
||||||
|
|
||||||
|
Clone the repository and install all git-submodules.
|
||||||
```powershell
|
```powershell
|
||||||
git clone https://github.com/PashaBibko/LXC.git LXC
|
git clone https://github.com/PashaBibko/LXC.git LXC
|
||||||
cd LXC
|
cd LXC
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
```
|
||||||
|
|
||||||
|
Build the project, Ninja is recommended for use on windows. VS22 can be used but requires additional setup.
|
||||||
|
The outputted binaries are available in the root directory.
|
||||||
|
```powershell
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. -G Ninja
|
cmake .. -G Ninja
|
||||||
cmake --build .
|
cmake --build .
|
||||||
```
|
```
|
||||||
|
|
||||||
##### UNIX based
|
##### UNIX based
|
||||||
|
|
||||||
|
Clone the repository and install all git-submodules.
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/PashaBibko/LXC.git LXC
|
git clone https://github.com/PashaBibko/LXC.git LXC
|
||||||
cd LXC
|
cd LXC
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
```
|
||||||
|
|
||||||
|
Builds the project files, the outputted binaries will be available in the root directory.
|
||||||
|
```bash
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
@@ -33,3 +49,9 @@ cmake --build .
|
|||||||
|
|
||||||
Operating systems that are not listed above are not supported. To run the code you will have to modify it yourself.
|
Operating systems that are not listed above are not supported. To run the code you will have to modify it yourself.
|
||||||
All code that should need to be changed is within the [Common modules](https://github.com/PashaBibko/LXC/tree/main/Common/modules).
|
All code that should need to be changed is within the [Common modules](https://github.com/PashaBibko/LXC/tree/main/Common/modules).
|
||||||
|
|
||||||
|
### Example use
|
||||||
|
|
||||||
|
Some examples of LX code can be found within the [examples folder](https://github.com/PashaBibko/LXC/tree/main/examples).
|
||||||
|
To compile them you will have to set the file location within [LXC.cpp](https://github.com/PashaBibko/LXC/blob/main/LXC/LXC.cpp),
|
||||||
|
this is temporary and in the future you will be able to call from the command line.
|
||||||
|
|||||||
Reference in New Issue
Block a user