aboutsummaryrefslogtreecommitdiff
path: root/all_in_one.patch
blob: adc49b986ebe7e91fdba77048d450af497fadf09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- "binary/all_in_one"	2024-09-23 13:31:16.489277700 -0500
+++ "binary/all_in_one"	2024-09-23 13:31:14.032152500 -0500
@@ -406,27 +406,6 @@
    fd:write(reindent_c(table.concat(out, "\n")))
    fd:close()
 
-   assert(deps.check_lua_incdir(cfg.variables))
-   assert(deps.check_lua_libdir(cfg.variables))
-
-   cmd = table.concat(filter_in(nonnull, {
-      CC, "-o", TARGET_DIR .. "/" .. program_name .. ".exe",
-      "-I", cfg.variables.LUA_INCDIR,
-      if_platform("unix", "-rdynamic"),
-      "-Os",
-      c_filename,
-      "-L", cfg.variables.LUA_LIBDIR,
-      table.concat(a_files, " "),
-      --if_platform("unix", cfg.variables.LUA_LIBDIR .. "/" .. cfg.variables.LUALIB:gsub("%.so.*$", ".a")),
-      --if_platform("windows", "mingw/liblua.a"), -- FIXME
-      cfg.variables.LUA_LIBDIR .. "/" .. cfg.variables.LUALIB:gsub("%.so.*$", ".a"),
-      if_platform("unix", "-ldl"),
-      if_platform("unix", "-lpthread"),
-      if_platform("windows", "-mconsole -mwindows"),
-      "-lm"
-   }), " ")
-   print(cmd)
-   os.execute(cmd)
 end
 
 --------------------------------------------------------------------------------
@@ -500,4 +479,6 @@
    generate(MAIN_PROGRAM, "src", { EXCLUDE, "^bin/?" })
 end
 
-main()
+cfg.init()
+fs.init()
+generate(MAIN_PROGRAM, "src", {EXCLUDE, "^bin/?"})