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

considering splitting module or/plus library out of DemoAndroidLNjScheme #338

Open
0-8-15 opened this issue Sep 28, 2020 · 5 comments
Open

Comments

@0-8-15
Copy link
Contributor

0-8-15 commented Sep 28, 2020

The code build a .jar using make and then needs to install that.

How would I do that the intended way?

@mgorges
Copy link
Contributor

mgorges commented Sep 28, 2020

I highly doubt anyone on our team has ever even compiled this app. As in #273 (comment), I only merged it as it didn't break anything.

Doesn't targets/android/build-binary#L181 transfer files into the Android build? Or am I missing the question?

@0-8-15
Copy link
Contributor Author

0-8-15 commented Sep 29, 2020 via email

@mgorges
Copy link
Contributor

mgorges commented Sep 30, 2020

Modules can include more modules and libraries already, and plugins also can contain libraries - see https://github.com/part-cw/lambdanative/blob/e622c127599a13b8fb6428d34f8351f6e35cd4cd/make.sh#L922 so this principle should be applicable to other things too? However, I also know that some android things from modules are not included, so we haven't generalized the approach. Will need to give this some more thought in the coming days.

I think there is at least one library which uses jars: libraries/usb-serial-for-android/make.sh which fakes the .a file to satisfy the build process and silently includes the jar file too; the same is true for LNhealth: /libraries/sharevitalsigns/build.sh.in, which also allows for substitutions in the pre-processor.

Will also need to think more about the extra make for the jar - a library would solve this step - see either of those two examples above, but it is not a particularly clean/beautiful approach either.

@0-8-15
Copy link
Contributor Author

0-8-15 commented Sep 30, 2020 via email

@mgorges
Copy link
Contributor

mgorges commented Sep 30, 2020

Q: Which variable tells me in scm.sh how to call java/javac/jar?

As we don't do this anywhere there isn't one. In fact, we call all the java-related tools like ant or jarsigner directly using the system-wide installed option, without the opportunity to override them? E.g. targets/android/build-binary#L336

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

No branches or pull requests

2 participants