gregtour / duck-lang

The Duck Programming Language
http://www.ducklang.org
109 stars 13 forks source link

Use CMake to build project #2

Closed sh19910711 closed 9 years ago

sh19910711 commented 9 years ago

I suggest to use CMake to build project. It supports SDL and OpenGL.

Summary of commits

$ git clone https://github.com/gregtour/duck-lang
$ cd duck-lang
$ cmake .
$ make
=> generates bin/duck and bin/gduck

I have tested the commands only on linux, and I don't touch files and directories without source directory.

sh19910711 commented 9 years ago

I had forgotten to see language directory.

gregtour commented 9 years ago

I have CMake 2.8.12 so I have changed it to use cmake (>= 2.8.0). There was some restructuring I wanted to do, so I moved all of the interpreter code into a common base at /duck and moved SDLlib.h/.c to /duck/lib. Then compiler flags will enable or disable specific user libraries. Hopefully, everything should be simpler now. It's also easier to fix bugs and improve the compiler without having to merge between two directories.

sh19910711 commented 9 years ago

nice :)