Current section

Files

Jump to
zigler lib zig templates build_c.zig.eex
Raw

lib/zig/templates/build_c.zig.eex

<% name = Keyword.fetch!(opts, :name) %>
<%= for dir <- @include_dirs do %>
<%= case dir do %>
<% {:system, path} -> %> <%= name %>.addSystemIncludePath(.{.cwd_relative = "<%= path %>"});
<% _ -> %> <%= name %>.addIncludePath(.{.cwd_relative = "<%= dir %>"});
<% end %>
<% end %>
<%= for dir <- @library_dirs do %>
<%= name %>.addLibraryPath(.{.cwd_relative = "<%= dir %>"});
<% end %>