Merge pull request #1531 from player-03/submodules

Restructure and update submodules
This commit is contained in:
Josh Tynjala
2023-01-13 13:44:33 -08:00
committed by GitHub
89 changed files with 28650 additions and 622 deletions

View File

@@ -53,36 +53,24 @@ To install a development build, use the "haxelib local" command:
Building from Source
====================
Clone the Lime repository, as well as the submodules:
1. Clone the Lime repository, as well as the submodules:
git clone --recursive https://github.com/openfl/lime
haxelib git lime https://github.com/openfl/lime
Tell haxelib where your development copy of Lime is installed:
2. Install required dependencies:
haxelib dev lime lime
haxelib install format
haxelib install hxp
The first time you run the "lime" command, it will attempt to build the Lime standard binary for your desktop platform as the command-line tools. To build these manually, use the following command (using "mac" or "linux" if appropriate):
3. Copy the ndll directory from the latest [Haxelib release](https://lib.haxe.org/p/lime/), or see [project/README.md](project/README.md) for details about building native binaries.
haxelib install format
haxelib install hxp
lime rebuild windows
4. After any changes to the [tools](tools) or [lime/tools](src/lime/tools) directories, rebuild from source:
You can build additional binaries, or rebuild binaries after making changes, using "lime rebuild":
lime rebuild tools
lime rebuild windows
lime rebuild linux -64 -release -clean
5. To switch away from a source build:
You can also rebuild the tools if you make changes to them:
lime rebuild tools
On a Windows machine, you should have Microsoft Visual Studio C++ (Express is just fine) installed. You will need Xcode on a Mac. To build on a Linux machine, you may need the following packages (or similar):
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev g++ g++-multilib gcc-multilib libasound2-dev libx11-dev libxext-dev libxi-dev libxrandr-dev libxinerama-dev
To switch away from a source build, use:
haxelib dev lime
haxelib set lime [version number]
Sample