lib: fix GCC 4.6 linking / split compile
authorAndrew Chadwick <andrewc-git@piffle.org>
Tue, 4 Mar 2014 00:51:21 +0000 (00:51 +0000)
committerAndrew Chadwick <andrewc-git@piffle.org>
Wed, 5 Mar 2014 15:36:45 +0000 (15:36 +0000)
commitb627ea4b163637b66744b8096abe85c78b370f0f
tree4fb27378da80f8a3f8c79ae16c86ac926b4327dc
parent7e3c268193dc1e56b9928ae04e5db0164e7cf909
lib: fix GCC 4.6 linking / split compile

Fix a runtime linker error under GCC 4.6 (Ubuntu 12.04):

  ImportError: /usr/local/lib/mypaint/_mypaintlib.so: undefined symbol:
  _ZN17BufferCombineFunc[...]E

Also split various parts of the mypaintlib extension module into
independent compilation units. Update the build accordingly. Affects:

 * fill
 * eventhack
 * gdkpixbuf2numpy
 * pixops

Eventual goal is to clean up mypaintlib.i, and compile as much fancy
templated pixel grinding stuff separately as we can.
13 files changed:
lib/SConscript
lib/common.hpp [new file with mode: 0644]
lib/compositing.hpp
lib/eventhack.cpp [new file with mode: 0644]
lib/eventhack.hpp
lib/fill.cpp [new file with mode: 0644]
lib/fill.hpp
lib/gdkpixbuf2numpy.cpp [new file with mode: 0644]
lib/gdkpixbuf2numpy.hpp
lib/mypaintlib.hpp
lib/mypaintlib.i
lib/pixops.cpp [new file with mode: 0644]
lib/pixops.hpp