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. Share Qt code as packages like Cocoapods does

Share Qt code as packages like Cocoapods does

Scheduled Pinned Locked Moved Qt Creator and other tools
7 Posts 3 Posters 1.9k 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.
  • cybercatalystC Offline
    cybercatalystC Offline
    cybercatalyst
    wrote on last edited by
    #1

    Hey there,

    I put up a proposal on how share Qt code packages with other users and wrote a small, but nifty tool that reads a package definition list and lets you install foreign managed Qt code as git submodules.

    Everything is hosted on github (https://github.com/cybercatalyst/qt-pods), but I don't mean to spam, so I put a copy of the README that says it all in here:

    qt-pods is an attempt to unify the packaging of fragments of Qt sources. Inspired by the cocoapods project, each fragment follows a strict rule of how its contents are made up, so everyone can easily package her/his code and share it with other developers.

    Based on my previous experiences with exporting code fragments to be used by others with Qt, it turned out to be a good idea to share them as static libs and git submodules. These are the rules that must apply to every fragment:

    Naming:

    The fragment name is all lower-case and is equal to the repository name.
    The fragment name starts with a "q".
    The fragment name is unique.
    Folder structure:

    The distribution of the source is up to the developer.
    The repository root contains a *.pro file that is a lib template.
    The lib is configured as staticlib.
    The *.pro must have exactly have the same name as the repository.
    The repository contains a *.pri file that contains instructions for the final target (for example linker flags of dependencies).
    The resulting library must be in the root of the repository after it has been built.
    Formalities:

    The repository must contain a LICENSE file with the license at root.
    The repository must contain a README.md file with the name of the author at root.
    I have written myself a script that can draw in fragments that follow the above rules, but it is not very flexible. qt-pods is a seconds attempt to have a nice tool for that job.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Sounds like an interesting plan, you should maybe talk with Cornelius Schumacher from the inqlude.org project about that

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • cybercatalystC Offline
        cybercatalystC Offline
        cybercatalyst
        wrote on last edited by
        #3

        Thanks :) I just dropped him a mail.

        1 Reply Last reply
        0
        • cybercatalystC Offline
          cybercatalystC Offline
          cybercatalyst
          wrote on last edited by
          #4

          I made a video on how to use: https://www.youtube.com/watch?v=P-gA5g9ZP9I

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Looks promising !

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • cybercatalystC Offline
              cybercatalystC Offline
              cybercatalyst
              wrote on last edited by
              #6

              I have just set up http://qt-pods.org. I am also preparing talks and workshops, very high load atm :) Please spread the word!

              1 Reply Last reply
              0
              • sierdzioS Offline
                sierdzioS Offline
                sierdzio
                Moderators
                wrote on last edited by
                #7

                Looks good! I'll post the link to my G+ page.

                (Z(:^

                1 Reply Last reply
                0

                • Login

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