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

NDK: set APP_BUILD_SCRIPT for makefile parameter instead of -f #670

Closed
wants to merge 1 commit into from

Conversation

kedzie
Copy link
Contributor

@kedzie kedzie commented Aug 8, 2015

the makefile ndk goal parameter doesn't work. It adds a -f <makefile> to the ndk-build commandline. That works for normal make but for ndk-build it should be setting APP_BUILD_SCRIPT=<makefile> instead. This is what this fix is doing.

@kedzie
Copy link
Contributor Author

kedzie commented Aug 8, 2015

I added an integration test project. I just copied the simple so project and renamed the jni folder to src. I also added the

<makefile>src/Android.mk</makefile>
<applicationMakefile>src/Application.mk</applicationMakefile>

@mosabua
Copy link
Member

mosabua commented Sep 22, 2015

Can you pull this over to the NDK plugin... the NDK functionality will be removed on this plugin soon so I would rather pull that in on the other plugin .. right @JohanLindquist ?

@nahojkap
Copy link
Member

that is correct

-added integration test project
-add NDK_OUT/NDK_LIBS_OUT parameters to create build output under target folder instead of root folder then moving it.
@kedzie
Copy link
Contributor Author

kedzie commented Sep 23, 2015

Oh I didn't realize that was happening.. I can move it. I also added a patch which makes the output directly under the target folder, instead of under the obj folder and then moving it. Also the act of moving threw an exception if the output folder already existed, which forced you to do a mvn clean install every time.

@kedzie
Copy link
Contributor Author

kedzie commented Sep 23, 2015

I created a new PR simpligility/android-ndk-maven-plugin#12

@kedzie kedzie closed this Oct 4, 2015
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

Successfully merging this pull request may close these issues.

None yet

3 participants