Makefile.am 13.8 KB
Newer Older
1 2 3 4
ACLOCAL_AMFLAGS = -I m4

bin_PROGRAMS = vlmc

5
SUFFIXES = .ui .h .moc.cpp .qrc .qml
6 7 8 9 10 11 12 13 14 15 16 17

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 \
18
        src/Backend/MLT/MLTParameterInfo.cpp \
19 20
	src/EffectsEngine/EffectHelper.cpp \
	src/Library/Library.cpp \
21
	src/Library/MediaLibraryModel.cpp \
22 23 24 25
	src/Main/Core.cpp \
	src/Main/main.cpp \
	src/Media/Clip.cpp \
	src/Media/Media.cpp \
luyikei's avatar
luyikei committed
26
	src/Transition/Transition.cpp \
27 28 29 30 31
	src/Project/Project.cpp \
	src/Project/Workspace.cpp \
	src/Project/WorkspaceWorker.cpp \
	src/Project/RecentProjects.cpp \
	src/Renderer/AbstractRenderer.cpp \
32
        src/Renderer/ConsoleRenderer.h \
33 34 35 36 37 38 39 40 41
	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 \
42
	src/Workflow/SequenceWorkflow.cpp \
luyikei's avatar
luyikei committed
43
	src/Workflow/Track.cpp \
44 45 46 47 48 49 50
	$(NULL)

vlmc_SOURCES += \
	src/Project/Workspace.h \
	src/Project/WorkspaceWorker.h \
	src/Project/Project.h \
	src/Project/RecentProjects.h \
51
	src/Commands/Commands.h \
52 53 54 55 56 57 58 59
	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 \
60
	src/Renderer/ClipRenderer.h \
61
	src/Renderer/AbstractRenderer.h \
62
        src/Renderer/ConsoleRenderer.cpp \
63
	src/Services/UploaderIODevice.h \
64
	src/Services/AbstractSharingService.h \
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
	src/EffectsEngine/EffectHelper.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 \
85
        src/Backend/MLT/MLTParameterInfo.h \
86 87 88 89 90
	src/Backend/IBackend.h \
	src/Backend/IProfile.h \
	src/Backend/IMultiTrack.h \
	src/Main/Core.h \
	src/Library/Library.h \
91
	src/Library/MediaLibraryModel.h \
92 93 94 95 96 97 98
	src/Workflow/Helper.h \
	src/Workflow/Types.h \
	src/Workflow/MainWorkflow.h \
	$(NULL)

nodist_vlmc_SOURCES = \
	src/Media/Clip.moc.cpp \
99
	src/Workflow/SequenceWorkflow.moc.cpp \
100 101 102
	src/EffectsEngine/EffectHelper.moc.cpp \
	src/Workflow/Helper.moc.cpp \
	src/Tools/RendererEventWatcher.moc.cpp \
103
	src/Project/Workspace.moc.cpp \
104 105 106 107
	src/Tools/VlmcLogger.moc.cpp \
	src/Settings/Settings.moc.cpp \
	src/Media/Media.moc.cpp \
	src/Renderer/AbstractRenderer.moc.cpp \
108
        src/Renderer/ConsoleRenderer.moc.cpp \
109
	src/Project/WorkspaceWorker.moc.cpp \
110 111 112
	src/Services/AbstractSharingService.moc.cpp \
	src/Workflow/MainWorkflow.moc.cpp \
	src/Project/RecentProjects.moc.cpp \
113 114
	src/Commands/Commands.moc.cpp \
	src/Project/Project.moc.cpp \
115 116 117 118
	src/Settings/SettingValue.moc.cpp \
	src/Tools/OutputEventWatcher.moc.cpp \
	src/Services/UploaderIODevice.moc.cpp \
	src/Library/Library.moc.cpp \
119
	src/Library/MediaLibraryModel.moc.cpp \
120 121 122
	$(NULL)

vlmc_RC = \
123
	$(top_srcdir)/resources.qrc \
124 125 126 127 128 129
	$(NULL)

EXTRA_DIST = $(vlmc_RC)

if HAVE_WIN32
vlmc_SOURCES += src/Main/winvlmc.cpp
130
vlmc_RC += $(top_srcdir)/resources/styles.qrc
131 132 133 134 135 136 137 138 139
else
vlmc_SOURCES += src/Main/vlmc.cpp
endif

vlmc_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	$(QT_CFLAGS) \
	$(MLT_CFLAGS) \
	$(LIBVLCPP_CFLAGS) \
luyikei's avatar
luyikei committed
140
	$(MEDIALIBRARY_CFLAGS) \
141 142 143 144 145 146 147 148 149 150 151
	-I$(top_srcdir)/src \
	$(NULL)

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

vlmc_LDADD = \
	$(QT_LIBS) \
	$(MLT_LIBS) \
	$(MLTPP_LIBS) \
luyikei's avatar
luyikei committed
152
	$(MEDIALIBRARY_LIBS) \
153 154
	$(NULL)

155 156
vlmc_LDFLAGS=

157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
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/TagWidget.cpp \
179
	src/Gui/library/MediaLibraryView.cpp \
180
	src/Gui/library/ClipLibraryView.cpp \
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
	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 \
198
	src/Gui/settings/FolderListWidget.cpp \
199
	src/Gui/timeline/Timeline.cpp \
luyikei's avatar
luyikei committed
200
	src/Gui/timeline/ThumbnailImageProvider.cpp \
201
        src/Gui/timeline/MarkerManager.cpp \
202 203 204 205 206 207 208 209 210 211 212 213
	src/Gui/widgets/ExtendedLabel.cpp \
	src/Gui/widgets/FramelessButton.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 \
214
	src/Gui/wizard/firstlaunch/MediaLibraryDirs.cpp \
215 216
	$(NULL)

217 218
if HAVE_DARWIN
vlmc_SOURCES += src/Gui/preview/RenderWidget.mm
219
vlmc_LDFLAGS += -Wl,-framework,Cocoa
220 221
endif

222
vlmc_SOURCES += \
223
	src/Commands/KeyboardShortcutHelper.h \
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240
	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/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 \
241
	src/Gui/wizard/firstlaunch/MediaLibraryDirs.h \
242
	src/Gui/timeline/Timeline.h \
luyikei's avatar
luyikei committed
243
	src/Gui/timeline/ThumbnailImageProvider.h \
244 245
	src/Gui/About.h \
	src/Gui/LanguageHelper.h \
246
	src/Gui/library/MediaLibraryView.h \
247
	src/Gui/library/ClipLibraryView.h \
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
	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 \
268
	src/Gui/settings/FolderListWidget.h \
269 270 271 272 273 274 275 276 277
	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 \
278 279 280 281 282
	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 \
283 284 285
	$(NULL)

nodist_vlmc_SOURCES += \
286
	src/Commands/KeyboardShortcutHelper.moc.cpp \
287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307
	src/Gui/wizard/WelcomePage.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/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/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/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
308
	src/Gui/timeline/ThumbnailImageProvider.moc.cpp \
309
        src/Gui/timeline/MarkerManager.moc.cpp \
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332
	src/Gui/settings/LanguageWidget.moc.cpp \
	src/Gui/import/TagWidget.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/settings/PathWidget.moc.cpp \
	src/Gui/settings/IntWidget.moc.cpp \
	src/Gui/settings/StringWidget.moc.cpp \
333
	src/Gui/settings/FolderListWidget.moc.cpp \
334
	src/Gui/effectsengine/EffectsListView.moc.cpp \
335 336 337 338 339 340
	src/Gui/library/MediaLibraryView.moc.cpp \
	src/Gui/library/ClipLibraryView.moc.cpp \
	src/Renderer/ClipRenderer.moc.cpp \
	src/Services/YouTube/YouTubeAuthenticator.moc.cpp \
	src/Services/YouTube/YouTubeUploader.moc.cpp \
	src/Services/YouTube/YouTubeService.moc.cpp \
341 342 343 344 345 346 347 348 349
	$(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/TagWidget.ui \
350
	src/Gui/ui/FolderListWidget.ui \
351 352 353 354 355 356 357 358 359 360 361 362 363
	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/GeneralPage.ui \
	src/Gui/ui/OpenPage.ui \
	src/Gui/ui/VideoPage.ui \
	src/Gui/ui/WelcomePage.ui \
	src/Gui/ui/FirstLaunchPage.ui \
364
	src/Gui/ui/MediaLibraryDirs.ui \
365 366 367 368 369 370
	src/Gui/ui/WorkspaceLocation.ui \
	src/Gui/ui/Done.ui \
	$(NULL)

if HAVE_CRASHHANDLER
vlmc_UI += src/Gui/ui/CrashHandler.ui
371 372 373 374 375
vlmc_SOURCES += \
	src/Gui/widgets/CrashHandler.h \
	src/Gui/widgets/CrashHandler.cpp \
	$(NULL)
nodist_vlmc_SOURCES += src/Gui/widgets/CrashHandler.moc.cpp
376 377 378 379 380 381 382 383 384 385 386 387
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)

388 389 390 391 392 393 394 395 396 397 398 399
vlmc_QML = \
	src/Gui/timeline/PropertyButton.qml \
	src/Gui/timeline/MarkerContextMenu.qml \
	src/Gui/timeline/Ruler.qml \
	src/Gui/timeline/Track.qml \
	src/Gui/timeline/Clip.qml \
	src/Gui/timeline/TrackContainer.qml \
	src/Gui/timeline/Marker.qml \
	src/Gui/timeline/main.qml \
	src/Gui/timeline/ClipContextMenu.qml \
	src/Gui/timeline/Cursor.qml \
	src/Gui/library/ui/MediaLibraryView.qml \
400
	src/Gui/library/ui/ClipLibraryView.qml \
401
	src/Gui/library/ui/MediaItem.qml \
luyikei's avatar
luyikei committed
402
	src/Gui/library/ui/ClipItem.qml \
403 404 405 406 407 408
	src/Gui/effectsengine/Effect.qml \
	src/Gui/effectsengine/EffectsListView.qml \
	$(NULL)

EXTRA_DIST += $(vlmc_QML)

409 410 411
vlmc_RC += $(vlmc_QML:.qml=.qrc)
nodist_vlmc_SOURCES += $(vlmc_QML:.qml=.qrc)

412 413 414
else #HAVE_GUI=FALSE

vlmc_SOURCES += \
415 416
	src/Commands/AbstractUndoStack.h \
	$(NULL)
417 418

vlmc_SOURCES += \
419 420
	src/Commands/AbstractUndoStack.cpp \
	$(NULL)
421 422 423


nodist_vlmc_SOURCES += \
424 425
	src/Commands/AbstractUndoStack.moc.cpp \
	$(NULL)
426

427 428
endif

429
resources.cpp: $(vlmc_RC)
430
	$(RCC) -o $@ $(vlmc_RC)
431

432 433
nodist_vlmc_SOURCES += resources.cpp

434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450
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 $@

451 452 453 454 455 456 457 458 459 460 461
qmlrc_verbose = $(qmlrc_verbose_$(V))
qmlrc_verbose_ = $(qmlrc_verbose__$(AM_DEFAULT_VERBOSITY))
qmlrc_verbose_0 = @echo "  QML->QRC   " $@;
qmlrc_verbose__0 = $(qmlrc_verbose_0)

.qml.qrc:
	$(AM_V_at)mkdir -p $(@D)
	$(qmlrc_verbose)echo "<RCC><qresource prefix=\"/QML\">\
		<file alias=\"$(<F)\">$(abs_top_builddir)/$<</file>\
		</qresource></RCC>" > $@

462 463 464
BUILT_SOURCES = $(nodist_vlmc_SOURCES)
CLEANFILES = $(BUILT_SOURCES)