Changeset 28


Ignore:
Timestamp:
Jun 11, 2009, 10:11:16 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: Create mkspecs/default.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.cmd

    r26 r28  
    652652    /* mkspecs/default is used as a (gasp!) default mkspec so QMAKESPEC needn't
    653653     * be set once configured */
    654 /*
    655 @todo
    656 */
     654    call DeleteDir G.RelPath"\mkspecs\default"
     655    call CopyDir G.RelPath"\mkspecs\"G.PLATFORM, G.RelPath"\mkspecs\default"
     656    /* fix qmake.conf by appending the location of the original to it; this is
     657     * used by qmake/project.cpp to determine the original QMAKESPEC */
     658    call charout G.RelPath"\mkspecs\default\qmake.conf",,
     659        G.EOL"QMAKESPEC_ORIGINAL="G.RelPath"\mkspecs\"G.PLATFORM||G.EOL
     660    call charout G.RelPath"\mkspecs\default\qmake.conf"
    657661
    658662    /* create temporary qconfig.h for compiling qmake, if it doesn't exist
     
    697701        call Done 2
    698702
     703
    699704    signal Nonsense
    700705    return
     
    785790MakeDir: procedure expose (Globals)
    786791    /* @todo teach it to create all non-existing intermediate dirs */
    787     parse arg path
    788     rc = SysMkDir(path)
     792    parse arg
     793    rc = SysMkDir()
    789794    if (rc \= 0) then do
    790         call SayErr 'FATAL: Could not create directory '''path'''!'
     795        call SayErr 'FATAL: Could not create directory ''''''!'
    791796        call SayErr 'SysMkDir returned 'rc
    792797        call Done 1
     798
     799
     800
     801
     802
     803
     804
     805
     806
     807
     808
     809
     810
     811
     812
     813
     814
     815
     816
     817
     818
     819
     820
     821
     822
     823
     824
     825
     826
     827
     828
     829
     830
     831
     832
     833
     834
     835
     836
     837
     838
     839
     840
     841
    793842    end
    794843    return
  • trunk/qmake/project.cpp

    r27 r28  
    16681668                                             : vars["QMAKESPEC_ORIGINAL"]);
    16691669        if (!spec_org.isEmpty()) {
    1670             spec = spec_org.at(0);
    1671             int lastSlash = spec.lastIndexOf('/');
    1672             if(lastSlash != -1)
    1673                 spec = spec.mid(lastSlash + 1);
     1670            spec = QFileInfo(spec_org.at(0)).fileName();
    16741671            if((regex && re.exactMatch(spec)) || (!regex && spec == x))
    16751672                return true;
Note: See TracChangeset for help on using the changeset viewer.