VirtualBox

Changeset 2540 in kBuild


Ignore:
Timestamp:
Aug 2, 2011 8:13:24 PM (13 years ago)
Author:
bird
Message:

kbuild.c: For the time being, we'll defined two sets of local variables. The new ones are: kbsrc_cmds, kbsrc_output, kbsrc_output_maybe, kbsrc_depend & kbsrc_depord.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kbuild.c

    r2539 r2540  
    21112111    do_variable_definition_2(NILF, pszDstVar, pVar->value, pVar->value_length,
    21122112                             !pVar->recursive, 0, o_local, f_simple, 0 /* !target_var */);
     2113    do_variable_definition_2(NILF, "kbsrc_cmds", pVar->value, pVar->value_length,
     2114                             !pVar->recursive, 0, o_local, f_simple, 0 /* !target_var */);
    21132115
    21142116    memcpy(pszSrc, "_OUTPUT", sizeof("_OUTPUT"));
     
    21172119    pOutput = do_variable_definition_2(NILF, pszDstVar, pVar->value, pVar->value_length,
    21182120                                       !pVar->recursive, 0, o_local, f_simple, 0 /* !target_var */);
     2121    pOutput = do_variable_definition_2(NILF, "kbsrc_output", pVar->value, pVar->value_length,
     2122                                       !pVar->recursive, 0, o_local, f_simple, 0 /* !target_var */);
    21192123
    21202124    memcpy(pszSrc, "_OUTPUT_MAYBE", sizeof("_OUTPUT_MAYBE"));
     
    21222126    pVar = kbuild_query_recursive_variable(pszSrcVar);
    21232127    if (pVar)
     2128    {
    21242129        pOutputMaybe = do_variable_definition_2(NILF, pszDstVar, pVar->value, pVar->value_length,
    21252130                                                !pVar->recursive, 0, o_local, f_simple, 0 /* !target_var */);
     2131        pOutputMaybe = do_variable_definition_2(NILF, "kbsrc_output_maybe", pVar->value, pVar->value_length,
     2132                                                !pVar->recursive, 0, o_local, f_simple, 0 /* !target_var */);
     2133    }
    21262134    else
     2135    {
    21272136        pOutputMaybe = do_variable_definition_2(NILF, pszDstVar, "", 0, 1, 0, o_local, f_simple, 0 /* !target_var */);
     2137        pOutputMaybe = do_variable_definition_2(NILF, "kbsrc_output_maybe", "", 0, 1, 0, o_local, f_simple, 0 /* !target_var */);
     2138    }
    21282139
    21292140    memcpy(pszSrc, "_DEPEND", sizeof("_DEPEND"));
     
    21382149    do_variable_definition_2(NILF, pszDstVar, pszVal, pVar->value_length + 1 + pDeps->value_length + 1 + pSource->value_length,
    21392150                             !pVar->recursive && !pDeps->recursive && !pSource->recursive,
     2151                             NULL, o_local, f_simple, 0 /* !target_var */);
     2152    do_variable_definition_2(NILF, "kbsrc_depend", pszVal, pVar->value_length + 1 + pDeps->value_length + 1 + pSource->value_length,
     2153                             !pVar->recursive && !pDeps->recursive && !pSource->recursive,
    21402154                             pszVal, o_local, f_simple, 0 /* !target_var */);
    21412155
     
    21502164    memcpy(psz, pOrderDeps->value, pOrderDeps->value_length + 1);
    21512165    do_variable_definition_2(NILF, pszDstVar, pszVal,
     2166                             pVar->value_length + 1 + pDirDep->value_length + 1 + pOrderDeps->value_length,
     2167                             !pVar->recursive && !pDirDep->recursive && !pOrderDeps->recursive,
     2168                             NULL, o_local, f_simple, 0 /* !target_var */);
     2169    do_variable_definition_2(NILF, "kbsrc_depord", pszVal,
    21522170                             pVar->value_length + 1 + pDirDep->value_length + 1 + pOrderDeps->value_length,
    21532171                             !pVar->recursive && !pDirDep->recursive && !pOrderDeps->recursive,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette