tools/configure/tools.cpp
changeset 18 2f34d5167611
parent 3 41300fa6a67c
child 37 758a864f9613
equal deleted inserted replaced
3:41300fa6a67c 18:2f34d5167611
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the tools applications of the Qt Toolkit.
     7 ** This file is part of the tools applications of the Qt Toolkit.
     8 **
     8 **
   144         }
   144         }
   145     } else if (strcmp(licenseSchema,"Z4M") == 0 || strcmp(licenseSchema,"R4M") == 0 || strcmp(licenseSchema,"Q4M") == 0) {
   145     } else if (strcmp(licenseSchema,"Z4M") == 0 || strcmp(licenseSchema,"R4M") == 0 || strcmp(licenseSchema,"Q4M") == 0) {
   146         if (products == 'B') {
   146         if (products == 'B') {
   147             dictionary["EDITION"] = "Evaluation";
   147             dictionary["EDITION"] = "Evaluation";
   148             dictionary["QT_EDITION"] = "QT_EDITION_EVALUATION";
   148             dictionary["QT_EDITION"] = "QT_EDITION_EVALUATION";
       
   149             licenseType = "Evaluation";
   149         }
   150         }
   150     }
   151     }
   151 
   152 
   152     if (platforms[2] == 'L') {
   153     if (platforms[2] == 'L') {
   153         static const char src[] = "8NPQRTZ";
   154         static const char src[] = "8NPQRTZ";
   210         cout << "Qt Open Source Edition if you intend to develop free software." << endl;
   211         cout << "Qt Open Source Edition if you intend to develop free software." << endl;
   211         return;
   212         return;
   212     }
   213     }
   213 
   214 
   214     // Override for evaluation licenses
   215     // Override for evaluation licenses
   215     if (dictionary["Edition"] == "Evaluation")
   216     if (dictionary["EDITION"] == "Evaluation")
   216         dictionary["LICENSE_EXTENSION"] = "-EVALUATION";
   217         dictionary["LICENSE_EXTENSION"] = "-EVALUATION";
   217 
   218 
   218     if (QFile::exists(dictionary["QT_SOURCE_TREE"] + "/.LICENSE")) {
   219     if (QFile::exists(dictionary["QT_SOURCE_TREE"] + "/.LICENSE")) {
   219         // Generic, no-suffix license
   220         // Generic, no-suffix license
   220         dictionary["LICENSE_EXTENSION"] = QString();
   221         dictionary["LICENSE_EXTENSION"] = QString();