Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Binary file added data/gschemas.compiled
Binary file not shown.
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pkgconfig = import('pkgconfig')

add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()), language:'c')
add_project_arguments('-DLIBICAL_GLIB_UNSTABLE_API=1', language: 'c')
add_project_arguments('--vapidir', meson.project_source_root() / 'vapi', language: 'vala')

gio_dep = dependency('gio-2.0')
glib_dep = dependency('glib-2.0')
Expand Down
51 changes: 51 additions & 0 deletions run-macos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/bin/bash

# Script to build and run Planify on macOS without optional dependencies

# Check critical dependencies
echo "Checking dependencies..."
for dep in pango cairo fontconfig; do
if ! brew list $dep &>/dev/null; then
echo "Installing $dep..."
brew install $dep
fi
done

# Clean previous build if exists
if [ -d "build" ]; then
echo "Cleaning previous build..."
rm -rf build
fi

# Configure with meson without optional dependencies
echo "Configuring project..."
meson setup build \
-Dwebkit=false \
-Dspelling=disabled \
-Dportal=false \
-Devolution=false

# Compile
echo "Compiling..."
if meson compile -C build; then
# Compile gschemas locally
echo "Compiling gschemas..."
glib-compile-schemas data

# Run with environment variables for schemas
echo "Running Planify..."
echo ""

# Configure Pango and Cairo for macOS
export FONTCONFIG_PATH=/opt/homebrew/etc/fonts
export FONTCONFIG_FILE=/opt/homebrew/etc/fonts/fonts.conf
export XDG_DATA_DIRS=/opt/homebrew/share:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}

# Use macOS system fonts as fallback
export PANGO_EMOJI_FONT="Apple Color Emoji"

GSETTINGS_SCHEMA_DIR=data ./build/src/io.github.alainm23.planify
else
echo "Compilation error"
exit 1
fi
Loading