zoukankan      html  css  js  c++  java
  • QMAKE_COPY 不同平台对应的命令

    QMAKE_COPY 不同平台对应的命令

    来源 https://stackoverflow.com/questions/20324061/where-are-variables-such-as-mkdir-and-copy-dir-defined

    Before a .pro file is processed and your Makefiles are generated by qmake several other files are pre-processed based on your compiler and platform. These files have the extension .prf and .conf and are loaded from a directory called mkspecs.

    The values of MKDIR and COPY_DIR variables in your Makefiles are generated by the values of QMAKE_MKDIR and QMAKE_COPY_DIR variables defined in the following files:

    C:QtQt5.0.25.0.2msvc2010mkspecscommonshell-unix.conf:

    QMAKE_TAR              = tar -cf
    QMAKE_GZIP             = gzip -9f
    
    QMAKE_COPY             = cp -f
    QMAKE_COPY_FILE        = $$QMAKE_COPY
    QMAKE_COPY_DIR         = $$QMAKE_COPY -R
    QMAKE_MOVE             = mv -f
    QMAKE_DEL_FILE         = rm -f
    QMAKE_DEL_DIR          = rmdir
    QMAKE_CHK_EXISTS       = test -e %1 ||
    QMAKE_CHK_DIR_EXISTS   = test -d    # legacy
    QMAKE_MKDIR            = mkdir -p   # legacy
    QMAKE_MKDIR_CMD        = test -d %1 || mkdir -p %1
    QMAKE_STREAM_EDITOR    = sed
    

    C:QtQt5.0.25.0.2msvc2010mkspecscommonshell-win32.conf:

    QMAKE_ZIP              = zip -r -9
    
    QMAKE_COPY             = copy /y
    QMAKE_COPY_DIR         = xcopy /s /q /y /i
    QMAKE_MOVE             = move
    QMAKE_DEL_FILE         = del
    QMAKE_DEL_DIR          = rmdir
    QMAKE_CHK_EXISTS       = if not exist %1
    QMAKE_CHK_DIR_EXISTS   = if not exist   # legacy
    QMAKE_MKDIR            = mkdir          # legacy
    QMAKE_MKDIR_CMD        = if not exist %1 mkdir %1 & if not exist %1 exit 1
    
    # xcopy copies the contained files if source is a directory. Deal with it.
    CONFIG += copy_dir_files
    

    (As you can see I am using Qt 5.0.2 so the path might be different on your machine.)

    ============= End

  • 相关阅读:
    并发编程的艺术
    Redis字符串实现,SDS与C的区别,空间预分配
    Jvm
    Redis数据结构的实现
    发一篇感谢身边的所有从事it工作的朋友
    BeanFactory 默认的注入实现类DefaultListableBeanFactory
    jsSwitch语句优化
    彻底搞懂 Nginx 的五大应用场景
    Spring Boot 整合 Quartz 轻松实现任务调度!
    js计算两个给定日期之间的天数
  • 原文地址:https://www.cnblogs.com/lsgxeva/p/12749592.html
Copyright © 2011-2022 走看看