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

Code restructuring #8

Closed
infinity0n3 opened this issue Aug 5, 2017 · 1 comment
Closed

Code restructuring #8

infinity0n3 opened this issue Aug 5, 2017 · 1 comment

Comments

@infinity0n3
Copy link
Contributor

infinity0n3 commented Aug 5, 2017

Hi Darren,

I would like to use wampcc in my project and want to help. So with the best intentions I have done a wampcc code restructuring and made it use purely cmake.
The project will be running on a raspberry pi with a custom linux distro so cross-compiling is mandatory.
That is the reason why I was doing pure cmake porting.

Hope you don't feel annoyed by my intensive changes to the code structure as some people are quite protective of their code (I'm one of them). Also I didn't know how else to contact you so this is why I did it over github issue.

My fork can be found here https://github.com/infinity0n3/wampcc

This is just the first step in cleaning up the source as it makes it much easier to compile and thus more people can get involved and use it.

What I've done so far (last night xD)

  • some change to the directory structure to separate source and include files
  • external -> 3rdparty (as it is done in opencv code, just a matter of taste, nothing functionally critical)
  • 3rdparty now already includes the source code of external libraries
    • best to add the fetch script to 3rdpary and make it only leave the files that are actually used in the compilation process
    • is more user friendly to keep the external codes packaged with the rest as is much easier for anyone to just do git clone ... and start playing (also later for cross-compiling and buildroot integration)
  • src -> utility
  • lib -> library
  • new folder include where wampcc and json are merged
  • everything is compile using cmake
  • libuv and jansson are auto detected from the system
  • added pkg-config files for easier integration into other projects

TODO (DONE)

  • make libuv and jansson detectable from custom location
    • for now I'm using libs that are installed by apt-get (libuv1 libuv1-dev libjansson4 libjansson4-dev) am using LinuxMint (which is based on ubuntu xenial)
  • apply win32 rules (don't have windows so cannot test those)
  • make cmake adjustments to allow cross-compiling

Cross-compiling works!

Best,
Daniel Kesler

@darrenjs
Copy link
Owner

darrenjs commented Aug 5, 2017 via email

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