Lines Matching refs:MODE
64 static int32_t pkg_createWindowsDLL(const char mode, const char *gencFilePath, UPKGOptions *o);
72 static int32_t pkg_createWithoutAssemblyCode(UPKGOptions *o, const char *targetDir, const char mode);
75 static int32_t pkg_createWithAssemblyCode(const char *targetDir, const char mode, const char *gencFilePath);
76 static int32_t pkg_generateLibraryFile(const char *targetDir, const char mode, const char *objectFile, char *command = NULL, UBool specialHandling=FALSE);
78 static void createFileNames(UPKGOptions *o, const char mode, const char *version_major, const char *version, const char *libName, const UBool reverseExt, UBool noVersion);
84 #define IN_COMMON_MODE(mode) (mode == 'a' || mode == 'c')
85 #define IN_DLL_MODE(mode) (mode == 'd' || mode == 'l')
86 #define IN_STATIC_MODE(mode) (mode == 's')
87 #define IN_FILES_MODE(mode) (mode == 'f')
92 MODE,
134 /*02*/ UOPTION_DEF( "mode", 'm', UOPT_REQUIRES_ARG),
223 "Specify the mode of building (see below; default: common)",
235 "Specify a version when packaging in dll or static mode",
238 "Quite mode. (e.g. Do not output a readme file for static libraries)",
261 options[MODE].value = "common";
285 if(!options[BLDOPT].doesOccur && uprv_strcmp(options[MODE].value, "common") != 0) {
347 o.mode = options[MODE].value;
541 const char mode = o->mode[0];
550 if (IN_FILES_MODE(mode)) {
560 fprintf(stdout, "# Install: Files mode, copying files to %s..\n", targetDir);
565 } else /* if (IN_COMMON_MODE(mode) || IN_DLL_MODE(mode) || IN_STATIC_MODE(mode)) */ {
590 if (IN_COMMON_MODE(mode)) {
626 } else /* if (IN_STATIC_MODE(mode) || IN_DLL_MODE(mode)) */ {
643 if (IN_DLL_MODE(mode)) {
644 fprintf(stdout, "Warning: Providing a revision number with the -r option is recommended when packaging data in the current mode.\n");
657 createFileNames(o, mode, version_major, o->version == NULL ? "" : o->version, o->libName, reverseExt, noVersion);
659 if ((o->version!=NULL || IN_STATIC_MODE(mode)) && o->rebuild == FALSE && o->pdsbuild == FALSE) {
702 result = pkg_createWithAssemblyCode(targetDir, mode, gencFilePath);
706 } else if (IN_STATIC_MODE(mode)) {
725 result = pkg_createWithoutAssemblyCode(o, targetDir, mode);
735 result = pkg_generateLibraryFile(targetDir, mode, gencFilePath);
737 result = pkg_createWindowsDLL(mode, gencFilePath, o);
740 result = pkg_createWithoutAssemblyCode(o, targetDir, mode);
753 if(!IN_STATIC_MODE(mode)) {
867 static void createFileNames(UPKGOptions *o, const char mode, const char *version_major, const char *version, const char *libName, UBool reverseExt, UBool noVersion) {
869 /* MinGW does not need the library prefix when building in dll mode. */
870 if (IN_DLL_MODE(mode)) {
964 if(IN_STATIC_MODE(mode)) {
1290 static int32_t pkg_generateLibraryFile(const char *targetDir, const char mode, const char *objectFile, char *command, UBool specialHandling) {
1304 if (IN_STATIC_MODE(mode)) {
1330 } else /* if (IN_DLL_MODE(mode)) */ {
1461 static int32_t pkg_createWithAssemblyCode(const char *targetDir, const char mode, const char *gencFilePath) {
1494 return pkg_generateLibraryFile(targetDir, mode, tempObjectFile);
1526 static int32_t pkg_createWithoutAssemblyCode(UPKGOptions *o, const char *targetDir, const char mode) {
1697 result = pkg_generateLibraryFile(targetDir, mode, buffer, cmd, (o->pdsbuild && IN_DLL_MODE(mode)));
1699 result = pkg_generateLibraryFile(targetDir,mode, buffer, cmd);
1718 static int32_t pkg_createWindowsDLL(const char mode, const char *gencFilePath, UPKGOptions *o) {
1721 if (IN_STATIC_MODE(mode)) {
1744 } else if (IN_DLL_MODE(mode)) {
2039 /* normal mode.. o->files is just the bare list without package names */