Rev 7947 | Rev 7994 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6310 | akron1 | 1 | -- Do nothing unless explicitly requested in tup.config. |
5098 | clevermous | 2 | build_type = tup.getconfig('BUILD_TYPE') |
3 | if build_type == "" then |
||
4 | return |
||
5 | end |
||
6 | |||
7 | --[================================[ DATA ]================================]-- |
||
8 | |||
9 | PROGS = "../programs" |
||
10 | |||
11 | -- Static data that doesn't need to be compiled |
||
12 | -- Files to be included in kolibri.img. |
||
13 | -- The first subitem of every item is name inside kolibri.img, the second is name of local file. |
||
14 | img_files = { |
||
15 | {"MACROS.INC", PROGS .. "/macros.inc"}, |
||
16 | {"CONFIG.INC", PROGS .. "/config.inc"}, |
||
17 | {"STRUCT.INC", PROGS .. "/struct.inc"}, |
||
6958 | leency | 18 | {"FB2READ", "common/fb2read"}, |
7425 | leency | 19 | {"ALLGAMES", "common/allgames"}, |
7653 | leency | 20 | {"HOME.PNG", "common/wallpapers/home.png"}, |
6958 | leency | 21 | {"ICONS32.PNG", "common/icons32.png"}, |
7052 | leency | 22 | {"ICONS16.PNG", "common/icons16.png"}, |
6958 | leency | 23 | {"INDEX.HTM", "common/index_htm"}, |
24 | {"KUZKINA.MID", "common/kuzkina.mid"}, |
||
25 | {"LANG.INC", build_type .. "/lang.inc"}, |
||
26 | {"NOTIFY3.PNG", "common/notify3.png"}, |
||
7864 | leency | 27 | {"UNIMG", PROGS .. "/fs/unimg/unimg"}, |
6958 | leency | 28 | {"VMODE", "common/vmode"}, |
29 | {"3D/HOUSE.3DS", "common/3d/house.3ds"}, |
||
7885 | leency | 30 | {"DEVELOP/BACKY", PROGS .. "/develop/backy/Backy"}, |
5098 | clevermous | 31 | {"DEVELOP/T_EDIT.INI", PROGS .. "/other/t_edit/t_edit.ini"}, |
6958 | leency | 32 | {"File Managers/ICONS.INI", "common/File Managers/icons.ini"}, |
33 | {"File Managers/KFM.INI", "common/File Managers/kfm.ini"}, |
||
5098 | clevermous | 34 | {"File Managers/ICONS.BMP", PROGS .. "/fs/kfm/trunk/icons.bmp"}, |
7053 | leency | 35 | {"File Managers/FNAV/ABOUT.TXT", "common/File Managers/fNav/About.txt"}, |
7029 | 0CodErr | 36 | {"File Managers/FNAV/FNAV", "common/File Managers/fNav/fNav.kex"}, |
37 | {"File Managers/FNAV/FNAV.EXT", "common/File Managers/fNav/fnav.ext"}, |
||
38 | {"File Managers/FNAV/FNAV.SET", "common/File Managers/fNav/fnav.set"}, |
||
39 | {"File Managers/FNAV/FNAV_CUR.PNG", "common/File Managers/fNav/fnav_cur.png"}, |
||
40 | {"File Managers/FNAV/FNAV_FNT.PNG", "common/File Managers/fNav/fnav_fnt.png"}, |
||
7053 | leency | 41 | {"File Managers/FNAV/FNAV_ICN.PNG", "common/File Managers/fNav/fnav_icn.png"}, |
5764 | leency | 42 | {"FONTS/TAHOMA.KF", "common/fonts/tahoma.kf"}, |
6958 | leency | 43 | {"LIB/ICONV.OBJ", "common/lib/iconv.obj"}, |
44 | {"LIB/KMENU.OBJ", "common/lib/kmenu.obj"}, |
||
45 | {"LIB/NETCODE.OBJ", "common/lib/netcode.obj"}, |
||
46 | {"LIB/PIXLIB.OBJ", "common/lib/pixlib.obj"}, |
||
47 | {"MEDIA/IMGF/IMGF", "common/media/ImgF/ImgF"}, |
||
48 | {"MEDIA/IMGF/CEDG.OBJ", "common/media/ImgF/cEdg.obj"}, |
||
49 | {"MEDIA/IMGF/DITHER.OBJ", "common/media/ImgF/dither.obj"}, |
||
50 | {"MEDIA/IMGF/INVSOL.OBJ", "common/media/ImgF/invSol.obj"}, |
||
7633 | leency | 51 | {"MEDIA/PIXIESKN.PNG", PROGS .. "/cmm/pixie2/pixieskn.png"}, |
7211 | nisargshah | 52 | {"NETWORK/FTPC.INI", PROGS .. "/network/ftpc/ftpc.ini"}, |
6958 | leency | 53 | {"NETWORK/FTPD.INI", "common/network/ftpd.ini"}, |
54 | {"NETWORK/USERS.INI", "common/network/users.ini"}, |
||
7632 | leency | 55 | {"NETWORK/FTPC_SYS.PNG", PROGS .. "/network/ftpc/ftpc_sys.png"}, |
56 | {"NETWORK/FTPC_NOD.PNG", PROGS .. "/network/ftpc/ftpc_nod.png"}, |
||
7429 | leency | 57 | {"SETTINGS/APP.INI", "common/settings/app.ini"}, |
7519 | leency | 58 | {"SETTINGS/APP_PLUS.INI", "common/settings/app_plus.ini"}, |
7429 | leency | 59 | {"SETTINGS/ASSOC.INI", "common/settings/assoc.ini"}, |
5873 | pathoswith | 60 | {"SETTINGS/AUTORUN.DAT", "common/settings/AUTORUN.DAT"}, |
6958 | leency | 61 | {"SETTINGS/DOCKY.INI", "common/settings/docky.ini"}, |
62 | {"SETTINGS/FB2READ.INI", "common/settings/fb2read.ini"}, |
||
7429 | leency | 63 | {"SETTINGS/HOTANGLES.CFG", PROGS .. "/other/ha/SETTINGS/HOTANGLES.CFG"}, |
5098 | clevermous | 64 | {"SETTINGS/ICON.INI", build_type .. "/settings/icon.ini"}, |
5873 | pathoswith | 65 | {"SETTINGS/KEYMAP.KEY", PROGS .. "/system/taskbar/trunk/KEYMAP.KEY"}, |
6958 | leency | 66 | {"SETTINGS/KOLIBRI.LBL", build_type .. "/settings/kolibri.lbl"}, |
5098 | clevermous | 67 | {"SETTINGS/LANG.INI", build_type .. "/settings/lang.ini"}, |
68 | {"SETTINGS/MENU.DAT", build_type .. "/settings/menu.dat"}, |
||
7137 | dunkaist | 69 | {"SETTINGS/NETWORK.INI", "common/settings/network.ini"}, |
5972 | leency | 70 | {"SETTINGS/SYSTEM.INI", "common/settings/system.ini"}, |
7429 | leency | 71 | {"SETTINGS/TASKBAR.INI", "common/settings/taskbar.ini"}, |
5098 | clevermous | 72 | } |
7010 | 0CodErr | 73 | |
5098 | clevermous | 74 | -- For russian build, add russian-only files. |
75 | if build_type == "rus" then tup.append_table(img_files, { |
||
7769 | leency | 76 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/rus/example.asm"}, |
77 | {"GAMES/BASEKURS.KLA", build_type .. "/games/basekurs.kla"}, |
||
78 | {"GAMES/PADENIE", build_type .. "/games/padenie"}, |
||
79 | {"File Managers/KFAR.INI", build_type .. "/File Managers/kfar.ini"}, |
||
5098 | clevermous | 80 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/russian/dos_kolibri/kfm_keys.txt"}, |
81 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/rus/.shell"}, |
||
7426 | leency | 82 | {"SETTINGS/GAMES.INI", "rus/settings/games.ini"}, |
5098 | clevermous | 83 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
7769 | leency | 84 | {"SETTINGS/SYSPANEL.INI", "rus/settings/syspanel.ini"}, |
7010 | 0CodErr | 85 | }) elseif build_type == "eng" then tup.append_table(img_files, { |
7769 | leency | 86 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/example.asm"}, |
87 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
||
7015 | 0CodErr | 88 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/english/kfm_keys.txt"}, |
7769 | leency | 89 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/eng/.shell"}, |
7426 | leency | 90 | {"SETTINGS/GAMES.INI", "common/settings/games.ini"}, |
7769 | leency | 91 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
92 | {"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"}, |
||
93 | }) elseif build_type == "sp" then tup.append_table(img_files, { |
||
7015 | 0CodErr | 94 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/example.asm"}, |
95 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
||
96 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/english/kfm_keys.txt"}, |
||
7769 | leency | 97 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/eng/.shell"}, |
7426 | leency | 98 | {"SETTINGS/GAMES.INI", "common/settings/games.ini"}, |
7015 | 0CodErr | 99 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
7769 | leency | 100 | {"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"}, |
7010 | 0CodErr | 101 | }) elseif build_type == "it" then tup.append_table(img_files, { |
7769 | leency | 102 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/example.asm"}, |
103 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
||
7015 | 0CodErr | 104 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/english/kfm_keys.txt"}, |
105 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/eng/.shell"}, |
||
7010 | 0CodErr | 106 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey_it.ini"}, |
7769 | leency | 107 | {"SETTINGS/GAMES.INI", "common/settings/games.ini"}, |
108 | {"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"}, |
||
5098 | clevermous | 109 | }) else tup.append_table(img_files, { |
7769 | leency | 110 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/example.asm"}, |
5098 | clevermous | 111 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/english/kfm_keys.txt"}, |
7769 | leency | 112 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
113 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/eng/.shell"}, |
||
7426 | leency | 114 | {"SETTINGS/GAMES.INI", "common/settings/games.ini"}, |
7010 | 0CodErr | 115 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
7769 | leency | 116 | {"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"}, |
5098 | clevermous | 117 | }) end |
118 | |||
119 | --[[ |
||
120 | Files to be included in kolibri.iso and distribution kit outside of kolibri.img. |
||
5132 | clevermous | 121 | |
5098 | clevermous | 122 | The first subitem of every item is name relative to the root of ISO or distribution kit, |
123 | the second is name of local file. |
||
5132 | clevermous | 124 | |
5098 | clevermous | 125 | If the first subitem ends in /, the last component of local file name is appended. |
126 | The last component of the second subitem may contain '*'; if so, it will be expanded |
||
127 | according to usual rules, but without matching directories. |
||
5132 | clevermous | 128 | |
129 | Tup does not allow a direct dependency on a file that is generated in a directory |
||
130 | other than where Tupfile.lua is and its children. Most files are generated |
||
131 | in the directory with Tupfile.lua; for other files, the item should contain |
||
132 | a named subitem "group=path/ |
||
5098 | clevermous | 133 | --]] |
134 | extra_files = { |
||
7137 | dunkaist | 135 | {"/", "common/distr_data/autorun.inf"}, |
136 | {"/", "common/distr_data/KolibriOS_icon.ico"}, |
||
5098 | clevermous | 137 | {"/", build_type .. "/settings/kolibri.lbl"}, |
7715 | leency | 138 | {"Docs/stack.txt", "../kernel/trunk/docs/stack.txt"}, |
5098 | clevermous | 139 | {"HD_Load/9x2klbr/", "common/HD_load/9x2klbr/LDKLBR.VXD"}, |
140 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/AUTOEXEC.BAT"}, |
||
141 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/CONFIG.SYS"}, |
||
142 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/L_readme.txt"}, |
||
143 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/L_readme_Win.txt"}, |
||
144 | {"HD_Load/mtldr/", PROGS .. "/hd_load/mtldr/vista_install.bat"}, |
||
145 | {"HD_Load/mtldr/", PROGS .. "/hd_load/mtldr/vista_remove.bat"}, |
||
146 | {"HD_Load/", "common/HD_load/memdisk"}, |
||
147 | {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot.rtf"}, |
||
148 | {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot_866.txt"}, |
||
149 | {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot_1251.txt"}, |
||
6226 | leency | 150 | {"kolibrios/3D/info3ds/INFO3DS.INI", PROGS .. "/develop/info3ds/info3ds.ini"}, |
151 | {"kolibrios/3D/info3ds/OBJECTS.PNG", PROGS .. "/develop/info3ds/objects.png"}, |
||
152 | {"kolibrios/3D/info3ds/TOOLBAR.PNG", PROGS .. "/develop/info3ds/toolbar.png"}, |
||
6237 | IgorA | 153 | {"kolibrios/3D/info3ds/FONT8X9.BMP", PROGS .. "/fs/kfar/trunk/font8x9.bmp"}, |
6583 | leency | 154 | {"kolibrios/3D/md2view/", "common/3d/md2view/*"}, |
6584 | leency | 155 | {"kolibrios/3D/md2view/md2_model/", "common/3d/md2view/md2_model/*"}, |
6248 | IgorA | 156 | {"kolibrios/3D/voxel_editor/VOX_EDITOR.INI", PROGS .. "/media/voxel_editor/trunk/vox_editor.ini"}, |
6247 | IgorA | 157 | {"kolibrios/3D/voxel_editor/HOUSE1.VOX", PROGS .. "/media/voxel_editor/trunk/house1.vox"}, |
158 | {"kolibrios/3D/voxel_editor/HOUSE2.VOX", PROGS .. "/media/voxel_editor/trunk/house2.vox"}, |
||
6279 | IgorA | 159 | {"kolibrios/3D/voxel_editor/SQUIRREL.VOX", PROGS .. "/media/voxel_editor/trunk/squirrel.vox"}, |
160 | {"kolibrios/3D/voxel_utilites/VOX_MOVER.INI" , PROGS .. "/media/voxel_editor/utilites/vox_mover.ini"}, |
||
6287 | IgorA | 161 | {"kolibrios/3D/FONT8X9.BMP", PROGS .. "/fs/kfar/trunk/font8x9.bmp"}, |
162 | {"kolibrios/3D/TOOLB_1.PNG", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/toolb_1.png"}, |
||
163 | {"kolibrios/3D/TEST_GLU1", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/test_glu1"}, |
||
164 | {"kolibrios/3D/TEST_GLU2", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/test_glu2"}, |
||
165 | {"kolibrios/3D/TEXT_2.PNG", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/text_2.png"}, |
||
6613 | leency | 166 | {"kolibrios/develop/oberon07/", PROGS .. "/develop/oberon07/*"}, |
167 | {"kolibrios/develop/oberon07/Docs/", PROGS .. "/develop/oberon07/Docs/*"}, |
||
168 | {"kolibrios/develop/oberon07/Lib/KolibriOS/", PROGS .. "/develop/oberon07/Lib/KolibriOS/*"}, |
||
169 | {"kolibrios/develop/oberon07/Samples/", PROGS .. "/develop/oberon07/Samples/*"}, |
||
7543 | leency | 170 | {"kolibrios/develop/c--/", PROGS .. "/cmm/c--/*"}, |
7866 | leency | 171 | {"kolibrios/develop/lua/lua", "../contrib/other/lua-5.2.0/lua"}, |
172 | {"kolibrios/develop/lua/calc.lua", "../contrib/other/lua-5.2.0/calc.lua"}, |
||
173 | {"kolibrios/develop/lua/console.lua", "../contrib/other/lua-5.2.0/console.lua"}, |
||
7849 | leency | 174 | {"kolibrios/develop/tcc/", PROGS .. "/develop/ktcc/trunk/*"}, |
175 | {"kolibrios/develop/tcc/", PROGS .. "/develop/ktcc/trunk/bin/*"}, |
||
176 | {"kolibrios/develop/tcc/lib/", PROGS .. "/develop/ktcc/trunk/bin/lib/*"}, |
||
177 | {"kolibrios/develop/tcc/include/", PROGS .. "/develop/ktcc/trunk/libc/include/*"}, |
||
7947 | Boppan | 178 | {"kolibrios/develop/tcc/include/kos/", PROGS .. "/develop/ktcc/trunk/libc/include/kos/*"}, |
7849 | leency | 179 | {"kolibrios/develop/tcc/samples/", PROGS .. "/develop/ktcc/trunk/samples/*"}, |