Home | History | Annotate | Download | only in pkgdata

Lines Matching refs:MODE

74 static int32_t pkg_createWindowsDLL(const char mode, const char *gencFilePath, UPKGOptions *o);
82 static int32_t pkg_createWithoutAssemblyCode(UPKGOptions *o, const char *targetDir, const char mode);
90 static int32_t pkg_createWithAssemblyCode(const char *targetDir, const char mode, const char *gencFilePath);
91 static int32_t pkg_generateLibraryFile(const char *targetDir, const char mode, const char *objectFile, char *command = NULL, UBool specialHandling=FALSE);
93 static void createFileNames(UPKGOptions *o, const char mode, const char *version_major, const char *version, const char *libName, const UBool reverseExt, UBool noVersion);
99 #define IN_COMMON_MODE(mode) (mode == 'a' || mode == 'c')
100 #define IN_DLL_MODE(mode) (mode == 'd' || mode == 'l')
101 #define IN_STATIC_MODE(mode) (mode == 's')
102 #define IN_FILES_MODE(mode) (mode == 'f')
107 MODE,
149 /*02*/ UOPTION_DEF( "mode", 'm', UOPT_REQUIRES_ARG),
238 "Specify the mode of building (see below; default: common)",
250 "Specify a version when packaging in dll or static mode",
253 "Quite mode. (e.g. Do not output a readme file for static libraries)",
276 options[MODE].value = "common";
300 if(!options[BLDOPT].doesOccur && uprv_strcmp(options[MODE].value, "common") != 0) {
362 o.mode = options[MODE].value;
556 const char mode = o->mode[0];
565 if (IN_FILES_MODE(mode)) {
575 fprintf(stdout, "# Install: Files mode, copying files to %s..\n", targetDir);
580 } else /* if (IN_COMMON_MODE(mode) || IN_DLL_MODE(mode) || IN_STATIC_MODE(mode)) */ {
605 if (IN_COMMON_MODE(mode)) {
641 } else /* if (IN_STATIC_MODE(mode) || IN_DLL_MODE(mode)) */ {
658 if (IN_DLL_MODE(mode)) {
659 fprintf(stdout, "Warning: Providing a revision number with the -r option is recommended when packaging data in the current mode.\n");
672 createFileNames(o, mode, version_major, o->version == NULL ? "" : o->version, o->libName, reverseExt, noVersion);
674 if ((o->version!=NULL || IN_STATIC_MODE(mode)) && o->rebuild == FALSE && o->pdsbuild == FALSE) {
717 result = pkg_createWithAssemblyCode(targetDir, mode, gencFilePath);
721 } else if (IN_STATIC_MODE(mode)) {
740 result = pkg_createWithoutAssemblyCode(o, targetDir, mode);
753 result = pkg_generateLibraryFile(targetDir, mode, gencFilePath);
755 result = pkg_createWindowsDLL(mode, gencFilePath, o);
758 result = pkg_createWithoutAssemblyCode(o, targetDir, mode);
771 if(!IN_STATIC_MODE(mode)) {
892 static void createFileNames(UPKGOptions *o, const char mode, const char *version_major, const char *version, const char *libName, UBool reverseExt, UBool noVersion) {
897 /* MinGW does not need the library prefix when building in dll mode. */
898 if (IN_DLL_MODE(mode)) {
1000 if(IN_STATIC_MODE(mode)) {
1327 static int32_t pkg_generateLibraryFile(const char *targetDir, const char mode, const char *objectFile, char *command, UBool specialHandling) {
1344 if (IN_STATIC_MODE(mode)) {
1370 } else /* if (IN_DLL_MODE(mode)) */ {
1501 static int32_t pkg_createWithAssemblyCode(const char *targetDir, const char mode, const char *gencFilePath) {
1534 return pkg_generateLibraryFile(targetDir, mode, tempObjectFile);
1568 static int32_t pkg_createWithoutAssemblyCode(UPKGOptions *o, const char *targetDir, const char mode) {
1739 result = pkg_generateLibraryFile(targetDir, mode, buffer, cmd, (o->pdsbuild && IN_DLL_MODE(mode)));
1741 result = pkg_generateLibraryFile(targetDir,mode, buffer, cmd);
1760 static int32_t pkg_createWindowsDLL(const char mode, const char *gencFilePath, UPKGOptions *o) {
1763 if (IN_STATIC_MODE(mode)) {
1786 } else if (IN_DLL_MODE(mode)) {
2081 /* normal mode.. o->files is just the bare list without package names */