@@ -11,13 +11,14 @@ target("detours")
11
11
after_build (function (target )
12
12
os .cp (target :targetfile (), " $(projectdir)/lib" )
13
13
end )
14
- target (" withdll" )
15
- set_kind (" binary" )
16
- add_files (" deps/detour/samples/withdll/withdll.cpp" )
17
- add_links (" detours" )
18
- after_build (function (target )
19
- os .cp (target :targetfile (), " bin" )
20
- end )
14
+ -- no longer needed
15
+ -- target("withdll")
16
+ -- set_kind("binary")
17
+ -- add_files("deps/detour/samples/withdll/withdll.cpp")
18
+ -- add_links("detours")
19
+ -- after_build(function(target)
20
+ -- os.cp(target:targetfile(), "bin")
21
+ -- end)
21
22
target (" yhook" )
22
23
add_deps (" detours" )
23
24
set_kind (" shared" )
@@ -54,33 +55,33 @@ target("ymsgbox")
54
55
add_files (" samples/ymsgbox.c" )
55
56
after_build (function (target )
56
57
os .mkdir (" bin/samples" )
57
- os .cp (target :targetfile (), " bin/samples" )
58
+ os .cp (target :targetfile (), " bin/samples// " )
58
59
end )
59
60
target (" yhttp" )
60
61
set_kind (" binary" )
61
62
add_files (" samples/yhttp.cpp" )
62
63
add_links (" wsock32" )
63
64
add_links (" ws2_32" )
64
65
after_build (function (target )
65
- os .cp (target :targetfile (), " bin/samples" )
66
+ os .cp (target :targetfile (), " bin/samples/ " )
66
67
end )
67
68
target (" yheap" )
68
69
set_kind (" binary" )
69
70
add_files (" samples/yheap.c" )
70
71
after_build (function (target )
71
- os .cp (target :targetfile (), " bin/samples" )
72
+ os .cp (target :targetfile (), " bin/samples/ " )
72
73
end )
73
74
target (" yfile" )
74
75
set_kind (" binary" )
75
76
add_files (" samples/yfile.c" )
76
77
after_build (function (target )
77
- os .cp (target :targetfile (), " bin/samples" )
78
+ os .cp (target :targetfile (), " bin/samples/ " )
78
79
end )
79
80
target (" yreg" )
80
81
set_kind (" binary" )
81
82
add_files (" samples/yreg.c" )
82
83
after_build (function (target )
83
- os .cp (target :targetfile (), " bin/samples" )
84
+ os .cp (target :targetfile (), " bin/samples/ " )
84
85
end )
85
86
-- samples end
86
87
0 commit comments