From 92ae9f4c6bf0bf8280aa06b950441a05e42010b8 Mon Sep 17 00:00:00 2001 From: Natan Date: Sun, 4 Aug 2024 12:31:44 -0300 Subject: [PATCH] Fix lib target --- .../github/xpenatan/jparser/builder/targets/AndroidTarget.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jParser/builder/src/main/java/com/github/xpenatan/jparser/builder/targets/AndroidTarget.java b/jParser/builder/src/main/java/com/github/xpenatan/jparser/builder/targets/AndroidTarget.java index 584cf2c..88ecfe3 100644 --- a/jParser/builder/src/main/java/com/github/xpenatan/jparser/builder/targets/AndroidTarget.java +++ b/jParser/builder/src/main/java/com/github/xpenatan/jparser/builder/targets/AndroidTarget.java @@ -112,12 +112,13 @@ protected boolean build(BuildConfig config, CustomFileDescriptor childTarget) { customArgs.add("-j" + i ); } + CustomFileDescriptor libTarget = config.libDir.child("android"); ArrayList commands = new ArrayList<>(); commands.add(androidCommand); commands.addAll(customArgs); commands.add("NDK_PROJECT_PATH=."); commands.add("NDK_APPLICATION_MK=Application.mk"); - commands.add(" NDK_LIBS_OUT=" + childTarget.path()); + commands.add(" NDK_LIBS_OUT=" + libTarget.path()); if(!JProcess.startProcess(androidDir.file(), commands)) { return false; }