Code Monkey home page Code Monkey logo

sdl2's Introduction

SDL2

This is a copy of the SDL source code with the premake build system added. It was loosely based on the premake4 build system for SDL written by renpy, however I have only learned premake5 and almost all of that knowledge is not applicable to premake4.

The official source release of SDL can be found here.

Building SDL2 with premake5

So far, the premake files I have written only support Windows. As such I have only included the batch files for building on Windows. I will add support for Linux and MacOS if and when I need it or if there is sufficient demand.

Windows

To build the solution and project files for SDL2:

  1. Install Git (or Github Desktop if you prefer) and clone the repository in the command prompt with
    git clone https://github.com/SpookyScaryStudios/SDL2 target/directory
  2. Run GenerateProjectFiles.bat and open the SDL.sln file in the root directory.

To link SDL2 to another project:

  1. Clone the repository into your project as a git submodule in the command prompt with
    git submodule add https://github.com/SpookyScaryStudios/SDL2 target/directory
  2. Include SDL2.lua and SDL2main.lua into your project's premake file. These can be found in the Build directory, in folders of the same name.

Structure

The project has a directary structure similar to that of Unreal Engine:

Directory Description
Binaries Binary directory.
Build Where premake files, batch files and binaries are stored.
docs SDL documentation (copied from the SDL source).
include SDL include path (copied from the SDL source).
Intermediate Intermediates and project files.
src SDL source code (copied from the SDL source).

Contributing

Please feel free to contribute to this repository by reporting errors or even submitting pull requests. I really appreciate it if you do, and will try to resolve the issue or merge the pull request as soon as possible.

License

This project is licenced under the zlib licence, since it is a modified version of SDL2.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.