Skip to content

Commit

Permalink
add android custom args
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Jul 30, 2024
1 parent e6ed958 commit 42e0c76
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public class AndroidTarget extends DefaultBuildTarget {
public String androidABIS = "all";
public String androidPlatform = "android-19";

public ArrayList<String> customArgs = new ArrayList<>();

public AndroidTarget() {
this.libDirSuffix = "android/";
this.tempBuildDir = "target/android";
Expand Down Expand Up @@ -108,6 +110,7 @@ protected boolean build(BuildConfig config) {
CustomFileDescriptor childTarget = config.libDir.child("android");
ArrayList<String> 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());
Expand Down

0 comments on commit 42e0c76

Please sign in to comment.