diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-06-19 09:18:26 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-06-19 09:18:26 +0200 |
commit | a2be8eba3aaf11a9a73092793d27d6d46b4270cd (patch) | |
tree | ec8d463fe0537785337b4632e0c59bc1185b68dc /cppbuild.cc | |
parent | 80290e7d65dc498e9ea5e64aa6cbc65282072deb (diff) |
Add .so target. Fix ready state checks.
Diffstat (limited to 'cppbuild.cc')
-rw-r--r-- | cppbuild.cc | 77 |
1 files changed, 52 insertions, 25 deletions
diff --git a/cppbuild.cc b/cppbuild.cc index 737ba83..882fe63 100644 --- a/cppbuild.cc +++ b/cppbuild.cc @@ -25,6 +25,49 @@ std::vector<BuildConfiguration> configs() { .target = "plugingui", .sources = { + "drumgizmo/zita-resampler/libs/cresampler.cc", + "drumgizmo/zita-resampler/libs/resampler-table.cc", + "drumgizmo/zita-resampler/libs/resampler.cc", + "drumgizmo/zita-resampler/libs/vresampler.cc", + "drumgizmo/hugin/hugin.c", + "drumgizmo/pugixml/src/pugixml.cpp", + }, + .depends = { + "libplugingui.so", + }, + .cxxflags = { + "-DUI_X11", + "-O3", + "-g", + "-Wall", + "-Werror", + "-std=c++11", + "-Idrumgizmo/getoptpp", + "-Idrumgizmo/", + "-Idrumgizmo/hugin", + "-Idrumgizmo/plugingui/", + "-Idrumgizmo/src/", + "-Idrumgizmo/zita-resampler/libs", + "-Idrumgizmo/pugixml/src", + }, + .cflags = { + "-g", + //"-O3", + "-Wall", + "-Werror", + }, + .ldflags = { + "-lm", + "-lX11", + "-lXext", + "-lsndfile", + "-pthread", + } + }, + + { + .target = "src.a", + .sources = { "drumgizmo/src/audiocache.cc", "drumgizmo/src/audiocacheeventhandler.cc", "drumgizmo/src/audiocachefile.cc", @@ -66,18 +109,10 @@ std::vector<BuildConfiguration> configs() "drumgizmo/src/velocityfilter.cc", "drumgizmo/src/versionstr.cc", "drumgizmo/src/zrwrapper.cc", - "drumgizmo/zita-resampler/libs/cresampler.cc", - "drumgizmo/zita-resampler/libs/resampler-table.cc", - "drumgizmo/zita-resampler/libs/resampler.cc", - "drumgizmo/zita-resampler/libs/vresampler.cc", - "drumgizmo/hugin/hugin.c", - "drumgizmo/pugixml/src/pugixml.cpp", - "drumgizmo/plugingui/lodepng/lodepng.cpp", - }, - .depends = { - "plugingui.a", }, + .depends = {}, .cxxflags = { + "-fPIC", "-DUI_X11", "-O3", "-g", @@ -92,23 +127,12 @@ std::vector<BuildConfiguration> configs() "-Idrumgizmo/zita-resampler/libs", "-Idrumgizmo/pugixml/src", }, - .cflags = { - "-g", - //"-O3", - "-Wall", - "-Werror", - }, - .ldflags = { - "-lm", - "-lX11", - "-lXext", - "-lsndfile", - "-pthread", - } + .cflags = {}, + .ldflags = {} }, { - .target = "plugingui.a", + .target = "libplugingui.so", .sources = { "drumgizmo/plugingui/abouttab.cc", "drumgizmo/plugingui/bleedcontrolframecontent.cc", @@ -171,8 +195,11 @@ std::vector<BuildConfiguration> configs() "drumgizmo/plugingui/voicelimitframecontent.cc", "drumgizmo/plugingui/widget.cc", "drumgizmo/plugingui/window.cc", + "drumgizmo/plugingui/lodepng/lodepng.cpp", + }, + .depends = { + "src.a", }, - .depends = {}, .cxxflags = { "-DUI_X11", "-O3", |