audio: make buildSoundIo private and point package to ./main.zig #379

Merged
alichraghi merged 2 commits from main into main 2022-06-30 03:58:14 +00:00
alichraghi commented 2022-06-29 19:38:31 +00:00 (Migrated from github.com)
  • By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.
- [x] By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.
emidoots (Migrated from github.com) reviewed 2022-06-30 03:55:42 +00:00
@ -4,16 +4,8 @@ const Builder = std.build.Builder;
const soundio_path = thisDir() ++ "/upstream/soundio";
emidoots (Migrated from github.com) commented 2022-06-30 03:55:41 +00:00
    .name = "audio",

I don't know if mach-audio is better, but glfw and freetype are not mach-glfw or mach-freetype so it seems clear to me this should just be audio for consistency sake. Open to changing them all though!

```suggestion .name = "audio", ``` I don't know if `mach-audio` is better, but `glfw` and `freetype` are not `mach-glfw` or `mach-freetype` so it seems clear to me this should just be `audio` for consistency sake. Open to changing them all though!
emidoots (Migrated from github.com) reviewed 2022-06-30 03:57:02 +00:00
emidoots (Migrated from github.com) commented 2022-06-30 03:57:02 +00:00

I do think we should still take an options struct in this function parameter, just so we can add any options necessary in the future without breaking user's current use of audio.link(...). It should just be an empty Options struct for now, though.

I do think we should still take an options struct in this function parameter, just so we can add any options necessary in the future without breaking user's current use of `audio.link(...)`. It should just be an empty `Options` struct for now, though.
emidoots (Migrated from github.com) reviewed 2022-06-30 03:57:57 +00:00
@ -17,3 +8,4 @@
.source = .{ .path = thisDir() ++ "/main.zig" },
};
pub fn build(b: *Builder) void {
emidoots (Migrated from github.com) commented 2022-06-30 03:57:57 +00:00

I would be OK with keeping this struct around, just making it private - if you think that's better. I think this way is fine though.

I would be OK with keeping this struct around, just making it private - if you think that's better. I think this way is fine though.
emidoots (Migrated from github.com) approved these changes 2022-06-30 03:58:00 +00:00
alichraghi (Migrated from github.com) reviewed 2022-06-30 09:51:47 +00:00
@ -17,3 +8,4 @@
.source = .{ .path = thisDir() ++ "/main.zig" },
};
pub fn build(b: *Builder) void {
alichraghi (Migrated from github.com) commented 2022-06-30 09:51:47 +00:00

ok but i think if we take it as parmater in link() then we shouldn't make it private

ok but i think if we take it as parmater in `link()` then we shouldn't make it private
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hexops/mach!379
No description provided.