Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-1131

Refactor cpp/examples directory to be build under autotools

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • M3
    • M3
    • C++ Examples
    • None
    • Any

    Description

      Using ad-hoc makefiles for example generation and doesn't seem the best way to go, since autotools machinery is avoided, and they don't generate in all circunstances.

      I've changed it to use autotools, and to generate a proper simple staging Makefile, as expected.

      Also included is the refactoring of the directory hierarchy, unfortunately I'm not able to generate a proper patch since directories were moved, so, I'm including the whole procedure:

      (Some of the svn ops need to be forced):

      cd cpp/examples

      1. Remove the current Makefiles, as they will be generated using autotools
        svn remove examples/Makefile
        svn remove examples/direct/Makefile
        svn remove examples/fanout/Makefile
        svn remove examples/pub-sub/Makefile
        svn remove examples/request-response/Makefile
        svn remove examples/xml-exchange/Makefile
      1. Bring the examples to the current directory
        svn move README README.verify
        svn move examples/README README
        svn move examples/direct .
        svn move examples/fanout .
        svn move examples/pub-sub .
        svn move examples/xml-exchange .

      #After applying the attached patch
      #Add autotools machinery
      svn add makedist.mk
      svn add examples/direct/Makefile.am
      svn add examples/fanout/Makefile.am
      svn add examples/pub-sub/Makefile.am
      svn add examples/request-response/Makefile.am
      svn add examples/xml-exchange/Makefile.am

      Attachments

        1. examples.patch
          9 kB
          Manuel Teira Paz

        Activity

          People

            aconway Alan Conway
            mteira Manuel Teira Paz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: