qmake platform scopes

后端 未结 1 727
梦谈多话
梦谈多话 2021-01-17 09:49

A standard c++ qmake-based library is developed for Win32, Mac, and Linux. In the qmake project file, the platform-dependent sources are included like this:

         


        
1条回答
  •  -上瘾入骨i
    2021-01-17 10:11

    You can negate and combine blocks, so in unix but not in mac would be:

    unix:!macx {
      SOURCES += LinuxSystem.cpp
      HEADERS += LinuxSystem.h
    }
    

    0 讨论(0)
提交回复
热议问题