ddovod / jet-live

c++ hot code reload for linux and macos
MIT License
410 stars 22 forks source link

Premake support? #29

Open flamendless opened 5 years ago

flamendless commented 5 years ago

Hi, i was wondering if you can shed light for projects using premake (genie), the compile_commands is not a problem since we can use "bear" to create one when running make that is generated by premake.

Thanks!

Sent from my HUAWEI GR5 2017 using FastHub

ddovod commented 5 years ago

Hey! Honestly I'm not familiar neither with premake, nor with genie. But looks like its only about porting CMakeLists.txt to premake script. So if you're not comfortable reading CMakeLists.txt, I can provide you with explicit requirements which should be met in the premake script

flamendless commented 5 years ago

@ddovod that would do. Thanks!

Sent from my HUAWEI GR5 2017 using FastHub

ddovod commented 5 years ago

Okay, so I've spent some time to write initial genie scripts https://github.com/ddovod/jet-live/tree/genie_build

I would like you to check out and review it, this is my first attempt on writing genie scripts. It will be great if you help me with following issues:

  1. example.lua - do I really need to specify includedirs and links for libraries already linked into the jet-live library?
  2. jet-live.lua - we need to specify -falign-functions=16 option only for GCC
  3. We need to generate compile_commands.json file in the binary directory or it its' parent after project generation, but before running make or other tools. For example, if resulting application is located in ~/projects/my_app/scripts/, compile_commands.json should be placed in the same dir or ~/projects/my_app or ~/projects/ and so on. It would be awesome to embed it into the genie script (if its possible) to maximally automate this stuff.

Please let me know if you need any help

flamendless commented 5 years ago

@ddovod awesome! I will get on this asap.

For the compile_commands.json, we can use the tool "bear" to generate one for us with bear make

Sent from my HUAWEI GR5 2017 using FastHub