Visual studio source file groups

This commit is contained in:
Yevgen Muntyan 2015-07-18 14:24:48 -07:00
parent fdc86c0d65
commit dcaa0adbd2
16 changed files with 353 additions and 434 deletions

View File

@ -135,10 +135,13 @@ else()
set(ENV{PATH} "ENV{PATH};${MOO_GTK_DIR}/bin;${MOO_MSYS_BIN_DIR}")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP /Zo")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /Zo")
string(REPLACE "/Ob1" "/Ob2" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
string(REPLACE "/Ob1" "/Ob2" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
foreach(var CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
set(${var} "${${var}} /MP /Zo")
string(REPLACE "/Ob1" "/Ob2" ${var}_RELEASE "${${var}_RELEASE}")
string(REPLACE "/Ob1" "/Ob2" ${var}_RELWITHDEBINFO "${${var}_RELWITHDEBINFO}")
string(REPLACE "/MDd" "/MD" ${var}_DEBUG "${${var}_DEBUG}")
string(REPLACE "/D_DEBUG" "" ${var}_DEBUG "${${var}_DEBUG}")
endforeach()
endif()
find_program(GLIB_GENMARSHAL glib-genmarshal)

View File

@ -64,16 +64,40 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/moolua/moolua.cmake)
# include moopython/Makefile.incl
include(${CMAKE_CURRENT_SOURCE_DIR}/plugins/plugins.cmake)
SET(MEDIT_SOURCES
set(medit_app_sources
medit-app/mem-debug.h
medit-app/run-tests.h
medit-app/parse.h
medit-app/main.c
)
SET(MEDIT_SOURCES
${moo_sources}
${built_moo_sources}
${plugins_sources}
)
macro(ADD_MODULE name)
string(REPLACE "-" "_" _escaped_name "${name}")
source_group(${name} FILES ${${_escaped_name}_sources} ${built_${_escaped_name}_sources} ${${_escaped_name}_extra_files})
#source_group(${name} FILES ${${_escaped_name}_sources} ${${_escaped_name}_extra_files})
#source_group(${name}\\generated FILES ${built_${_escaped_name}_sources})
LIST(APPEND MEDIT_SOURCES ${${_escaped_name}_sources} ${built_${_escaped_name}_sources})
LIST(APPEND MEDIT_EXTRA_DIST ${${_escaped_name}_extra_dist} ${${_escaped_name}_extra_files})
message(STATUS "built_${_escaped_name}_sources: ${built_${_escaped_name}_sources}")
endmacro(ADD_MODULE)
ADD_MODULE(xdgmime)
ADD_MODULE(eggsmclient)
ADD_MODULE(gtksourceview)
ADD_MODULE(mooutils)
ADD_MODULE(moofileview)
ADD_MODULE(mooedit)
ADD_MODULE(mooapp)
ADD_MODULE(plugins)
ADD_MODULE(moolua)
#ADD_MODULE(moopython)
ADD_MODULE(medit-app)
include_directories(${PROJECT_SOURCE_DIR}/moo/mooutils/moowin32/ms)
include_directories(

View File

@ -1,18 +0,0 @@
moo_sources += \
eggsmclient/eggsmclient.c \
eggsmclient/eggsmclient.h \
eggsmclient/eggsmclient-mangle.h \
eggsmclient/eggsmclient-private.h
if MOO_OS_WIN32
moo_sources += eggsmclient/eggsmclient-win32.c
else !MOO_OS_WIN32
if MOO_OS_DARWIN
moo_sources += eggsmclient/eggsmclient-dummy.c
else !MOO_OS_DARWIN
AM_CFLAGS += -DEGG_SM_CLIENT_BACKEND_XSMP
moo_sources += eggsmclient/eggsmclient-xsmp.c eggsmclient/eggdesktopfile.h eggsmclient/eggdesktopfile.c
endif !MOO_OS_DARWIN
endif !MOO_OS_WIN32
# -%- strip:true -%-

View File

@ -1,17 +1,25 @@
LIST(APPEND moo_sources
SET(eggsmclient_sources
eggsmclient/eggsmclient.c
eggsmclient/eggsmclient.h
eggsmclient/eggsmclient-mangle.h
eggsmclient/eggsmclient-private.h
)
SET(eggsmclient_extra_dist
eggsmclient/eggsmclient-win32.c
eggsmclient/eggsmclient-dummy.c
eggsmclient/eggsmclient-xsmp.c
eggsmclient/eggdesktopfile.h
eggsmclient/eggdesktopfile.c
)
if(MOO_OS_WIN32)
LIST(APPEND moo_sources eggsmclient/eggsmclient-win32.c)
LIST(APPEND eggsmclient_sources eggsmclient/eggsmclient-win32.c)
elseif(MOO_OS_DARWIN)
LIST(APPEND moo_sources eggsmclient/eggsmclient-dummy.c)
LIST(APPEND eggsmclient_sources eggsmclient/eggsmclient-dummy.c)
else(MOO_OS_WIN32)
add_definitions(-DEGG_SM_CLIENT_BACKEND_XSMP)
LIST(APPEND moo_sources eggsmclient/eggsmclient-xsmp.c eggsmclient/eggdesktopfile.h eggsmclient/eggdesktopfile.c)
LIST(APPEND eggsmclient_sources eggsmclient/eggsmclient-xsmp.c eggsmclient/eggdesktopfile.h eggsmclient/eggdesktopfile.c)
endif(MOO_OS_WIN32)
# -%- strip:true -%-

View File

@ -1,32 +0,0 @@
moo_sources += \
gtksourceview/gtksourcecontextengine.c \
gtksourceview/gtksourcecontextengine.h \
gtksourceview/gtksourceengine.c \
gtksourceview/gtksourceengine.h \
gtksourceview/gtksourceiter.c \
gtksourceview/gtksourceiter.h \
gtksourceview/gtksourcelanguage-parser-1.c \
gtksourceview/gtksourcelanguage-parser-2.c \
gtksourceview/gtksourcelanguage-private.h \
gtksourceview/gtksourcelanguage.c \
gtksourceview/gtksourcelanguage.h \
gtksourceview/gtksourcelanguagemanager.c \
gtksourceview/gtksourcelanguagemanager.h \
gtksourceview/gtksourcestyle-private.h \
gtksourceview/gtksourcestyle.c \
gtksourceview/gtksourcestyle.h \
gtksourceview/gtksourcestylescheme.c \
gtksourceview/gtksourcestylescheme.h \
gtksourceview/gtksourcestyleschememanager.c \
gtksourceview/gtksourcestyleschememanager.h \
gtksourceview/gtksourceview-utils.c \
gtksourceview/gtksourceview-utils.h \
gtksourceview/gtktextregion.c \
gtksourceview/gtktextregion.h \
gtksourceview/gtksourceview-i18n.h \
gtksourceview/gtksourceview-marshal.h \
gtksourceview/gtksourceview-api.h \
gtksourceview/gtksourcebuffer.h \
gtksourceview/gtksourceview.h
# -%- strip:true -%-

View File

@ -1,4 +1,4 @@
LIST(APPEND moo_sources
SET(gtksourceview_sources
gtksourceview/gtksourcecontextengine.c
gtksourceview/gtksourcecontextengine.h
gtksourceview/gtksourceengine.c

View File

@ -1,26 +0,0 @@
moo_sources += \
mooapp/mooappabout.c \
mooapp/mooappabout.h \
mooapp/mooapp.c \
mooapp/mooapp.h \
mooapp/mooapp-accels.h \
mooapp/mooapp-info.h \
mooapp/mooapp-private.h \
mooapp/moohtml.h \
mooapp/moohtml.c \
mooapp/moolinklabel.h \
mooapp/moolinklabel.c
EXTRA_DIST += \
mooapp/glade/mooappabout-dialog.glade \
mooapp/glade/mooappabout-license.glade \
mooapp/glade/mooappabout-credits.glade
built_moo_sources += \
mooapp/mooappabout-dialog-gxml.h \
mooapp/mooappabout-license-gxml.h \
mooapp/mooappabout-credits-gxml.h
built_moo_sources += mooapp-credits.h
mooapp-credits.h: $(top_srcdir)/THANKS $(top_srcdir)/tools/xml2h.py
$(AM_V_GEN)$(MOO_PYTHON) $(top_srcdir)/tools/xml2h.py $(top_srcdir)/THANKS mooapp-credits.h MOO_APP_CREDITS

View File

@ -1,4 +1,4 @@
LIST(APPEND moo_sources
SET(mooapp_sources
mooapp/mooappabout.c
mooapp/mooappabout.h
mooapp/mooapp.c
@ -24,4 +24,4 @@ add_custom_command(OUTPUT mooapp-credits.h
COMMAND ${MOO_PYTHON} ${CMAKE_SOURCE_DIR}/tools/xml2h.py ${CMAKE_SOURCE_DIR}/THANKS mooapp-credits.h MOO_APP_CREDITS
MAIN_DEPENDENCY ${CMAKE_SOURCE_DIR}/THANKS
DEPENDS ${CMAKE_SOURCE_DIR}/tools/xml2h.py)
list(APPEND built_moo_sources mooapp-credits.h)
list(APPEND built_mooapp_sources mooapp-credits.h)

View File

@ -1,6 +1,6 @@
LIST(APPEND moo_edit_enum_headers mooedit/mooedit-enums.h)
LIST(APPEND moo_sources
SET(mooedit_sources
${moo_edit_enum_headers}
mooedit/mooeditor.h
mooedit/mootextview.h
@ -97,7 +97,7 @@ LIST(APPEND moo_sources
mooedit/mooeditor-tests.h
)
# LIST(APPEND built_moo_sources mooedit/mooedit-enum-types.h.stamp mooedit/mooedit-enum-types.c.stamp)
# SET(built_mooedit_sources mooedit/mooedit-enum-types.h.stamp mooedit/mooedit-enum-types.c.stamp)
# add_custom_command(OUTPUT mooedit/mooedit-enum-types.h.stamp
# COMMAND ${MOO_PYTHON} ${CMAKE_SOURCE_DIR}/tools/xml2h.py ${CMAKE_CURRENT_SOURCE_DIR}/${input} zzz_ui_xml -o ${_ui_output}

View File

@ -1,4 +1,4 @@
LIST(APPEND moo_sources
SET(moofileview_sources
moofileview/moobookmarkmgr.c
moofileview/moobookmarkmgr.h
moofileview/moobookmarkview.c

View File

@ -8,7 +8,7 @@ add_definitions(-DLUA_USE_POSIX -DLUA_USE_DLOPEN)
LIST(APPEND moo_libadd -ldl)
endif(MOO_OS_DARWIN)
LIST(APPEND moo_sources
LIST(APPEND moolua_sources
moolua/lua/lfs.h
moolua/lua/lfs.cpp
moolua/lua/moolua.h
@ -16,63 +16,64 @@ LIST(APPEND moo_sources
moolua/lua/luaall.cpp
)
# EXTRA_DIST += \
# moolua/lua/COPYRIGHT \
# moolua/lua/lapi.c \
# moolua/lua/lapi.h \
# moolua/lua/lauxlib.c \
# moolua/lua/lauxlib.h \
# moolua/lua/lbaselib.c \
# moolua/lua/lcode.c \
# moolua/lua/lcode.h \
# moolua/lua/ldblib.c \
# moolua/lua/ldebug.c \
# moolua/lua/ldebug.h \
# moolua/lua/ldo.c \
# moolua/lua/ldo.h \
# moolua/lua/ldump.c \
# moolua/lua/lfunc.c \
# moolua/lua/lfunc.h \
# moolua/lua/lgc.c \
# moolua/lua/lgc.h \
# moolua/lua/linit.c \
# moolua/lua/liolib.c \
# moolua/lua/llex.c \
# moolua/lua/llex.h \
# moolua/lua/llimits.h \
# moolua/lua/lmathlib.c \
# moolua/lua/lmem.c \
# moolua/lua/lmem.h \
# moolua/lua/loadlib.c \
# moolua/lua/lobject.c \
# moolua/lua/lobject.h \
# moolua/lua/lopcodes.c \
# moolua/lua/lopcodes.h \
# moolua/lua/loslib.c \
# moolua/lua/lparser.c \
# moolua/lua/lparser.h \
# moolua/lua/lstate.c \
# moolua/lua/lstate.h \
# moolua/lua/lstring.c \
# moolua/lua/lstring.h \
# moolua/lua/ltable.c \
# moolua/lua/ltable.h \
# moolua/lua/ltablib.c \
# moolua/lua/ltm.c \
# moolua/lua/ltm.h \
# moolua/lua/lua.h \
# moolua/lua/luaall.cpp \
# moolua/lua/luaconf.h \
# moolua/lua/lualib.h \
# moolua/lua/lundump.c \
# moolua/lua/lundump.h \
# moolua/lua/lvm.c \
# moolua/lua/lvm.h \
# moolua/lua/lzio.c \
# moolua/lua/lzio.h \
# moolua/lua/README \
# moolua/lua/slnudata.c \
# moolua/lua/slnunico.c
LIST(APPEND moolua_extra_dist
moolua/lua/COPYRIGHT
moolua/lua/lapi.c
moolua/lua/lapi.h
moolua/lua/lauxlib.c
moolua/lua/lauxlib.h
moolua/lua/lbaselib.c
moolua/lua/lcode.c
moolua/lua/lcode.h
moolua/lua/ldblib.c
moolua/lua/ldebug.c
moolua/lua/ldebug.h
moolua/lua/ldo.c
moolua/lua/ldo.h
moolua/lua/ldump.c
moolua/lua/lfunc.c
moolua/lua/lfunc.h
moolua/lua/lgc.c
moolua/lua/lgc.h
moolua/lua/linit.c
moolua/lua/liolib.c
moolua/lua/llex.c
moolua/lua/llex.h
moolua/lua/llimits.h
moolua/lua/lmathlib.c
moolua/lua/lmem.c
moolua/lua/lmem.h
moolua/lua/loadlib.c
moolua/lua/lobject.c
moolua/lua/lobject.h
moolua/lua/lopcodes.c
moolua/lua/lopcodes.h
moolua/lua/loslib.c
moolua/lua/lparser.c
moolua/lua/lparser.h
moolua/lua/lstate.c
moolua/lua/lstate.h
moolua/lua/lstring.c
moolua/lua/lstring.h
moolua/lua/ltable.c
moolua/lua/ltable.h
moolua/lua/ltablib.c
moolua/lua/ltm.c
moolua/lua/ltm.h
moolua/lua/lua.h
moolua/lua/luaall.cpp
moolua/lua/luaconf.h
moolua/lua/lualib.h
moolua/lua/lundump.c
moolua/lua/lundump.h
moolua/lua/lvm.c
moolua/lua/lvm.h
moolua/lua/lzio.c
moolua/lua/lzio.h
moolua/lua/README
moolua/lua/slnudata.c
moolua/lua/slnunico.c
)
# zzz
# luadir = $(MOO_DATA_DIR)/lua

View File

@ -1,4 +1,4 @@
LIST(APPEND moo_sources
SET(moolua_sources
moolua/medit-lua.h
moolua/medit-lua.cpp
moolua/mooluaplugin.cpp
@ -6,9 +6,7 @@ LIST(APPEND moo_sources
moolua/moolua-tests.cpp
moolua/moo-lua-api-util.h
moolua/moo-lua-api-util.cpp
moolua/moo-lua-api.cpp
moolua/moo-lua-api.h
moolua/gtk-lua-api.cpp
moolua/gtk-lua-api.h
)
@ -33,7 +31,7 @@ add_custom_command(OUTPUT moolua/moo-lua-api.cpp
${CMAKE_SOURCE_DIR}/api/moo.xml
MAIN_DEPENDENCY ${CMAKE_SOURCE_DIR}/api/moo.xml
DEPENDS ${genlua_files} ${CMAKE_SOURCE_DIR}/api/gtk.xml)
list(APPEND built_moo_sources moolua/moo-lua-api.cpp)
list(APPEND built_moolua_sources moolua/moo-lua-api.cpp)
add_custom_command(OUTPUT moolua/gtk-lua-api.cpp
COMMAND ${MOO_PYTHON} ${CMAKE_SOURCE_DIR}/api/genlua.py
@ -42,4 +40,4 @@ add_custom_command(OUTPUT moolua/gtk-lua-api.cpp
${CMAKE_SOURCE_DIR}/api/gtk.xml
MAIN_DEPENDENCY ${CMAKE_SOURCE_DIR}/api/gtk.xml
DEPENDS ${genlua_files})
list(APPEND built_moo_sources moolua/gtk-lua-api.cpp)
list(APPEND built_moolua_sources moolua/gtk-lua-api.cpp)

View File

@ -1,240 +1,241 @@
SET(moo_utils_enum_headers
mooutils/moodialogs.h
mooutils/moofiledialog.h
mooutils/moouixml.h
mooutils/moowindow.h
)
LIST(APPEND moo_sources
${moo_utils_enum_headers}
mooutils/mooarray.h
mooutils/mooutils-thread.c
mooutils/mooutils-thread.h
mooutils/moohistorymgr.c
mooutils/moohistorymgr.h
mooutils/moo-environ.h
mooutils/mooaccel.c
mooutils/mooaccel.h
mooutils/mooaccelbutton.c
mooutils/mooaccelbutton.h
mooutils/mooaccelprefs.c
mooutils/mooaccelprefs.h
mooutils/mooaction-private.h
mooutils/mooaction.c
mooutils/mooaction.h
mooutils/mooactionbase-private.h
mooutils/mooactionbase.c
mooutils/mooactionbase.h
mooutils/mooactioncollection.c
mooutils/mooactioncollection.h
mooutils/mooactionfactory.c
mooutils/mooactionfactory.h
mooutils/mooactiongroup.c
mooutils/mooactiongroup.h
mooutils/mooapp-ipc.c
mooutils/mooapp-ipc.h
mooutils/mooappinput.c
mooutils/mooappinput.h
mooutils/mooatom.h
mooutils/moobigpaned.c
mooutils/moobigpaned.h
mooutils/mooclosure.c
mooutils/mooclosure.h
mooutils/moocombo.c
mooutils/moocombo.h
mooutils/moocompat.h
mooutils/moodialogs.c
mooutils/mooeditops.c
mooutils/mooeditops.h
mooutils/mooencodings-data.h
mooutils/mooencodings.c
mooutils/mooencodings.h
mooutils/mooentry.c
mooutils/mooentry.h
mooutils/moofiledialog.c
mooutils/moofileicon.c
mooutils/moofileicon.h
mooutils/moofilewatch.c
mooutils/moofilewatch.h
mooutils/moofilewriter.c
mooutils/moofilewriter.h
mooutils/moofilewriter-private.h
mooutils/moofiltermgr.c
mooutils/moofiltermgr.h
mooutils/moofontsel.c
mooutils/moofontsel.h
mooutils/mooglade.c
mooutils/mooglade.h
mooutils/moohelp.c
mooutils/moohelp.h
mooutils/moohistorycombo.c
mooutils/moohistorycombo.h
mooutils/moohistorylist.c
mooutils/moohistorylist.h
mooutils/mooi18n.c
mooutils/mooi18n.h
mooutils/moolist.h
mooutils/moomarkup.c
mooutils/moomarkup.h
mooutils/moomenu.c
mooutils/moomenu.h
mooutils/moomenuaction.c
mooutils/moomenuaction.h
mooutils/moomenumgr.c
mooutils/moomenumgr.h
mooutils/moomenutoolbutton.c
mooutils/moomenutoolbutton.h
mooutils/moo-mime.c
mooutils/moo-mime.h
mooutils/moonotebook.c
mooutils/moonotebook.h
mooutils/mooonce.h
mooutils/moopane.c
mooutils/moopane.h
mooutils/moopaned.c
mooutils/moopaned.h
mooutils/mooprefs.c
mooutils/mooprefs.h
mooutils/mooprefsdialog.c
mooutils/mooprefsdialog.h
mooutils/mooprefspage.c
mooutils/mooprefspage.h
mooutils/moospawn.c
mooutils/moospawn.h
mooutils/moostat.h
mooutils/moostock.c
mooutils/moostock.h
mooutils/mootype-macros.h
mooutils/moouixml.c
mooutils/mooundo.c
mooutils/mooundo.h
mooutils/mooutils.h
mooutils/mooutils-debug.h
mooutils/mooutils-enums.c
mooutils/mooutils-enums.h
mooutils/mooutils-file.c
mooutils/mooutils-file.h
mooutils/mooutils-fs.c
mooutils/mooutils-fs.h
mooutils/mooutils-gobject-private.h
mooutils/mooutils-gobject.c
mooutils/mooutils-gobject.h
mooutils/mooutils-macros.h
mooutils/mooutils-mem.h
mooutils/mooutils-messages.h
mooutils/mooutils-misc.c
mooutils/mooutils-misc.h
mooutils/mooutils-script.c
mooutils/mooutils-script.h
mooutils/mooutils-tests.h
mooutils/mooutils-treeview.c
mooutils/mooutils-treeview.h
mooutils/moowindow.c
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_moo_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
mooutils/mooutils-win32.c
)
SET(mooutils_unittest_sources
mooutils/moo-test-utils.c
mooutils/moo-test-utils.h
mooutils/moo-test-macros.h
)
# EXTRA_DIST += $(mooutils_win32_sources) $(mooutils_unittest_sources)
SET(moo_utils_enum_headers
mooutils/moodialogs.h
mooutils/moofiledialog.h
mooutils/moouixml.h
mooutils/moowindow.h
)
SET(mooutils_sources
${moo_utils_enum_headers}
mooutils/mooarray.h
mooutils/mooutils-thread.c
mooutils/mooutils-thread.h
mooutils/moohistorymgr.c
mooutils/moohistorymgr.h
mooutils/moo-environ.h
mooutils/mooaccel.c
mooutils/mooaccel.h
mooutils/mooaccelbutton.c
mooutils/mooaccelbutton.h
mooutils/mooaccelprefs.c
mooutils/mooaccelprefs.h
mooutils/mooaction-private.h
mooutils/mooaction.c
mooutils/mooaction.h
mooutils/mooactionbase-private.h
mooutils/mooactionbase.c
mooutils/mooactionbase.h
mooutils/mooactioncollection.c
mooutils/mooactioncollection.h
mooutils/mooactionfactory.c
mooutils/mooactionfactory.h
mooutils/mooactiongroup.c
mooutils/mooactiongroup.h
mooutils/mooapp-ipc.c
mooutils/mooapp-ipc.h
mooutils/mooappinput.c
mooutils/mooappinput.h
mooutils/mooatom.h
mooutils/moobigpaned.c
mooutils/moobigpaned.h
mooutils/mooclosure.c
mooutils/mooclosure.h
mooutils/moocombo.c
mooutils/moocombo.h
mooutils/moocompat.h
mooutils/moodialogs.c
mooutils/mooeditops.c
mooutils/mooeditops.h
mooutils/mooencodings-data.h
mooutils/mooencodings.c
mooutils/mooencodings.h
mooutils/mooentry.c
mooutils/mooentry.h
mooutils/moofiledialog.c
mooutils/moofileicon.c
mooutils/moofileicon.h
mooutils/moofilewatch.c
mooutils/moofilewatch.h
mooutils/moofilewriter.c
mooutils/moofilewriter.h
mooutils/moofilewriter-private.h
mooutils/moofiltermgr.c
mooutils/moofiltermgr.h
mooutils/moofontsel.c
mooutils/moofontsel.h
mooutils/mooglade.c
mooutils/mooglade.h
mooutils/moohelp.c
mooutils/moohelp.h
mooutils/moohistorycombo.c
mooutils/moohistorycombo.h
mooutils/moohistorylist.c
mooutils/moohistorylist.h
mooutils/mooi18n.c
mooutils/mooi18n.h
mooutils/moolist.h
mooutils/moomarkup.c
mooutils/moomarkup.h
mooutils/moomenu.c
mooutils/moomenu.h
mooutils/moomenuaction.c
mooutils/moomenuaction.h
mooutils/moomenumgr.c
mooutils/moomenumgr.h
mooutils/moomenutoolbutton.c
mooutils/moomenutoolbutton.h
mooutils/moo-mime.c
mooutils/moo-mime.h
mooutils/moonotebook.c
mooutils/moonotebook.h
mooutils/mooonce.h
mooutils/moopane.c
mooutils/moopane.h
mooutils/moopaned.c
mooutils/moopaned.h
mooutils/mooprefs.c
mooutils/mooprefs.h
mooutils/mooprefsdialog.c
mooutils/mooprefsdialog.h
mooutils/mooprefspage.c
mooutils/mooprefspage.h
mooutils/moospawn.c
mooutils/moospawn.h
mooutils/moostat.h
mooutils/moostock.c
mooutils/moostock.h
mooutils/mootype-macros.h
mooutils/moouixml.c
mooutils/mooundo.c
mooutils/mooundo.h
mooutils/mooutils.h
mooutils/mooutils-debug.h
mooutils/mooutils-enums.c
mooutils/mooutils-enums.h
mooutils/mooutils-file.c
mooutils/mooutils-file.h
mooutils/mooutils-fs.c
mooutils/mooutils-fs.h
mooutils/mooutils-gobject-private.h
mooutils/mooutils-gobject.c
mooutils/mooutils-gobject.h
mooutils/mooutils-macros.h
mooutils/mooutils-mem.h
mooutils/mooutils-messages.h
mooutils/mooutils-misc.c
mooutils/mooutils-misc.h
mooutils/mooutils-script.c
mooutils/mooutils-script.h
mooutils/mooutils-tests.h
mooutils/mooutils-treeview.c
mooutils/mooutils-treeview.h
mooutils/moowindow.c
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
mooutils/mooutils-win32.c
)
SET(mooutils_unittest_sources
mooutils/moo-test-utils.c
mooutils/moo-test-utils.h
mooutils/moo-test-macros.h
)
LIST(APPEND mooutils_extra_dist ${mooutils_win32_sources} ${mooutils_unittest_sources})
if(WIN32)
LIST(APPEND moo_sources ${mooutils_win32_sources})
LIST(APPEND mooutils_sources ${mooutils_win32_sources})
endif()
LIST(APPEND moo_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_moo_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 $@
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 $@

View File

@ -1,24 +0,0 @@
plugins_sources += \
plugins/moofileselector-prefs.c \
plugins/moofileselector.c \
plugins/moofileselector.h \
plugins/mooplugin-builtin.h \
plugins/mooplugin-builtin.c \
plugins/moofilelist.c \
plugins/moofind.c
EXTRA_DIST += \
plugins/glade/moofileselector-prefs.glade \
plugins/glade/moofileselector.glade \
plugins/glade/moofind.glade \
plugins/glade/moogrep.glade
built_plugins_sources += \
plugins/moofileselector-prefs-gxml.h \
plugins/moofileselector-gxml.h \
plugins/moofind-gxml.h \
plugins/moogrep-gxml.h
include plugins/ctags/Makefile.incl
include plugins/usertools/Makefile.incl
include plugins/support/Makefile.incl

View File

@ -1,16 +0,0 @@
moo_sources += \
xdgmime/xdgmimealias.c \
xdgmime/xdgmimealias.h \
xdgmime/xdgmime.c \
xdgmime/xdgmimecache.c \
xdgmime/xdgmimecache.h \
xdgmime/xdgmimeglob.c \
xdgmime/xdgmimeglob.h \
xdgmime/xdgmime.h \
xdgmime/xdgmimeint.h \
xdgmime/xdgmimeicon.c \
xdgmime/xdgmimeicon.h \
xdgmime/xdgmimemagic.c \
xdgmime/xdgmimemagic.h \
xdgmime/xdgmimeparent.c \
xdgmime/xdgmimeparent.h

View File

@ -1,4 +1,4 @@
LIST(APPEND moo_sources
SET(xdgmime_sources
xdgmime/xdgmimealias.c
xdgmime/xdgmimealias.h
xdgmime/xdgmime.c