Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to deploy headers and then make them readonly from qmake and qtcreator?
Forum Updated to NodeBB v4.3 + New Features

How to deploy headers and then make them readonly from qmake and qtcreator?

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 753 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gbonnema
    wrote on last edited by
    #1

    I deploy my libraries to a specific set of 'lib' and 'include' directory. I would like to ensure that if I use these header files from a different project I do not accidentally modify the deployed header files, because they will be overwritten the next time I deploy, plus this creates discrepancy with the library.

    How can I make deployed header files readonly using qmake?

    As I share this environment with the other members of my team, I would prefer to solve this from qtmake, in stead of doing something on my machine only. I distribute using git.

    Anyone ideas?

    An example of a .pro file is:

    @QT -= qt
    QT -= core gui

    TARGET = bitpowder
    TEMPLATE = lib

    CONFIG += C++11
    CONFIG += create_prl
    CONFIG += link_prt
    CONFIG += static dll

    DEFINES += BITPOWDER_LIBRARY

    # just a few example source files
    

    SOURCES +=
    dispatch.cpp
    stringparse.cpp
    thread.cpp
    type_hash.cpp \

    # just a few example source files
    

    HEADERS +=
    bitpowder_global.h
    dispatch.h
    stringparse.h
    thread.h
    type_hash.h
    zip.h
    ################################################

    INSTALL instructions

    ################################################

    unix|win32 {
    target.path = $$PWD/../../lib/bitpowder
    INSTALLS += target

    headerfiles.path=$$PWD/../../include/bitpowder
    headerfiles.files = $$PWD/*.h
    INSTALLS += headerfiles
    

    }

    @

    1 Reply Last reply
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved