Skip to content

Tiny issue with the example #41

@mozbeel

Description

@mozbeel

In this part where you define the apk in the minimal example:

       const apk = android_sdk.createApk(.{
           .api_level = .android15,
           .build_tools_version = "35.0.1",
           .ndk_version = "29.0.13599879",
       });

This feels very rigid. A comment or an error if it can't find the ndk would be helpful like I've done with my emscripten template:

    const sysroot_include = b.pathJoin(&.{ b.sysroot.?, "include" });
    var dir = std.fs.openDirAbsolute(sysroot_include, std.fs.Dir.OpenDirOptions{ .access_sub_paths = true, .no_follow = true }) catch @panic("No emscripten cache. Generate it!"); // <--- This generates the error if the emscripten sysroot include directory can't be found
    dir.close();
    wasm.addSystemIncludePath(.{ .cwd_relative = sysroot_include });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions