Skip to content

Commit e801908

Browse files
Jarod42noresources
authored andcommitted
Fix typo to link resources (premake#2311)
1 parent 2ad9c81 commit e801908

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

modules/gmake2/gmake2_cpp.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
['.c'] = 'SOURCES',
110110
['.s'] = 'SOURCES',
111111
['.m'] = 'SOURCES',
112-
['.rc'] = 'RESOURCES',
112+
['.res'] = 'RESOURCES',
113113
}
114114

115115
-- cache the result.

modules/gmake2/tests/test_gmake2_objects.lua

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,22 @@ OBJECTS += $(OBJDIR)/hello.o
5050
]]
5151
end
5252

53+
function suite.listResoucesInProjectObjects()
54+
files { "src/hello.rc" }
55+
prepare()
56+
test.capture [[
57+
# File sets
58+
# #############################################
59+
60+
GENERATED :=
61+
RESOURCES :=
62+
63+
GENERATED += $(OBJDIR)/hello.res
64+
RESOURCES += $(OBJDIR)/hello.res
65+
66+
]]
67+
end
68+
5369

5470
--
5571
-- Only buildable files should be listed.

0 commit comments

Comments
 (0)