Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Premake support? #29

Open
flamendless opened this issue Apr 12, 2019 · 4 comments
Open

Premake support? #29

flamendless opened this issue Apr 12, 2019 · 4 comments

Comments

@flamendless
Copy link

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
Copy link
Owner

ddovod commented Apr 12, 2019

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
Copy link
Author

@ddovod that would do. Thanks!

Sent from my HUAWEI GR5 2017 using FastHub

@ddovod
Copy link
Owner

ddovod commented Apr 14, 2019

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
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants