Skip to content

Commit

Permalink
Fix typo to link resources (#2311)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 authored Oct 27, 2024
1 parent 25fc2e5 commit f9db572
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gmake2/gmake2_cpp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
['.c'] = 'SOURCES',
['.s'] = 'SOURCES',
['.m'] = 'SOURCES',
['.rc'] = 'RESOURCES',
['.res'] = 'RESOURCES',
}

-- cache the result.
Expand Down
16 changes: 16 additions & 0 deletions modules/gmake2/tests/test_gmake2_objects.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,22 @@ OBJECTS += $(OBJDIR)/hello.o
]]
end

function suite.listResoucesInProjectObjects()
files { "src/hello.rc" }
prepare()
test.capture [[
# File sets
# #############################################
GENERATED :=
RESOURCES :=
GENERATED += $(OBJDIR)/hello.res
RESOURCES += $(OBJDIR)/hello.res
]]
end


--
-- Only buildable files should be listed.
Expand Down

0 comments on commit f9db572

Please sign in to comment.