summaryrefslogtreecommitdiff
path: root/muse2/synti
diff options
context:
space:
mode:
authorOrcan Ogetbil <oget.fedora@gmail.com>2010-12-12 10:30:39 +0000
committerOrcan Ogetbil <oget.fedora@gmail.com>2010-12-12 10:30:39 +0000
commitcf0828dc76ddc11de107bc65ddada38d03404030 (patch)
tree2c56dd018886f2332330d4c98a46b05a23a3ab14 /muse2/synti
parenta4d6602deb9e55720659df425664c554be6e4a7a (diff)
Translations are now handled by cmake. Updated the Russian translation. Added -l flag to override system locale.
Diffstat (limited to 'muse2/synti')
-rw-r--r--muse2/synti/deicsonze/CMakeLists.txt15
-rw-r--r--muse2/synti/fluid/CMakeLists.txt11
-rw-r--r--muse2/synti/fluidsynth/CMakeLists.txt11
-rw-r--r--muse2/synti/libsynti/CMakeLists.txt10
-rw-r--r--muse2/synti/organ/CMakeLists.txt12
-rw-r--r--muse2/synti/s1/CMakeLists.txt5
-rw-r--r--muse2/synti/simpledrums2/CMakeLists.txt12
-rw-r--r--muse2/synti/vam/CMakeLists.txt11
8 files changed, 69 insertions, 18 deletions
diff --git a/muse2/synti/deicsonze/CMakeLists.txt b/muse2/synti/deicsonze/CMakeLists.txt
index d5d16e41..0b4e0afb 100644
--- a/muse2/synti/deicsonze/CMakeLists.txt
+++ b/muse2/synti/deicsonze/CMakeLists.txt
@@ -21,22 +21,29 @@
include(${PROJECT_SOURCE_DIR}/pch.txt)
QT4_WRAP_CPP ( deicsonze_mocs deicsonzegui.h )
-QT4_WRAP_UI ( deicsonze_uis deicsonzegui.ui )
-add_library ( deicsonze SHARED
- ${PROJECT_BINARY_DIR}/all.h
- ${PROJECT_BINARY_DIR}/all-pic.h.pch
+file (GLOB UI_FILES deicsonzegui.ui )
+QT4_WRAP_UI ( deicsonze_uis ${UI_FILES} )
+
+file (GLOB SOURCE_FILES
deicsonze.cpp
deicsonzepreset.cpp
deicsonzeplugin.cpp
deicsonzefilter.cpp
deicsonzegui.cpp
deicsonzegui.h
+ )
+add_library ( deicsonze SHARED
+ ${SOURCE_FILES}
+ ${PROJECT_BINARY_DIR}/all.h
+ ${PROJECT_BINARY_DIR}/all-pic.h.pch
${deicsonze_mocs}
${deicsonze_uis}
)
+set (FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${SOURCE_FILES} ${UI_FILES} CACHE INTERNAL "")
+
target_link_libraries( deicsonze synti )
# - tell cmake to name target deicsonze.so instead of
diff --git a/muse2/synti/fluid/CMakeLists.txt b/muse2/synti/fluid/CMakeLists.txt
index f2b07929..6a99c3f0 100644
--- a/muse2/synti/fluid/CMakeLists.txt
+++ b/muse2/synti/fluid/CMakeLists.txt
@@ -20,16 +20,23 @@
QT4_WRAP_CPP ( fluid_mocs fluidgui.h )
-QT4_WRAP_UI ( fluid_uis fluidguibase.ui )
+file (GLOB UI_FILES fluidguibase.ui )
+QT4_WRAP_UI ( fluid_uis ${UI_FILES} )
-add_library ( fluid SHARED
+file (GLOB SOURCE_FILES
fluid.cpp
fluidgui.cpp
fluidgui.h
+ )
+
+add_library ( fluid SHARED
+ ${SOURCE_FILES}
${fluid_mocs}
${fluid_uis}
)
+set (FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${SOURCE_FILES} ${UI_FILES} CACHE INTERNAL "")
+
# target_link_libraries( fluid synti )
# - tell cmake to name target fluid.so instead of
diff --git a/muse2/synti/fluidsynth/CMakeLists.txt b/muse2/synti/fluidsynth/CMakeLists.txt
index e33bf912..c812cee1 100644
--- a/muse2/synti/fluidsynth/CMakeLists.txt
+++ b/muse2/synti/fluidsynth/CMakeLists.txt
@@ -20,21 +20,28 @@
QT4_WRAP_CPP ( fluidsynth_mocs fluidsynthgui.h )
-QT4_WRAP_UI ( fluidsynth_uis fluidsynthguibase.ui )
+file (GLOB UI_FILES fluidsynthguibase.ui )
+QT4_WRAP_UI ( fluidsynth_uis ${UI_FILES} )
QT4_ADD_RESOURCES (fluidsynth_qrc_files
fluidsynth.qrc
)
-add_library ( fluidsynth SHARED
+file (GLOB SOURCE_FILES
fluidsynti.cpp
fluidsynthgui.cpp
fluidsynthgui.h
+ )
+
+add_library ( fluidsynth SHARED
+ ${SOURCE_FILES}
${fluidsynth_mocs}
${fluidsynth_uis}
${fluidsynth_qrc_files}
)
+set (FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${SOURCE_FILES} ${UI_FILES} CACHE INTERNAL "")
+
# target_link_libraries( fluidsynth synti )
# - tell cmake to name target fluidsynth.so instead of
diff --git a/muse2/synti/libsynti/CMakeLists.txt b/muse2/synti/libsynti/CMakeLists.txt
index 6f72b31c..94137c70 100644
--- a/muse2/synti/libsynti/CMakeLists.txt
+++ b/muse2/synti/libsynti/CMakeLists.txt
@@ -20,8 +20,7 @@
include(${PROJECT_SOURCE_DIR}/pch.txt)
-add_library(synti
- ${PROJECT_BINARY_DIR}/all-pic.h.pch
+file (GLOB SOURCE_FILES
mess.cpp
# mess2.cpp
gui.cpp
@@ -32,6 +31,13 @@ add_library(synti
## mpevent.cpp
)
+add_library(synti
+ ${PROJECT_BINARY_DIR}/all-pic.h.pch
+ ${SOURCE_FILES}
+ )
+
+set (FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${SOURCE_FILES} CACHE INTERNAL "")
+
#
# -fPIC is necessary for 64 bit systems
#
diff --git a/muse2/synti/organ/CMakeLists.txt b/muse2/synti/organ/CMakeLists.txt
index 07864e69..92ffebee 100644
--- a/muse2/synti/organ/CMakeLists.txt
+++ b/muse2/synti/organ/CMakeLists.txt
@@ -20,20 +20,26 @@
QT4_WRAP_CPP ( organ_mocs organgui.h )
-QT4_WRAP_UI ( organ_uis organguibase.ui )
+file (GLOB UI_FILES organguibase.ui )
+QT4_WRAP_UI ( organ_uis ${UI_FILES} )
-add_library ( organ SHARED
+file (GLOB SOURCE_FILES
organ.cpp
organgui.cpp
# reverb.cpp
# routing.cpp
# organgui.h
- ${PROJECT_SOURCE_DIR}/muse/xml.cpp
+ )
+add_library ( organ SHARED
+ ${PROJECT_SOURCE_DIR}/muse/xml.cpp
+ ${SOURCE_FILES}
${organ_mocs}
${organ_uis}
)
+set (FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${SOURCE_FILES} ${UI_FILES} CACHE INTERNAL "")
+
# - tell cmake to name target organ.so instead of
# liborgan.so
# - use precompiled header files
diff --git a/muse2/synti/s1/CMakeLists.txt b/muse2/synti/s1/CMakeLists.txt
index 7dffe905..c1e74c03 100644
--- a/muse2/synti/s1/CMakeLists.txt
+++ b/muse2/synti/s1/CMakeLists.txt
@@ -18,7 +18,10 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#=============================================================================
-add_library ( s1 SHARED s1.cpp )
+file (GLOB SOURCE_FILES s1.cpp )
+add_library ( s1 SHARED ${SOURCE_FILES} )
+
+set (FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${SOURCE_FILES} CACHE INTERNAL "")
# target_link_libraries( s1 synti )
diff --git a/muse2/synti/simpledrums2/CMakeLists.txt b/muse2/synti/simpledrums2/CMakeLists.txt
index 3c7ba3c7..26d6b096 100644
--- a/muse2/synti/simpledrums2/CMakeLists.txt
+++ b/muse2/synti/simpledrums2/CMakeLists.txt
@@ -19,9 +19,11 @@
#=============================================================================
QT4_WRAP_CPP ( simpledrums_mocs simpledrumsgui.h ssplugingui.h )
-QT4_WRAP_UI ( simpledrums_uis simpledrumsguibase.ui sspluginchooserbase.ui )
-add_library ( simpledrums SHARED
+file (GLOB UI_FILES simpledrumsguibase.ui sspluginchooserbase.ui )
+QT4_WRAP_UI ( simpledrums_uis ${UI_FILES} )
+
+file (GLOB SOURCE_FILES
simpledrums.cpp
simpledrumsgui.cpp
simpledrums.h
@@ -29,10 +31,16 @@ add_library ( simpledrums SHARED
ssplugingui.cpp
ssplugin.h
common.h
+ )
+
+add_library ( simpledrums SHARED
+ ${SOURCE_FILES}
${simpledrums_mocs}
${simpledrums_uis}
)
+set (FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${SOURCE_FILES} ${UI_FILES} CACHE INTERNAL "")
+
# - tell cmake to name target simpledrums.so instead of
# libsimpledrums.so
# - use precompiled header files
diff --git a/muse2/synti/vam/CMakeLists.txt b/muse2/synti/vam/CMakeLists.txt
index 9d7d959f..d63e4144 100644
--- a/muse2/synti/vam/CMakeLists.txt
+++ b/muse2/synti/vam/CMakeLists.txt
@@ -20,16 +20,23 @@
QT4_WRAP_CPP ( vam_mocs vamgui.h )
-QT4_WRAP_UI ( vam_uis vamguibase.ui )
+file (GLOB UI_FILES vamguibase.ui )
+QT4_WRAP_UI ( vam_uis ${UI_FILES} )
-add_library ( vam SHARED
+file (GLOB SOURCE_FILES
vam.cpp
vamgui.cpp
vamgui.h
+ )
+
+add_library ( vam SHARED
+ ${SOURCE_FILES}
${vam_mocs}
${vam_uis}
)
+set (FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${SOURCE_FILES} ${UI_FILES} CACHE INTERNAL "")
+
# target_link_libraries( vam synti )
# - tell cmake to name target vam.so instead of