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

OpenGlES in c++ library #2001

Closed
vardan007 opened this issue Oct 28, 2016 · 1 comment
Closed

OpenGlES in c++ library #2001

vardan007 opened this issue Oct 28, 2016 · 1 comment

Comments

@vardan007
Copy link

I want to build c++ library and use opengles in it.
Is this possible with bazel build system and if yes, can you please provide an example.

@vardan007 vardan007 changed the title OpenGlES on android OpenGlES in c++ library Oct 28, 2016
@laszlocsomor
Copy link
Contributor

Yes, it is certainly possible.

Bazel has built-in support for C++ rules, see examples here: https://github.com/bazelbuild/bazel/tree/master/examples/cpp

To create a package for the GLES files, you may need to create a local repository using the new_local_repository workspace rule, and write a BUILD file with cc_library rules that export the right header files (cc_library.hdrs) and link against the right system libraries (for example this is how you'd do that on Windows, but the approach is the same on other platforms). I don't know if there are any other examples about this.

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