gburd / szl

Automatically exported from code.google.com/p/szl
Other
0 stars 0 forks source link

pkg-config support files #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The attached diff adds pkg-config files for Sawzall's three libraries. Once 
applied, embedding Sawzall in programs like this one:

  //
  // test.cc
  //

  #include <google/szl/porting.h>
  #include <google/szl/commandlineflags.h>
  #include <google/szl/sawzall.h>

  int main(int argc, char **argv) {
    InitializeAllModules();
    sawzall::Executable exe(argv[1], NULL, sawzall::kNormal);
  }

is just a matter of running:

  $ g++ $(pkg-config --cflags szl) \
         szl-test.cc -o szl-test  \
        $(pkg-config --libs szl)

Original issue reported on code.google.com by superdup...@gmail.com on 10 Nov 2010 at 8:10

Attachments: