Makefile.am 12.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
ACLOCAL_AMFLAGS = -I m4

bin_PROGRAMS = vlmc

SUFFIXES = .ui .h .moc.cpp

vlmc_SOURCES = \
	src/Commands/Commands.cpp \
	src/Backend/MLT/MLTBackend.cpp \
	src/Backend/MLT/MLTOutput.cpp \
	src/Backend/MLT/MLTInput.cpp \
	src/Backend/MLT/MLTTrack.cpp \
	src/Backend/MLT/MLTService.cpp \
	src/Backend/MLT/MLTProfile.cpp \
	src/Backend/MLT/MLTFilter.cpp \
	src/Backend/MLT/MLTTransition.cpp \
	src/Backend/MLT/MLTMultiTrack.cpp \
	src/EffectsEngine/EffectHelper.cpp \
	src/Library/Library.cpp \
	src/Library/MediaContainer.cpp \
	src/Main/Core.cpp \
	src/Main/main.cpp \
	src/Media/Clip.cpp \
	src/Media/Media.cpp \
	src/Project/Project.cpp \
	src/Project/Workspace.cpp \
	src/Project/WorkspaceWorker.cpp \
	src/Project/RecentProjects.cpp \
	src/Renderer/AbstractRenderer.cpp \
	src/Services/UploaderIODevice.cpp \
	src/Settings/Settings.cpp \
	src/Settings/SettingValue.cpp \
	src/Tools/ErrorHandler.cpp \
	src/Tools/RendererEventWatcher.cpp \
	src/Tools/OutputEventWatcher.cpp \
	src/Tools/VlmcLogger.cpp \
	src/Workflow/Helper.cpp \
	src/Workflow/MainWorkflow.cpp \
39
	src/Workflow/SequenceWorkflow.cpp \
luyikei's avatar
luyikei committed
40
	src/Workflow/ThumbnailWorker.cpp \
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
	$(NULL)

vlmc_SOURCES += \
	src/Project/Workspace.h \
	src/Project/WorkspaceWorker.h \
	src/Project/Project.h \
	src/Project/RecentProjects.h \
	src/Commands/Commands.h \
	src/Commands/AbstractUndoStack.h \
	src/Commands/KeyboardShortcutHelper.h \
	src/Tools/RendererEventWatcher.h \
	src/Tools/VlmcDebug.h \
	src/Tools/ErrorHandler.h \
	src/Tools/BacktraceGenerator.h \
	src/Tools/mdate.h \
	src/Tools/VlmcLogger.h \
	src/Tools/OutputEventWatcher.h \
	src/Tools/Singleton.hpp \
	src/Renderer/ClipRenderer.h \
	src/Renderer/ConsoleRenderer.h \
	src/Renderer/AbstractRenderer.h \
	src/Services/UploaderIODevice.h \
	src/Services/AbstractSharingService.h \
	src/Services/YouTube/YouTubeUploader.h \
	src/Services/YouTube/YouTubeCommon.h \
	src/Services/YouTube/YouTubeAuthenticator.h \
	src/Services/YouTube/YouTubeService.h \
	src/Services/YouTube/YouTubeFeedParser.h \
	src/EffectsEngine/EffectHelper.h \
	src/Media/Transcoder.h \
	src/Media/Media.h \
	src/Media/Clip.h \
	src/Settings/Settings.h \
	src/Settings/SettingValue.h \
	src/vlmc.h \
	src/Backend/ITrack.h \
	src/Backend/ITransition.h \
	src/Backend/IFilter.h \
	src/Backend/IInput.h \
	src/Backend/IOutput.h \
	src/Backend/MLT/MLTTransition.h \
	src/Backend/MLT/MLTFilter.h \
	src/Backend/MLT/MLTProfile.h \
	src/Backend/MLT/MLTTrack.h \
	src/Backend/MLT/MLTBackend.h \
	src/Backend/MLT/MLTService.h \
	src/Backend/MLT/MLTInput.h \
	src/Backend/MLT/MLTMultiTrack.h \
	src/Backend/MLT/MLTOutput.h \
	src/Backend/IBackend.h \
	src/Backend/IProfile.h \
	src/Backend/IMultiTrack.h \
	src/Main/Core.h \
	src/Library/Library.h \
	src/Library/MediaContainer.h \
	src/Workflow/Helper.h \
	src/Workflow/Types.h \
	src/Workflow/MainWorkflow.h \
	$(NULL)

nodist_vlmc_SOURCES = \
	src/Media/Clip.moc.cpp \
103
	src/Workflow/SequenceWorkflow.moc.cpp \
luyikei's avatar
luyikei committed
104
	src/Workflow/ThumbnailWorker.moc.cpp \
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
	src/Services/YouTube/YouTubeService.moc.cpp \
	src/EffectsEngine/EffectHelper.moc.cpp \
	src/Workflow/Helper.moc.cpp \
	src/Tools/RendererEventWatcher.moc.cpp \
	src/Project/Workspace.moc.cpp \
	src/Services/YouTube/YouTubeUploader.moc.cpp \
	src/Tools/VlmcLogger.moc.cpp \
	src/Settings/Settings.moc.cpp \
	src/Media/Media.moc.cpp \
	src/Renderer/AbstractRenderer.moc.cpp \
	src/Project/WorkspaceWorker.moc.cpp \
	src/Commands/KeyboardShortcutHelper.moc.cpp \
	src/Services/AbstractSharingService.moc.cpp \
	src/Workflow/MainWorkflow.moc.cpp \
	src/Project/RecentProjects.moc.cpp \
	src/Library/MediaContainer.moc.cpp \
	src/Commands/Commands.moc.cpp \
	src/Renderer/ClipRenderer.moc.cpp \
	src/Project/Project.moc.cpp \
	src/Services/YouTube/YouTubeAuthenticator.moc.cpp \
	src/Settings/SettingValue.moc.cpp \
	src/Tools/OutputEventWatcher.moc.cpp \
	src/Services/UploaderIODevice.moc.cpp \
	src/Library/Library.moc.cpp \
	$(NULL)

vlmc_RC = \
132 133
	$(top_srcdir)/resources.qrc \
	$(top_srcdir)/src/Gui/timeline/resources-timeline.qrc \
134 135 136 137 138 139
	$(NULL)

EXTRA_DIST = $(vlmc_RC)

if HAVE_WIN32
vlmc_SOURCES += src/Main/winvlmc.cpp
140
vlmc_RC += $(top_srcdir)/resources/styles.qrc
141 142 143 144 145 146 147 148 149
else
vlmc_SOURCES += src/Main/vlmc.cpp
endif

vlmc_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	$(QT_CFLAGS) \
	$(MLT_CFLAGS) \
	$(LIBVLCPP_CFLAGS) \
luyikei's avatar
luyikei committed
150
	$(MEDIALIBRARY_CFLAGS) \
151 152 153 154 155 156 157 158 159 160 161
	-I$(top_srcdir)/src \
	$(NULL)

vlmc_CXXFLAGS = \
	$(AM_CXXFLAGS) \
	$(NULL)

vlmc_LDADD = \
	$(QT_LIBS) \
	$(MLT_LIBS) \
	$(MLTPP_LIBS) \
luyikei's avatar
luyikei committed
162
	$(MEDIALIBRARY_LIBS) \
163 164
	$(NULL)

165 166
vlmc_LDFLAGS=

167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191
if HAVE_GUI
vlmc_SOURCES += \
	src/Commands/KeyboardShortcutHelper.cpp \
	src/Renderer/ClipRenderer.cpp \
	src/Services/YouTube/YouTubeAuthenticator.cpp \
	src/Services/YouTube/YouTubeFeedParser.cpp \
	src/Services/YouTube/YouTubeService.cpp \
	src/Services/YouTube/YouTubeUploader.cpp \
	src/Gui/About.cpp \
	src/Gui/ClipProperty.cpp \
	src/Gui/IntroDialog.cpp \
	src/Gui/LanguageHelper.cpp \
	src/Gui/MainWindow.cpp \
	src/Gui/WorkflowFileRendererDialog.cpp \
	src/Gui/effectsengine/EffectInstanceWidget.cpp \
	src/Gui/effectsengine/EffectInstanceListModel.cpp \
	src/Gui/effectsengine/EffectsListView.cpp \
	src/Gui/effectsengine/EffectStack.cpp \
	src/Gui/effectsengine/EffectWidget.cpp \
	src/Gui/export/RendererSettings.cpp \
	src/Gui/export/ShareOnInternet.cpp \
	src/Gui/import/ImportController.cpp \
	src/Gui/import/TagWidget.cpp \
	src/Gui/library/ListViewController.cpp \
	src/Gui/library/MediaCellView.cpp \
192
	src/Gui/library/MediaLibraryView.cpp \
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
	src/Gui/library/MediaListView.cpp \
	src/Gui/library/StackViewController.cpp \
	src/Gui/library/StackViewNavController.cpp \
	src/Gui/media/ClipMetadataDisplayer.cpp \
	src/Gui/preview/LCDTimecode.cpp \
	src/Gui/preview/PreviewRuler.cpp \
	src/Gui/preview/PreviewWidget.cpp \
	src/Gui/settings/BoolWidget.cpp \
	src/Gui/settings/ColorWidget.cpp \
	src/Gui/settings/DoubleWidget.cpp \
	src/Gui/settings/DoubleSliderWidget.cpp \
	src/Gui/settings/IntWidget.cpp \
	src/Gui/settings/KeyboardShortcut.cpp \
	src/Gui/settings/KeyboardShortcutInput.cpp \
	src/Gui/settings/LanguageWidget.cpp \
	src/Gui/settings/Panel.cpp \
	src/Gui/settings/PathWidget.cpp \
	src/Gui/settings/PreferenceWidget.cpp \
	src/Gui/settings/SettingsDialog.cpp \
	src/Gui/settings/StringWidget.cpp \
	src/Gui/timeline/Timeline.cpp \
luyikei's avatar
luyikei committed
214
	src/Gui/timeline/ThumbnailImageProvider.cpp \
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
	src/Gui/widgets/ExtendedLabel.cpp \
	src/Gui/widgets/FramelessButton.cpp \
	src/Gui/widgets/NotificationZone.cpp \
	src/Gui/widgets/SearchLineEdit.cpp \
	src/Gui/wizard/GeneralPage.cpp \
	src/Gui/wizard/OpenPage.cpp \
	src/Gui/wizard/ProjectWizard.cpp \
	src/Gui/wizard/VideoPage.cpp \
	src/Gui/wizard/WelcomePage.cpp \
	src/Gui/wizard/firstlaunch/FirstLaunchWizard.cpp \
	src/Gui/wizard/firstlaunch/FirstLaunchPage.cpp \
	src/Gui/wizard/firstlaunch/WorkspaceLocation.cpp \
	src/Gui/wizard/firstlaunch/Done.cpp \
	$(NULL)

230 231
if HAVE_DARWIN
vlmc_SOURCES += src/Gui/preview/RenderWidget.mm
232
vlmc_LDFLAGS += -Wl,-framework,Cocoa
233 234
endif

235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254
vlmc_SOURCES += \
	src/Gui/ClipProperty.h \
	src/Gui/WorkflowFileRendererDialog.h \
	src/Gui/widgets/FramelessButton.h \
	src/Gui/widgets/ExtendedLabel.h \
	src/Gui/widgets/SearchLineEdit.h \
	src/Gui/widgets/CrashHandler.h \
	src/Gui/widgets/NotificationZone.h \
	src/Gui/MainWindow.h \
	src/Gui/wizard/ProjectWizard.h \
	src/Gui/wizard/GeneralPage.h \
	src/Gui/wizard/PageFactory.h \
	src/Gui/wizard/WelcomePage.h \
	src/Gui/wizard/VideoPage.h \
	src/Gui/wizard/firstlaunch/FirstLaunchWizard.h \
	src/Gui/wizard/firstlaunch/FirstLaunchPage.h \
	src/Gui/wizard/firstlaunch/WorkspaceLocation.h \
	src/Gui/wizard/firstlaunch/Done.h \
	src/Gui/wizard/OpenPage.h \
	src/Gui/timeline/Timeline.h \
luyikei's avatar
luyikei committed
255
	src/Gui/timeline/ThumbnailImageProvider.h \
256 257 258 259 260
	src/Gui/About.h \
	src/Gui/LanguageHelper.h \
	src/Gui/library/ListViewController.h \
	src/Gui/library/StackViewController.h \
	src/Gui/library/MediaListView.h \
261
	src/Gui/library/MediaLibraryView.h \
262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305
	src/Gui/library/MediaCellView.h \
	src/Gui/library/StackViewNavController.h \
	src/Gui/library/ViewController.h \
	src/Gui/media/ClipMetadataDisplayer.h \
	src/Gui/preview/RenderWidget.h \
	src/Gui/preview/PreviewRuler.h \
	src/Gui/preview/PreviewWidget.h \
	src/Gui/preview/LCDTimecode.h \
	src/Gui/settings/DoubleWidget.h \
	src/Gui/settings/KeyboardShortcut.h \
	src/Gui/settings/StringWidget.h \
	src/Gui/settings/KeyboardShortcutInput.h \
	src/Gui/settings/SettingsDialog.h \
	src/Gui/settings/DoubleSliderWidget.h \
	src/Gui/settings/ColorWidget.h \
	src/Gui/settings/IntWidget.h \
	src/Gui/settings/ISettingsCategoryWidget.h \
	src/Gui/settings/PathWidget.h \
	src/Gui/settings/BoolWidget.h \
	src/Gui/settings/LanguageWidget.h \
	src/Gui/settings/Panel.h \
	src/Gui/settings/PreferenceWidget.h \
	src/Gui/import/ImportController.h \
	src/Gui/import/TagWidget.h \
	src/Gui/effectsengine/EffectStack.h \
	src/Gui/effectsengine/EffectWidget.h \
	src/Gui/effectsengine/EffectsListView.h \
	src/Gui/effectsengine/EffectInstanceWidget.h \
	src/Gui/effectsengine/EffectInstanceListModel.h \
	src/Gui/export/RendererSettings.h \
	src/Gui/export/ShareOnInternet.h \
	src/Gui/IntroDialog.h \
	$(NULL)

nodist_vlmc_SOURCES += \
	src/Gui/wizard/WelcomePage.moc.cpp \
	src/Gui/library/ListViewController.moc.cpp \
	src/Gui/settings/SettingsDialog.moc.cpp \
	src/Gui/export/ShareOnInternet.moc.cpp \
	src/Gui/widgets/FramelessButton.moc.cpp \
	src/Gui/wizard/OpenPage.moc.cpp \
	src/Gui/settings/ColorWidget.moc.cpp \
	src/Gui/import/ImportController.moc.cpp \
	src/Gui/library/StackViewController.moc.cpp \
306
	src/Gui/library/MediaLibraryView.moc.cpp \
307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323
	src/Gui/wizard/firstlaunch/FirstLaunchPage.moc.cpp \
	src/Gui/settings/Panel.moc.cpp \
	src/Gui/preview/RenderWidget.moc.cpp \
	src/Gui/settings/BoolWidget.moc.cpp \
	src/Gui/WorkflowFileRendererDialog.moc.cpp \
	src/Gui/library/MediaListView.moc.cpp \
	src/Gui/wizard/firstlaunch/Done.moc.cpp \
	src/Gui/wizard/VideoPage.moc.cpp \
	src/Gui/settings/ISettingsCategoryWidget.moc.cpp \
	src/Gui/wizard/GeneralPage.moc.cpp \
	src/Gui/library/MediaCellView.moc.cpp \
	src/Gui/MainWindow.moc.cpp \
	src/Gui/settings/KeyboardShortcut.moc.cpp \
	src/Gui/preview/PreviewWidget.moc.cpp \
	src/Gui/preview/PreviewRuler.moc.cpp \
	src/Gui/settings/PreferenceWidget.moc.cpp \
	src/Gui/timeline/Timeline.moc.cpp \
luyikei's avatar
luyikei committed
324
	src/Gui/timeline/ThumbnailImageProvider.moc.cpp \
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361
	src/Gui/settings/LanguageWidget.moc.cpp \
	src/Gui/import/TagWidget.moc.cpp \
	src/Gui/widgets/NotificationZone.moc.cpp \
	src/Gui/settings/DoubleSliderWidget.moc.cpp \
	src/Gui/widgets/ExtendedLabel.moc.cpp \
	src/Gui/About.moc.cpp \
	src/Gui/LanguageHelper.moc.cpp \
	src/Gui/ClipProperty.moc.cpp \
	src/Gui/library/ViewController.moc.cpp \
	src/Gui/export/RendererSettings.moc.cpp \
	src/Gui/media/ClipMetadataDisplayer.moc.cpp \
	src/Gui/effectsengine/EffectWidget.moc.cpp \
	src/Gui/effectsengine/EffectInstanceWidget.moc.cpp \
	src/Gui/preview/LCDTimecode.moc.cpp \
	src/Gui/effectsengine/EffectStack.moc.cpp \
	src/Gui/wizard/firstlaunch/WorkspaceLocation.moc.cpp \
	src/Gui/settings/DoubleWidget.moc.cpp \
	src/Gui/wizard/ProjectWizard.moc.cpp \
	src/Gui/IntroDialog.moc.cpp \
	src/Gui/settings/KeyboardShortcutInput.moc.cpp \
	src/Gui/widgets/SearchLineEdit.moc.cpp \
	src/Gui/library/StackViewNavController.moc.cpp \
	src/Gui/settings/PathWidget.moc.cpp \
	src/Gui/settings/IntWidget.moc.cpp \
	src/Gui/settings/StringWidget.moc.cpp \
	src/Gui/effectsengine/EffectsListView.moc.cpp \
	$(NULL)

vlmc_UI = \
	src/Gui/ui/EffectInstanceWidget.ui \
	src/Gui/ui/EffectStack.ui \
	src/Gui/ui/EffectWidget.ui \
	src/Gui/ui/RendererSettings.ui \
	src/Gui/ui/ShareOnInternet.ui \
	src/Gui/ui/ImportController.ui \
	src/Gui/ui/TagWidget.ui \
	src/Gui/ui/MediaCellView.ui \
362
	src/Gui/ui/MediaLibraryView.ui \
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398
	src/Gui/ui/StackViewNavController.ui \
	src/Gui/ui/ClipMetadataDisplayer.ui \
	src/Gui/ui/PreviewWidget.ui \
	src/Gui/ui/About.ui \
	src/Gui/ui/ClipProperty.ui \
	src/Gui/ui/IntroDialog.ui \
	src/Gui/ui/MainWindow.ui \
	src/Gui/ui/Timeline.ui \
	src/Gui/ui/WorkflowFileRendererDialog.ui \
	src/Gui/ui/NotificationZone.ui \
	src/Gui/ui/GeneralPage.ui \
	src/Gui/ui/OpenPage.ui \
	src/Gui/ui/VideoPage.ui \
	src/Gui/ui/WelcomePage.ui \
	src/Gui/ui/FirstLaunchPage.ui \
	src/Gui/ui/WorkspaceLocation.ui \
	src/Gui/ui/Done.ui \
	$(NULL)

if HAVE_CRASHHANDLER
vlmc_UI += src/Gui/ui/CrashHandler.ui
vlmc_SOURCES += src/Gui/widgets/CrashHandler.cpp
if HAVE_WIN32
vlmc_SOURCES += src/Tools/Win32BacktraceGenerator.cpp
else
vlmc_SOURCES += src/Tools/UnixBacktraceGenerator.cpp
endif
endif

EXTRA_DIST += $(vlmc_UI)
vlmc_CPPFLAGS += -Isrc/Gui/ -I$(top_srcdir)/src/Gui

nodist_vlmc_SOURCES += $(vlmc_UI:.ui=.h)

endif

399 400
resources.cpp:
	$(RCC) -o $@ $(vlmc_RC)
401

402 403
nodist_vlmc_SOURCES += resources.cpp

404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423
moc_verbose = $(moc_verbose_$(V))
moc_verbose_ = $(moc_verbose__$(AM_DEFAULT_VERBOSITY))
moc_verbose_0 = @echo "  MOC   " $@;
moc_verbose__0 = $(moc_verbose_0)

.h.moc.cpp:
	$(moc_verbose)$(MOC) -o $@ $<

uic_verbose = $(uic_verbose_$(V))
uic_verbose_ = $(uic_verbose__$(AM_DEFAULT_VERBOSITY))
uic_verbose_0 = @echo "  UIC   " $@;
uic_verbose__0 = $(uic_verbose_0)

%.h: %.ui
	$(AM_V_at)mkdir -p $(@D)
	$(uic_verbose)$(UIC) -p $< -o $@

BUILT_SOURCES = $(nodist_vlmc_SOURCES)
CLEANFILES = $(BUILT_SOURCES)