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 39 40 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 103 104 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 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 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 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 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 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 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 362 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 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606
|
ACLOCAL_AMFLAGS = -I m4
AM_DISTCHECK_CONFIGURE_FLAGS = \
--enable-appdata-check \
--enable-flac \
--enable-id3v23 \
--enable-ogg \
--enable-opus \
--enable-man \
--enable-mp3 \
--enable-mp4 \
--enable-nautilus-actions \
--enable-speex \
--enable-tests \
--enable-wavpack
SUBDIRS = help po
bin_PROGRAMS = easytag
easytag_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/tags \
-I$(top_builddir) \
-I$(top_builddir)/src \
-DLOCALEDIR=\"$(localedir)\" \
$(GLIB_DEPRECATION_FLAGS) \
$(GTK_DEPRECATION_FLAGS)
easytag_CFLAGS = \
$(WARN_CFLAGS) \
$(EASYTAG_CFLAGS)
easytag_CXXFLAGS = \
$(WARN_CXXFLAGS) \
$(EASYTAG_CFLAGS)
easytag_SOURCES = \
src/about.c \
src/application.c \
src/application_window.c \
src/browser.c \
src/browser.h \
src/cddb_dialog.c \
src/charset.c \
src/crc32.c \
src/dlm.c \
src/easytag.c \
src/enums.c \
src/et_core.c \
src/file.c \
src/file_area.c \
src/file_description.c \
src/file_info.c \
src/file_list.c \
src/file_name.c \
src/file_tag.c \
src/load_files_dialog.c \
src/log.c \
src/main.c \
src/misc.c \
src/picture.c \
src/playlist_dialog.c \
src/preferences_dialog.c \
src/progress_bar.c \
src/scan.c \
src/scan_dialog.c \
src/search_dialog.c \
src/setting.c \
src/status_bar.c \
src/tag_area.c \
src/tags/id3lib/c_wrapper.cpp \
src/tags/libapetag/apetaglib.c \
src/tags/libapetag/is_tag.c \
src/tags/libapetag/info_mac.c \
src/tags/libapetag/info_mpc.c \
src/tags/ape_tag.c \
src/tags/flac_header.c \
src/tags/flac_private.c \
src/tags/flac_tag.c \
src/tags/gio_wrapper.cc \
src/tags/id3_tag.c \
src/tags/id3v24_tag.c \
src/tags/monkeyaudio_header.c \
src/tags/mpeg_header.c \
src/tags/mp4_tag.cc \
src/tags/musepack_header.c \
src/tags/ogg_header.c \
src/tags/ogg_tag.c \
src/tags/opus_header.c \
src/tags/opus_tag.c \
src/tags/vcedit.c \
src/tags/wavpack_header.c \
src/tags/wavpack_private.c \
src/tags/wavpack_tag.c \
src/win32/win32dep.c
nodist_easytag_SOURCES = \
src/resource.c
easytag_headers = \
src/about.h \
src/application.h \
src/application_window.h \
src/cddb_dialog.h \
src/charset.h \
src/crc32.h \
src/core_types.h \
src/dlm.h \
src/easytag.h \
src/et_core.h \
src/file.h \
src/file_area.h \
src/file_description.h \
src/file_info.h \
src/file_list.h \
src/file_name.h \
src/file_tag.h \
src/genres.h \
src/load_files_dialog.h \
src/log.h \
src/misc.h \
src/picture.h \
src/playlist_dialog.h \
src/preferences_dialog.h \
src/progress_bar.h \
src/scan.h \
src/scan_dialog.h \
src/search_dialog.h \
src/setting.h \
src/status_bar.h \
src/tag_area.h \
src/tags/id3lib/id3_bugfix.h \
src/tags/libapetag/apetaglib.h \
src/tags/libapetag/is_tag.h \
src/tags/libapetag/info_mac.h \
src/tags/libapetag/info_mpc.h \
src/tags/ape_tag.h \
src/tags/flac_header.h \
src/tags/flac_private.h \
src/tags/flac_tag.h \
src/tags/gio_wrapper.h \
src/tags/id3_tag.h \
src/tags/monkeyaudio_header.h \
src/tags/mpeg_header.h \
src/tags/mp4_header.h \
src/tags/mp4_tag.h \
src/tags/musepack_header.h \
src/tags/ogg_header.h \
src/tags/ogg_tag.h \
src/tags/opus_header.h \
src/tags/opus_tag.h \
src/tags/vcedit.h \
src/tags/wavpack_header.h \
src/tags/wavpack_private.h \
src/tags/wavpack_tag.h \
src/win32/win32dep.h
nodist_easytag_headers = \
src/resource.h
easytag_LDADD = \
$(EASYTAG_LIBS) \
$(ID3LIB_LIBS) \
$(easytag_rc)
easytag_LDFLAGS = \
$(WARN_LDFLAGS)
noinst_resource_files = \
$(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir=$(srcdir)/data $(srcdir)/data/org.gnome.EasyTAG.gresource.xml)
src/resource.c src/resource.h: data/org.gnome.EasyTAG.gresource.xml Makefile $(noinst_resource_files)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/data --generate $<
if WINDOWS_HOST
ICONDIR = $(srcdir)/data/icons/win32
MANIFESTDIR = $(srcdir)/src/win32
easytag_rc.$(OBJEXT): src/win32/easytag.rc src/win32/easytag.manifest data/icons/win32/easytag.ico
$(AM_V_GEN)$(WINDRES) -DICONDIR='\"$(ICONDIR)\"' \
-DMANIFESTDIR='\"$(MANIFESTDIR)\"' -i $< -o $@
easytag_rc = easytag_rc.$(OBJEXT)
easytag_LDFLAGS += \
-Wl,--subsystem,windows
easytag-$(PACKAGE_VERSION)-setup.exe: easytag-win32-installer.nsi easytag.exe Makefile
$(AM_V_GEN) DESTDIR=`mktemp -d` && \
make -C $(top_builddir) install DESTDIR=$$DESTDIR >/dev/null && \
makensis -NOCD -DDESTDIR=$$DESTDIR $< >/dev/null && \
rm -rf $$DESTDIR
endif
BUILT_SOURCES = \
$(nodist_easytag_SOURCES) \
src/enums.h
enum_data = \
src/enums.c \
src/enums.h
easytag_enum_headers = \
$(srcdir)/src/setting.h
src/enums.c: $(easytag_enum_headers) src/enums.h Makefile
$(AM_V_GEN)$(GLIB_MKENUMS) \
--fhead "#include \"enums.h\"\n\n" \
--fprod "/* enumerations from \"@filename@\" */\n" \
--fprod "#include \"@filename@\"\n" \
--vhead "GType\n@enum_name@_get_type (void)\n{\n" \
--vhead " static GType type = 0;\n\n" \
--vhead " if (!type)\n {\n" \
--vhead " static const G@Type@Value _@enum_name@_values[] = {" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n };\n\n" \
--vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n }\n\n" \
--vtail " return type;\n}\n\n" \
$(easytag_enum_headers) > $@
src/enums.h: $(easytag_enum_headers) Makefile
$(AM_V_GEN)$(GLIB_MKENUMS) \
--fhead "#ifndef ET_ENUMS_H_\n" \
--fhead "#define ET_ENUMS_H_\n\n" \
--fhead "#include <glib-object.h>\n\n" \
--fhead "G_BEGIN_DECLS\n\n" \
--fprod "/* enumerations from @filename@ */\n" \
--vhead "GType @enum_name@_get_type (void);\n" \
--vhead "#define ET_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
--ftail "G_END_DECLS\n\n" \
--ftail "#endif /* ET_ENUMS_H_ */" \
$(easytag_enum_headers) > $@
# NSIS installer script.
# TODO: Run script from dist dir.
easytag-win32-installer.nsi: easytag-win32-installer.nsi.in Makefile
$(AM_V_GEN)$(SED) -e "s|\@PACKAGE_NAME\@|$(PACKAGE_NAME)|" \
-e "s|\@PACKAGE_TARNAME\@|$(PACKAGE_TARNAME)|" \
-e "s|\@PACKAGE_URL\@|$(PACKAGE_URL)|" \
-e "s|\@PACKAGE_VERSION\@|$(PACKAGE_VERSION)|" \
-e "s|\@PREFIX\@|$(prefix)|" $< > $@
if ENABLE_NAUTILUS_ACTIONS
nautilus_extensiondir = $(NAUTILUS_EXTENSION_DIR)
nautilus_extension_LTLIBRARIES = \
libnautilus-easytag.la
libnautilus_easytag_la_SOURCES = \
nautilus-extension/nautilus-easytag.c
libnautilus_easytag_la_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_builddir) \
-DLOCALEDIR=\"$(localedir)\" \
$(NAUTILUS_CFLAGS) \
$(GLIB_DEPRECATION_FLAGS) \
$(GTK_DEPRECATION_FLAGS)
libnautilus_easytag_la_CFLAGS = \
$(WARN_CFLAGS)
libnautilus_easytag_la_LDFLAGS = \
-module -avoid-version -no-undefined \
$(WARN_LDFLAGS)
libnautilus_easytag_la_LIBADD = \
$(NAUTILUS_LIBS)
nautilus_appdata_in_file = data/easytag-nautilus.metainfo.xml.in
endif
# Create a directory stamp in the build dir. Used to workaround the case where
# a pattern rule is used for a target with a path that does not ordinarily
# exist in the build dir.
%/.dstamp:
$(AM_V_at)$(MKDIR_P) $(@D)
$(AM_V_at)touch $@
@APPDATA_XML_RULES@
@INTLTOOL_XML_RULE@
appdata_in_files = data/easytag.appdata.xml.in $(nautilus_appdata_in_file)
appdata_XML = $(appdata_in_files:.xml.in=.xml)
@INTLTOOL_DESKTOP_RULE@
desktopdir = $(datadir)/applications
desktop_in_files = data/easytag.desktop.in
$(desktop_in_files:.desktop.in=.desktop): data/.dstamp
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
gsettings_ENUM_FILES = src/setting.h
gsettings_ENUM_NAMESPACE = org.gnome.EasyTAG
gsettings_SCHEMAS = data/org.gnome.EasyTAG.gschema.xml
data/org.gnome.EasyTAG.gschema.valid: data/.dstamp
@GSETTINGS_RULES@
if ENABLE_MAN
doc/easytag.1: doc/easytag.xml Makefile
$(AM_V_GEN)$(XSLTPROC) --nonet --param man.charmap.use.subset 0 \
--path $(builddir)/doc --output $(builddir)/doc/ \
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
nodist_man_MANS = doc/easytag.1
endif
images = \
data/images/all-lowercase.png \
data/images/all-uppercase.png \
data/images/artist.png \
data/images/artist-album.png \
data/images/first-letter-uppercase.png \
data/images/first-letter-uppercase-word.png \
data/images/freedb.png \
data/images/gnudb.png \
data/images/invert-selection.png \
data/images/mask.png \
data/images/musicbrainz.png \
data/images/red-lines.png \
data/images/sequence-track.png \
data/images/unselect-all.png
iconthemedir = $(datadir)/icons/hicolor
appicon16dir = $(iconthemedir)/16x16/apps
appicon22dir = $(iconthemedir)/22x22/apps
appicon24dir = $(iconthemedir)/24x24/apps
appicon32dir = $(iconthemedir)/32x32/apps
appicon48dir = $(iconthemedir)/48x48/apps
appicon64dir = $(iconthemedir)/64x64/apps
appicon128dir = $(iconthemedir)/128x128/apps
appicon256dir = $(iconthemedir)/256x256/apps
appiconscalabledir = $(iconthemedir)/scalable/apps
appiconsymbolicdir = $(iconthemedir)/symbolic/apps
dist_appicon16_DATA = \
data/icons/16x16/easytag.png
dist_appicon22_DATA = \
data/icons/22x22/easytag.png
dist_appicon24_DATA = \
data/icons/24x24/easytag.png
dist_appicon32_DATA = \
data/icons/32x32/easytag.png
dist_appicon48_DATA = \
data/icons/48x48/easytag.png
dist_appicon64_DATA = \
data/icons/64x64/easytag.png
dist_appicon128_DATA = \
data/icons/128x128/easytag.png
dist_appicon256_DATA = \
data/icons/256x256/easytag.png
dist_appiconscalable_DATA = \
data/icons/scalable/easytag.svg
dist_appiconsymbolic_DATA = \
data/icons/symbolic/easytag-symbolic.svg
UPDATE_ICON_CACHE = gtk-update-icon-cache --ignore-theme-index --force
install-data-hook: install-update-icon-cache
uninstall-hook: uninstall-update-icon-cache
install-update-icon-cache:
$(AM_V_at)$(POST_INSTALL)
test -n "$(DESTDIR)" || $(UPDATE_ICON_CACHE) "$(iconthemedir)"
uninstall-update-icon-cache:
$(AM_V_at)$(POST_UNINSTALL)
test -n "$(DESTDIR)" || $(UPDATE_ICON_CACHE) "$(iconthemedir)"
dist_noinst_DATA = \
$(appdata_in_files) \
$(desktop_in_files) \
$(gsettings_SCHEMAS) \
$(easytag_headers) \
data/org.gnome.EasyTAG.gresource.xml \
$(noinst_resource_files) \
src/tags/id3lib/patch_id3lib_3.8.3_UTF16_writing_bug.diff \
src/tags/libapetag/README.apetag \
src/tags/libapetag/id3v2_read.c \
src/tags/libapetag/id3v2_read.h \
src/tags/mp4_header.cc \
src/win32/easytag.manifest \
src/win32/resource.h \
data/icons/win32/easytag.ico \
data/nsis/easytag-header.bmp \
data/nsis/easytag-sidebar.bmp \
$(images) \
doc/easytag.xml \
COPYING.GPL3 \
easytag-win32-installer.nsi.in \
HACKING
dist_noinst_SCRIPTS = \
autogen.sh
if EASYTAG_ENABLE_TESTS
tests/test-desktop-file-validate.sh: Makefile tests/.dstamp
$(AM_V_GEN)echo "#!/bin/sh -e" > $@; \
echo "$(DESKTOP_FILE_VALIDATE) $(top_builddir)/$(desktop_DATA) || exit 1" >> $@; \
chmod +x $@
# Not automake built-in TESTS_ENVIRONMENT!
TEST_ENVIRONMENT = \
MALLOC_CHECK_=2 \
MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256)) \
G_SLICE=debug-blocks
# test: run all tests.
test: $(check_PROGRAMS)
$(AM_V_at)$(TEST_ENVIRONMENT) $(GTESTER) --verbose $(check_PROGRAMS)
# test-report: run tests and generate report.
# perf-report: run tests with -m perf and generate report.
# full-report: like test-report: with -m perf and -m slow.
test-report perf-report full-report: $(check_PROGRAMS)
$(AM_V_at)test -z "$(check_PROGRAMS)" || { \
case $@ in \
test-report) test_options="-k";; \
perf-report) test_options="-k -m=perf";; \
full-report) test_options="-k -m=perf -m=slow";; \
esac ; \
$(TEST_ENVIRONMENT) $(GTESTER) --verbose $$test_options -o test-log.xml $(check_PROGRAMS) ; \
if test -d "$(top_srcdir)/.git" ; then \
REVISION=`git describe` ; \
else \
REVISION=$(PACKAGE_VERSION) ; \
fi ; \
echo '<?xml version="1.0"?>' > $@.xml ; \
echo '<report-collection>' >> $@.xml ; \
echo '<info>' >> $@.xml ; \
echo ' <package>$(PACKAGE_NAME)</package>' >> $@.xml ; \
echo ' <version>$(PACKAGE_VERSION)</version>' >> $@.xml ; \
echo " <revision>$$REVISION</revision>" >> $@.xml ; \
echo '</info>' >> $@.xml ; \
sed '1,1s/^<?xml\b[^>?]*?>//' < test-log.xml >> $@.xml ; \
rm test-log.xml ; \
echo >> $@.xml ; \
echo '</report-collection>' >> $@.xml ; \
$(GTESTER_REPORT) --version 2>/dev/null 1>&2 ; test "$$?" != 0 || $(GTESTER_REPORT) $@.xml >$@.html ; \
}
check_PROGRAMS = \
tests/test-dlm \
tests/test-genres \
tests/test-file_description \
tests/test-file_info \
tests/test-file_tag \
tests/test-misc \
tests/test-picture \
tests/test-scan
common_test_cppflags = \
-I$(top_srcdir)/src \
-I$(top_builddir) \
$(GLIB_DEPRECATION_FLAGS) \
$(GTK_DEPRECATION_FLAGS)
common_test_cflags = \
$(EASYTAG_CFLAGS) \
$(WARN_CFLAGS)
tests_test_dlm_CPPFLAGS = \
$(common_test_cppflags)
tests_test_dlm_CFLAGS = \
$(common_test_cflags)
tests_test_dlm_SOURCES = \
tests/test-dlm.c \
src/dlm.c
tests_test_dlm_LDADD = \
$(EASYTAG_LIBS)
tests_test_file_description_CPPFLAGS = \
$(common_test_cppflags)
tests_test_file_description_CFLAGS = \
$(common_test_cflags)
tests_test_file_description_SOURCES = \
tests/test-file_description.c \
src/file_description.c
tests_test_file_description_LDADD = \
$(EASYTAG_LIBS)
tests_test_file_info_CPPFLAGS = \
$(common_test_cppflags)
tests_test_file_info_CFLAGS = \
$(common_test_cflags)
tests_test_file_info_SOURCES = \
tests/test-file_info.c \
src/file_info.c
tests_test_file_info_LDADD = \
$(EASYTAG_LIBS)
tests_test_file_tag_CPPFLAGS = \
$(common_test_cppflags) \
-I$(top_srcdir)/src/tags
tests_test_file_tag_CFLAGS = \
$(common_test_cflags)
tests_test_file_tag_SOURCES = \
tests/test-file_tag.c \
src/file_tag.c \
src/misc.c \
src/picture.c
tests_test_file_tag_LDADD = \
$(EASYTAG_LIBS)
tests_test_genres_CPPFLAGS = \
$(common_test_cppflags)
tests_test_genres_CFLAGS = \
$(common_test_cflags)
tests_test_genres_SOURCES = \
tests/test-genres.c
tests_test_genres_LDADD = \
$(EASYTAG_LIBS)
tests_test_misc_CPPFLAGS = \
$(common_test_cppflags) \
-I$(top_srcdir)/src/tags
tests_test_misc_CFLAGS = \
$(common_test_cflags)
tests_test_misc_SOURCES = \
tests/test-misc.c \
src/misc.c
tests_test_misc_LDADD = \
$(EASYTAG_LIBS)
tests_test_picture_CPPFLAGS = \
$(common_test_cppflags) \
-I$(top_srcdir)/src/tags
tests_test_picture_CFLAGS = \
$(common_test_cflags)
tests_test_picture_SOURCES = \
tests/test-picture.c \
src/misc.c \
src/picture.c
tests_test_picture_LDADD = \
$(EASYTAG_LIBS)
tests_test_scan_CPPFLAGS = \
$(common_test_cppflags)
tests_test_scan_CFLAGS = \
$(common_test_cflags)
tests_test_scan_SOURCES = \
tests/test-scan.c \
src/scan.c
tests_test_scan_LDADD = \
$(EASYTAG_LIBS)
check_SCRIPTS = \
tests/test-desktop-file-validate.sh
TESTS = \
$(check_PROGRAMS) \
$(check_SCRIPTS)
endif
CLEANFILES = \
$(appdata_XML) \
$(check_SCRIPTS) \
$(desktop_DATA) \
$(easytag_rc) \
$(enum_data) \
$(nodist_man_MANS) \
*.log \
easytag-$(PACKAGE_VERSION)-setup.exe \
easytag-win32-installer.nsi \
src/resource.c \
src/resource.h
DISTCLEANFILES = \
po/.intltool-merge-cache
check-local: test
clean-local: clean-local-dstamp
clean-local-dstamp:
-rm -f data/.dstamp
-rm -f tests/.dstamp
@GENERATE_CHANGELOG_RULES@
dist-hook: dist-ChangeLog
.PHONY: clean-local-dstamp
.PHONY: test test-report perf-report full-report
|