Rev 7052 | Rev 7058 | 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"}, |
19 | {"ICONS32.PNG", "common/icons32.png"}, |
||
7052 | leency | 20 | {"ICONS16.PNG", "common/icons16.png"}, |
6958 | leency | 21 | {"INDEX.HTM", "common/index_htm"}, |
22 | {"KERPACK", "common/kerpack"}, |
||
23 | {"KUZKINA.MID", "common/kuzkina.mid"}, |
||
24 | {"LANG.INC", build_type .. "/lang.inc"}, |
||
25 | {"NOTIFY3.PNG", "common/notify3.png"}, |
||
6759 | leency | 26 | {"TOOLBAR.PNG", PROGS .. "/cmm/txtread/toolbar.png"}, |
6958 | leency | 27 | {"VMODE", "common/vmode"}, |
28 | {"3D/HOUSE.3DS", "common/3d/house.3ds"}, |
||
5098 | clevermous | 29 | {"DEVELOP/T_EDIT.INI", PROGS .. "/other/t_edit/t_edit.ini"}, |
6958 | leency | 30 | {"File Managers/EOLITE.INI", "common/File Managers/eolite.ini"}, |
31 | {"File Managers/ICONS.INI", "common/File Managers/icons.ini"}, |
||
32 | {"File Managers/KFM.INI", "common/File Managers/kfm.ini"}, |
||
5098 | clevermous | 33 | {"File Managers/BUTTONS.BMP", PROGS .. "/fs/kfm/trunk/buttons.bmp"}, |
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"}, |
5098 | clevermous | 42 | {"FONTS/LITT.CHR", PROGS .. "/demos/bgitest/trunk/FONTS/LITT.CHR"}, |
5764 | leency | 43 | {"FONTS/TAHOMA.KF", "common/fonts/tahoma.kf"}, |
5098 | clevermous | 44 | {"GAMES/SNAKE.INI", PROGS .. "/games/snake/trunk/snake.ini"}, |
6958 | leency | 45 | {"LIB/ARRAY.OBJ", "common/lib/array.obj"}, |
46 | {"LIB/LIBRARY.OBJ", "common/lib/library.obj"}, |
||
47 | {"LIB/ICONV.OBJ", "common/lib/iconv.obj"}, |
||
48 | {"LIB/KMENU.OBJ", "common/lib/kmenu.obj"}, |
||
49 | {"LIB/NETCODE.OBJ", "common/lib/netcode.obj"}, |
||
50 | {"LIB/PIXLIB.OBJ", "common/lib/pixlib.obj"}, |
||
51 | {"MEDIA/IMGF/IMGF", "common/media/ImgF/ImgF"}, |
||
52 | {"MEDIA/IMGF/CEDG.OBJ", "common/media/ImgF/cEdg.obj"}, |
||
53 | {"MEDIA/IMGF/DITHER.OBJ", "common/media/ImgF/dither.obj"}, |
||
54 | {"MEDIA/IMGF/INVSOL.OBJ", "common/media/ImgF/invSol.obj"}, |
||
5098 | clevermous | 55 | {"MEDIA/KIV.INI", PROGS .. "/media/kiv/trunk/kiv.ini"}, |
5468 | leency | 56 | {"MEDIA/PIXIE/PIXIE.INI", PROGS .. "/cmm/pixie/pixie.ini"}, |
57 | {"MEDIA/PIXIE/S_DARK.PNG", PROGS .. "/cmm/pixie/s_dark.png"}, |
||
58 | {"MEDIA/PIXIE/S_LIGHT.PNG", PROGS .. "/cmm/pixie/s_light.png"}, |
||
59 | {"MEDIA/PIXIE/MINIMP3", PROGS .. "/cmm/pixie/minimp3"}, |
||
5098 | clevermous | 60 | {"NETWORK/WV_SKIN.PNG", PROGS .. "/cmm/browser/wv_skin.png"}, |
6958 | leency | 61 | {"NETWORK/FTPD.INI", "common/network/ftpd.ini"}, |
62 | {"NETWORK/USERS.INI", "common/network/users.ini"}, |
||
5873 | pathoswith | 63 | {"SETTINGS/AUTORUN.DAT", "common/settings/AUTORUN.DAT"}, |
6958 | leency | 64 | {"SETTINGS/ASSOC.INI", "common/settings/assoc.ini"}, |
65 | {"SETTINGS/DOCKY.INI", "common/settings/docky.ini"}, |
||
66 | {"SETTINGS/ESKIN.INI", "common/settings/eskin.ini"}, |
||
67 | {"SETTINGS/FB2READ.INI", "common/settings/fb2read.ini"}, |
||
5098 | clevermous | 68 | {"SETTINGS/ICON.INI", build_type .. "/settings/icon.ini"}, |
5873 | pathoswith | 69 | {"SETTINGS/KEYMAP.KEY", PROGS .. "/system/taskbar/trunk/KEYMAP.KEY"}, |
6958 | leency | 70 | {"SETTINGS/KOLIBRI.LBL", build_type .. "/settings/kolibri.lbl"}, |
5098 | clevermous | 71 | {"SETTINGS/LANG.INI", build_type .. "/settings/lang.ini"}, |
72 | {"SETTINGS/MENU.DAT", build_type .. "/settings/menu.dat"}, |
||
6958 | leency | 73 | {"SETTINGS/NETWORK.INI", build_type .. "/settings/network.ini"}, |
5453 | leency | 74 | {"SETTINGS/TASKBAR.INI", build_type .. "/settings/taskbar.ini"}, |
6065 | leency | 75 | {"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"}, |
5972 | leency | 76 | {"SETTINGS/SYSTEM.INI", "common/settings/system.ini"}, |
5098 | clevermous | 77 | } |
7010 | 0CodErr | 78 | |
5098 | clevermous | 79 | -- For russian build, add russian-only files. |
80 | if build_type == "rus" then tup.append_table(img_files, { |
||
81 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/russian/dos_kolibri/kfm_keys.txt"}, |
||
82 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/rus/.shell"}, |
||
5502 | punk_joker | 83 | {"SETTINGS/GAME_CENTER.INI", "rus/settings/game_center.ini"}, |
5098 | clevermous | 84 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
85 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/rus/example.asm"}, |
||
6953 | 0CodErr | 86 | {"RUN", "rus/RUN"}, |
5098 | clevermous | 87 | {"PIPETKA", build_type .. "/pipetka"}, |
88 | {"File Managers/KFAR.INI", build_type .. "/File Managers/kfar.ini"}, |
||
89 | {"GAMES/APPDATA.DAT", build_type .. "/games/appdata.dat"}, |
||
90 | {"GAMES/ATAKA", build_type .. "/games/ataka"}, |
||
7027 | 0CodErr | 91 | {"GAMES/BASEKURS.KLA", build_type .. "/games/basekurs.kla"}, |
5098 | clevermous | 92 | {"GAMES/PADENIE", build_type .. "/games/padenie"}, |
93 | {"GAMES/WHOWTBAM", build_type .. "/games/whowtbam"}, |
||
7010 | 0CodErr | 94 | }) elseif build_type == "eng" then tup.append_table(img_files, { |
7015 | 0CodErr | 95 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/english/kfm_keys.txt"}, |
96 | {"SETTINGS/GAME_CENTER.INI", "common/settings/game_center.ini"}, |
||
97 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/eng/.shell"}, |
||
98 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/example.asm"}, |
||
7010 | 0CodErr | 99 | {"RUN", "eng/RUN"}, |
7015 | 0CodErr | 100 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
101 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
||
7010 | 0CodErr | 102 | }) elseif build_type == "sp" then tup.append_table(img_files, { |
7015 | 0CodErr | 103 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/english/kfm_keys.txt"}, |
104 | {"SETTINGS/GAME_CENTER.INI", "common/settings/game_center.ini"}, |
||
105 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/eng/.shell"}, |
||
106 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/example.asm"}, |
||
7010 | 0CodErr | 107 | {"RUN", "sp/RUN"}, |
7015 | 0CodErr | 108 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
109 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
||
7010 | 0CodErr | 110 | }) elseif build_type == "it" then tup.append_table(img_files, { |
7015 | 0CodErr | 111 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/english/kfm_keys.txt"}, |
112 | {"SETTINGS/GAME_CENTER.INI", "common/settings/game_center.ini"}, |
||
113 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/eng/.shell"}, |
||
114 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/example.asm"}, |
||
7011 | 0CodErr | 115 | {"RUN", "it/RUN"}, |
7010 | 0CodErr | 116 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey_it.ini"}, |
7015 | 0CodErr | 117 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
5098 | clevermous | 118 | }) else tup.append_table(img_files, { |
119 | {"File Managers/KFM_KEYS.TXT", PROGS .. "/fs/kfm/trunk/docs/english/kfm_keys.txt"}, |
||
5502 | punk_joker | 120 | {"SETTINGS/GAME_CENTER.INI", "common/settings/game_center.ini"}, |
5098 | clevermous | 121 | {"SETTINGS/.shell", PROGS .. "/system/shell/bin/eng/.shell"}, |
122 | {"EXAMPLE.ASM", PROGS .. "/develop/examples/example/trunk/example.asm"}, |
||
6953 | 0CodErr | 123 | {"RUN", "common/RUN"}, |
7010 | 0CodErr | 124 | {"SETTINGS/MYKEY.INI", PROGS .. "/system/MyKey/trunk/mykey.ini"}, |
5098 | clevermous | 125 | {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, |
126 | }) end |
||
127 | |||
128 | --[[ |
||
129 | Files to be included in kolibri.iso and distribution kit outside of kolibri.img. |
||
5132 | clevermous | 130 | |
5098 | clevermous | 131 | The first subitem of every item is name relative to the root of ISO or distribution kit, |
132 | the second is name of local file. |
||
5132 | clevermous | 133 | |
5098 | clevermous | 134 | If the first subitem ends in /, the last component of local file name is appended. |
135 | The last component of the second subitem may contain '*'; if so, it will be expanded |
||
136 | according to usual rules, but without matching directories. |
||
5132 | clevermous | 137 | |
138 | Tup does not allow a direct dependency on a file that is generated in a directory |
||
139 | other than where Tupfile.lua is and its children. Most files are generated |
||
140 | in the directory with Tupfile.lua; for other files, the item should contain |
||
141 | a named subitem "group=path/ |
||
5098 | clevermous | 142 | --]] |
143 | extra_files = { |
||
144 | {"/", build_type .. "/distr_data/autorun.inf"}, |
||
145 | {"/", build_type .. "/distr_data/KolibriOS_icon.ico"}, |
||
146 | {"/", build_type .. "/settings/kolibri.lbl"}, |
||
147 | {"Docs/stack.txt", build_type .. "/docs/STACK.TXT"}, |
||
148 | {"HD_Load/9x2klbr/", "common/HD_load/9x2klbr/LDKLBR.VXD"}, |
||
149 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/AUTOEXEC.BAT"}, |
||
150 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/CONFIG.SYS"}, |
||
151 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/L_readme.txt"}, |
||
152 | {"HD_Load/MeOSLoad/", PROGS .. "/hd_load/meosload/L_readme_Win.txt"}, |
||
153 | {"HD_Load/mtldr/", PROGS .. "/hd_load/mtldr/vista_install.bat"}, |
||
154 | {"HD_Load/mtldr/", PROGS .. "/hd_load/mtldr/vista_remove.bat"}, |
||
155 | {"HD_Load/", "common/HD_load/memdisk"}, |
||
156 | {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot.rtf"}, |
||
157 | {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot_866.txt"}, |
||
158 | {"HD_Load/USB_boot_old/", PROGS .. "/hd_load/usb_boot_old/usb_boot_1251.txt"}, |
||
6226 | leency | 159 | {"kolibrios/3D/3dsheart", PROGS .. "/demos/3dsheart/trunk/3dsheart"}, |
160 | {"kolibrios/3D/info3ds/INFO3DS", PROGS .. "/develop/info3ds/info3ds"}, |
||
161 | {"kolibrios/3D/info3ds/INFO3DS_U", PROGS .. "/develop/info3ds/info3ds_u"}, |
||
162 | {"kolibrios/3D/info3ds/INFO3DS.INI", PROGS .. "/develop/info3ds/info3ds.ini"}, |
||
163 | {"kolibrios/3D/info3ds/OBJECTS.PNG", PROGS .. "/develop/info3ds/objects.png"}, |
||
164 | {"kolibrios/3D/info3ds/TL_SYS_16.PNG", PROGS .. "/develop/info3ds/tl_sys_16.png"}, |
||
165 | {"kolibrios/3D/info3ds/TOOLBAR.PNG", PROGS .. "/develop/info3ds/toolbar.png"}, |
||
6237 | IgorA | 166 | {"kolibrios/3D/info3ds/FONT8X9.BMP", PROGS .. "/fs/kfar/trunk/font8x9.bmp"}, |
6583 | leency | 167 | {"kolibrios/3D/md2view/", "common/3d/md2view/*"}, |
6584 | leency | 168 | {"kolibrios/3D/md2view/md2_model/", "common/3d/md2view/md2_model/*"}, |
6247 | IgorA | 169 | {"kolibrios/3D/voxel_editor/VOXEL_EDITOR", PROGS .. "/media/voxel_editor/trunk/voxel_editor"}, |
170 | {"kolibrios/3D/voxel_editor/CURSORS.PNG", PROGS .. "/media/voxel_editor/trunk/cursors.png"}, |
||
171 | {"kolibrios/3D/voxel_editor/CURSORS_GR.PNG", PROGS .. "/media/voxel_editor/trunk/cursors_gr.png"}, |
||
172 | {"kolibrios/3D/voxel_editor/TOOLBAR.PNG", PROGS .. "/media/voxel_editor/trunk/toolbar.png"}, |
||
6248 | IgorA | 173 | {"kolibrios/3D/voxel_editor/VOX_EDITOR.INI", PROGS .. "/media/voxel_editor/trunk/vox_editor.ini"}, |
6247 | IgorA | 174 | {"kolibrios/3D/voxel_editor/HOUSE1.VOX", PROGS .. "/media/voxel_editor/trunk/house1.vox"}, |
175 | {"kolibrios/3D/voxel_editor/HOUSE2.VOX", PROGS .. "/media/voxel_editor/trunk/house2.vox"}, |
||
6279 | IgorA | 176 | {"kolibrios/3D/voxel_editor/SQUIRREL.VOX", PROGS .. "/media/voxel_editor/trunk/squirrel.vox"}, |
177 | {"kolibrios/3D/voxel_utilites/VOX_CREATOR" , PROGS .. "/media/voxel_editor/utilites/vox_creator"}, |
||
178 | {"kolibrios/3D/voxel_utilites/VOX_MOVER" , PROGS .. "/media/voxel_editor/utilites/vox_mover"}, |
||
179 | {"kolibrios/3D/voxel_utilites/VOX_TGL" , PROGS .. "/media/voxel_editor/utilites/vox_tgl"}, |
||
180 | {"kolibrios/3D/voxel_utilites/VOX_MOVER.INI" , PROGS .. "/media/voxel_editor/utilites/vox_mover.ini"}, |
||
181 | {"kolibrios/3D/voxel_utilites/TOOLBAR.PNG" , PROGS .. "/media/voxel_editor/utilites/toolbar.png"}, |
||
182 | {"kolibrios/3D/voxel_utilites/TOOLBAR_M.PNG" , PROGS .. "/media/voxel_editor/utilites/toolbar_m.png"}, |
||
183 | {"kolibrios/3D/voxel_utilites/TOOLBAR_T.PNG" , PROGS .. "/media/voxel_editor/utilites/toolbar_t.png"}, |
||
6287 | IgorA | 184 | {"kolibrios/3D/FONT8X9.BMP", PROGS .. "/fs/kfar/trunk/font8x9.bmp"}, |
185 | {"kolibrios/3D/TOOLB_1.PNG", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/toolb_1.png"}, |
||
186 | {"kolibrios/3D/TEST_GLU1", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/test_glu1"}, |
||
187 | {"kolibrios/3D/TEST_GLU2", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/test_glu2"}, |
||
188 | {"kolibrios/3D/TEXT_2.PNG", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/text_2.png"}, |
||
189 | {"kolibrios/3D/TEXTURES1", PROGS .. "/develop/libraries/TinyGL/asm_fork/examples/textures1"}, |
||
6613 | leency | 190 |