medit/moo/mooutils/mooutils.cmake

244 lines
8.1 KiB
CMake
Raw Normal View History

2015-07-18 14:24:48 -07:00
SET(moo_utils_enum_headers
mooutils/moodialogs.h
mooutils/moofiledialog.h
mooutils/moouixml.h
mooutils/moowindow.h
)
SET(mooutils_sources
2015-07-18 14:47:46 -07:00
mooutils/mooutils.cmake
2015-07-18 14:24:48 -07:00
${moo_utils_enum_headers}
mooutils/mooarray.h
2016-01-10 01:12:50 -08:00
mooutils/mooutils-thread.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooutils-thread.h
2016-01-10 01:12:50 -08:00
mooutils/moohistorymgr.cpp
2015-07-18 14:24:48 -07:00
mooutils/moohistorymgr.h
mooutils/moo-environ.h
2016-01-10 01:12:50 -08:00
mooutils/mooaccel.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooaccel.h
2016-01-10 01:12:50 -08:00
mooutils/mooaccelbutton.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooaccelbutton.h
2016-01-10 01:12:50 -08:00
mooutils/mooaccelprefs.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooaccelprefs.h
mooutils/mooaction-private.h
2016-01-10 01:12:50 -08:00
mooutils/mooaction.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooaction.h
mooutils/mooactionbase-private.h
2016-01-10 01:12:50 -08:00
mooutils/mooactionbase.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooactionbase.h
2016-01-10 01:12:50 -08:00
mooutils/mooactioncollection.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooactioncollection.h
2016-01-10 01:12:50 -08:00
mooutils/mooactionfactory.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooactionfactory.h
2016-01-10 01:12:50 -08:00
mooutils/mooactiongroup.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooactiongroup.h
2016-01-10 01:12:50 -08:00
mooutils/mooapp-ipc.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooapp-ipc.h
2016-01-10 01:12:50 -08:00
mooutils/mooappinput-common.cpp
mooutils/mooappinput-priv.h
2015-07-18 14:24:48 -07:00
mooutils/mooappinput.h
2016-01-10 01:12:50 -08:00
mooutils/mooappinput-win32.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooatom.h
2016-01-10 01:12:50 -08:00
mooutils/moobigpaned.cpp
2015-07-18 14:24:48 -07:00
mooutils/moobigpaned.h
2016-01-10 01:12:50 -08:00
mooutils/mooclosure.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooclosure.h
2016-01-10 01:12:50 -08:00
mooutils/moocombo.cpp
2015-07-18 14:24:48 -07:00
mooutils/moocombo.h
mooutils/moocompat.h
2016-01-10 01:12:50 -08:00
mooutils/moodialogs.cpp
mooutils/mooeditops.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooeditops.h
mooutils/mooencodings-data.h
2016-01-10 01:12:50 -08:00
mooutils/mooencodings.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooencodings.h
2016-01-10 01:12:50 -08:00
mooutils/mooentry.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooentry.h
2016-01-10 01:12:50 -08:00
mooutils/moofiledialog.cpp
mooutils/moofileicon.cpp
2015-07-18 14:24:48 -07:00
mooutils/moofileicon.h
2016-01-02 07:09:54 -08:00
mooutils/moofilewatch.cpp
2015-07-18 14:24:48 -07:00
mooutils/moofilewatch.h
2016-01-10 01:12:50 -08:00
mooutils/moofilewriter.cpp
2015-07-18 14:24:48 -07:00
mooutils/moofilewriter.h
mooutils/moofilewriter-private.h
2016-01-10 01:12:50 -08:00
mooutils/moofiltermgr.cpp
2015-07-18 14:24:48 -07:00
mooutils/moofiltermgr.h
mooutils/moofontsel.c
mooutils/moofontsel.h
2016-01-10 01:12:50 -08:00
mooutils/mooglade.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooglade.h
2016-01-10 01:12:50 -08:00
mooutils/moohelp.cpp
2015-07-18 14:24:48 -07:00
mooutils/moohelp.h
2016-01-10 01:12:50 -08:00
mooutils/moohistorycombo.cpp
2015-07-18 14:24:48 -07:00
mooutils/moohistorycombo.h
2016-01-10 01:12:50 -08:00
mooutils/moohistorylist.cpp
2015-07-18 14:24:48 -07:00
mooutils/moohistorylist.h
2016-01-10 01:12:50 -08:00
mooutils/mooi18n.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooi18n.h
mooutils/moolist.h
2016-01-10 01:12:50 -08:00
mooutils/moomarkup.cpp
2015-07-18 14:24:48 -07:00
mooutils/moomarkup.h
2016-01-10 01:12:50 -08:00
mooutils/moomenu.cpp
2015-07-18 14:24:48 -07:00
mooutils/moomenu.h
2016-01-10 01:12:50 -08:00
mooutils/moomenuaction.cpp
2015-07-18 14:24:48 -07:00
mooutils/moomenuaction.h
2016-01-10 01:12:50 -08:00
mooutils/moomenumgr.cpp
2015-07-18 14:24:48 -07:00
mooutils/moomenumgr.h
2016-01-10 01:12:50 -08:00
mooutils/moomenutoolbutton.cpp
2015-07-18 14:24:48 -07:00
mooutils/moomenutoolbutton.h
2016-01-10 01:12:50 -08:00
mooutils/moo-mime.cpp
2015-07-18 14:24:48 -07:00
mooutils/moo-mime.h
2016-01-10 01:12:50 -08:00
mooutils/moonotebook.cpp
2015-07-18 14:24:48 -07:00
mooutils/moonotebook.h
mooutils/mooonce.h
2016-01-10 01:12:50 -08:00
mooutils/moopane.cpp
2015-07-18 14:24:48 -07:00
mooutils/moopane.h
2016-01-10 01:12:50 -08:00
mooutils/moopaned.cpp
2015-07-18 14:24:48 -07:00
mooutils/moopaned.h
2016-01-10 01:12:50 -08:00
mooutils/mooprefs.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooprefs.h
2016-01-10 01:12:50 -08:00
mooutils/mooprefsdialog.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooprefsdialog.h
2016-01-10 01:12:50 -08:00
mooutils/mooprefspage.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooprefspage.h
2016-01-10 01:12:50 -08:00
mooutils/moospawn.cpp
2015-07-18 14:24:48 -07:00
mooutils/moospawn.h
2016-01-10 01:12:50 -08:00
mooutils/moostock.cpp
2015-07-18 14:24:48 -07:00
mooutils/moostock.h
mooutils/mootype-macros.h
2016-01-10 01:12:50 -08:00
mooutils/moouixml.cpp
mooutils/mooundo.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooundo.h
mooutils/mooutils.h
mooutils/mooutils-debug.h
mooutils/mooutils-enums.c
mooutils/mooutils-enums.h
2016-01-01 22:25:53 -08:00
mooutils/mooutils-file.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooutils-file.h
2016-01-10 01:12:50 -08:00
mooutils/mooutils-fs.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooutils-fs.h
mooutils/mooutils-gobject-private.h
2016-01-10 01:12:50 -08:00
mooutils/mooutils-gobject.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooutils-gobject.h
mooutils/mooutils-macros.h
mooutils/mooutils-mem.h
mooutils/mooutils-messages.h
2016-01-10 01:12:50 -08:00
mooutils/mooutils-misc.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooutils-misc.h
2016-01-10 01:12:50 -08:00
mooutils/mooutils-script.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooutils-script.h
mooutils/mooutils-tests.h
2016-01-10 01:12:50 -08:00
mooutils/mooutils-treeview.cpp
2015-07-18 14:24:48 -07:00
mooutils/mooutils-treeview.h
2016-01-10 01:12:50 -08:00
mooutils/moowindow.cpp
2015-07-18 14:24:48 -07:00
mooutils/stock-file-24.h
mooutils/stock-file-selector-24.h
mooutils/stock-terminal-24.h
)
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/genmarshals_c.cmake
"FILE(WRITE marshals.c.tmp \"#include \\\"marshals.h\\\"\")
EXECUTE_PROCESS(COMMAND ${GLIB_GENMARSHAL} --prefix=_moo_marshal --body ${CMAKE_CURRENT_SOURCE_DIR}/marshals.list
OUTPUT_VARIABLE _marshals_body)
FILE(APPEND marshals.c.tmp \"\${_marshals_body}\")
file(RENAME marshals.c.tmp marshals.c)
")
add_custom_command(OUTPUT marshals.c
COMMAND ${CMAKE_COMMAND} -P genmarshals_c.cmake
MAIN_DEPENDENCY marshals.list)
LIST(APPEND built_mooutils_sources marshals.c)
# if MOO_DEV_MODE
# built_moo_sources += mooutils/mooutils-enums.h.stamp mooutils/mooutils-enums.c.stamp
# mooutils/mooutils-enums.h.stamp: $(moo_utils_enum_headers) Makefile mooutils/mooutils-enums.tmpl.h
# $(AM_V_at)$(MKDIR_P) mooutils
# $(AM_V_GEN)( cd $(srcdir) && \
# $(GLIB_MKENUMS) --template mooutils/mooutils-enums.tmpl.h $(moo_utils_enum_headers) ) > mooutils/mooutils-enums.h.tmp
# $(AM_V_at)cmp -s mooutils/mooutils-enums.h.tmp $(srcdir)/mooutils/mooutils-enums.h || \
# mv mooutils/mooutils-enums.h.tmp $(srcdir)/mooutils/mooutils-enums.h
# $(AM_V_at)rm -f mooutils/mooutils-enums.h.tmp
# $(AM_V_at)echo stamp > mooutils/mooutils-enums.h.stamp
# mooutils/mooutils-enums.c.stamp: $(moo_utils_enum_headers) Makefile mooutils/mooutils-enums.tmpl.c
# $(AM_V_at)$(MKDIR_P) mooutils
# $(AM_V_GEN)( cd $(srcdir) && \
# $(GLIB_MKENUMS) --template mooutils/mooutils-enums.tmpl.c $(moo_utils_enum_headers) ) > mooutils/mooutils-enums.c.tmp
# $(AM_V_at)cmp -s mooutils/mooutils-enums.c.tmp $(srcdir)/mooutils/mooutils-enums.c || \
# mv mooutils/mooutils-enums.c.tmp $(srcdir)/mooutils/mooutils-enums.c
# $(AM_V_at)rm -f mooutils/mooutils-enums.c.tmp
# $(AM_V_at)echo stamp > mooutils/mooutils-enums.c.stamp
# endif
SET(mooutils_win32_sources
2016-01-10 01:12:50 -08:00
mooutils/mooutils-win32.cpp
2015-07-18 14:24:48 -07:00
)
SET(mooutils_unittest_sources
2016-01-10 01:12:50 -08:00
mooutils/moo-test-utils.cpp
2015-07-18 14:24:48 -07:00
mooutils/moo-test-utils.h
mooutils/moo-test-macros.h
)
LIST(APPEND mooutils_extra_dist ${mooutils_win32_sources} ${mooutils_unittest_sources})
2015-07-12 23:23:14 -07:00
if(WIN32)
2015-07-18 14:24:48 -07:00
LIST(APPEND mooutils_sources ${mooutils_win32_sources})
2015-07-12 23:23:14 -07:00
endif()
2015-07-18 14:24:48 -07:00
LIST(APPEND mooutils_sources ${mooutils_unittest_sources})
foreach(input_file
mooutils/glade/mooaccelprefs.glade
mooutils/glade/mooaccelbutton.glade
mooutils/glade/moologwindow.glade
)
ADD_GXML(${input_file})
endforeach(input_file)
SET(PIXMAPS
mooutils/pixmaps/hide.png
mooutils/pixmaps/close.png
mooutils/pixmaps/sticky.png
mooutils/pixmaps/detach.png
mooutils/pixmaps/attach.png
mooutils/pixmaps/keepontop.png
mooutils/pixmaps/medit.png
)
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/genpixbufs.cmake
"EXECUTE_PROCESS(COMMAND ${GDK_PIXBUF_CSOURCE} --static --build-list
MOO_HIDE_ICON ${CMAKE_CURRENT_SOURCE_DIR}/mooutils/pixmaps/hide.png
MOO_CLOSE_ICON ${CMAKE_CURRENT_SOURCE_DIR}/mooutils/pixmaps/close.png
MOO_STICKY_ICON ${CMAKE_CURRENT_SOURCE_DIR}/mooutils/pixmaps/sticky.png
MOO_DETACH_ICON ${CMAKE_CURRENT_SOURCE_DIR}/mooutils/pixmaps/detach.png
MOO_ATTACH_ICON ${CMAKE_CURRENT_SOURCE_DIR}/mooutils/pixmaps/attach.png
MOO_KEEP_ON_TOP_ICON ${CMAKE_CURRENT_SOURCE_DIR}/mooutils/pixmaps/keepontop.png
MEDIT_ICON ${CMAKE_CURRENT_SOURCE_DIR}/mooutils/pixmaps/medit.png
SYMLINK_ARROW ${CMAKE_CURRENT_SOURCE_DIR}/mooutils/pixmaps/symlink.png
SYMLINK_ARROW_SMALL ${CMAKE_CURRENT_SOURCE_DIR}/mooutils/pixmaps/symlink-small.png
OUTPUT_FILE moo-pixbufs.h.tmp)
file(RENAME moo-pixbufs.h.tmp moo-pixbufs.h)
")
add_custom_command(OUTPUT moo-pixbufs.h
COMMAND ${CMAKE_COMMAND} -P genpixbufs.cmake
DEPENDS )
LIST(APPEND built_mooutils_sources moo-pixbufs.h)
# built_moo_sources += stock-moo.h moofileicon-symlink.h
# EXTRA_DIST += $(PIXMAPS)
# stock-moo.h: $(PIXMAPS)
# $(AM_V_GEN)$(GDK_PIXBUF_CSOURCE) --static --build-list \
# MOO_HIDE_ICON $(moo_srcdir)/mooutils/pixmaps/hide.png \
# MOO_CLOSE_ICON $(moo_srcdir)/mooutils/pixmaps/close.png \
# MOO_STICKY_ICON $(moo_srcdir)/mooutils/pixmaps/sticky.png \
# MOO_DETACH_ICON $(moo_srcdir)/mooutils/pixmaps/detach.png \
# MOO_ATTACH_ICON $(moo_srcdir)/mooutils/pixmaps/attach.png \
# MOO_KEEP_ON_TOP_ICON $(moo_srcdir)/mooutils/pixmaps/keepontop.png \
# MEDIT_ICON $(moo_srcdir)/mooutils/pixmaps/medit.png \
# > $@.tmp && mv $@.tmp $@
#
# EXTRA_DIST += mooutils/pixmaps/symlink.png mooutils/pixmaps/symlink-small.png
# moofileicon-symlink.h: mooutils/pixmaps/symlink.png mooutils/pixmaps/symlink-small.png
# $(AM_V_GEN)$(GDK_PIXBUF_CSOURCE) --static --build-list \
# > $@.tmp && mv $@.tmp $@