16 # build sub-cmd map to step.
29 STEP_SRC="STEP_BUILD_DEST"
43 ###########################################################
45 ##########################################################
58 # steps before dest-constructing.
59 STEP_TOOLCHAIN_CHK="toolchain_chk()"
60 STEP_DEV_ENV_CHK="dev_env_chk()"
61 STEP_DEP_LIB_CHK="dep_lib_chk()"
62 STEP_DEP_SYSHDR_CHK="dep_syshdr_chk()"
64 STEP_CONFIG_GEN="config_gen()"
65 STEP_VERSION_GEN="version_gen()"
68 ###########################################################
69 # main compile build step
70 ###########################################################
74 # @ append second parameter with item in first list.
78 STEP_ONE_DEST_INIT="step_one_dest_init()"
79 STEP_BUILD_ONE_DEST="step_build_one_dest()"
80 # STEP_CONSTRUCT_INIT="construct_init()"
81 STEP_HOSTUTILS_LN2HOST="step_hostutils_ln2host()"
82 STEP_HOSTUTILS_PREV_INIT="step_hostutils_prev_init()"
83 STEP_HOSTUTILS_POST_INIT="step_hostutils_post_init()"
87 STEP_PRI_PREV_CONSTRUCT
88 TASKLIST(DEST_LIST_Y, STEP_BUILD_ONE_DEST)
89 STEP_PRI_POST_CONSTRUCT"
92 STEP_ONE_DEST_INIT(DEST_NAME)
93 STEP_PRI_PREV_DEST_BUILD
94 # STEP_DEST_CHK(DEST_NAME)
95 TASKLIST(LANG_LIST_Y, STEP_LANG_SRC_TPCHK)
96 TASKLIST(LANG_LIST_Y, STEP_LANG_CMPL)
97 STEP_LINK(OBJ_LIST, DEST_FILENAME)
98 # put this step into STEP_LINK
99 # STEP_PROGINFO(DEBUG)
100 STEP_PRI_POST_DEST_BUILD"
102 # TBD: append corresponding dest steps,
103 # some of them need STRIP in non DEBUG version.
107 # STEP_OBJLIST2SRCLIST=objlist2srclist
109 STEP_EXE_DEST="STEP_DEFAULT_DEST
111 STEP_DLL_DEST="STEP_DEFAULT_DEST
113 STEP_LIB_DEST="STEP_DEFAULT_DEST"
114 STEP_LIBDLL_DEST="STEP_DEFAULT_DEST"
115 STEP_DRV_DEST="STEP_DEFAULT_DEST
117 STEP_LA_DEST="STEP_DEFAULT_DEST"
118 STEP_LO_DEST="STEP_DEFAULT_DEST"
119 STEP_OBJ_DEST="STEP_DEFAULT_DEST"
122 STEP_ONE_DEST_INIT(DEST_NAME)
123 STEP_PRI_PREV_DEST_BUILD
124 TASKLIST(LANG_LIST_Y, STEP_LANG_SRC_TPCHK)
125 TASKLIST(LANG_LIST_Y, STEP_LANG_CMPL)
126 STEP_LINK(OBJ_LIST, DEST_FILENAME)
127 TASKLIST(LANG_LIST_Y, STEP_LANG_SRC2UNITSRC)
128 TASKLIST(LANG_LIST_Y, STEP_LANG_SRC_TPCHK)
129 TASKLIST(LANG_LIST_Y, STEP_LANG_CMPL)
130 STEP_LINK(OBJ_LIST, DEST_FILENAME)
131 # TASKLIST(LANG_LIST_Y, STEP_STRIP(DEBUG))
132 STEP_PRI_POST_DEST_BUILD"
136 TASKLIST(LANG_LIST_Y, STEP_LANG_CMPL)"
139 STEP_ONE_DEST_INIT(DEST_NAME)
140 STEP_PRI_PREV_DEST_BUILD
141 # TASKLIST(LANG_LIST_Y, STEP_LANG_SRC_TPCHK)
142 TASKLIST(LANG_LIST_Y, STEP_LANG_SRC2EXE)
143 # TASKLIST(LANG_LIST_Y, STEP_STRIP(DEBUG))
144 STEP_PRI_POST_DEST_BUILD"
146 STEP_HOSTUTILS_DEST="
147 STEP_ONE_DEST_INIT(DEST_NAME)
148 STEP_PRI_PREV_DEST_BUILD
149 STEP_HOSTUTILS_PREV_INIT
150 # TASKLIST(LANG_LIST_Y, STEP_LANG_SRC_TPCHK)
151 TASKLIST(LANG_LIST_Y, STEP_LANG_SRC2EXE)
152 # TASKLIST(LANG_LIST_Y, STEP_STRIP(DEBUG))
153 # STEP_HOSTUTILS_LN2HOST
154 STEP_HOSTUTILS_POST_INIT
155 STEP_PRI_POST_DEST_BUILD"
158 STEP_HEX_DEST="STEP_DEFAULT_DEST STEP_EXE2HEX"
159 STEP_BIN_DEST="STEP_DEFAULT_DEST STEP_EXE2BIN"
162 ###########################################################
164 ###########################################################
166 # TBD: have not been implemented.
168 TASKLIST(HELPER_DOC_LIST, STEP_DOC_BUILD)
169 TASKLIST(UMDOC_LIST, STEP_DOC_BUILD)
170 TASKLIST(WEBDOC_LIST, STEP_DOC_BUILD)"
173 ###########################################################
175 ###########################################################
177 TASKLIST="step_tasklist()"
178 STEP_STRIP="progstrip()"
179 STEP_PROGINFO="prog_sizeinfo()"
181 STEP_LANG_SRC_TPCHK="step_lang_src_tpchk()"
182 STEP_LANG_CMPL="step_one_lang_cmpl()"
184 STEP_LANG_SRC2EXE="step_lang_src2exe()"
185 STEP_LANG_SRC2UNITSRC="step_lang_src2unitsrc()"
188 ###############################################
193 # dest names are named as "exe/dll/lib/drv", it'scan
194 # the short name of output file, it doesn't means
195 # that it uses windows sytle name. if it use 'elf' for
196 # a executable file, it's not general in various env.
199 # C_SRC_LIST defined in .list file
200 STEP_C_LANG_CMPL="TASKLIST(C_SRC_CMPL_LIST, STEP_C_SRC_CMPL)"
208 # CXX_SRC_LIST defined in .list file
209 STEP_CXX_LANG_CMPL="TASKLIST(CXX_SRC_CMPL_LIST, STEP_CXX_SRC_CMPL)"
217 # CPP_SRC_LIST defined in .list file
218 STEP_CPP_LANG_CMPL="TASKLIST(CPP_SRC_CMPL_LIST, STEP_CPP_SRC_CMPL)"
226 # ASM_SRC_LIST defined in .list file
227 STEP_ASM_LANG_CMPL="TASKLIST(ASM_SRC_CMPL_LIST, STEP_ASM_SRC_CMPL)"
235 # SH_SRC_LIST defined in .list file
236 STEP_SH_LANG_CMPL="TASKLIST(SH_SRC_CMPL_LIST, STEP_SH_SRC_CMPL)"
244 ###############################################
248 # C_SRC_FILE_LIST_Y defined in .list file
249 STEP_C_LANG_SRC2EXE="TASKLIST(C_SRC_FILE_LIST_Y, STEP_C_SRC2EXE)"
259 # CXX_SRC_FILE_LIST_Y defined in .list file
260 STEP_CXX_LANG_SRC2EXE="TASKLIST(CXX_SRC_FILE_LIST_Y, STEP_CXX_SRC2EXE)"
270 # CPP_SRC_FILE_LIST_Y defined in .list file
271 STEP_CPP_LANG_SRC2EXE="TASKLIST(CPP_SRC_FILE_LIST_Y, STEP_CPP_SRC2EXE)"
281 # ASM_SRC_FILE_LIST_Y defined in .list file
282 STEP_ASM_LANG_SRC2EXE="TASKLIST(ASM_SRC_FILE_LIST_Y, STEP_ASM_SRC2EXE)"
292 # SH_SRC_FILE_LIST_Y defined in .list file
293 STEP_SH_LANG_SRC2EXE="TASKLIST(SH_SRC_FILE_LIST_Y, STEP_SH_SRC2EXE)"
303 ###############################################
308 STEP_LINK="step_link()"
310 # build steps below is setted accroding DEST_TYPE in dest.imi
339 STEP_UNITLIBDLL_LINK="
385 ###############################################
387 # those proc functions are defined in <srcpkg>.shlib,
388 # it's a privaate function for a srcpkg.
391 # private steps in a dest-constructing.
392 STEP_PRI_PREV_CONSTRUCT="on_prev_construct()"
393 STEP_PRI_POST_CONSTRUCT="on_post_construct()"
394 STEP_PRI_PREV_DEST_BUILD="on_prev_dest_build()"
395 STEP_PRI_POST_DEST_BUILD="on_post_dest_build()"
396 STEP_PRI_PREV_CMPL="on_prev_cmpl()"
397 STEP_PRI_POST_CMPL="on_post_cmpl()"
398 STEP_PRI_PREV_LINK="on_prev_link()"
399 STEP_PRI_POST_LINK="on_post_link()"
400 STEP_PRI_PREV_INSTPKG_GEN="on_prev_instpkg_gen()"
401 STEP_PRI_POST_INSTPKG_GEN="on_post_instpkg_gen()"
402 STEP_PRI_PREV_ARCH_BUILD="on_prev_arch_build()"
403 STEP_PRI_POST_ARCH_BUILD="on_post_arch_build()"
406 #################################################################
411 "[STEP_TEX_2_MAN STEP_TEX_2_TXT STEP_TEX_2_PDF STEP_TEX_2_HTML STEP_MD_2_HTML STEP_HTML_2_CHM ]"
439 STEP_DOC_GEN="TASKLIST(GEN_DOC_TYPE_LIST, doc_gen())"
441 STEP_INFO_2_MAN="info_2_man()"
442 STEP_INFO_2_HTML="info_2_html()"
443 STEP_INFO_2_PDF="info_2_pdf()"
444 STEP_TEX_2_MAN="tex_2_man()"
445 STEP_TEX_2_INFO="tex_2_info()"
446 STEP_TEX_2_TXT="tex_2_txt()"
447 STEP_TEX_2_PDF="tex_2_pdf()"
448 STEP_TEX_2_HTML="tex_2_html()"
449 STEP_TEX_2_DVI="tex_2_dvi()"
450 STEP_TEX_2_DOCBOOK="tex_2_docbook()"
451 STEP_DOCBOOK_2_TXT="docbook_2_txt()"
452 STEP_DOCBOOK_2_PDF="docbook_2_pdf()"
453 STEP_DOCBOOK_2_HTML="docbook_2_html()"
454 STEP_DOCBOOK_2_DVI="docbook_2_dvi()"
456 STEP_MD_2_HTML="md2html()"
457 STEP_RST_2_HTML="rst2html()"
458 STEP_HTML_2_CHM="html2chm()"
461 STEP_APIDOC_GEN="apidocgen()"
462 STEP_GRAPHVIZE_GEN="graphvize()"
464 #################################################################
467 STEP_INTL_GEN="intl()"
492 ###############################################
494 # hdrtpchk() is included in tpchk().
495 # this step decrease files to be compiled.
496 # in compile step, it will run tpchk() and hdrtpchk()
500 # <LANG>_SRC_FILE_LIST_Y defined in .list file
501 STEP_C_LANG_SRC_TPCHK="c_lang_src_tpchk()"
502 STEP_CXX_LANG_SRC_TPCHK="cxx_lang_src_tpchk()"
503 STEP_CPP_LANG_SRC_TPCHK="cpp_lang_src_tpchk()"
504 STEP_ASM_LANG_SRC_TPCHK="asm_lang_src_tpchk()"
505 STEP_SH_LANG_SRC_TPCHK="sh_lang_src_tpchk()"