ignacio / lua-appveyor-example

For experiments with AppVeyor CI
MIT License
13 stars 8 forks source link

lua.hpp from luajit requires luajiit.h. #4

Closed xpol closed 9 years ago

xpol commented 9 years ago

This make lua module written in c++ have #include "lua.hpp" can compile.

ignacio commented 9 years ago

Strange... it is failing. Your change is correct but AppVeyor spits some error about a label not being found. I tested your changes locally and they're ok. I'll retry the job in a while and see what happens.

ignacio commented 9 years ago

I think it was a hiccup of AppVeyor. The code is fine. Thank you!

ignacio commented 9 years ago

Well. Removing luajit.h from the list of files worked. Adding it back caused the build to fail.

Saw this question on SO and checked the line endings. They were ok. Added some empty lines in the middle of the script. It worked.

I should give another look at Powershell. This is embarrassing.

xpol commented 9 years ago

Shall we just:

:: copy all headers begin with 'lua': lauxlib.h lua.h lua.hpp luaconf.h lualib.h luajit.h
copy "!lj_source_folder!\src\lua*.h*" "!lj_dest_folder!\include"