-
Notifications
You must be signed in to change notification settings - Fork 145
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
Integrate prebuilt libraries #40
Comments
Yes, totally agree. The gyp documentation shows how to do something similar, but I could add an example. Do you have a library in mind perhaps? |
Microsoft’s cross-platform C++ REST SDK (Casablanca) is probably a good candidate for a monolithic library that could be of use for a number of apps that would benefit from the use of prebuilt binaries. |
I'm currently playing with openh264 (https://github.com/cisco/openh264), which has just enough in its Makefile that I don't really want to take on converting it to gyp. Btw my current solution to this is to point a gyp file at one of the Android architecture library files. e.g.: 'conditions': [ This generates a line like: LOCAL_STATIC_LIBRARIES := libopenh264 in target.mk. Then in a hand-written Android.mk I include GypAndroid.mk and specify the real path to the architecture-specific library like: include $(CLEAR_VARS) It works. Something tells me this pattern could be cleaner, though... P.S. I'm using fat binaries on darwin to avoid this problem. |
^ I've actually seen this pattern for Android several times now - the wrapper "root makefile". The libraries don't even have to be pre-built, they can even be dependencies that have their own (android) Makefiles. I think Casablanca would be a more general example than h264 - thanks for the idea @tanaka-de-silva |
I am happy that Android and Apple Support C/C++ because I plan to make a Application that helps to prevent the phones that are made by Samsung from overheating. (they have tiny cheep processors) My Plan: Use C++. Drawbacks: With me having years of experiance of Visual Basic under windows Only I got no idea what API Headers I need to maske this work. I have some knowlege on C and C++ but that is from places of open source games/code made in C/C++. A perfect Example is Doom or even Duke Nukem 3D. At least I know Although I think there is a lot more things the most funniest thing I found in C and C++ when I first seen them before was things like. |
It would be great to have a pattern for integrating prebuilt static libraries. Sometimes there are libraries where the configuration and build scripts are complex and not easily convertible to gyp. Pointing to them is a problem especially for Android, for which there will be multiple copies of the binary for the different target architectures.
The text was updated successfully, but these errors were encountered: