<commit_before>
TARGET = shotwell

# This takes care of a warning message generated by the use of Math.round in image_util.vala
VALAC_OPTS =--Xcc=-std=c99 -g --enable-checking

SRC_FILES = \
	main.vala \
	AppWindow.vala \
	CollectionPage.vala \
	Thumbnail.vala \
	DatabaseTables.vala \
	ThumbnailCache.vala \
	image_util.vala \
	CollectionLayout.vala \
	PhotoPage.vala \
	Exif.vala \
	Page.vala \
	ImportPage.vala \
	GPhoto.vala \
	SortedList.vala \
	EventsDirectoryPage.vala
	
VAPI_FILES = \
	libexif.vapi \
	fstream.vapi \
	libgphoto2.vapi

RESOURCE_FILES = \
	photo.ui \
	collection.ui \
	import.ui
    
VAPI_DIRS = \
	.

HEADER_DIRS = \
	.

PKGS = \
	gtk+-2.0 \
	sqlite3 \
	vala-1.0 \
	libexif \
	fstream \
	libgphoto2 \
	hal \
	unique-1.0 \
	gnome-vfs-2.0

all: $(TARGET)

clean:
	rm -f $(TARGET)

install: $(TARGET) shotwell.desktop
	cp $(TARGET) /usr/local/bin
	mkdir -p /usr/local/share/shotwell/icons
	cp icons/* /usr/local/share/shotwell/icons
	$(foreach res,$(RESOURCE_FILES),cp $(res) /usr/local/share/shotwell;)
	cp shotwell.desktop /usr/share/applications

uninstall:
	rm -f /usr/local/bin/$(TARGET)
	rm -fr /usr/local/share/shotwell
	rm -f /usr/share/applications/shotwell.desktop

$(TARGET): $(SRC_FILES) $(VAPI_FILES) Makefile
	valac $(VALAC_OPTS) \
	$(foreach pkg,$(PKGS),--pkg=$(pkg)) \
	$(foreach vapidir,$(VAPI_DIRS), --vapidir=$(vapidir)) \
	$(foreach hdir,$(HEADER_DIRS),-X -I$(hdir)) \
	$(SRC_FILES) \
	-o $(TARGET)
<commit_msg>#185: pkg-config checks for package existance.<commit_after>
TARGET = shotwell

# This takes care of a warning message generated by the use of Math.round in image_util.vala
VALAC_OPTS =--Xcc=-std=c99 -g --enable-checking

SRC_FILES = \
	main.vala \
	AppWindow.vala \
	CollectionPage.vala \
	Thumbnail.vala \
	DatabaseTables.vala \
	ThumbnailCache.vala \
	image_util.vala \
	CollectionLayout.vala \
	PhotoPage.vala \
	Exif.vala \
	Page.vala \
	ImportPage.vala \
	GPhoto.vala \
	SortedList.vala \
	EventsDirectoryPage.vala
	
VAPI_FILES = \
	libexif.vapi \
	fstream.vapi \
	libgphoto2.vapi

RESOURCE_FILES = \
	photo.ui \
	collection.ui \
	import.ui
    
VAPI_DIRS = \
	.

HEADER_DIRS = \
	.

LOCAL_PKGS = \
	libexif \
	fstream \
	libgphoto2 \

EXT_PKGS = \
	gtk+-2.0 \
	sqlite3 \
	vala-1.0 \
	hal \
	dbus-glib-1 \
	unique-1.0 \
	gnome-vfs-2.0

PKGS = $(EXT_PKGS) $(LOCAL_PKGS)

all: $(TARGET)

clean:
	rm -f $(TARGET)

install: $(TARGET) shotwell.desktop
	cp $(TARGET) /usr/local/bin
	mkdir -p /usr/local/share/shotwell/icons
	cp icons/* /usr/local/share/shotwell/icons
	$(foreach res,$(RESOURCE_FILES),cp $(res) /usr/local/share/shotwell;)
	cp shotwell.desktop /usr/share/applications

uninstall:
	rm -f /usr/local/bin/$(TARGET)
	rm -fr /usr/local/share/shotwell
	rm -f /usr/share/applications/shotwell.desktop

$(TARGET): $(SRC_FILES) $(VAPI_FILES) Makefile
	pkg-config --print-errors --exists $(EXT_PKGS)
	valac $(VALAC_OPTS) \
	$(foreach pkg,$(PKGS),--pkg=$(pkg)) \
	$(foreach vapidir,$(VAPI_DIRS), --vapidir=$(vapidir)) \
	$(foreach hdir,$(HEADER_DIRS),-X -I$(hdir)) \
	$(SRC_FILES) \
	-o $(TARGET)

{'fraction_non_alphanumeric': 0.15684348395546824, 'fraction_numerical': 0.009823182711198428, 'mean_word_length': 3.190672153635117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '543072', 'n_tokens_mistral': 1342, 'n_tokens_neox': 1296, 'n_words': 234}